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
|
minimumAllowedAppVersion
|
||||||
subscriptionGatingEnabled
|
subscriptionGatingEnabled
|
||||||
quotaEnforcementEnabled
|
quotaEnforcementEnabled
|
||||||
|
storageLimitEnforcementEnabled
|
||||||
|
capabilityEnforcementEnabled
|
||||||
bannerMessages {
|
bannerMessages {
|
||||||
color
|
color
|
||||||
dismissible
|
dismissible
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
streamSegmentType
|
streamSegmentType
|
||||||
isCompleted
|
isCompleted
|
||||||
lastSegmentUploadedAt
|
lastSegmentUploadedAt
|
||||||
|
clientUploadStatus
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
|
|||||||
@@ -49,6 +49,20 @@ query GetAvailableSubscriptionOptions {
|
|||||||
proMonthlyProductId
|
proMonthlyProductId
|
||||||
productIds
|
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 {
|
query GetAppleAppAccountToken {
|
||||||
getAppleAppAccountToken
|
getAppleAppAccountToken
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ fragment PoolHallFields on PoolHall {
|
|||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
|
city
|
||||||
|
state
|
||||||
latitude
|
latitude
|
||||||
longitude
|
longitude
|
||||||
timezone
|
timezone
|
||||||
@@ -17,6 +19,12 @@ fragment PoolHallCameraFields on PoolHallCamera {
|
|||||||
tableLabel
|
tableLabel
|
||||||
streamPath
|
streamPath
|
||||||
status
|
status
|
||||||
|
tableSize
|
||||||
|
pocketSize
|
||||||
|
allowsPrivateVideos
|
||||||
|
claimTermsText
|
||||||
|
claimTermsVersion
|
||||||
|
inUse
|
||||||
lastPublishedAt
|
lastPublishedAt
|
||||||
lastUnpublishedAt
|
lastUnpublishedAt
|
||||||
createdAt
|
createdAt
|
||||||
@@ -48,6 +56,7 @@ fragment CameraClaimSessionFields on CameraClaimSession {
|
|||||||
detectedAt
|
detectedAt
|
||||||
failedAt
|
failedAt
|
||||||
failureReason
|
failureReason
|
||||||
|
agreedTermsVersion
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
camera {
|
camera {
|
||||||
@@ -139,8 +148,22 @@ mutation RotatePoolHallCameraStreamKey($cameraId: ID!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation CreateCameraClaimSession($cameraId: ID!) {
|
mutation CreateCameraClaimSession(
|
||||||
createCameraClaimSession(cameraId: $cameraId) {
|
$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
|
...CameraClaimSessionFields
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -150,3 +173,15 @@ mutation CancelCameraClaimSession($claimSessionId: ID!) {
|
|||||||
...CameraClaimSessionFields
|
...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!
|
id: ID!
|
||||||
name: String!
|
name: String!
|
||||||
address: String
|
address: String
|
||||||
|
city: String
|
||||||
|
state: String
|
||||||
latitude: Float
|
latitude: Float
|
||||||
longitude: Float
|
longitude: Float
|
||||||
timezone: String
|
timezone: String
|
||||||
@@ -907,10 +909,16 @@ type PoolHallCamera {
|
|||||||
tableLabel: String
|
tableLabel: String
|
||||||
streamPath: String!
|
streamPath: String!
|
||||||
status: String!
|
status: String!
|
||||||
|
tableSize: Float
|
||||||
|
pocketSize: Float
|
||||||
|
allowsPrivateVideos: Boolean!
|
||||||
|
claimTermsText: String
|
||||||
|
claimTermsVersion: Int
|
||||||
lastPublishedAt: DateTime
|
lastPublishedAt: DateTime
|
||||||
lastUnpublishedAt: DateTime
|
lastUnpublishedAt: DateTime
|
||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime!
|
updatedAt: DateTime!
|
||||||
|
inUse: Boolean!
|
||||||
poolHall: PoolHall!
|
poolHall: PoolHall!
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -924,6 +932,7 @@ type CameraClaimSession {
|
|||||||
detectedAt: DateTime
|
detectedAt: DateTime
|
||||||
failedAt: DateTime
|
failedAt: DateTime
|
||||||
failureReason: String
|
failureReason: String
|
||||||
|
agreedTermsVersion: Int
|
||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime!
|
updatedAt: DateTime!
|
||||||
camera: PoolHallCamera!
|
camera: PoolHallCamera!
|
||||||
@@ -1159,6 +1168,7 @@ type StripeSubscriptionOptionsGQL {
|
|||||||
products: [StripeProductGQL!]!
|
products: [StripeProductGQL!]!
|
||||||
trialPeriodDays: Int
|
trialPeriodDays: Int
|
||||||
appleIap: AppleIapSubscriptionOptionsGQL!
|
appleIap: AppleIapSubscriptionOptionsGQL!
|
||||||
|
tierOptions: [SubscriptionTierPurchaseOptionGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type StripeProductGQL {
|
type StripeProductGQL {
|
||||||
@@ -1185,6 +1195,21 @@ type AppleIapSubscriptionOptionsGQL {
|
|||||||
productIds: [String!]!
|
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 {
|
type UserSubscriptionStatusGQL {
|
||||||
hasActiveSubscription: Boolean!
|
hasActiveSubscription: Boolean!
|
||||||
entitlementSource: EntitlementSourceTypeEnum
|
entitlementSource: EntitlementSourceTypeEnum
|
||||||
@@ -1401,8 +1426,17 @@ type Mutation {
|
|||||||
): PoolHallCameraStreamCredentials!
|
): PoolHallCameraStreamCredentials!
|
||||||
updatePoolHallCamera(input: UpdatePoolHallCameraInput!): PoolHallCamera!
|
updatePoolHallCamera(input: UpdatePoolHallCameraInput!): PoolHallCamera!
|
||||||
rotatePoolHallCameraStreamKey(cameraId: ID!): PoolHallCameraStreamCredentials!
|
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!
|
cancelCameraClaimSession(claimSessionId: ID!): CameraClaimSession!
|
||||||
|
endCameraLease(leaseId: ID!): CameraLease!
|
||||||
|
extendCameraLease(leaseId: ID!, additionalMinutes: Int! = 60): CameraLease!
|
||||||
finalizePlayerAssignments(
|
finalizePlayerAssignments(
|
||||||
input: FinalizePlayerAssignmentsInput!
|
input: FinalizePlayerAssignmentsInput!
|
||||||
): [PlayerClusterGQL!]!
|
): [PlayerClusterGQL!]!
|
||||||
@@ -1485,6 +1519,8 @@ enum ReportReasonEnum {
|
|||||||
input CreatePoolHallInput {
|
input CreatePoolHallInput {
|
||||||
name: String!
|
name: String!
|
||||||
address: String = null
|
address: String = null
|
||||||
|
city: String = null
|
||||||
|
state: String = null
|
||||||
latitude: Float = null
|
latitude: Float = null
|
||||||
longitude: Float = null
|
longitude: Float = null
|
||||||
timezone: String = null
|
timezone: String = null
|
||||||
@@ -1494,6 +1530,8 @@ input UpdatePoolHallInput {
|
|||||||
id: ID!
|
id: ID!
|
||||||
name: String = null
|
name: String = null
|
||||||
address: String = null
|
address: String = null
|
||||||
|
city: String = null
|
||||||
|
state: String = null
|
||||||
latitude: Float = null
|
latitude: Float = null
|
||||||
longitude: Float = null
|
longitude: Float = null
|
||||||
timezone: String = null
|
timezone: String = null
|
||||||
@@ -1511,6 +1549,10 @@ input CreatePoolHallCameraInput {
|
|||||||
name: String!
|
name: String!
|
||||||
tableLabel: String = null
|
tableLabel: String = null
|
||||||
streamPath: String = null
|
streamPath: String = null
|
||||||
|
tableSize: Float = null
|
||||||
|
pocketSize: Float = null
|
||||||
|
allowsPrivateVideos: Boolean = null
|
||||||
|
claimTermsText: String = null
|
||||||
}
|
}
|
||||||
|
|
||||||
input UpdatePoolHallCameraInput {
|
input UpdatePoolHallCameraInput {
|
||||||
@@ -1518,6 +1560,10 @@ input UpdatePoolHallCameraInput {
|
|||||||
name: String = null
|
name: String = null
|
||||||
tableLabel: String = null
|
tableLabel: String = null
|
||||||
status: String = null
|
status: String = null
|
||||||
|
tableSize: Float = null
|
||||||
|
pocketSize: Float = null
|
||||||
|
allowsPrivateVideos: Boolean = null
|
||||||
|
claimTermsText: String = null
|
||||||
}
|
}
|
||||||
|
|
||||||
input FinalizePlayerAssignmentsInput {
|
input FinalizePlayerAssignmentsInput {
|
||||||
|
|||||||
Reference in New Issue
Block a user