Compare commits
14 Commits
82af3a3ce9
...
loewy/add-
Author | SHA1 | Date | |
---|---|---|---|
b5a8e3eca7 | |||
01fb113e1c | |||
c660ed54cd | |||
b5fd2e2183 | |||
ddee57f4c2 | |||
49d43b2703 | |||
99f8968a36 | |||
76a98aa0c3 | |||
f5177a877c | |||
6685849cc2 | |||
567cbc549c | |||
2b43493a4f | |||
358eee2e16 | |||
a1d3d776aa |
105
src/index.tsx
105
src/index.tsx
@@ -164,6 +164,12 @@ export type CreateBucketSetInput = {
|
||||
keyName: Scalars["String"]["input"];
|
||||
};
|
||||
|
||||
export type CreateSubscriptionResultGql = {
|
||||
__typename?: "CreateSubscriptionResultGQL";
|
||||
checkoutUrl: Scalars["String"]["output"];
|
||||
sessionId: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type CreateUploadStreamReturn = {
|
||||
__typename?: "CreateUploadStreamReturn";
|
||||
videoId: Scalars["Int"]["output"];
|
||||
@@ -2226,6 +2232,15 @@ export type IntPoint2DInput = {
|
||||
y: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type IntRangeFilter = {
|
||||
greaterThan?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
greaterThanEqualTo?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
greaterThanInclusive?: Scalars["Boolean"]["input"];
|
||||
includeOnNone?: Scalars["Boolean"]["input"];
|
||||
lessThan?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
lessThanInclusive?: Scalars["Boolean"]["input"];
|
||||
};
|
||||
|
||||
export type MakePercentageIntervalGql = {
|
||||
__typename?: "MakePercentageIntervalGQL";
|
||||
elapsedTime: Scalars["Float"]["output"];
|
||||
@@ -2272,9 +2287,11 @@ export type Mutation = {
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
commentOnVideo: Scalars["Boolean"]["output"];
|
||||
createBucketSet: BucketSetGql;
|
||||
createSubscription: CreateSubscriptionResultGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteComment: Scalars["Boolean"]["output"];
|
||||
deleteTags: Scalars["Boolean"]["output"];
|
||||
deleteUser: Scalars["Boolean"]["output"];
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editComment: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
@@ -2311,6 +2328,10 @@ export type MutationCreateBucketSetArgs = {
|
||||
params: CreateBucketSetInput;
|
||||
};
|
||||
|
||||
export type MutationCreateSubscriptionArgs = {
|
||||
priceId: Scalars["String"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCreateUploadStreamArgs = {
|
||||
videoMetadata: VideoMetadataInput;
|
||||
};
|
||||
@@ -2492,6 +2513,7 @@ export type Query = {
|
||||
__typename?: "Query";
|
||||
doesUsernameExist: Scalars["Boolean"]["output"];
|
||||
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
||||
getBucketSet?: Maybe<BucketSetGql>;
|
||||
getDeployedConfig: DeployedConfigGql;
|
||||
getFeedVideos: VideoHistoryGql;
|
||||
@@ -2917,6 +2939,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"];
|
||||
@@ -3096,6 +3143,7 @@ export type VideoFilterInput = {
|
||||
createdAt?: InputMaybe<DateRangeFilter>;
|
||||
excludeVideosWithNoShots?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
reactionCount?: InputMaybe<IntRangeFilter>;
|
||||
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
||||
};
|
||||
|
||||
@@ -3163,8 +3211,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>;
|
||||
};
|
||||
@@ -4670,6 +4721,13 @@ export type EditUserMutation = {
|
||||
};
|
||||
};
|
||||
|
||||
export type DeleteUserMutationVariables = Exact<{ [key: string]: never }>;
|
||||
|
||||
export type DeleteUserMutation = {
|
||||
__typename?: "Mutation";
|
||||
deleteUser: boolean;
|
||||
};
|
||||
|
||||
export type UserFragmentFragment = {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
@@ -8691,6 +8749,53 @@ export type EditUserMutationOptions = Apollo.BaseMutationOptions<
|
||||
EditUserMutation,
|
||||
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`
|
||||
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
||||
|
@@ -157,6 +157,10 @@ mutation editUser(
|
||||
}
|
||||
}
|
||||
|
||||
mutation deleteUser {
|
||||
deleteUser
|
||||
}
|
||||
|
||||
fragment UserFragment on UserGQL {
|
||||
id
|
||||
firebaseUid
|
||||
|
@@ -81,6 +81,7 @@ type Query {
|
||||
limit: Int = 100
|
||||
after: String = null
|
||||
): UserRelationshipsResult!
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@@ -568,6 +569,9 @@ type VideoProcessingGQL {
|
||||
errors: [VideoProcessingErrorGQL!]!
|
||||
status: ProcessingStatusEnum!
|
||||
statuses: [VideoProcessingStatusGQL!]!
|
||||
framesProcessed: Int
|
||||
currentSegment: Int
|
||||
progressPercentage: Float
|
||||
}
|
||||
|
||||
type VideoProcessingErrorGQL {
|
||||
@@ -633,6 +637,16 @@ input VideoFilterInput {
|
||||
requireCursorCompletion: Boolean! = true
|
||||
createdAt: DateRangeFilter = null
|
||||
excludeVideosWithNoShots: Boolean = null
|
||||
reactionCount: IntRangeFilter = null
|
||||
}
|
||||
|
||||
input IntRangeFilter {
|
||||
lessThan: Int = null
|
||||
greaterThanEqualTo: Int = null
|
||||
greaterThan: Int = null
|
||||
includeOnNone: Boolean! = false
|
||||
lessThanInclusive: Boolean! = false
|
||||
greaterThanInclusive: Boolean! = true
|
||||
}
|
||||
|
||||
input VideoFeedInputGQL @oneOf {
|
||||
@@ -823,6 +837,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!
|
||||
}
|
||||
@@ -880,6 +916,8 @@ type Mutation {
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
retireTags(tagIds: [Int!]!): Boolean!
|
||||
ensureStripeCustomerExists: UserGQL!
|
||||
deleteUser: Boolean!
|
||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@@ -989,6 +1027,11 @@ input EditUserInputGQL {
|
||||
videosPrivateByDefault: Boolean = null
|
||||
}
|
||||
|
||||
type CreateSubscriptionResultGQL {
|
||||
checkoutUrl: String!
|
||||
sessionId: String!
|
||||
}
|
||||
|
||||
type CreateUploadStreamReturn {
|
||||
videoId: Int!
|
||||
}
|
||||
|
Reference in New Issue
Block a user