Compare commits
10 Commits
loewy/bran
...
dean/camer
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4f4a539f5 | ||
| 7cef75b2ca | |||
| 9358205327 | |||
| 88634a32e9 | |||
| f7200a2e9f | |||
| 7d839c0fa6 | |||
| ab1e604871 | |||
| deb724b430 | |||
| c586bdf1a6 | |||
| a12b3e1210 |
221
src/index.tsx
221
src/index.tsx
@@ -140,6 +140,18 @@ export type BucketSetInputGql = {
|
|||||||
feature: Scalars["String"]["input"];
|
feature: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CameraClaimGql = {
|
||||||
|
__typename?: "CameraClaimGQL";
|
||||||
|
cameraId: Scalars["Int"]["output"];
|
||||||
|
createdAt: Scalars["DateTime"]["output"];
|
||||||
|
endedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
expiresAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
status: ClaimStatusEnum;
|
||||||
|
userId: Scalars["Int"]["output"];
|
||||||
|
videoId?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type CancellationFeedbackMetadataInput = {
|
export type CancellationFeedbackMetadataInput = {
|
||||||
appVersion?: InputMaybe<Scalars["String"]["input"]>;
|
appVersion?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
gitRevision?: InputMaybe<Scalars["String"]["input"]>;
|
gitRevision?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
@@ -200,6 +212,21 @@ export type ChallengeInvitation = {
|
|||||||
status: Scalars["String"]["output"];
|
status: Scalars["String"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export enum ClaimStatusEnum {
|
||||||
|
Active = "ACTIVE",
|
||||||
|
CodeExpired = "CODE_EXPIRED",
|
||||||
|
CodeIssued = "CODE_ISSUED",
|
||||||
|
EndedByUser = "ENDED_BY_USER",
|
||||||
|
Expired = "EXPIRED",
|
||||||
|
Ingesting = "INGESTING",
|
||||||
|
ReleasedInactive = "RELEASED_INACTIVE",
|
||||||
|
Requested = "REQUESTED",
|
||||||
|
Scanning = "SCANNING",
|
||||||
|
ScanConfirmed = "SCAN_CONFIRMED",
|
||||||
|
StreamLost = "STREAM_LOST",
|
||||||
|
StreamUnreachable = "STREAM_UNREACHABLE",
|
||||||
|
}
|
||||||
|
|
||||||
export enum ClientUploadStatusEnum {
|
export enum ClientUploadStatusEnum {
|
||||||
UploadDisabled = "UPLOAD_DISABLED",
|
UploadDisabled = "UPLOAD_DISABLED",
|
||||||
UploadEnabled = "UPLOAD_ENABLED",
|
UploadEnabled = "UPLOAD_ENABLED",
|
||||||
@@ -290,6 +317,7 @@ export type DeployedConfigGql = {
|
|||||||
environment: Scalars["String"]["output"];
|
environment: Scalars["String"]["output"];
|
||||||
firebase: Scalars["Boolean"]["output"];
|
firebase: Scalars["Boolean"]["output"];
|
||||||
minimumAllowedAppVersion: Scalars["String"]["output"];
|
minimumAllowedAppVersion: Scalars["String"]["output"];
|
||||||
|
quotaEnforcementEnabled: Scalars["Boolean"]["output"];
|
||||||
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2387,6 +2415,7 @@ export type Mutation = {
|
|||||||
blockContent: Scalars["Boolean"]["output"];
|
blockContent: Scalars["Boolean"]["output"];
|
||||||
blockUser: Scalars["Boolean"]["output"];
|
blockUser: Scalars["Boolean"]["output"];
|
||||||
cancelSubscription: UserSubscriptionStatusGql;
|
cancelSubscription: UserSubscriptionStatusGql;
|
||||||
|
claimCamera: CameraClaimGql;
|
||||||
commentOnVideo: Scalars["Boolean"]["output"];
|
commentOnVideo: Scalars["Boolean"]["output"];
|
||||||
createBucketSet: BucketSetGql;
|
createBucketSet: BucketSetGql;
|
||||||
createChallenge: Challenge;
|
createChallenge: Challenge;
|
||||||
@@ -2405,7 +2434,9 @@ export type Mutation = {
|
|||||||
editShot: EditShotReturn;
|
editShot: EditShotReturn;
|
||||||
editUploadStream: Scalars["Boolean"]["output"];
|
editUploadStream: Scalars["Boolean"]["output"];
|
||||||
editUser: UserGql;
|
editUser: UserGql;
|
||||||
|
endClaim: CameraClaimGql;
|
||||||
ensureStripeCustomerExists: UserGql;
|
ensureStripeCustomerExists: UserGql;
|
||||||
|
extendClaim: CameraClaimGql;
|
||||||
finalizePlayerAssignments: Array<PlayerClusterGql>;
|
finalizePlayerAssignments: Array<PlayerClusterGql>;
|
||||||
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
||||||
followUser: UserGql;
|
followUser: UserGql;
|
||||||
@@ -2447,6 +2478,11 @@ export type MutationBlockUserArgs = {
|
|||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationClaimCameraArgs = {
|
||||||
|
cameraId: Scalars["Int"]["input"];
|
||||||
|
durationMinutes?: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationCommentOnVideoArgs = {
|
export type MutationCommentOnVideoArgs = {
|
||||||
message: Scalars["String"]["input"];
|
message: Scalars["String"]["input"];
|
||||||
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
@@ -2530,6 +2566,15 @@ export type MutationEditUserArgs = {
|
|||||||
input: EditUserInputGql;
|
input: EditUserInputGql;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationEndClaimArgs = {
|
||||||
|
claimId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MutationExtendClaimArgs = {
|
||||||
|
additionalMinutes?: Scalars["Int"]["input"];
|
||||||
|
claimId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationFinalizePlayerAssignmentsArgs = {
|
export type MutationFinalizePlayerAssignmentsArgs = {
|
||||||
input: FinalizePlayerAssignmentsInput;
|
input: FinalizePlayerAssignmentsInput;
|
||||||
};
|
};
|
||||||
@@ -2812,6 +2857,7 @@ export type Query = {
|
|||||||
challengeLeaderboard: Array<ChallengeEntry>;
|
challengeLeaderboard: Array<ChallengeEntry>;
|
||||||
challenges: Array<Challenge>;
|
challenges: Array<Challenge>;
|
||||||
doesUsernameExist: Scalars["Boolean"]["output"];
|
doesUsernameExist: Scalars["Boolean"]["output"];
|
||||||
|
getActiveClaim?: Maybe<CameraClaimGql>;
|
||||||
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
@@ -2838,6 +2884,7 @@ export type Query = {
|
|||||||
getUserVideos: VideoHistoryGql;
|
getUserVideos: VideoHistoryGql;
|
||||||
getUsernames: Array<Scalars["String"]["output"]>;
|
getUsernames: Array<Scalars["String"]["output"]>;
|
||||||
getUsersMatching: Array<UserGql>;
|
getUsersMatching: Array<UserGql>;
|
||||||
|
getVenues: Array<VenueGql>;
|
||||||
getVideo: VideoGql;
|
getVideo: VideoGql;
|
||||||
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
||||||
getVideos: Array<VideoGql>;
|
getVideos: Array<VideoGql>;
|
||||||
@@ -3023,15 +3070,29 @@ export type QueryWaitForArgs = {
|
|||||||
duration: Scalars["Float"]["input"];
|
duration: Scalars["Float"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QuotaBucketStatusGql = {
|
||||||
|
__typename?: "QuotaBucketStatusGQL";
|
||||||
|
appliesToUploadKind: Scalars["String"]["output"];
|
||||||
|
canUpload: Scalars["Boolean"]["output"];
|
||||||
|
durationLimitSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
durationRemainingSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
durationUsedSeconds: Scalars["Float"]["output"];
|
||||||
|
periodEnd: Scalars["DateTime"]["output"];
|
||||||
|
periodStart: Scalars["DateTime"]["output"];
|
||||||
|
quotaKey: Scalars["String"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export type QuotaStatusGql = {
|
export type QuotaStatusGql = {
|
||||||
__typename?: "QuotaStatusGQL";
|
__typename?: "QuotaStatusGQL";
|
||||||
canUpload: Scalars["Boolean"]["output"];
|
canUpload: Scalars["Boolean"]["output"];
|
||||||
durationLimitSeconds?: Maybe<Scalars["Int"]["output"]>;
|
durationLimitSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||||
durationRemainingSeconds?: Maybe<Scalars["Float"]["output"]>;
|
durationRemainingSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||||
durationUsedSeconds: Scalars["Float"]["output"];
|
durationUsedSeconds: Scalars["Float"]["output"];
|
||||||
|
importQuotaBuckets: Array<QuotaBucketStatusGql>;
|
||||||
maxVideoDurationSeconds?: Maybe<Scalars["Int"]["output"]>;
|
maxVideoDurationSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||||
periodEnd: Scalars["DateTime"]["output"];
|
periodEnd: Scalars["DateTime"]["output"];
|
||||||
periodStart: Scalars["DateTime"]["output"];
|
periodStart: Scalars["DateTime"]["output"];
|
||||||
|
recordingQuotaBuckets: Array<QuotaBucketStatusGql>;
|
||||||
tierName: Scalars["String"]["output"];
|
tierName: Scalars["String"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3527,6 +3588,24 @@ export type UserSubscriptionStatusGql = {
|
|||||||
validUntil?: Maybe<Scalars["DateTime"]["output"]>;
|
validUntil?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type VenueCameraGql = {
|
||||||
|
__typename?: "VenueCameraGQL";
|
||||||
|
enabled: Scalars["Boolean"]["output"];
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
isAvailable: Scalars["Boolean"]["output"];
|
||||||
|
tableLabel: Scalars["String"]["output"];
|
||||||
|
venueId: Scalars["Int"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type VenueGql = {
|
||||||
|
__typename?: "VenueGQL";
|
||||||
|
cameras: Array<VenueCameraGql>;
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
latitude?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
longitude?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
name: Scalars["String"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export type VideoFeedInputGql =
|
export type VideoFeedInputGql =
|
||||||
| {
|
| {
|
||||||
allUsers: Scalars["Boolean"]["input"];
|
allUsers: Scalars["Boolean"]["input"];
|
||||||
@@ -4119,6 +4198,7 @@ export type GetDeployedConfigQuery = {
|
|||||||
firebase: boolean;
|
firebase: boolean;
|
||||||
minimumAllowedAppVersion: string;
|
minimumAllowedAppVersion: string;
|
||||||
subscriptionGatingEnabled: boolean;
|
subscriptionGatingEnabled: boolean;
|
||||||
|
quotaEnforcementEnabled: boolean;
|
||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
|
||||||
bucketUrl: string;
|
bucketUrl: string;
|
||||||
bannerMessages: Array<{
|
bannerMessages: Array<{
|
||||||
@@ -5784,6 +5864,47 @@ export type GetUserPlayTimeQuery = {
|
|||||||
getPlayTime: { __typename?: "UserPlayTimeGQL"; totalSeconds: number };
|
getPlayTime: { __typename?: "UserPlayTimeGQL"; totalSeconds: number };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetUploadQuotaStatusQueryVariables = Exact<{
|
||||||
|
[key: string]: never;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetUploadQuotaStatusQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getQuotaStatus: {
|
||||||
|
__typename?: "QuotaStatusGQL";
|
||||||
|
tierName: string;
|
||||||
|
periodStart: any;
|
||||||
|
periodEnd: any;
|
||||||
|
durationUsedSeconds: number;
|
||||||
|
durationLimitSeconds?: number | null;
|
||||||
|
maxVideoDurationSeconds?: number | null;
|
||||||
|
durationRemainingSeconds?: number | null;
|
||||||
|
canUpload: boolean;
|
||||||
|
importQuotaBuckets: Array<{
|
||||||
|
__typename?: "QuotaBucketStatusGQL";
|
||||||
|
quotaKey: string;
|
||||||
|
appliesToUploadKind: string;
|
||||||
|
periodStart: any;
|
||||||
|
periodEnd: any;
|
||||||
|
durationUsedSeconds: number;
|
||||||
|
durationLimitSeconds?: number | null;
|
||||||
|
durationRemainingSeconds?: number | null;
|
||||||
|
canUpload: boolean;
|
||||||
|
}>;
|
||||||
|
recordingQuotaBuckets: Array<{
|
||||||
|
__typename?: "QuotaBucketStatusGQL";
|
||||||
|
quotaKey: string;
|
||||||
|
appliesToUploadKind: string;
|
||||||
|
periodStart: any;
|
||||||
|
periodEnd: any;
|
||||||
|
durationUsedSeconds: number;
|
||||||
|
durationLimitSeconds?: number | null;
|
||||||
|
durationRemainingSeconds?: number | null;
|
||||||
|
canUpload: boolean;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetUsernamesQueryVariables = Exact<{
|
export type GetUsernamesQueryVariables = Exact<{
|
||||||
matchString: Scalars["String"]["input"];
|
matchString: Scalars["String"]["input"];
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
@@ -8734,6 +8855,7 @@ export const GetDeployedConfigDocument = gql`
|
|||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
subscriptionGatingEnabled
|
subscriptionGatingEnabled
|
||||||
|
quotaEnforcementEnabled
|
||||||
bannerMessages {
|
bannerMessages {
|
||||||
color
|
color
|
||||||
dismissible
|
dismissible
|
||||||
@@ -12099,6 +12221,105 @@ export type GetUserPlayTimeQueryResult = Apollo.QueryResult<
|
|||||||
GetUserPlayTimeQuery,
|
GetUserPlayTimeQuery,
|
||||||
GetUserPlayTimeQueryVariables
|
GetUserPlayTimeQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetUploadQuotaStatusDocument = gql`
|
||||||
|
query GetUploadQuotaStatus {
|
||||||
|
getQuotaStatus {
|
||||||
|
tierName
|
||||||
|
periodStart
|
||||||
|
periodEnd
|
||||||
|
durationUsedSeconds
|
||||||
|
durationLimitSeconds
|
||||||
|
maxVideoDurationSeconds
|
||||||
|
durationRemainingSeconds
|
||||||
|
canUpload
|
||||||
|
importQuotaBuckets {
|
||||||
|
quotaKey
|
||||||
|
appliesToUploadKind
|
||||||
|
periodStart
|
||||||
|
periodEnd
|
||||||
|
durationUsedSeconds
|
||||||
|
durationLimitSeconds
|
||||||
|
durationRemainingSeconds
|
||||||
|
canUpload
|
||||||
|
}
|
||||||
|
recordingQuotaBuckets {
|
||||||
|
quotaKey
|
||||||
|
appliesToUploadKind
|
||||||
|
periodStart
|
||||||
|
periodEnd
|
||||||
|
durationUsedSeconds
|
||||||
|
durationLimitSeconds
|
||||||
|
durationRemainingSeconds
|
||||||
|
canUpload
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetUploadQuotaStatusQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetUploadQuotaStatusQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetUploadQuotaStatusQuery` 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 } = useGetUploadQuotaStatusQuery({
|
||||||
|
* variables: {
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetUploadQuotaStatusQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetUploadQuotaStatusQuery,
|
||||||
|
GetUploadQuotaStatusQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<
|
||||||
|
GetUploadQuotaStatusQuery,
|
||||||
|
GetUploadQuotaStatusQueryVariables
|
||||||
|
>(GetUploadQuotaStatusDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetUploadQuotaStatusLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetUploadQuotaStatusQuery,
|
||||||
|
GetUploadQuotaStatusQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetUploadQuotaStatusQuery,
|
||||||
|
GetUploadQuotaStatusQueryVariables
|
||||||
|
>(GetUploadQuotaStatusDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetUploadQuotaStatusSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetUploadQuotaStatusQuery,
|
||||||
|
GetUploadQuotaStatusQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetUploadQuotaStatusQuery,
|
||||||
|
GetUploadQuotaStatusQueryVariables
|
||||||
|
>(GetUploadQuotaStatusDocument, options);
|
||||||
|
}
|
||||||
|
export type GetUploadQuotaStatusQueryHookResult = ReturnType<
|
||||||
|
typeof useGetUploadQuotaStatusQuery
|
||||||
|
>;
|
||||||
|
export type GetUploadQuotaStatusLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetUploadQuotaStatusLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetUploadQuotaStatusSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetUploadQuotaStatusSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetUploadQuotaStatusQueryResult = Apollo.QueryResult<
|
||||||
|
GetUploadQuotaStatusQuery,
|
||||||
|
GetUploadQuotaStatusQueryVariables
|
||||||
|
>;
|
||||||
export const GetUsernamesDocument = gql`
|
export const GetUsernamesDocument = gql`
|
||||||
query getUsernames(
|
query getUsernames(
|
||||||
$matchString: String!
|
$matchString: String!
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ query getDeployedConfig {
|
|||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
subscriptionGatingEnabled
|
subscriptionGatingEnabled
|
||||||
|
quotaEnforcementEnabled
|
||||||
bannerMessages {
|
bannerMessages {
|
||||||
color
|
color
|
||||||
dismissible
|
dismissible
|
||||||
|
|||||||
@@ -49,6 +49,39 @@ query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetUploadQuotaStatus {
|
||||||
|
getQuotaStatus {
|
||||||
|
tierName
|
||||||
|
periodStart
|
||||||
|
periodEnd
|
||||||
|
durationUsedSeconds
|
||||||
|
durationLimitSeconds
|
||||||
|
maxVideoDurationSeconds
|
||||||
|
durationRemainingSeconds
|
||||||
|
canUpload
|
||||||
|
importQuotaBuckets {
|
||||||
|
quotaKey
|
||||||
|
appliesToUploadKind
|
||||||
|
periodStart
|
||||||
|
periodEnd
|
||||||
|
durationUsedSeconds
|
||||||
|
durationLimitSeconds
|
||||||
|
durationRemainingSeconds
|
||||||
|
canUpload
|
||||||
|
}
|
||||||
|
recordingQuotaBuckets {
|
||||||
|
quotaKey
|
||||||
|
appliesToUploadKind
|
||||||
|
periodStart
|
||||||
|
periodEnd
|
||||||
|
durationUsedSeconds
|
||||||
|
durationLimitSeconds
|
||||||
|
durationRemainingSeconds
|
||||||
|
canUpload
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
query getUsernames(
|
query getUsernames(
|
||||||
$matchString: String!
|
$matchString: String!
|
||||||
$limit: Int = null
|
$limit: Int = null
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ type Query {
|
|||||||
myChallengeInvitations: [ChallengeInvitation!]!
|
myChallengeInvitations: [ChallengeInvitation!]!
|
||||||
ruleSets: [RuleSet!]!
|
ruleSets: [RuleSet!]!
|
||||||
myChallengeEntries: [ChallengeEntry!]!
|
myChallengeEntries: [ChallengeEntry!]!
|
||||||
|
getVenues: [VenueGQL!]!
|
||||||
|
getActiveClaim: CameraClaimGQL
|
||||||
getDeployedConfig: DeployedConfigGQL!
|
getDeployedConfig: DeployedConfigGQL!
|
||||||
waitFor(duration: Float!): Float!
|
waitFor(duration: Float!): Float!
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
@@ -681,6 +683,48 @@ type PlayerSummaryGQL {
|
|||||||
averageTimeBetweenShots: Float
|
averageTimeBetweenShots: Float
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type VenueGQL {
|
||||||
|
id: Int!
|
||||||
|
name: String!
|
||||||
|
latitude: Float
|
||||||
|
longitude: Float
|
||||||
|
cameras: [VenueCameraGQL!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type VenueCameraGQL {
|
||||||
|
id: Int!
|
||||||
|
venueId: Int!
|
||||||
|
tableLabel: String!
|
||||||
|
enabled: Boolean!
|
||||||
|
isAvailable: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
type CameraClaimGQL {
|
||||||
|
id: Int!
|
||||||
|
cameraId: Int!
|
||||||
|
userId: Int!
|
||||||
|
videoId: Int
|
||||||
|
status: ClaimStatusEnum!
|
||||||
|
expiresAt: DateTime
|
||||||
|
endedAt: DateTime
|
||||||
|
createdAt: DateTime!
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ClaimStatusEnum {
|
||||||
|
REQUESTED
|
||||||
|
CODE_ISSUED
|
||||||
|
SCANNING
|
||||||
|
SCAN_CONFIRMED
|
||||||
|
INGESTING
|
||||||
|
ACTIVE
|
||||||
|
ENDED_BY_USER
|
||||||
|
EXPIRED
|
||||||
|
STREAM_LOST
|
||||||
|
STREAM_UNREACHABLE
|
||||||
|
CODE_EXPIRED
|
||||||
|
RELEASED_INACTIVE
|
||||||
|
}
|
||||||
|
|
||||||
type DeployedConfigGQL {
|
type DeployedConfigGQL {
|
||||||
allowNewUsers: Boolean!
|
allowNewUsers: Boolean!
|
||||||
firebase: Boolean!
|
firebase: Boolean!
|
||||||
@@ -688,6 +732,7 @@ type DeployedConfigGQL {
|
|||||||
environment: String!
|
environment: String!
|
||||||
minimumAllowedAppVersion: String!
|
minimumAllowedAppVersion: String!
|
||||||
subscriptionGatingEnabled: Boolean!
|
subscriptionGatingEnabled: Boolean!
|
||||||
|
quotaEnforcementEnabled: Boolean!
|
||||||
bannerMessages: [BannerGQL!]!
|
bannerMessages: [BannerGQL!]!
|
||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
||||||
bucketUrl: String!
|
bucketUrl: String!
|
||||||
@@ -1040,6 +1085,19 @@ type QuotaStatusGQL {
|
|||||||
durationUsedSeconds: Float!
|
durationUsedSeconds: Float!
|
||||||
durationLimitSeconds: Int
|
durationLimitSeconds: Int
|
||||||
maxVideoDurationSeconds: Int
|
maxVideoDurationSeconds: Int
|
||||||
|
importQuotaBuckets: [QuotaBucketStatusGQL!]!
|
||||||
|
recordingQuotaBuckets: [QuotaBucketStatusGQL!]!
|
||||||
|
durationRemainingSeconds: Float
|
||||||
|
canUpload: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
type QuotaBucketStatusGQL {
|
||||||
|
quotaKey: String!
|
||||||
|
appliesToUploadKind: String!
|
||||||
|
periodStart: DateTime!
|
||||||
|
periodEnd: DateTime!
|
||||||
|
durationUsedSeconds: Float!
|
||||||
|
durationLimitSeconds: Int
|
||||||
durationRemainingSeconds: Float
|
durationRemainingSeconds: Float
|
||||||
canUpload: Boolean!
|
canUpload: Boolean!
|
||||||
}
|
}
|
||||||
@@ -1115,6 +1173,9 @@ type Mutation {
|
|||||||
submitChallengeEntry(entryId: ID!, videoId: ID!): ChallengeEntry!
|
submitChallengeEntry(entryId: ID!, videoId: ID!): ChallengeEntry!
|
||||||
dismissChallenge(challengeId: ID!): Boolean!
|
dismissChallenge(challengeId: ID!): Boolean!
|
||||||
undismissChallenge(challengeId: ID!): Boolean!
|
undismissChallenge(challengeId: ID!): Boolean!
|
||||||
|
claimCamera(cameraId: Int!, durationMinutes: Int! = 60): CameraClaimGQL!
|
||||||
|
endClaim(claimId: Int!): CameraClaimGQL!
|
||||||
|
extendClaim(claimId: Int!, additionalMinutes: Int! = 60): CameraClaimGQL!
|
||||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||||
commentOnVideo(
|
commentOnVideo(
|
||||||
|
|||||||
Reference in New Issue
Block a user