Compare commits
16 Commits
2a267ce961
...
ivan/manua
| Author | SHA1 | Date | |
|---|---|---|---|
| dfb0e02630 | |||
| c4a2e184fb | |||
| f14cf3b255 | |||
| c46776d417 | |||
| 6ab5286a49 | |||
| cd6a33bfed | |||
| 07bb45942e | |||
| 9abb533be8 | |||
| c76220b65f | |||
| 1218ecdaaa | |||
| dfd03a225a | |||
| adbe1c0f2b | |||
| e1cc8b3ee1 | |||
| c3156bac05 | |||
| aba0b16a51 | |||
|
|
82cec7d7cb |
@@ -21,7 +21,7 @@
|
|||||||
in
|
in
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
devShell = mkShell {
|
devShell = mkShell {
|
||||||
buildInputs = [nodejs yarn watchman alejandra nodePackages.prettier just protobuf];
|
buildInputs = [nodejs yarn watchman alejandra nodePackages.prettier just protobuf black];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ class CollisionInfo(_message.Message):
|
|||||||
key: _Optional[int] = ...,
|
key: _Optional[int] = ...,
|
||||||
value: _Optional[_Union[Point, _Mapping]] = ...,
|
value: _Optional[_Union[Point, _Mapping]] = ...,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
|
|
||||||
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
||||||
BALL_IDENTIFIERS_FIELD_NUMBER: _ClassVar[int]
|
BALL_IDENTIFIERS_FIELD_NUMBER: _ClassVar[int]
|
||||||
WALL_IDENTIFIER_FIELD_NUMBER: _ClassVar[int]
|
WALL_IDENTIFIER_FIELD_NUMBER: _ClassVar[int]
|
||||||
|
|||||||
161
src/index.tsx
161
src/index.tsx
@@ -273,6 +273,7 @@ export type DeployedConfigGql = {
|
|||||||
__typename?: "DeployedConfigGQL";
|
__typename?: "DeployedConfigGQL";
|
||||||
allowNewUsers: Scalars["Boolean"]["output"];
|
allowNewUsers: Scalars["Boolean"]["output"];
|
||||||
bannerMessages: Array<BannerGql>;
|
bannerMessages: Array<BannerGql>;
|
||||||
|
bucketUrl: Scalars["String"]["output"];
|
||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
||||||
devMode: Scalars["Boolean"]["output"];
|
devMode: Scalars["Boolean"]["output"];
|
||||||
environment: Scalars["String"]["output"];
|
environment: Scalars["String"]["output"];
|
||||||
@@ -315,6 +316,13 @@ export type EditableShotFieldInputGql = {
|
|||||||
targetPocketAngleDirection?: InputMaybe<ShotDirectionEnum>;
|
targetPocketAngleDirection?: InputMaybe<ShotDirectionEnum>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export enum EntitlementSourceTypeEnum {
|
||||||
|
Admin = "ADMIN",
|
||||||
|
AlphaLegacy = "ALPHA_LEGACY",
|
||||||
|
Manual = "MANUAL",
|
||||||
|
Stripe = "STRIPE",
|
||||||
|
}
|
||||||
|
|
||||||
export type EnumAggregation = {
|
export type EnumAggregation = {
|
||||||
feature: Scalars["String"]["input"];
|
feature: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2365,6 +2373,7 @@ export type Mutation = {
|
|||||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
|
grantManualEntitlement: UserSubscriptionStatusGql;
|
||||||
inviteUsersToChallenge: Array<ChallengeInvitation>;
|
inviteUsersToChallenge: Array<ChallengeInvitation>;
|
||||||
markAllNotificationsAsRead: Scalars["Boolean"]["output"];
|
markAllNotificationsAsRead: Scalars["Boolean"]["output"];
|
||||||
markNotificationAsRead: Scalars["Boolean"]["output"];
|
markNotificationAsRead: Scalars["Boolean"]["output"];
|
||||||
@@ -2374,6 +2383,7 @@ export type Mutation = {
|
|||||||
reportContent: Scalars["Boolean"]["output"];
|
reportContent: Scalars["Boolean"]["output"];
|
||||||
respondToChallengeInvitation: ChallengeInvitation;
|
respondToChallengeInvitation: ChallengeInvitation;
|
||||||
retireTags: Scalars["Boolean"]["output"];
|
retireTags: Scalars["Boolean"]["output"];
|
||||||
|
revokeManualEntitlement: UserSubscriptionStatusGql;
|
||||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||||
startChallenge: ChallengeEntry;
|
startChallenge: ChallengeEntry;
|
||||||
@@ -2431,6 +2441,7 @@ export type MutationCreateSubscriptionArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type MutationCreateUploadStreamArgs = {
|
export type MutationCreateUploadStreamArgs = {
|
||||||
|
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
videoMetadata: VideoMetadataInput;
|
videoMetadata: VideoMetadataInput;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2502,6 +2513,14 @@ export type MutationGetUploadLinkArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationGrantManualEntitlementArgs = {
|
||||||
|
endsAt?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
reason?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
startsAt?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
tierName?: Scalars["String"]["input"];
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationInviteUsersToChallengeArgs = {
|
export type MutationInviteUsersToChallengeArgs = {
|
||||||
challengeId: Scalars["ID"]["input"];
|
challengeId: Scalars["ID"]["input"];
|
||||||
userIds: Array<Scalars["ID"]["input"]>;
|
userIds: Array<Scalars["ID"]["input"]>;
|
||||||
@@ -2539,6 +2558,10 @@ export type MutationRetireTagsArgs = {
|
|||||||
tagIds: Array<Scalars["Int"]["input"]>;
|
tagIds: Array<Scalars["Int"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationRevokeManualEntitlementArgs = {
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationSetLoggerLevelArgs = {
|
export type MutationSetLoggerLevelArgs = {
|
||||||
level: Scalars["String"]["input"];
|
level: Scalars["String"]["input"];
|
||||||
path: Scalars["String"]["input"];
|
path: Scalars["String"]["input"];
|
||||||
@@ -2715,6 +2738,7 @@ export type Query = {
|
|||||||
getMedals: RequestedMedalsGql;
|
getMedals: RequestedMedalsGql;
|
||||||
getOrderedShots: GetShotsResult;
|
getOrderedShots: GetShotsResult;
|
||||||
getPlayTime: UserPlayTimeGql;
|
getPlayTime: UserPlayTimeGql;
|
||||||
|
getQuotaStatus: QuotaStatusGql;
|
||||||
getRuns: GetRunsResult;
|
getRuns: GetRunsResult;
|
||||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
@@ -2904,6 +2928,18 @@ export type QueryWaitForArgs = {
|
|||||||
duration: Scalars["Float"]["input"];
|
duration: Scalars["Float"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QuotaStatusGql = {
|
||||||
|
__typename?: "QuotaStatusGQL";
|
||||||
|
canUpload: Scalars["Boolean"]["output"];
|
||||||
|
durationLimitSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
durationRemainingSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
durationUsedSeconds: Scalars["Float"]["output"];
|
||||||
|
maxVideoDurationSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
periodEnd: Scalars["DateTime"]["output"];
|
||||||
|
periodStart: Scalars["DateTime"]["output"];
|
||||||
|
tierName: Scalars["String"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export enum ReactionEnum {
|
export enum ReactionEnum {
|
||||||
Bullseye = "BULLSEYE",
|
Bullseye = "BULLSEYE",
|
||||||
Heart = "HEART",
|
Heart = "HEART",
|
||||||
@@ -3380,6 +3416,9 @@ export type UserSubscriptionStatusGql = {
|
|||||||
__typename?: "UserSubscriptionStatusGQL";
|
__typename?: "UserSubscriptionStatusGQL";
|
||||||
currentPeriodEnd?: Maybe<Scalars["DateTime"]["output"]>;
|
currentPeriodEnd?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
currentPeriodStart?: Maybe<Scalars["DateTime"]["output"]>;
|
currentPeriodStart?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
entitlementEndsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
entitlementSource?: Maybe<EntitlementSourceTypeEnum>;
|
||||||
|
entitlementStartsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
hasActiveSubscription: Scalars["Boolean"]["output"];
|
hasActiveSubscription: Scalars["Boolean"]["output"];
|
||||||
stripePriceId?: Maybe<Scalars["String"]["output"]>;
|
stripePriceId?: Maybe<Scalars["String"]["output"]>;
|
||||||
stripeSubscriptionId?: Maybe<Scalars["String"]["output"]>;
|
stripeSubscriptionId?: Maybe<Scalars["String"]["output"]>;
|
||||||
@@ -3491,6 +3530,8 @@ export type VideoProcessingGql = {
|
|||||||
errors: Array<VideoProcessingErrorGql>;
|
errors: Array<VideoProcessingErrorGql>;
|
||||||
framesProcessed?: Maybe<Scalars["Int"]["output"]>;
|
framesProcessed?: Maybe<Scalars["Int"]["output"]>;
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
|
labels: Array<Scalars["String"]["output"]>;
|
||||||
|
parentProcessingId?: Maybe<Scalars["Int"]["output"]>;
|
||||||
progressPercentage?: Maybe<Scalars["Float"]["output"]>;
|
progressPercentage?: Maybe<Scalars["Float"]["output"]>;
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
statuses: Array<VideoProcessingStatusGql>;
|
statuses: Array<VideoProcessingStatusGql>;
|
||||||
@@ -3977,6 +4018,7 @@ export type GetDeployedConfigQuery = {
|
|||||||
minimumAllowedAppVersion: string;
|
minimumAllowedAppVersion: string;
|
||||||
subscriptionGatingEnabled: boolean;
|
subscriptionGatingEnabled: boolean;
|
||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
||||||
|
bucketUrl: string;
|
||||||
bannerMessages: Array<{
|
bannerMessages: Array<{
|
||||||
__typename?: "BannerGQL";
|
__typename?: "BannerGQL";
|
||||||
color: string;
|
color: string;
|
||||||
@@ -4211,6 +4253,21 @@ export type VideoCardFieldsFragment = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetVideoFeedSessionCountQueryVariables = Exact<{
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
|
includePrivate?: InputMaybe<IncludePrivateEnum>;
|
||||||
|
feedInput?: InputMaybe<VideoFeedInputGql>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetVideoFeedSessionCountQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getFeedVideos: {
|
||||||
|
__typename?: "VideoHistoryGQL";
|
||||||
|
videos: Array<{ __typename?: "VideoGQL"; id: number; totalShots: number }>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetVideoFeedQueryVariables = Exact<{
|
export type GetVideoFeedQueryVariables = Exact<{
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
@@ -5654,6 +5711,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
linksRequested: number;
|
linksRequested: number;
|
||||||
|
lowestUnuploadedSegmentIndex: number;
|
||||||
uploadsCompleted: number;
|
uploadsCompleted: number;
|
||||||
segmentProcessingCursor: number;
|
segmentProcessingCursor: number;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
@@ -6216,6 +6274,7 @@ export type HomographyInfoFragment = {
|
|||||||
|
|
||||||
export type CreateUploadStreamMutationVariables = Exact<{
|
export type CreateUploadStreamMutationVariables = Exact<{
|
||||||
videoMetadataInput: VideoMetadataInput;
|
videoMetadataInput: VideoMetadataInput;
|
||||||
|
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type CreateUploadStreamMutation = {
|
export type CreateUploadStreamMutation = {
|
||||||
@@ -8219,6 +8278,7 @@ export const GetDeployedConfigDocument = gql`
|
|||||||
priority
|
priority
|
||||||
}
|
}
|
||||||
defaultAndroidRecordingFormat
|
defaultAndroidRecordingFormat
|
||||||
|
bucketUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -8519,6 +8579,95 @@ export type GetFeedQueryResult = Apollo.QueryResult<
|
|||||||
GetFeedQuery,
|
GetFeedQuery,
|
||||||
GetFeedQueryVariables
|
GetFeedQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetVideoFeedSessionCountDocument = gql`
|
||||||
|
query GetVideoFeedSessionCount(
|
||||||
|
$limit: Int! = 100
|
||||||
|
$filters: VideoFilterInput = null
|
||||||
|
$includePrivate: IncludePrivateEnum = MINE
|
||||||
|
$feedInput: VideoFeedInputGQL = null
|
||||||
|
) {
|
||||||
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
filters: $filters
|
||||||
|
includePrivate: $includePrivate
|
||||||
|
feedInput: $feedInput
|
||||||
|
) {
|
||||||
|
videos {
|
||||||
|
id
|
||||||
|
totalShots
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetVideoFeedSessionCountQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetVideoFeedSessionCountQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetVideoFeedSessionCountQuery` 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 } = useGetVideoFeedSessionCountQuery({
|
||||||
|
* variables: {
|
||||||
|
* limit: // value for 'limit'
|
||||||
|
* filters: // value for 'filters'
|
||||||
|
* includePrivate: // value for 'includePrivate'
|
||||||
|
* feedInput: // value for 'feedInput'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetVideoFeedSessionCountQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetVideoFeedSessionCountQuery,
|
||||||
|
GetVideoFeedSessionCountQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetVideoFeedSessionCountQuery,
|
||||||
|
GetVideoFeedSessionCountQueryVariables
|
||||||
|
>(GetVideoFeedSessionCountDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetVideoFeedSessionCountLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetVideoFeedSessionCountQuery,
|
||||||
|
GetVideoFeedSessionCountQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetVideoFeedSessionCountQuery,
|
||||||
|
GetVideoFeedSessionCountQueryVariables
|
||||||
|
>(GetVideoFeedSessionCountDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetVideoFeedSessionCountSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetVideoFeedSessionCountQuery,
|
||||||
|
GetVideoFeedSessionCountQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetVideoFeedSessionCountQuery,
|
||||||
|
GetVideoFeedSessionCountQueryVariables
|
||||||
|
>(GetVideoFeedSessionCountDocument, options);
|
||||||
|
}
|
||||||
|
export type GetVideoFeedSessionCountQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoFeedSessionCountQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoFeedSessionCountLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoFeedSessionCountLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoFeedSessionCountSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetVideoFeedSessionCountSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetVideoFeedSessionCountQueryResult = Apollo.QueryResult<
|
||||||
|
GetVideoFeedSessionCountQuery,
|
||||||
|
GetVideoFeedSessionCountQueryVariables
|
||||||
|
>;
|
||||||
export const GetVideoFeedDocument = gql`
|
export const GetVideoFeedDocument = gql`
|
||||||
query GetVideoFeed(
|
query GetVideoFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
@@ -11845,6 +11994,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
|||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
linksRequested
|
linksRequested
|
||||||
|
lowestUnuploadedSegmentIndex
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
segmentProcessingCursor
|
segmentProcessingCursor
|
||||||
isCompleted
|
isCompleted
|
||||||
@@ -13092,8 +13242,14 @@ export type FindPrerecordTableLayoutMutationOptions =
|
|||||||
FindPrerecordTableLayoutMutationVariables
|
FindPrerecordTableLayoutMutationVariables
|
||||||
>;
|
>;
|
||||||
export const CreateUploadStreamDocument = gql`
|
export const CreateUploadStreamDocument = gql`
|
||||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
mutation CreateUploadStream(
|
||||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
$videoMetadataInput: VideoMetadataInput!
|
||||||
|
$expectedDurationSeconds: Float = null
|
||||||
|
) {
|
||||||
|
createUploadStream(
|
||||||
|
videoMetadata: $videoMetadataInput
|
||||||
|
expectedDurationSeconds: $expectedDurationSeconds
|
||||||
|
) {
|
||||||
videoId
|
videoId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13117,6 +13273,7 @@ export type CreateUploadStreamMutationFn = Apollo.MutationFunction<
|
|||||||
* const [createUploadStreamMutation, { data, loading, error }] = useCreateUploadStreamMutation({
|
* const [createUploadStreamMutation, { data, loading, error }] = useCreateUploadStreamMutation({
|
||||||
* variables: {
|
* variables: {
|
||||||
* videoMetadataInput: // value for 'videoMetadataInput'
|
* videoMetadataInput: // value for 'videoMetadataInput'
|
||||||
|
* expectedDurationSeconds: // value for 'expectedDurationSeconds'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -15,5 +15,6 @@ query getDeployedConfig {
|
|||||||
priority
|
priority
|
||||||
}
|
}
|
||||||
defaultAndroidRecordingFormat
|
defaultAndroidRecordingFormat
|
||||||
|
bucketUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,6 +90,26 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Lightweight version of GetVideoFeed for counting sessions only
|
||||||
|
query GetVideoFeedSessionCount(
|
||||||
|
$limit: Int! = 100
|
||||||
|
$filters: VideoFilterInput = null
|
||||||
|
$includePrivate: IncludePrivateEnum = MINE
|
||||||
|
$feedInput: VideoFeedInputGQL = null
|
||||||
|
) {
|
||||||
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
filters: $filters
|
||||||
|
includePrivate: $includePrivate
|
||||||
|
feedInput: $feedInput
|
||||||
|
) {
|
||||||
|
videos {
|
||||||
|
id
|
||||||
|
totalShots
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
query GetVideoFeed(
|
query GetVideoFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
linksRequested
|
linksRequested
|
||||||
|
lowestUnuploadedSegmentIndex
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
segmentProcessingCursor
|
segmentProcessingCursor
|
||||||
isCompleted
|
isCompleted
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
mutation CreateUploadStream(
|
||||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
$videoMetadataInput: VideoMetadataInput!
|
||||||
|
$expectedDurationSeconds: Float = null
|
||||||
|
) {
|
||||||
|
createUploadStream(
|
||||||
|
videoMetadata: $videoMetadataInput
|
||||||
|
expectedDurationSeconds: $expectedDurationSeconds
|
||||||
|
) {
|
||||||
videoId
|
videoId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ type Query {
|
|||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||||
|
getQuotaStatus: QuotaStatusGQL!
|
||||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@@ -605,6 +606,8 @@ type IntPoint2D {
|
|||||||
|
|
||||||
type VideoProcessingGQL {
|
type VideoProcessingGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
|
parentProcessingId: Int
|
||||||
|
labels: [String!]!
|
||||||
errors: [VideoProcessingErrorGQL!]!
|
errors: [VideoProcessingErrorGQL!]!
|
||||||
status: ProcessingStatusEnum!
|
status: ProcessingStatusEnum!
|
||||||
statuses: [VideoProcessingStatusGQL!]!
|
statuses: [VideoProcessingStatusGQL!]!
|
||||||
@@ -669,6 +672,7 @@ type DeployedConfigGQL {
|
|||||||
subscriptionGatingEnabled: Boolean!
|
subscriptionGatingEnabled: Boolean!
|
||||||
bannerMessages: [BannerGQL!]!
|
bannerMessages: [BannerGQL!]!
|
||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
||||||
|
bucketUrl: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type BannerGQL {
|
type BannerGQL {
|
||||||
@@ -957,6 +961,9 @@ type StripePriceGQL {
|
|||||||
|
|
||||||
type UserSubscriptionStatusGQL {
|
type UserSubscriptionStatusGQL {
|
||||||
hasActiveSubscription: Boolean!
|
hasActiveSubscription: Boolean!
|
||||||
|
entitlementSource: EntitlementSourceTypeEnum
|
||||||
|
entitlementStartsAt: DateTime
|
||||||
|
entitlementEndsAt: DateTime
|
||||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
subscriptionStatus: StripeSubscriptionStatusEnum
|
||||||
currentPeriodStart: DateTime
|
currentPeriodStart: DateTime
|
||||||
currentPeriodEnd: DateTime
|
currentPeriodEnd: DateTime
|
||||||
@@ -965,6 +972,13 @@ type UserSubscriptionStatusGQL {
|
|||||||
stripeSubscriptionId: String
|
stripeSubscriptionId: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum EntitlementSourceTypeEnum {
|
||||||
|
ADMIN
|
||||||
|
MANUAL
|
||||||
|
STRIPE
|
||||||
|
ALPHA_LEGACY
|
||||||
|
}
|
||||||
|
|
||||||
enum StripeSubscriptionStatusEnum {
|
enum StripeSubscriptionStatusEnum {
|
||||||
INCOMPLETE
|
INCOMPLETE
|
||||||
INCOMPLETE_EXPIRED
|
INCOMPLETE_EXPIRED
|
||||||
@@ -976,6 +990,17 @@ enum StripeSubscriptionStatusEnum {
|
|||||||
PAUSED
|
PAUSED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type QuotaStatusGQL {
|
||||||
|
tierName: String!
|
||||||
|
periodStart: DateTime!
|
||||||
|
periodEnd: DateTime!
|
||||||
|
durationUsedSeconds: Float!
|
||||||
|
durationLimitSeconds: Int
|
||||||
|
maxVideoDurationSeconds: Int
|
||||||
|
durationRemainingSeconds: Float
|
||||||
|
canUpload: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
@@ -1073,6 +1098,14 @@ type Mutation {
|
|||||||
deleteUser: Boolean!
|
deleteUser: Boolean!
|
||||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||||
cancelSubscription: UserSubscriptionStatusGQL!
|
cancelSubscription: UserSubscriptionStatusGQL!
|
||||||
|
grantManualEntitlement(
|
||||||
|
userId: Int!
|
||||||
|
tierName: String! = "pro"
|
||||||
|
startsAt: DateTime = null
|
||||||
|
endsAt: DateTime = null
|
||||||
|
reason: String = null
|
||||||
|
): UserSubscriptionStatusGQL!
|
||||||
|
revokeManualEntitlement(userId: Int!): UserSubscriptionStatusGQL!
|
||||||
submitCancellationFeedback(
|
submitCancellationFeedback(
|
||||||
reasons: [CancellationReasonEnum!] = null
|
reasons: [CancellationReasonEnum!] = null
|
||||||
feedback: String = null
|
feedback: String = null
|
||||||
@@ -1081,6 +1114,7 @@ type Mutation {
|
|||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
|
expectedDurationSeconds: Float = null
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||||
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
|
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
|
||||||
|
|||||||
Reference in New Issue
Block a user