Compare commits
1 Commits
loewy/add-
...
ivan/groun
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c97e46d57 |
902
src/index.tsx
902
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -31,32 +31,41 @@ 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 {
|
||||
name
|
||||
tagClasses {
|
||||
name
|
||||
}
|
||||
}
|
||||
playerSummaries {
|
||||
...PlayerSummaryFields
|
||||
name
|
||||
}
|
||||
currentProcessing {
|
||||
id
|
||||
errors {
|
||||
message
|
||||
}
|
||||
status
|
||||
statuses {
|
||||
status
|
||||
}
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
|
||||
@@ -20,15 +20,8 @@ mutation CreateSubscription($priceId: String!) {
|
||||
}
|
||||
}
|
||||
|
||||
mutation CreateCustomerPortalSession {
|
||||
createCustomerPortalSession {
|
||||
portalUrl
|
||||
}
|
||||
}
|
||||
|
||||
query GetAvailableSubscriptionOptions {
|
||||
getAvailableSubscriptionOptions {
|
||||
trialPeriodDays
|
||||
products {
|
||||
id
|
||||
name
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
fragment PlayerSummaryFields on PlayerSummaryGQL {
|
||||
clusterId
|
||||
userId
|
||||
username
|
||||
profileImageUri
|
||||
representativeFullFrameUrl
|
||||
totalShots
|
||||
totalShotsMade
|
||||
makePercentage
|
||||
score
|
||||
longestRun
|
||||
averageDifficulty
|
||||
averageTimeBetweenShots
|
||||
}
|
||||
|
||||
fragment PlayerClusterShotFields on PlayerClusterShotGQL {
|
||||
shotId
|
||||
bboxX1
|
||||
bboxY1
|
||||
bboxX2
|
||||
bboxY2
|
||||
confidence
|
||||
isConfirmed
|
||||
cropUrl
|
||||
fullFrameUrl
|
||||
}
|
||||
|
||||
fragment PlayerClusterFields on PlayerClusterGQL {
|
||||
videoId
|
||||
clusterId
|
||||
nShots
|
||||
userId
|
||||
username
|
||||
profileImageUri
|
||||
confirmed
|
||||
score
|
||||
shots {
|
||||
...PlayerClusterShotFields
|
||||
}
|
||||
}
|
||||
|
||||
query VideoPlayerClusters($videoId: Int!) {
|
||||
videoPlayerClusters(videoId: $videoId) {
|
||||
...PlayerClusterFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation FinalizePlayerAssignments($input: FinalizePlayerAssignmentsInput!) {
|
||||
finalizePlayerAssignments(input: $input) {
|
||||
...PlayerClusterFields
|
||||
}
|
||||
}
|
||||
@@ -92,17 +92,6 @@ query GetUserTags {
|
||||
}
|
||||
}
|
||||
|
||||
query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) {
|
||||
getGameTypeTagMetrics(input: $input) {
|
||||
tagName
|
||||
tagLabel
|
||||
tableSize
|
||||
shotCount
|
||||
madeShots
|
||||
makeRate
|
||||
}
|
||||
}
|
||||
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
id
|
||||
@@ -176,7 +165,6 @@ fragment UserFragment on UserGQL {
|
||||
fargoRating
|
||||
activeVideoId
|
||||
createdAt
|
||||
firstActivityAt
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
agreesToMarketing
|
||||
|
||||
@@ -10,7 +10,6 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
stream {
|
||||
id
|
||||
linksRequested
|
||||
lowestUnuploadedSegmentIndex
|
||||
uploadsCompleted
|
||||
segmentProcessingCursor
|
||||
isCompleted
|
||||
@@ -83,9 +82,6 @@ query GetVideoDetails($videoId: Int!) {
|
||||
}
|
||||
name
|
||||
}
|
||||
playerSummaries {
|
||||
...PlayerSummaryFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
mutation CreateUploadStream(
|
||||
$videoMetadataInput: VideoMetadataInput!
|
||||
$expectedDurationSeconds: Float = null
|
||||
) {
|
||||
createUploadStream(
|
||||
videoMetadata: $videoMetadataInput
|
||||
expectedDurationSeconds: $expectedDurationSeconds
|
||||
) {
|
||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||
videoId
|
||||
}
|
||||
}
|
||||
|
||||
193
src/schema.gql
193
src/schema.gql
@@ -28,7 +28,7 @@ type Query {
|
||||
getLongestRunsLeaderboard(
|
||||
interval: TimeInterval = null
|
||||
when: DateTime = null
|
||||
limit: Int! = 50
|
||||
limit: Int! = 100
|
||||
requiredTags: [String!] = null
|
||||
): RunLeaderboardGQL!
|
||||
getMakesLeaderboard(
|
||||
@@ -49,7 +49,6 @@ type Query {
|
||||
limit: Int! = 500
|
||||
countRespectsLimit: Boolean! = false
|
||||
): GetRunsResult!
|
||||
videoPlayerClusters(videoId: Int!): [PlayerClusterGQL!]!
|
||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||
getTableState(
|
||||
b64Image: String!
|
||||
@@ -62,6 +61,8 @@ type Query {
|
||||
shotsOrdering: GetShotsOrdering = null
|
||||
limit: Int! = 500
|
||||
countRespectsLimit: Boolean! = false
|
||||
processingId: Int = null
|
||||
includeExcluded: Boolean! = false
|
||||
): GetShotsResult!
|
||||
getShotsWithMetadata(
|
||||
filterInput: FilterInput!
|
||||
@@ -69,12 +70,16 @@ 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
|
||||
@@ -107,9 +112,13 @@ 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 {
|
||||
@@ -211,6 +220,7 @@ input FilterInput @oneOf {
|
||||
intendedPocketType: [PocketEnum!]
|
||||
shotDirection: [ShotDirectionEnum!]
|
||||
videoId: [Int!]
|
||||
processingId: [Int!]
|
||||
userId: [Int!]
|
||||
runId: [Int!]
|
||||
username: [String!]
|
||||
@@ -351,11 +361,6 @@ type UserGQL {
|
||||
agreesToMarketing: Boolean
|
||||
following: [UserGQL!]
|
||||
followers: [UserGQL!]
|
||||
|
||||
"""
|
||||
Earliest visible non-deleted profile video timestamp with real shot data.
|
||||
"""
|
||||
firstActivityAt: DateTime
|
||||
isFollowedByCurrentUser: Boolean
|
||||
}
|
||||
|
||||
@@ -411,7 +416,6 @@ type VideoGQL {
|
||||
currentProcessing: VideoProcessingGQL
|
||||
reactions: [ReactionGQL!]!
|
||||
comments: [CommentGQL!]!
|
||||
playerSummaries: [PlayerSummaryGQL!]!
|
||||
}
|
||||
|
||||
type ShotGQL {
|
||||
@@ -671,21 +675,6 @@ type CommentGQL {
|
||||
replies: [CommentGQL!]!
|
||||
}
|
||||
|
||||
type PlayerSummaryGQL {
|
||||
clusterId: Int!
|
||||
userId: Int
|
||||
username: String
|
||||
profileImageUri: String
|
||||
representativeFullFrameUrl: String
|
||||
totalShots: Int!
|
||||
totalShotsMade: Int!
|
||||
makePercentage: Float!
|
||||
score: Int
|
||||
longestRun: Int!
|
||||
averageDifficulty: Float
|
||||
averageTimeBetweenShots: Float
|
||||
}
|
||||
|
||||
type DeployedConfigGQL {
|
||||
allowNewUsers: Boolean!
|
||||
firebase: Boolean!
|
||||
@@ -882,30 +871,6 @@ input DatetimeOrdering {
|
||||
startingAt: DateTime = null
|
||||
}
|
||||
|
||||
type PlayerClusterGQL {
|
||||
videoId: Int!
|
||||
clusterId: Int!
|
||||
nShots: Int!
|
||||
userId: Int
|
||||
username: String
|
||||
profileImageUri: String
|
||||
confirmed: Boolean!
|
||||
score: Int
|
||||
shots: [PlayerClusterShotGQL!]!
|
||||
}
|
||||
|
||||
type PlayerClusterShotGQL {
|
||||
shotId: Int!
|
||||
bboxX1: Int!
|
||||
bboxY1: Int!
|
||||
bboxX2: Int!
|
||||
bboxY2: Int!
|
||||
confidence: Float!
|
||||
isConfirmed: Boolean!
|
||||
cropUrl: String
|
||||
fullFrameUrl: String
|
||||
}
|
||||
|
||||
type TableStateGQL {
|
||||
identifierToPosition: [[Float!]!]!
|
||||
homography: HomographyInfoGQL
|
||||
@@ -986,7 +951,6 @@ type UserRelationship {
|
||||
|
||||
type StripeSubscriptionOptionsGQL {
|
||||
products: [StripeProductGQL!]!
|
||||
trialPeriodDays: Int
|
||||
}
|
||||
|
||||
type StripeProductGQL {
|
||||
@@ -1009,9 +973,6 @@ type StripePriceGQL {
|
||||
|
||||
type UserSubscriptionStatusGQL {
|
||||
hasActiveSubscription: Boolean!
|
||||
entitlementSource: EntitlementSourceTypeEnum
|
||||
entitlementStartsAt: DateTime
|
||||
entitlementEndsAt: DateTime
|
||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
||||
currentPeriodStart: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
@@ -1020,13 +981,6 @@ type UserSubscriptionStatusGQL {
|
||||
stripeSubscriptionId: String
|
||||
}
|
||||
|
||||
enum EntitlementSourceTypeEnum {
|
||||
ADMIN
|
||||
MANUAL
|
||||
STRIPE
|
||||
ALPHA_LEGACY
|
||||
}
|
||||
|
||||
enum StripeSubscriptionStatusEnum {
|
||||
INCOMPLETE
|
||||
INCOMPLETE_EXPIRED
|
||||
@@ -1065,25 +1019,6 @@ 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).
|
||||
"""
|
||||
@@ -1092,6 +1027,37 @@ 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!
|
||||
@@ -1140,9 +1106,6 @@ type Mutation {
|
||||
markAllNotificationsAsRead: Boolean!
|
||||
markNotificationsAsRead(notificationIds: [Int!]!): Boolean!
|
||||
deleteNotification(notificationId: Int!): Boolean!
|
||||
finalizePlayerAssignments(
|
||||
input: FinalizePlayerAssignmentsInput!
|
||||
): [PlayerClusterGQL!]!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
@@ -1156,6 +1119,19 @@ 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!
|
||||
@@ -1167,16 +1143,7 @@ type Mutation {
|
||||
ensureStripeCustomerExists: UserGQL!
|
||||
deleteUser: Boolean!
|
||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||
createCustomerPortalSession: 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
|
||||
@@ -1187,6 +1154,11 @@ 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(
|
||||
@@ -1214,23 +1186,6 @@ enum ReportReasonEnum {
|
||||
OTHER
|
||||
}
|
||||
|
||||
input FinalizePlayerAssignmentsInput {
|
||||
videoId: Int!
|
||||
clusterAssignments: [ClusterAssignmentInput!]! = []
|
||||
shotMoves: [ShotMoveInput!]! = []
|
||||
}
|
||||
|
||||
input ClusterAssignmentInput {
|
||||
clusterId: Int!
|
||||
userId: Int = null
|
||||
score: Int = null
|
||||
}
|
||||
|
||||
input ShotMoveInput {
|
||||
shotId: Int!
|
||||
newClusterId: Int!
|
||||
}
|
||||
|
||||
type AddShotAnnotationReturn {
|
||||
value: SuccessfulAddAddShotAnnotationErrors!
|
||||
}
|
||||
@@ -1280,12 +1235,32 @@ 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!
|
||||
}
|
||||
@@ -1324,10 +1299,6 @@ type CreateSubscriptionResultGQL {
|
||||
sessionId: String!
|
||||
}
|
||||
|
||||
type CreateCustomerPortalSessionResultGQL {
|
||||
portalUrl: String!
|
||||
}
|
||||
|
||||
enum CancellationReasonEnum {
|
||||
DONT_PLAY_ENOUGH
|
||||
TOO_EXPENSIVE
|
||||
|
||||
Reference in New Issue
Block a user