Compare commits
19 Commits
dc207bce55
...
kat/delete
Author | SHA1 | Date | |
---|---|---|---|
99f8968a36 | |||
76a98aa0c3 | |||
f5177a877c | |||
6685849cc2 | |||
567cbc549c | |||
2b43493a4f | |||
358eee2e16 | |||
a1d3d776aa | |||
82af3a3ce9 | |||
7b51c317ca | |||
04f1bb4d74 | |||
fbd7c2020b | |||
c0636a8863 | |||
7302d6b8b6 | |||
492178455c | |||
55a2edb042 | |||
31cf492889 | |||
de7dc675a1 | |||
f8f00d9c24 |
119
src/index.tsx
119
src/index.tsx
@@ -2275,12 +2275,14 @@ export type Mutation = {
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteComment: Scalars["Boolean"]["output"];
|
||||
deleteTags: Scalars["Boolean"]["output"];
|
||||
deleteUser: Scalars["Boolean"]["output"];
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editComment: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editShot: EditShotReturn;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
editUser: UserGql;
|
||||
ensureStripeCustomerExists: UserGql;
|
||||
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
||||
followUser: UserGql;
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
@@ -2491,6 +2493,7 @@ export type Query = {
|
||||
__typename?: "Query";
|
||||
doesUsernameExist: Scalars["Boolean"]["output"];
|
||||
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
||||
getBucketSet?: Maybe<BucketSetGql>;
|
||||
getDeployedConfig: DeployedConfigGql;
|
||||
getFeedVideos: VideoHistoryGql;
|
||||
@@ -2511,6 +2514,7 @@ export type Query = {
|
||||
getUserTags: Array<TagGql>;
|
||||
getUserVideos: VideoHistoryGql;
|
||||
getUsernames: Array<Scalars["String"]["output"]>;
|
||||
getUsersMatching: Array<UserGql>;
|
||||
getVideo: VideoGql;
|
||||
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
||||
getVideos: Array<VideoGql>;
|
||||
@@ -2633,6 +2637,12 @@ export type QueryGetUsernamesArgs = {
|
||||
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
||||
};
|
||||
|
||||
export type QueryGetUsersMatchingArgs = {
|
||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
||||
};
|
||||
|
||||
export type QueryGetVideoArgs = {
|
||||
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
@@ -2909,6 +2919,31 @@ export enum StreamSegmentTypeEnum {
|
||||
RbChunkedMp4 = "RB_CHUNKED_MP4",
|
||||
}
|
||||
|
||||
export type StripePriceGql = {
|
||||
__typename?: "StripePriceGQL";
|
||||
active: Scalars["Boolean"]["output"];
|
||||
currency: Scalars["String"]["output"];
|
||||
id: Scalars["String"]["output"];
|
||||
recurringInterval?: Maybe<Scalars["String"]["output"]>;
|
||||
recurringIntervalCount?: Maybe<Scalars["Int"]["output"]>;
|
||||
type: Scalars["String"]["output"];
|
||||
unitAmount?: Maybe<Scalars["Int"]["output"]>;
|
||||
};
|
||||
|
||||
export type StripeProductGql = {
|
||||
__typename?: "StripeProductGQL";
|
||||
active: Scalars["Boolean"]["output"];
|
||||
description?: Maybe<Scalars["String"]["output"]>;
|
||||
id: Scalars["String"]["output"];
|
||||
name: Scalars["String"]["output"];
|
||||
prices: Array<StripePriceGql>;
|
||||
};
|
||||
|
||||
export type StripeSubscriptionOptionsGql = {
|
||||
__typename?: "StripeSubscriptionOptionsGQL";
|
||||
products: Array<StripeProductGql>;
|
||||
};
|
||||
|
||||
export type SuccessfulAdd = {
|
||||
__typename?: "SuccessfulAdd";
|
||||
value: Scalars["Boolean"]["output"];
|
||||
@@ -3034,6 +3069,7 @@ export type UserGql = {
|
||||
id: Scalars["Int"]["output"];
|
||||
isAdmin?: Maybe<Scalars["Boolean"]["output"]>;
|
||||
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
||||
stripeCustomerId?: Maybe<Scalars["String"]["output"]>;
|
||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
username: Scalars["String"]["output"];
|
||||
videosPrivateByDefault?: Maybe<Scalars["Boolean"]["output"]>;
|
||||
@@ -3154,8 +3190,11 @@ export type VideoProcessingErrorGql = {
|
||||
|
||||
export type VideoProcessingGql = {
|
||||
__typename?: "VideoProcessingGQL";
|
||||
currentSegment?: Maybe<Scalars["Int"]["output"]>;
|
||||
errors: Array<VideoProcessingErrorGql>;
|
||||
framesProcessed?: Maybe<Scalars["Int"]["output"]>;
|
||||
id: Scalars["Int"]["output"];
|
||||
progressPercentage?: Maybe<Scalars["Float"]["output"]>;
|
||||
status: ProcessingStatusEnum;
|
||||
statuses: Array<VideoProcessingStatusGql>;
|
||||
};
|
||||
@@ -3825,6 +3864,27 @@ export type GetMedalsQuery = {
|
||||
};
|
||||
};
|
||||
|
||||
export type EnsureStripeCustomerExistsMutationVariables = Exact<{
|
||||
[key: string]: never;
|
||||
}>;
|
||||
|
||||
export type EnsureStripeCustomerExistsMutation = {
|
||||
__typename?: "Mutation";
|
||||
ensureStripeCustomerExists: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
firebaseUid?: string | null;
|
||||
username: string;
|
||||
stripeCustomerId?: string | null;
|
||||
profileImageUri?: string | null;
|
||||
isAdmin?: boolean | null;
|
||||
fargoRating?: number | null;
|
||||
videosPrivateByDefault?: boolean | null;
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type ReactToVideoMutationVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
reaction?: InputMaybe<ReactionEnum>;
|
||||
@@ -6632,6 +6692,65 @@ export type GetMedalsQueryResult = Apollo.QueryResult<
|
||||
GetMedalsQuery,
|
||||
GetMedalsQueryVariables
|
||||
>;
|
||||
export const EnsureStripeCustomerExistsDocument = gql`
|
||||
mutation EnsureStripeCustomerExists {
|
||||
ensureStripeCustomerExists {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
stripeCustomerId
|
||||
profileImageUri
|
||||
isAdmin
|
||||
fargoRating
|
||||
videosPrivateByDefault
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type EnsureStripeCustomerExistsMutationFn = Apollo.MutationFunction<
|
||||
EnsureStripeCustomerExistsMutation,
|
||||
EnsureStripeCustomerExistsMutationVariables
|
||||
>;
|
||||
|
||||
/**
|
||||
* __useEnsureStripeCustomerExistsMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useEnsureStripeCustomerExistsMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useEnsureStripeCustomerExistsMutation` 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 [ensureStripeCustomerExistsMutation, { data, loading, error }] = useEnsureStripeCustomerExistsMutation({
|
||||
* variables: {
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useEnsureStripeCustomerExistsMutation(
|
||||
baseOptions?: Apollo.MutationHookOptions<
|
||||
EnsureStripeCustomerExistsMutation,
|
||||
EnsureStripeCustomerExistsMutationVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useMutation<
|
||||
EnsureStripeCustomerExistsMutation,
|
||||
EnsureStripeCustomerExistsMutationVariables
|
||||
>(EnsureStripeCustomerExistsDocument, options);
|
||||
}
|
||||
export type EnsureStripeCustomerExistsMutationHookResult = ReturnType<
|
||||
typeof useEnsureStripeCustomerExistsMutation
|
||||
>;
|
||||
export type EnsureStripeCustomerExistsMutationResult =
|
||||
Apollo.MutationResult<EnsureStripeCustomerExistsMutation>;
|
||||
export type EnsureStripeCustomerExistsMutationOptions =
|
||||
Apollo.BaseMutationOptions<
|
||||
EnsureStripeCustomerExistsMutation,
|
||||
EnsureStripeCustomerExistsMutationVariables
|
||||
>;
|
||||
export const ReactToVideoDocument = gql`
|
||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||
|
14
src/operations/payments.gql
Normal file
14
src/operations/payments.gql
Normal file
@@ -0,0 +1,14 @@
|
||||
mutation EnsureStripeCustomerExists {
|
||||
ensureStripeCustomerExists {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
stripeCustomerId
|
||||
profileImageUri
|
||||
isAdmin
|
||||
fargoRating
|
||||
videosPrivateByDefault
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
@@ -70,12 +70,18 @@ type Query {
|
||||
limit: Int = null
|
||||
after: String = null
|
||||
): [String!]!
|
||||
getUsersMatching(
|
||||
matchString: String = null
|
||||
limit: Int = null
|
||||
after: String = null
|
||||
): [UserGQL!]!
|
||||
getUserRelationshipsMatching(
|
||||
userId: Int!
|
||||
matchString: String = null
|
||||
limit: Int = 100
|
||||
after: String = null
|
||||
): UserRelationshipsResult!
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@@ -351,6 +357,7 @@ type UserGQL {
|
||||
isAdmin: Boolean
|
||||
fargoRating: Int
|
||||
activeVideoId: Int
|
||||
stripeCustomerId: String
|
||||
profileImageUri: String
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
@@ -562,6 +569,9 @@ type VideoProcessingGQL {
|
||||
errors: [VideoProcessingErrorGQL!]!
|
||||
status: ProcessingStatusEnum!
|
||||
statuses: [VideoProcessingStatusGQL!]!
|
||||
framesProcessed: Int
|
||||
currentSegment: Int
|
||||
progressPercentage: Float
|
||||
}
|
||||
|
||||
type VideoProcessingErrorGQL {
|
||||
@@ -817,6 +827,28 @@ type UserRelationship {
|
||||
toUserIsFollowedBy: Boolean!
|
||||
}
|
||||
|
||||
type StripeSubscriptionOptionsGQL {
|
||||
products: [StripeProductGQL!]!
|
||||
}
|
||||
|
||||
type StripeProductGQL {
|
||||
id: String!
|
||||
name: String!
|
||||
description: String
|
||||
active: Boolean!
|
||||
prices: [StripePriceGQL!]!
|
||||
}
|
||||
|
||||
type StripePriceGQL {
|
||||
id: String!
|
||||
currency: String!
|
||||
unitAmount: Int
|
||||
recurringInterval: String
|
||||
recurringIntervalCount: Int
|
||||
type: String!
|
||||
active: Boolean!
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
@@ -873,6 +905,8 @@ type Mutation {
|
||||
followUser(followedUserId: Int!): UserGQL!
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
retireTags(tagIds: [Int!]!): Boolean!
|
||||
ensureStripeCustomerExists: UserGQL!
|
||||
deleteUser: Boolean!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
|
Reference in New Issue
Block a user