Compare commits
1 Commits
loewy/crea
...
loewy/add-
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f663b766e |
145
src/index.tsx
145
src/index.tsx
@@ -224,11 +224,6 @@ export type CreateBucketSetInput = {
|
|||||||
keyName: Scalars["String"]["input"];
|
keyName: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateCustomerPortalSessionResultGql = {
|
|
||||||
__typename?: "CreateCustomerPortalSessionResultGQL";
|
|
||||||
portalUrl: Scalars["String"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CreateSubscriptionResultGql = {
|
export type CreateSubscriptionResultGql = {
|
||||||
__typename?: "CreateSubscriptionResultGQL";
|
__typename?: "CreateSubscriptionResultGQL";
|
||||||
checkoutUrl: Scalars["String"]["output"];
|
checkoutUrl: Scalars["String"]["output"];
|
||||||
@@ -2378,7 +2373,6 @@ export type Mutation = {
|
|||||||
commentOnVideo: Scalars["Boolean"]["output"];
|
commentOnVideo: Scalars["Boolean"]["output"];
|
||||||
createBucketSet: BucketSetGql;
|
createBucketSet: BucketSetGql;
|
||||||
createChallenge: Challenge;
|
createChallenge: Challenge;
|
||||||
createCustomerPortalSession: CreateCustomerPortalSessionResultGql;
|
|
||||||
createRuleSet: RuleSet;
|
createRuleSet: RuleSet;
|
||||||
createSubscription: CreateSubscriptionResultGql;
|
createSubscription: CreateSubscriptionResultGql;
|
||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
@@ -2457,10 +2451,6 @@ export type MutationCreateChallengeArgs = {
|
|||||||
startDate: Scalars["DateTime"]["input"];
|
startDate: Scalars["DateTime"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationCreateCustomerPortalSessionArgs = {
|
|
||||||
returnUrl?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type MutationCreateRuleSetArgs = {
|
export type MutationCreateRuleSetArgs = {
|
||||||
description?: InputMaybe<Scalars["String"]["input"]>;
|
description?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
name: Scalars["String"]["input"];
|
name: Scalars["String"]["input"];
|
||||||
@@ -4107,11 +4097,15 @@ export type GetFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
screenshotUri?: string | null;
|
screenshotUri?: string | null;
|
||||||
|
totalShotsMade: number;
|
||||||
totalShots: number;
|
totalShots: number;
|
||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
|
endTime?: any | null;
|
||||||
private: boolean;
|
private: boolean;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
@@ -4126,13 +4120,26 @@ export type GetFeedQuery = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
|
isCompleted: boolean;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{ __typename?: "VideoTag"; name: string }>;
|
tags: Array<{
|
||||||
|
__typename?: "VideoTag";
|
||||||
|
name: string;
|
||||||
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
id: number;
|
id: number;
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{
|
||||||
|
__typename?: "VideoProcessingErrorGQL";
|
||||||
|
message: string;
|
||||||
|
}>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
} | null;
|
} | null;
|
||||||
reactions: Array<{
|
reactions: Array<{
|
||||||
__typename?: "ReactionGQL";
|
__typename?: "ReactionGQL";
|
||||||
@@ -4192,11 +4199,15 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: number;
|
id: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
screenshotUri?: string | null;
|
screenshotUri?: string | null;
|
||||||
|
totalShotsMade: number;
|
||||||
totalShots: number;
|
totalShots: number;
|
||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
|
endTime?: any | null;
|
||||||
private: boolean;
|
private: boolean;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
@@ -4211,13 +4222,23 @@ export type VideoCardFieldsFragment = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
|
isCompleted: boolean;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{ __typename?: "VideoTag"; name: string }>;
|
tags: Array<{
|
||||||
|
__typename?: "VideoTag";
|
||||||
|
name: string;
|
||||||
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
id: number;
|
id: number;
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
} | null;
|
} | null;
|
||||||
reactions: Array<{
|
reactions: Array<{
|
||||||
__typename?: "ReactionGQL";
|
__typename?: "ReactionGQL";
|
||||||
@@ -4291,11 +4312,15 @@ export type GetVideoFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
screenshotUri?: string | null;
|
screenshotUri?: string | null;
|
||||||
|
totalShotsMade: number;
|
||||||
totalShots: number;
|
totalShots: number;
|
||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
|
endTime?: any | null;
|
||||||
private: boolean;
|
private: boolean;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
@@ -4310,13 +4335,26 @@ export type GetVideoFeedQuery = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
|
isCompleted: boolean;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{ __typename?: "VideoTag"; name: string }>;
|
tags: Array<{
|
||||||
|
__typename?: "VideoTag";
|
||||||
|
name: string;
|
||||||
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
id: number;
|
id: number;
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{
|
||||||
|
__typename?: "VideoProcessingErrorGQL";
|
||||||
|
message: string;
|
||||||
|
}>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
} | null;
|
} | null;
|
||||||
reactions: Array<{
|
reactions: Array<{
|
||||||
__typename?: "ReactionGQL";
|
__typename?: "ReactionGQL";
|
||||||
@@ -4711,18 +4749,6 @@ export type CreateSubscriptionMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateCustomerPortalSessionMutationVariables = Exact<{
|
|
||||||
returnUrl?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type CreateCustomerPortalSessionMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
createCustomerPortalSession: {
|
|
||||||
__typename?: "CreateCustomerPortalSessionResultGQL";
|
|
||||||
portalUrl: string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetAvailableSubscriptionOptionsQueryVariables = Exact<{
|
export type GetAvailableSubscriptionOptionsQueryVariables = Exact<{
|
||||||
[key: string]: never;
|
[key: string]: never;
|
||||||
}>;
|
}>;
|
||||||
@@ -6441,6 +6467,7 @@ export type UploadStreamWithDetailsFragment = {
|
|||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
uploadCompletionCursor: number;
|
||||||
uploadsCompleted: number;
|
uploadsCompleted: number;
|
||||||
|
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -6465,6 +6492,7 @@ export type GetUploadStreamsWithDetailsQuery = {
|
|||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
uploadCompletionCursor: number;
|
||||||
uploadsCompleted: number;
|
uploadsCompleted: number;
|
||||||
|
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
@@ -6493,26 +6521,41 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
name
|
name
|
||||||
screenshotUri
|
screenshotUri
|
||||||
|
totalShotsMade
|
||||||
totalShots
|
totalShots
|
||||||
makePercentage
|
makePercentage
|
||||||
averageTimeBetweenShots
|
averageTimeBetweenShots
|
||||||
averageDifficulty
|
averageDifficulty
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
|
endTime
|
||||||
private
|
private
|
||||||
elapsedTime
|
elapsedTime
|
||||||
|
screenshotUri
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
|
isCompleted
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
tags {
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
id
|
id
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
status
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reactions {
|
reactions {
|
||||||
videoId
|
videoId
|
||||||
@@ -6792,6 +6835,7 @@ export const UploadStreamWithDetailsFragmentDoc = gql`
|
|||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -9611,57 +9655,6 @@ export type CreateSubscriptionMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
CreateSubscriptionMutation,
|
CreateSubscriptionMutation,
|
||||||
CreateSubscriptionMutationVariables
|
CreateSubscriptionMutationVariables
|
||||||
>;
|
>;
|
||||||
export const CreateCustomerPortalSessionDocument = gql`
|
|
||||||
mutation CreateCustomerPortalSession($returnUrl: String) {
|
|
||||||
createCustomerPortalSession(returnUrl: $returnUrl) {
|
|
||||||
portalUrl
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type CreateCustomerPortalSessionMutationFn = Apollo.MutationFunction<
|
|
||||||
CreateCustomerPortalSessionMutation,
|
|
||||||
CreateCustomerPortalSessionMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useCreateCustomerPortalSessionMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useCreateCustomerPortalSessionMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useCreateCustomerPortalSessionMutation` 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 [createCustomerPortalSessionMutation, { data, loading, error }] = useCreateCustomerPortalSessionMutation({
|
|
||||||
* variables: {
|
|
||||||
* returnUrl: // value for 'returnUrl'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useCreateCustomerPortalSessionMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
CreateCustomerPortalSessionMutation,
|
|
||||||
CreateCustomerPortalSessionMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<
|
|
||||||
CreateCustomerPortalSessionMutation,
|
|
||||||
CreateCustomerPortalSessionMutationVariables
|
|
||||||
>(CreateCustomerPortalSessionDocument, options);
|
|
||||||
}
|
|
||||||
export type CreateCustomerPortalSessionMutationHookResult = ReturnType<
|
|
||||||
typeof useCreateCustomerPortalSessionMutation
|
|
||||||
>;
|
|
||||||
export type CreateCustomerPortalSessionMutationResult =
|
|
||||||
Apollo.MutationResult<CreateCustomerPortalSessionMutation>;
|
|
||||||
export type CreateCustomerPortalSessionMutationOptions =
|
|
||||||
Apollo.BaseMutationOptions<
|
|
||||||
CreateCustomerPortalSessionMutation,
|
|
||||||
CreateCustomerPortalSessionMutationVariables
|
|
||||||
>;
|
|
||||||
export const GetAvailableSubscriptionOptionsDocument = gql`
|
export const GetAvailableSubscriptionOptionsDocument = gql`
|
||||||
query GetAvailableSubscriptionOptions {
|
query GetAvailableSubscriptionOptions {
|
||||||
getAvailableSubscriptionOptions {
|
getAvailableSubscriptionOptions {
|
||||||
|
|||||||
@@ -31,26 +31,41 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
}
|
}
|
||||||
name
|
name
|
||||||
screenshotUri
|
screenshotUri
|
||||||
|
totalShotsMade
|
||||||
totalShots
|
totalShots
|
||||||
makePercentage
|
makePercentage
|
||||||
averageTimeBetweenShots
|
averageTimeBetweenShots
|
||||||
averageDifficulty
|
averageDifficulty
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
|
endTime
|
||||||
private
|
private
|
||||||
elapsedTime
|
elapsedTime
|
||||||
|
screenshotUri
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
|
isCompleted
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
tags {
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
id
|
id
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
status
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reactions {
|
reactions {
|
||||||
videoId
|
videoId
|
||||||
|
|||||||
@@ -20,12 +20,6 @@ mutation CreateSubscription($priceId: String!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation CreateCustomerPortalSession($returnUrl: String) {
|
|
||||||
createCustomerPortalSession(returnUrl: $returnUrl) {
|
|
||||||
portalUrl
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query GetAvailableSubscriptionOptions {
|
query GetAvailableSubscriptionOptions {
|
||||||
getAvailableSubscriptionOptions {
|
getAvailableSubscriptionOptions {
|
||||||
products {
|
products {
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ fragment UploadStreamWithDetails on VideoGQL {
|
|||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ type Query {
|
|||||||
getLongestRunsLeaderboard(
|
getLongestRunsLeaderboard(
|
||||||
interval: TimeInterval = null
|
interval: TimeInterval = null
|
||||||
when: DateTime = null
|
when: DateTime = null
|
||||||
limit: Int! = 50
|
limit: Int! = 100
|
||||||
requiredTags: [String!] = null
|
requiredTags: [String!] = null
|
||||||
): RunLeaderboardGQL!
|
): RunLeaderboardGQL!
|
||||||
getMakesLeaderboard(
|
getMakesLeaderboard(
|
||||||
@@ -1117,9 +1117,6 @@ type Mutation {
|
|||||||
ensureStripeCustomerExists: UserGQL!
|
ensureStripeCustomerExists: UserGQL!
|
||||||
deleteUser: Boolean!
|
deleteUser: Boolean!
|
||||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||||
createCustomerPortalSession(
|
|
||||||
returnUrl: String = null
|
|
||||||
): CreateCustomerPortalSessionResultGQL!
|
|
||||||
cancelSubscription: UserSubscriptionStatusGQL!
|
cancelSubscription: UserSubscriptionStatusGQL!
|
||||||
grantManualEntitlement(
|
grantManualEntitlement(
|
||||||
userId: Int!
|
userId: Int!
|
||||||
@@ -1259,10 +1256,6 @@ type CreateSubscriptionResultGQL {
|
|||||||
sessionId: String!
|
sessionId: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateCustomerPortalSessionResultGQL {
|
|
||||||
portalUrl: String!
|
|
||||||
}
|
|
||||||
|
|
||||||
enum CancellationReasonEnum {
|
enum CancellationReasonEnum {
|
||||||
DONT_PLAY_ENOUGH
|
DONT_PLAY_ENOUGH
|
||||||
TOO_EXPENSIVE
|
TOO_EXPENSIVE
|
||||||
|
|||||||
Reference in New Issue
Block a user