Run prettier on gql stuff

This commit is contained in:
Ivan Malison 2024-02-22 18:36:15 -07:00
parent 318a2a24fd
commit c9f2187cc2
4 changed files with 663 additions and 385 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,4 @@
query GetFeed(
$first: Int! = 5,
$after: String = null,
) {
query GetFeed($first: Int! = 5, $after: String = null) {
getVideoFeedForUser(first: $first, after: $after) {
videos {
id

View File

@ -1,30 +1,30 @@
query GetShots(
$filterInput: FilterInput
$includeCueObjectDistance: Boolean! = false
$includeCueObjectAngle: Boolean! = false
$includeCueBallSpeed: Boolean! = false
$includeShotDirection: Boolean! = false
$includeTargetPocketDistance: Boolean! = false
$includeMake: Boolean! = false
$includeIntendedPocketType: Boolean! = false
$filterInput: FilterInput
$includeCueObjectDistance: Boolean! = false
$includeCueObjectAngle: Boolean! = false
$includeCueBallSpeed: Boolean! = false
$includeShotDirection: Boolean! = false
$includeTargetPocketDistance: Boolean! = false
$includeMake: Boolean! = false
$includeIntendedPocketType: Boolean! = false
) {
getShots(filterInput: $filterInput) {
id
videoId
startFrame
endFrame
createdAt
updatedAt
cueObjectFeatures {
cueObjectDistance @include(if: $includeCueObjectDistance)
cueObjectAngle @include(if: $includeCueObjectAngle)
cueBallSpeed @include(if: $includeCueBallSpeed)
shotDirection @include(if: $includeShotDirection)
}
pocketingIntentionFeatures {
targetPocketDistance @include(if: $includeTargetPocketDistance)
make @include(if: $includeMake)
intendedPocketType @include(if: $includeIntendedPocketType)
}
}
getShots(filterInput: $filterInput) {
id
videoId
startFrame
endFrame
createdAt
updatedAt
cueObjectFeatures {
cueObjectDistance @include(if: $includeCueObjectDistance)
cueObjectAngle @include(if: $includeCueObjectAngle)
cueBallSpeed @include(if: $includeCueBallSpeed)
shotDirection @include(if: $includeShotDirection)
}
pocketingIntentionFeatures {
targetPocketDistance @include(if: $includeTargetPocketDistance)
make @include(if: $includeMake)
intendedPocketType @include(if: $includeIntendedPocketType)
}
}
}

View File

@ -49,7 +49,9 @@ type UserGQL {
statistics: UserStatisticsGQL!
}
"""Date with time (isoformat)"""
"""
Date with time (isoformat)
"""
scalar DateTime
type UserStatisticsGQL {
@ -61,7 +63,9 @@ type UserStatisticsGQL {
medianRun: Decimal
}
"""Decimal (fixed-point)"""
"""
Decimal (fixed-point)
"""
scalar Decimal
type VideoGQL {
@ -237,9 +241,17 @@ type PageInfoGQL {
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
createUploadStream(
uploadMetadata: UploadMetadataInput
videoName: String = null
): CreateUploadStreamReturn!
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
terminateUploadStream(videoId: Int!, videoName: String = null, gameType: String = null, tableSize: String = null): Boolean!
terminateUploadStream(
videoId: Int!
videoName: String = null
gameType: String = null
tableSize: String = null
): Boolean!
}
input CreateBucketSetInput {