Compare commits
15 Commits
ivan/groun
...
loewy/crea
| Author | SHA1 | Date | |
|---|---|---|---|
| 8367c2d0cd | |||
| b0c62f6e80 | |||
| bc1ff66467 | |||
| ae37a3d9d9 | |||
|
|
114b21400e | ||
| ad9cab4543 | |||
| cd3ecdfba4 | |||
| 28ba01c07f | |||
| 27a0c08cd5 | |||
| 99f0913fd8 | |||
| dfb0e02630 | |||
| c4a2e184fb | |||
| f14cf3b255 | |||
| c46776d417 | |||
| 6ab5286a49 |
487
src/index.tsx
487
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -31,41 +31,26 @@ fragment VideoCardFields on VideoGQL {
|
||||
}
|
||||
name
|
||||
screenshotUri
|
||||
totalShotsMade
|
||||
totalShots
|
||||
makePercentage
|
||||
averageTimeBetweenShots
|
||||
averageDifficulty
|
||||
createdAt
|
||||
updatedAt
|
||||
startTime
|
||||
endTime
|
||||
private
|
||||
elapsedTime
|
||||
screenshotUri
|
||||
stream {
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
isCompleted
|
||||
streamSegmentType
|
||||
}
|
||||
tableSize
|
||||
pocketSize
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
}
|
||||
name
|
||||
}
|
||||
currentProcessing {
|
||||
id
|
||||
errors {
|
||||
message
|
||||
}
|
||||
status
|
||||
statuses {
|
||||
status
|
||||
}
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
|
||||
@@ -20,6 +20,12 @@ mutation CreateSubscription($priceId: String!) {
|
||||
}
|
||||
}
|
||||
|
||||
mutation CreateCustomerPortalSession($returnUrl: String) {
|
||||
createCustomerPortalSession(returnUrl: $returnUrl) {
|
||||
portalUrl
|
||||
}
|
||||
}
|
||||
|
||||
query GetAvailableSubscriptionOptions {
|
||||
getAvailableSubscriptionOptions {
|
||||
products {
|
||||
|
||||
@@ -92,6 +92,17 @@ query GetUserTags {
|
||||
}
|
||||
}
|
||||
|
||||
query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) {
|
||||
getGameTypeTagMetrics(input: $input) {
|
||||
tagName
|
||||
tagLabel
|
||||
tableSize
|
||||
shotCount
|
||||
madeShots
|
||||
makeRate
|
||||
}
|
||||
}
|
||||
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
id
|
||||
|
||||
@@ -10,6 +10,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
stream {
|
||||
id
|
||||
linksRequested
|
||||
lowestUnuploadedSegmentIndex
|
||||
uploadsCompleted
|
||||
segmentProcessingCursor
|
||||
isCompleted
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||
mutation CreateUploadStream(
|
||||
$videoMetadataInput: VideoMetadataInput!
|
||||
$expectedDurationSeconds: Float = null
|
||||
) {
|
||||
createUploadStream(
|
||||
videoMetadata: $videoMetadataInput
|
||||
expectedDurationSeconds: $expectedDurationSeconds
|
||||
) {
|
||||
videoId
|
||||
}
|
||||
}
|
||||
|
||||
128
src/schema.gql
128
src/schema.gql
@@ -28,7 +28,7 @@ type Query {
|
||||
getLongestRunsLeaderboard(
|
||||
interval: TimeInterval = null
|
||||
when: DateTime = null
|
||||
limit: Int! = 100
|
||||
limit: Int! = 50
|
||||
requiredTags: [String!] = null
|
||||
): RunLeaderboardGQL!
|
||||
getMakesLeaderboard(
|
||||
@@ -61,8 +61,6 @@ type Query {
|
||||
shotsOrdering: GetShotsOrdering = null
|
||||
limit: Int! = 500
|
||||
countRespectsLimit: Boolean! = false
|
||||
processingId: Int = null
|
||||
includeExcluded: Boolean! = false
|
||||
): GetShotsResult!
|
||||
getShotsWithMetadata(
|
||||
filterInput: FilterInput!
|
||||
@@ -70,16 +68,12 @@ type Query {
|
||||
shotsPagination: GetShotsPagination = null
|
||||
limit: Int! = 500
|
||||
countRespectsLimit: Boolean! = false
|
||||
processingId: Int = null
|
||||
includeExcluded: Boolean! = false
|
||||
): GetShotsResult!
|
||||
getShots(
|
||||
filterInput: FilterInput!
|
||||
shotsPagination: GetShotsPagination = null
|
||||
limit: Int! = 500
|
||||
countRespectsLimit: Boolean! = false
|
||||
processingId: Int = null
|
||||
includeExcluded: Boolean! = false
|
||||
): [ShotGQL!]!
|
||||
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
||||
getUser(userId: Int!): UserGQL
|
||||
@@ -112,13 +106,9 @@ type Query {
|
||||
filters: VideoFilterInput = null
|
||||
): VideoHistoryGQL!
|
||||
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||
getGameTypeTagMetrics(input: GameTypeTagMetricsInput!): [GameTypeTagMetric!]!
|
||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||
getVideoProcessings(videoId: Int!): [VideoProcessingGQL!]!
|
||||
assessVideoProcessing(
|
||||
processingId: Int!
|
||||
groundTruthProcessingId: Int = null
|
||||
): VideoProcessingAssessmentGQL!
|
||||
}
|
||||
|
||||
type AggregateResultGQL {
|
||||
@@ -220,7 +210,6 @@ input FilterInput @oneOf {
|
||||
intendedPocketType: [PocketEnum!]
|
||||
shotDirection: [ShotDirectionEnum!]
|
||||
videoId: [Int!]
|
||||
processingId: [Int!]
|
||||
userId: [Int!]
|
||||
runId: [Int!]
|
||||
username: [String!]
|
||||
@@ -973,6 +962,9 @@ type StripePriceGQL {
|
||||
|
||||
type UserSubscriptionStatusGQL {
|
||||
hasActiveSubscription: Boolean!
|
||||
entitlementSource: EntitlementSourceTypeEnum
|
||||
entitlementStartsAt: DateTime
|
||||
entitlementEndsAt: DateTime
|
||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
||||
currentPeriodStart: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
@@ -981,6 +973,13 @@ type UserSubscriptionStatusGQL {
|
||||
stripeSubscriptionId: String
|
||||
}
|
||||
|
||||
enum EntitlementSourceTypeEnum {
|
||||
ADMIN
|
||||
MANUAL
|
||||
STRIPE
|
||||
ALPHA_LEGACY
|
||||
}
|
||||
|
||||
enum StripeSubscriptionStatusEnum {
|
||||
INCOMPLETE
|
||||
INCOMPLETE_EXPIRED
|
||||
@@ -1019,6 +1018,25 @@ type TagClassGQL {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type GameTypeTagMetric {
|
||||
tagName: String!
|
||||
tagLabel: String!
|
||||
tableSize: Float
|
||||
shotCount: Int!
|
||||
madeShots: Int!
|
||||
makeRate: Float!
|
||||
}
|
||||
|
||||
input GameTypeTagMetricsInput {
|
||||
userId: Int!
|
||||
createdAt: DateRangeFilter = null
|
||||
maxTags: Int = null
|
||||
groupByTableSize: Boolean! = true
|
||||
includeUnknown: Boolean! = true
|
||||
tagClass: String = "game_type"
|
||||
includePrivate: IncludePrivateEnum! = MINE
|
||||
}
|
||||
|
||||
"""
|
||||
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
|
||||
"""
|
||||
@@ -1027,37 +1045,6 @@ scalar JSON
|
||||
url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf"
|
||||
)
|
||||
|
||||
type VideoProcessingAssessmentGQL {
|
||||
processingId: Int!
|
||||
groundTruthProcessingId: Int!
|
||||
sourceShotCount: Int!
|
||||
sourceFalsePositiveCount: Int!
|
||||
groundTruthShotCount: Int!
|
||||
groundTruthPositiveShotCount: Int!
|
||||
groundTruthFalsePositiveCount: Int!
|
||||
matchedGroundTruthShots: Int!
|
||||
missedGroundTruthShots: Int!
|
||||
unexpectedShots: Int!
|
||||
correctlyFlaggedFalsePositives: Int!
|
||||
unflaggedFalsePositives: Int!
|
||||
extraFlaggedFalsePositives: Int!
|
||||
groundTruthShotsFlaggedFalsePositive: Int!
|
||||
makeDisagreements: Int!
|
||||
matchedGroundTruthPairs: [VideoProcessingAssessmentShotPairGQL!]!
|
||||
missedGroundTruthShotIds: [Int!]!
|
||||
unexpectedShotIds: [Int!]!
|
||||
correctlyFlaggedFalsePositivePairs: [VideoProcessingAssessmentShotPairGQL!]!
|
||||
unflaggedFalsePositivePairs: [VideoProcessingAssessmentShotPairGQL!]!
|
||||
extraFlaggedFalsePositiveShotIds: [Int!]!
|
||||
groundTruthShotsFlaggedFalsePositivePairs: [VideoProcessingAssessmentShotPairGQL!]!
|
||||
makeDisagreementPairs: [VideoProcessingAssessmentShotPairGQL!]!
|
||||
}
|
||||
|
||||
type VideoProcessingAssessmentShotPairGQL {
|
||||
processingShotId: Int!
|
||||
groundTruthShotId: Int!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||
createRuleSet(name: String!, description: String = null): RuleSet!
|
||||
@@ -1119,19 +1106,6 @@ type Mutation {
|
||||
shotId: Int!
|
||||
fieldsToEdit: EditableShotFieldInputGQL!
|
||||
): EditShotReturn!
|
||||
createGroundTruthShot(input: CreateGroundTruthShotInputGQL!): ShotGQL!
|
||||
updateGroundTruthShotFrameRange(
|
||||
shotId: Int!
|
||||
startFrame: Int = null
|
||||
endFrame: Int = null
|
||||
notes: String = null
|
||||
): ShotGQL!
|
||||
splitGroundTruthShot(
|
||||
shotId: Int!
|
||||
splitFrame: Int!
|
||||
notes: String = null
|
||||
): SplitGroundTruthShotReturn!
|
||||
deleteGroundTruthShot(shotId: Int!): DeleteGroundTruthShotReturn!
|
||||
getProfileImageUploadLink(
|
||||
fileExt: String = ".png"
|
||||
): GetProfileUploadLinkReturn!
|
||||
@@ -1143,7 +1117,18 @@ type Mutation {
|
||||
ensureStripeCustomerExists: UserGQL!
|
||||
deleteUser: Boolean!
|
||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||
createCustomerPortalSession(
|
||||
returnUrl: String = null
|
||||
): CreateCustomerPortalSessionResultGQL!
|
||||
cancelSubscription: UserSubscriptionStatusGQL!
|
||||
grantManualEntitlement(
|
||||
userId: Int!
|
||||
tierName: String! = "pro"
|
||||
startsAt: DateTime = null
|
||||
endsAt: DateTime = null
|
||||
reason: String = null
|
||||
): UserSubscriptionStatusGQL!
|
||||
revokeManualEntitlement(userId: Int!): UserSubscriptionStatusGQL!
|
||||
submitCancellationFeedback(
|
||||
reasons: [CancellationReasonEnum!] = null
|
||||
feedback: String = null
|
||||
@@ -1154,11 +1139,6 @@ type Mutation {
|
||||
videoMetadata: VideoMetadataInput!
|
||||
expectedDurationSeconds: Float = null
|
||||
): CreateUploadStreamReturn!
|
||||
getOrCreateGroundTruthProcessing(
|
||||
videoId: Int!
|
||||
sourceProcessingId: Int = null
|
||||
): VideoProcessingGQL!
|
||||
promoteGroundTruthProcessing(processingId: Int!): VideoProcessingGQL!
|
||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
|
||||
setSegmentDuration(
|
||||
@@ -1235,32 +1215,12 @@ input EditableShotFieldInputGQL {
|
||||
shotDirection: ShotDirectionEnum
|
||||
spinType: SpinTypeEnum
|
||||
targetPocketAngleDirection: ShotDirectionEnum
|
||||
intendedBallId: Int
|
||||
intendedPocketId: PocketIdentifier
|
||||
pathMetadataIndex: Int
|
||||
make: Boolean
|
||||
backcut: Boolean
|
||||
excludeFromStats: Boolean
|
||||
notes: String
|
||||
}
|
||||
|
||||
input CreateGroundTruthShotInputGQL {
|
||||
processingId: Int!
|
||||
startFrame: Int!
|
||||
endFrame: Int!
|
||||
make: Boolean
|
||||
notes: String
|
||||
}
|
||||
|
||||
type SplitGroundTruthShotReturn {
|
||||
originalShot: ShotGQL!
|
||||
createdShot: ShotGQL!
|
||||
}
|
||||
|
||||
type DeleteGroundTruthShotReturn {
|
||||
deletedShotId: Int!
|
||||
}
|
||||
|
||||
type GetProfileUploadLinkReturn {
|
||||
value: UploadLinkGetProfileUploadLinkErrors!
|
||||
}
|
||||
@@ -1299,6 +1259,10 @@ type CreateSubscriptionResultGQL {
|
||||
sessionId: String!
|
||||
}
|
||||
|
||||
type CreateCustomerPortalSessionResultGQL {
|
||||
portalUrl: String!
|
||||
}
|
||||
|
||||
enum CancellationReasonEnum {
|
||||
DONT_PLAY_ENOUGH
|
||||
TOO_EXPENSIVE
|
||||
|
||||
Reference in New Issue
Block a user