Compare commits
21 Commits
dean/pool-
...
dean/recor
| Author | SHA1 | Date | |
|---|---|---|---|
| 31f9852f4b | |||
| 0b4016c601 | |||
| 8e85fddb0a | |||
| 338798ea5a | |||
| 6bd92ae991 | |||
| 8dd9f6df40 | |||
| f60950a6f6 | |||
| 739451f250 | |||
| 146af8d713 | |||
| 43b99c447b | |||
| cba07aa69e | |||
| f626054662 | |||
|
|
6bc02ec47c | ||
| c92246510b | |||
|
|
3ce2a7be61 | ||
|
|
fc921c3ae7 | ||
| 0b6ac787d8 | |||
|
|
ac479dc7e4 | ||
| c6a754cc2d | |||
|
|
2c047292f0 | ||
| 9267cd8180 |
690
src/index.tsx
690
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,8 @@ query getDeployedConfig {
|
||||
minimumAllowedAppVersion
|
||||
subscriptionGatingEnabled
|
||||
quotaEnforcementEnabled
|
||||
storageLimitEnforcementEnabled
|
||||
capabilityEnforcementEnabled
|
||||
bannerMessages {
|
||||
color
|
||||
dismissible
|
||||
|
||||
@@ -44,6 +44,7 @@ fragment VideoCardFields on VideoGQL {
|
||||
streamSegmentType
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
clientUploadStatus
|
||||
}
|
||||
tableSize
|
||||
pocketSize
|
||||
|
||||
@@ -49,6 +49,20 @@ query GetAvailableSubscriptionOptions {
|
||||
proMonthlyProductId
|
||||
productIds
|
||||
}
|
||||
tierOptions {
|
||||
tierName
|
||||
tierDisplayName
|
||||
billingInterval
|
||||
platform
|
||||
isConfigured
|
||||
isAvailable
|
||||
stripeProductId
|
||||
stripePriceId
|
||||
appleProductId
|
||||
currency
|
||||
unitAmount
|
||||
recurringIntervalCount
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +81,37 @@ query GetSubscriptionStatus {
|
||||
}
|
||||
}
|
||||
|
||||
query GetResolvedTier {
|
||||
getResolvedTier {
|
||||
tierName
|
||||
tierDisplayName
|
||||
hasActiveSubscription
|
||||
entitlementSource
|
||||
entitlementStatus
|
||||
entitlementStartsAt
|
||||
entitlementEndsAt
|
||||
capabilities
|
||||
}
|
||||
}
|
||||
|
||||
query GetStorageStatus {
|
||||
getStorageStatus {
|
||||
userId
|
||||
tierName
|
||||
retainedStorageUsedBytes
|
||||
retainedStorageLimitBytes
|
||||
isUnlimited
|
||||
policyConfigured
|
||||
remainingStorageBytes
|
||||
storageUsageRatio
|
||||
isNearLimit
|
||||
isOverLimit
|
||||
usageCalculated
|
||||
usageSource
|
||||
lastCalculatedAt
|
||||
}
|
||||
}
|
||||
|
||||
query GetAppleAppAccountToken {
|
||||
getAppleAppAccountToken
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ fragment PoolHallFields on PoolHall {
|
||||
id
|
||||
name
|
||||
address
|
||||
city
|
||||
state
|
||||
latitude
|
||||
longitude
|
||||
timezone
|
||||
@@ -17,6 +19,12 @@ fragment PoolHallCameraFields on PoolHallCamera {
|
||||
tableLabel
|
||||
streamPath
|
||||
status
|
||||
tableSize
|
||||
pocketSize
|
||||
allowsPrivateVideos
|
||||
claimTermsText
|
||||
claimTermsVersion
|
||||
inUse
|
||||
lastPublishedAt
|
||||
lastUnpublishedAt
|
||||
createdAt
|
||||
@@ -48,6 +56,7 @@ fragment CameraClaimSessionFields on CameraClaimSession {
|
||||
detectedAt
|
||||
failedAt
|
||||
failureReason
|
||||
agreedTermsVersion
|
||||
createdAt
|
||||
updatedAt
|
||||
camera {
|
||||
@@ -139,8 +148,22 @@ mutation RotatePoolHallCameraStreamKey($cameraId: ID!) {
|
||||
}
|
||||
}
|
||||
|
||||
mutation CreateCameraClaimSession($cameraId: ID!) {
|
||||
createCameraClaimSession(cameraId: $cameraId) {
|
||||
mutation CreateCameraClaimSession(
|
||||
$cameraId: ID!
|
||||
$durationMinutes: Int
|
||||
$videoName: String
|
||||
$videoPrivate: Boolean
|
||||
$agreedTermsVersion: Int
|
||||
$tags: [VideoTagInput!]
|
||||
) {
|
||||
createCameraClaimSession(
|
||||
cameraId: $cameraId
|
||||
durationMinutes: $durationMinutes
|
||||
videoName: $videoName
|
||||
videoPrivate: $videoPrivate
|
||||
agreedTermsVersion: $agreedTermsVersion
|
||||
tags: $tags
|
||||
) {
|
||||
...CameraClaimSessionFields
|
||||
}
|
||||
}
|
||||
@@ -150,3 +173,15 @@ mutation CancelCameraClaimSession($claimSessionId: ID!) {
|
||||
...CameraClaimSessionFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation EndCameraLease($leaseId: ID!) {
|
||||
endCameraLease(leaseId: $leaseId) {
|
||||
...CameraLeaseFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation ExtendCameraLease($leaseId: ID!, $additionalMinutes: Int! = 60) {
|
||||
extendCameraLease(leaseId: $leaseId, additionalMinutes: $additionalMinutes) {
|
||||
...CameraLeaseFields
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,13 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
... on StorageLimitExceededErr {
|
||||
reason
|
||||
tierName
|
||||
retainedStorageUsedBytes
|
||||
retainedStorageLimitBytes
|
||||
remainingStorageBytes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -892,6 +892,8 @@ type PoolHall {
|
||||
id: ID!
|
||||
name: String!
|
||||
address: String
|
||||
city: String
|
||||
state: String
|
||||
latitude: Float
|
||||
longitude: Float
|
||||
timezone: String
|
||||
@@ -907,10 +909,16 @@ type PoolHallCamera {
|
||||
tableLabel: String
|
||||
streamPath: String!
|
||||
status: String!
|
||||
tableSize: Float
|
||||
pocketSize: Float
|
||||
allowsPrivateVideos: Boolean!
|
||||
claimTermsText: String
|
||||
claimTermsVersion: Int
|
||||
lastPublishedAt: DateTime
|
||||
lastUnpublishedAt: DateTime
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
inUse: Boolean!
|
||||
poolHall: PoolHall!
|
||||
}
|
||||
|
||||
@@ -924,6 +932,7 @@ type CameraClaimSession {
|
||||
detectedAt: DateTime
|
||||
failedAt: DateTime
|
||||
failureReason: String
|
||||
agreedTermsVersion: Int
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
camera: PoolHallCamera!
|
||||
@@ -1159,6 +1168,7 @@ type StripeSubscriptionOptionsGQL {
|
||||
products: [StripeProductGQL!]!
|
||||
trialPeriodDays: Int
|
||||
appleIap: AppleIapSubscriptionOptionsGQL!
|
||||
tierOptions: [SubscriptionTierPurchaseOptionGQL!]!
|
||||
}
|
||||
|
||||
type StripeProductGQL {
|
||||
@@ -1185,6 +1195,21 @@ type AppleIapSubscriptionOptionsGQL {
|
||||
productIds: [String!]!
|
||||
}
|
||||
|
||||
type SubscriptionTierPurchaseOptionGQL {
|
||||
tierName: String!
|
||||
tierDisplayName: String!
|
||||
billingInterval: String!
|
||||
platform: String!
|
||||
isConfigured: Boolean!
|
||||
isAvailable: Boolean!
|
||||
stripeProductId: String
|
||||
stripePriceId: String
|
||||
appleProductId: String
|
||||
currency: String
|
||||
unitAmount: Int
|
||||
recurringIntervalCount: Int
|
||||
}
|
||||
|
||||
type UserSubscriptionStatusGQL {
|
||||
hasActiveSubscription: Boolean!
|
||||
entitlementSource: EntitlementSourceTypeEnum
|
||||
@@ -1401,8 +1426,17 @@ type Mutation {
|
||||
): PoolHallCameraStreamCredentials!
|
||||
updatePoolHallCamera(input: UpdatePoolHallCameraInput!): PoolHallCamera!
|
||||
rotatePoolHallCameraStreamKey(cameraId: ID!): PoolHallCameraStreamCredentials!
|
||||
createCameraClaimSession(cameraId: ID!): CameraClaimSession!
|
||||
createCameraClaimSession(
|
||||
cameraId: ID!
|
||||
durationMinutes: Int = null
|
||||
videoName: String = null
|
||||
videoPrivate: Boolean = null
|
||||
agreedTermsVersion: Int = null
|
||||
tags: [VideoTagInput!] = null
|
||||
): CameraClaimSession!
|
||||
cancelCameraClaimSession(claimSessionId: ID!): CameraClaimSession!
|
||||
endCameraLease(leaseId: ID!): CameraLease!
|
||||
extendCameraLease(leaseId: ID!, additionalMinutes: Int! = 60): CameraLease!
|
||||
finalizePlayerAssignments(
|
||||
input: FinalizePlayerAssignmentsInput!
|
||||
): [PlayerClusterGQL!]!
|
||||
@@ -1485,6 +1519,8 @@ enum ReportReasonEnum {
|
||||
input CreatePoolHallInput {
|
||||
name: String!
|
||||
address: String = null
|
||||
city: String = null
|
||||
state: String = null
|
||||
latitude: Float = null
|
||||
longitude: Float = null
|
||||
timezone: String = null
|
||||
@@ -1494,6 +1530,8 @@ input UpdatePoolHallInput {
|
||||
id: ID!
|
||||
name: String = null
|
||||
address: String = null
|
||||
city: String = null
|
||||
state: String = null
|
||||
latitude: Float = null
|
||||
longitude: Float = null
|
||||
timezone: String = null
|
||||
@@ -1511,6 +1549,10 @@ input CreatePoolHallCameraInput {
|
||||
name: String!
|
||||
tableLabel: String = null
|
||||
streamPath: String = null
|
||||
tableSize: Float = null
|
||||
pocketSize: Float = null
|
||||
allowsPrivateVideos: Boolean = null
|
||||
claimTermsText: String = null
|
||||
}
|
||||
|
||||
input UpdatePoolHallCameraInput {
|
||||
@@ -1518,6 +1560,10 @@ input UpdatePoolHallCameraInput {
|
||||
name: String = null
|
||||
tableLabel: String = null
|
||||
status: String = null
|
||||
tableSize: Float = null
|
||||
pocketSize: Float = null
|
||||
allowsPrivateVideos: Boolean = null
|
||||
claimTermsText: String = null
|
||||
}
|
||||
|
||||
input FinalizePlayerAssignmentsInput {
|
||||
|
||||
Reference in New Issue
Block a user