Compare commits
1 Commits
master
...
loewy/crea
Author | SHA1 | Date | |
---|---|---|---|
a497abd44d |
236
src/index.tsx
236
src/index.tsx
@ -2282,7 +2282,6 @@ export type Mutation = {
|
|||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
deleteComment: Scalars["Boolean"]["output"];
|
deleteComment: Scalars["Boolean"]["output"];
|
||||||
deleteTags: Scalars["Boolean"]["output"];
|
deleteTags: Scalars["Boolean"]["output"];
|
||||||
deleteUser: Scalars["Boolean"]["output"];
|
|
||||||
deleteVideo: Scalars["Boolean"]["output"];
|
deleteVideo: Scalars["Boolean"]["output"];
|
||||||
editComment: Scalars["Boolean"]["output"];
|
editComment: Scalars["Boolean"]["output"];
|
||||||
editProfileImageUri: UserGql;
|
editProfileImageUri: UserGql;
|
||||||
@ -3201,11 +3200,8 @@ export type VideoProcessingErrorGql = {
|
|||||||
|
|
||||||
export type VideoProcessingGql = {
|
export type VideoProcessingGql = {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
currentSegment?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
errors: Array<VideoProcessingErrorGql>;
|
errors: Array<VideoProcessingErrorGql>;
|
||||||
framesProcessed?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
progressPercentage?: Maybe<Scalars["Float"]["output"]>;
|
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
statuses: Array<VideoProcessingStatusGql>;
|
statuses: Array<VideoProcessingStatusGql>;
|
||||||
};
|
};
|
||||||
@ -3896,6 +3892,47 @@ export type EnsureStripeCustomerExistsMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CreateSubscriptionMutationVariables = Exact<{
|
||||||
|
priceId: Scalars["String"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type CreateSubscriptionMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
createSubscription: {
|
||||||
|
__typename?: "CreateSubscriptionResultGQL";
|
||||||
|
checkoutUrl: string;
|
||||||
|
sessionId: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
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>;
|
||||||
@ -4711,13 +4748,6 @@ export type EditUserMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DeleteUserMutationVariables = Exact<{ [key: string]: never }>;
|
|
||||||
|
|
||||||
export type DeleteUserMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
deleteUser: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type UserFragmentFragment = {
|
export type UserFragmentFragment = {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@ -6769,6 +6799,143 @@ export type EnsureStripeCustomerExistsMutationOptions =
|
|||||||
EnsureStripeCustomerExistsMutation,
|
EnsureStripeCustomerExistsMutation,
|
||||||
EnsureStripeCustomerExistsMutationVariables
|
EnsureStripeCustomerExistsMutationVariables
|
||||||
>;
|
>;
|
||||||
|
export const CreateSubscriptionDocument = gql`
|
||||||
|
mutation CreateSubscription($priceId: String!) {
|
||||||
|
createSubscription(priceId: $priceId) {
|
||||||
|
checkoutUrl
|
||||||
|
sessionId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type CreateSubscriptionMutationFn = Apollo.MutationFunction<
|
||||||
|
CreateSubscriptionMutation,
|
||||||
|
CreateSubscriptionMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useCreateSubscriptionMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useCreateSubscriptionMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useCreateSubscriptionMutation` returns a tuple that includes:
|
||||||
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
|
*
|
||||||
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const [createSubscriptionMutation, { data, loading, error }] = useCreateSubscriptionMutation({
|
||||||
|
* variables: {
|
||||||
|
* priceId: // value for 'priceId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useCreateSubscriptionMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
CreateSubscriptionMutation,
|
||||||
|
CreateSubscriptionMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
CreateSubscriptionMutation,
|
||||||
|
CreateSubscriptionMutationVariables
|
||||||
|
>(CreateSubscriptionDocument, options);
|
||||||
|
}
|
||||||
|
export type CreateSubscriptionMutationHookResult = ReturnType<
|
||||||
|
typeof useCreateSubscriptionMutation
|
||||||
|
>;
|
||||||
|
export type CreateSubscriptionMutationResult =
|
||||||
|
Apollo.MutationResult<CreateSubscriptionMutation>;
|
||||||
|
export type CreateSubscriptionMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
CreateSubscriptionMutation,
|
||||||
|
CreateSubscriptionMutationVariables
|
||||||
|
>;
|
||||||
|
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)
|
||||||
@ -8739,53 +8906,6 @@ export type EditUserMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
EditUserMutation,
|
EditUserMutation,
|
||||||
EditUserMutationVariables
|
EditUserMutationVariables
|
||||||
>;
|
>;
|
||||||
export const DeleteUserDocument = gql`
|
|
||||||
mutation deleteUser {
|
|
||||||
deleteUser
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type DeleteUserMutationFn = Apollo.MutationFunction<
|
|
||||||
DeleteUserMutation,
|
|
||||||
DeleteUserMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useDeleteUserMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useDeleteUserMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useDeleteUserMutation` returns a tuple that includes:
|
|
||||||
* - A mutate function that you can call at any time to execute the mutation
|
|
||||||
* - An object with fields that represent the current status of the mutation's execution
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const [deleteUserMutation, { data, loading, error }] = useDeleteUserMutation({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useDeleteUserMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
DeleteUserMutation,
|
|
||||||
DeleteUserMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<DeleteUserMutation, DeleteUserMutationVariables>(
|
|
||||||
DeleteUserDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export type DeleteUserMutationHookResult = ReturnType<
|
|
||||||
typeof useDeleteUserMutation
|
|
||||||
>;
|
|
||||||
export type DeleteUserMutationResult =
|
|
||||||
Apollo.MutationResult<DeleteUserMutation>;
|
|
||||||
export type DeleteUserMutationOptions = Apollo.BaseMutationOptions<
|
|
||||||
DeleteUserMutation,
|
|
||||||
DeleteUserMutationVariables
|
|
||||||
>;
|
|
||||||
export const GetStreamMonitoringDetailsDocument = gql`
|
export const GetStreamMonitoringDetailsDocument = gql`
|
||||||
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||||
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
||||||
|
@ -12,3 +12,30 @@ mutation EnsureStripeCustomerExists {
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation CreateSubscription($priceId: String!) {
|
||||||
|
createSubscription(priceId: $priceId) {
|
||||||
|
checkoutUrl
|
||||||
|
sessionId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetAvailableSubscriptionOptions {
|
||||||
|
getAvailableSubscriptionOptions {
|
||||||
|
products {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
active
|
||||||
|
prices {
|
||||||
|
id
|
||||||
|
currency
|
||||||
|
unitAmount
|
||||||
|
recurringInterval
|
||||||
|
recurringIntervalCount
|
||||||
|
type
|
||||||
|
active
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -157,10 +157,6 @@ mutation editUser(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation deleteUser {
|
|
||||||
deleteUser
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment UserFragment on UserGQL {
|
fragment UserFragment on UserGQL {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
|
@ -569,9 +569,6 @@ type VideoProcessingGQL {
|
|||||||
errors: [VideoProcessingErrorGQL!]!
|
errors: [VideoProcessingErrorGQL!]!
|
||||||
status: ProcessingStatusEnum!
|
status: ProcessingStatusEnum!
|
||||||
statuses: [VideoProcessingStatusGQL!]!
|
statuses: [VideoProcessingStatusGQL!]!
|
||||||
framesProcessed: Int
|
|
||||||
currentSegment: Int
|
|
||||||
progressPercentage: Float
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoProcessingErrorGQL {
|
type VideoProcessingErrorGQL {
|
||||||
@ -906,7 +903,6 @@ type Mutation {
|
|||||||
unfollowUser(followedUserId: Int!): UserGQL!
|
unfollowUser(followedUserId: Int!): UserGQL!
|
||||||
retireTags(tagIds: [Int!]!): Boolean!
|
retireTags(tagIds: [Int!]!): Boolean!
|
||||||
ensureStripeCustomerExists: UserGQL!
|
ensureStripeCustomerExists: UserGQL!
|
||||||
deleteUser: Boolean!
|
|
||||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user