add operation
This commit is contained in:
parent
358eee2e16
commit
a4d111f293
114
src/index.tsx
114
src/index.tsx
@ -3881,6 +3881,34 @@ export type EnsureStripeCustomerExistsMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetAvailableSubscriptionOptionsQueryVariables = Exact<{
|
||||||
|
[key: string]: never;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetAvailableSubscriptionOptionsQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getAvailableSubscriptionOptions: {
|
||||||
|
__typename?: "StripeSubscriptionOptionsGQL";
|
||||||
|
products: Array<{
|
||||||
|
__typename?: "StripeProductGQL";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
description?: string | null;
|
||||||
|
active: boolean;
|
||||||
|
prices: Array<{
|
||||||
|
__typename?: "StripePriceGQL";
|
||||||
|
id: string;
|
||||||
|
currency: string;
|
||||||
|
unitAmount?: number | null;
|
||||||
|
recurringInterval?: string | null;
|
||||||
|
recurringIntervalCount?: number | null;
|
||||||
|
type: string;
|
||||||
|
active: boolean;
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type ReactToVideoMutationVariables = Exact<{
|
export type ReactToVideoMutationVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
reaction?: InputMaybe<ReactionEnum>;
|
reaction?: InputMaybe<ReactionEnum>;
|
||||||
@ -6747,6 +6775,92 @@ export type EnsureStripeCustomerExistsMutationOptions =
|
|||||||
EnsureStripeCustomerExistsMutation,
|
EnsureStripeCustomerExistsMutation,
|
||||||
EnsureStripeCustomerExistsMutationVariables
|
EnsureStripeCustomerExistsMutationVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetAvailableSubscriptionOptionsDocument = gql`
|
||||||
|
query GetAvailableSubscriptionOptions {
|
||||||
|
getAvailableSubscriptionOptions {
|
||||||
|
products {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
active
|
||||||
|
prices {
|
||||||
|
id
|
||||||
|
currency
|
||||||
|
unitAmount
|
||||||
|
recurringInterval
|
||||||
|
recurringIntervalCount
|
||||||
|
type
|
||||||
|
active
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetAvailableSubscriptionOptionsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetAvailableSubscriptionOptionsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetAvailableSubscriptionOptionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
||||||
|
* you can use to render your UI.
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const { data, loading, error } = useGetAvailableSubscriptionOptionsQuery({
|
||||||
|
* variables: {
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetAvailableSubscriptionOptionsQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetAvailableSubscriptionOptionsQuery,
|
||||||
|
GetAvailableSubscriptionOptionsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetAvailableSubscriptionOptionsQuery,
|
||||||
|
GetAvailableSubscriptionOptionsQueryVariables
|
||||||
|
>(GetAvailableSubscriptionOptionsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetAvailableSubscriptionOptionsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetAvailableSubscriptionOptionsQuery,
|
||||||
|
GetAvailableSubscriptionOptionsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetAvailableSubscriptionOptionsQuery,
|
||||||
|
GetAvailableSubscriptionOptionsQueryVariables
|
||||||
|
>(GetAvailableSubscriptionOptionsDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetAvailableSubscriptionOptionsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetAvailableSubscriptionOptionsQuery,
|
||||||
|
GetAvailableSubscriptionOptionsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetAvailableSubscriptionOptionsQuery,
|
||||||
|
GetAvailableSubscriptionOptionsQueryVariables
|
||||||
|
>(GetAvailableSubscriptionOptionsDocument, options);
|
||||||
|
}
|
||||||
|
export type GetAvailableSubscriptionOptionsQueryHookResult = ReturnType<
|
||||||
|
typeof useGetAvailableSubscriptionOptionsQuery
|
||||||
|
>;
|
||||||
|
export type GetAvailableSubscriptionOptionsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetAvailableSubscriptionOptionsLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetAvailableSubscriptionOptionsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetAvailableSubscriptionOptionsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetAvailableSubscriptionOptionsQueryResult = Apollo.QueryResult<
|
||||||
|
GetAvailableSubscriptionOptionsQuery,
|
||||||
|
GetAvailableSubscriptionOptionsQueryVariables
|
||||||
|
>;
|
||||||
export const ReactToVideoDocument = gql`
|
export const ReactToVideoDocument = gql`
|
||||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||||
|
@ -12,3 +12,23 @@ mutation EnsureStripeCustomerExists {
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetAvailableSubscriptionOptions {
|
||||||
|
getAvailableSubscriptionOptions {
|
||||||
|
products {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
active
|
||||||
|
prices {
|
||||||
|
id
|
||||||
|
currency
|
||||||
|
unitAmount
|
||||||
|
recurringInterval
|
||||||
|
recurringIntervalCount
|
||||||
|
type
|
||||||
|
active
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user