Compare commits
48 Commits
volodymyr/
...
8ed177b0f3
Author | SHA1 | Date | |
---|---|---|---|
8ed177b0f3 | |||
976cc66ccb | |||
af461fff00 | |||
7a39b4ca60 | |||
9befbe3833 | |||
68a4c064f3 | |||
54fd741670 | |||
2f9e630de4 | |||
5efd8ef8e5 | |||
6ad3d449d8 | |||
8fe20d1c41 | |||
e151f39582 | |||
f136ddb9ca | |||
5d05614e07 | |||
c4c3ccde00 | |||
e137ce8ad1 | |||
bd5bebb747 | |||
034facebf3 | |||
ac1fceb648 | |||
fd87ade629 | |||
1fab007654 | |||
cd2cdb475a | |||
c3c74379fb | |||
da21627f15 | |||
8fabfd67cf | |||
e6960038f2 | |||
b6ec7ed39d | |||
545ba638c2 | |||
94e4e55558 | |||
2536f5db6b | |||
ffd0814a98 | |||
55bfe42484 | |||
dabb0d1d9c | |||
a538c1d81c | |||
872bce3adb | |||
457d375bed | |||
12798e368c | |||
a3d6e6e19e | |||
f7a6e393e7 | |||
ee11e506ed | |||
90ec47848b | |||
21acb5219d | |||
087d511efc | |||
7cc0dca821 | |||
f826121aa3 | |||
2aadb8b49b | |||
5468b7ccda | |||
08dfafe1a3 |
649
src/index.tsx
649
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -6,32 +6,7 @@ query GetFeed(
|
|||||||
) {
|
) {
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
id
|
...VideoCardFields
|
||||||
owner {
|
|
||||||
username
|
|
||||||
}
|
|
||||||
name
|
|
||||||
screenshotUri
|
|
||||||
totalShotsMade
|
|
||||||
totalShots
|
|
||||||
makePercentage
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
startTime
|
|
||||||
endTime
|
|
||||||
elapsedTime
|
|
||||||
screenshotUri
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
}
|
|
||||||
tableSize
|
|
||||||
tags {
|
|
||||||
tagClasses {
|
|
||||||
name
|
|
||||||
}
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
@@ -86,8 +61,14 @@ query GetVideoFeed(
|
|||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
$filters: VideoFilterInput = null
|
$filters: VideoFilterInput = null
|
||||||
|
$includeCallersVideos: Boolean = null
|
||||||
) {
|
) {
|
||||||
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
after: $after
|
||||||
|
filters: $filters
|
||||||
|
includeCallersVideos: $includeCallersVideos
|
||||||
|
) {
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
...VideoCardFields
|
||||||
}
|
}
|
||||||
|
75
src/operations/medals.gql
Normal file
75
src/operations/medals.gql
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
fragment MedalFields on MedalGQL {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
|
||||||
|
query getMedals($scope: MedalScope!, $userId: Int) {
|
||||||
|
getMedals(scope: $scope, userId: $userId) {
|
||||||
|
distanceOver78 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
distanceOver90 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength3 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength5 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength8 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength10 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength15 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength20 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength25 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength30 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength40 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
runLength50 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes100 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes500 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes1000 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes5000 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes10000 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes50 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes100 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes150 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes200 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes250 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -159,6 +159,7 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
targetPocketAngleDirection
|
targetPocketAngleDirection
|
||||||
marginOfErrorInDegrees
|
marginOfErrorInDegrees
|
||||||
intendedPocketType
|
intendedPocketType
|
||||||
|
difficulty
|
||||||
}
|
}
|
||||||
pocketingIntentionInfo {
|
pocketingIntentionInfo {
|
||||||
ballId
|
ballId
|
||||||
@@ -177,3 +178,15 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
notes
|
notes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {
|
||||||
|
editShot(shotId: $shotId, fieldsToEdit: $fieldsToEdit) {
|
||||||
|
error {
|
||||||
|
shotId
|
||||||
|
msg
|
||||||
|
}
|
||||||
|
shot {
|
||||||
|
...ShotWithAllFeatures
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -45,8 +45,8 @@ query getLoggedInUser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetUserPlayTime($userId: Int!) {
|
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
||||||
getPlayTime(userId: $userId) {
|
getPlayTime(userId: $userId, filters: $filters) {
|
||||||
totalSeconds
|
totalSeconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,6 +18,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|||||||
initPlaylistUploadStatus
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
|
id
|
||||||
errors {
|
errors {
|
||||||
message
|
message
|
||||||
startSegmentIndex
|
startSegmentIndex
|
||||||
@@ -35,6 +36,7 @@ query GetVideoUpdatePageDetails($videoId: Int!) {
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
tableSize
|
tableSize
|
||||||
|
private
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
name
|
name
|
||||||
@@ -64,6 +66,7 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
tableSize
|
tableSize
|
||||||
|
private
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
@@ -221,6 +224,7 @@ mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fragment HomographyInfo on HomographyInfoGQL {
|
fragment HomographyInfo on HomographyInfoGQL {
|
||||||
|
id
|
||||||
frameIndex
|
frameIndex
|
||||||
crop {
|
crop {
|
||||||
left
|
left
|
||||||
|
156
src/schema.gql
156
src/schema.gql
@@ -10,6 +10,13 @@ type Query {
|
|||||||
intervalDuration: Int! = 300
|
intervalDuration: Int! = 300
|
||||||
): [MakePercentageIntervalGQL!]!
|
): [MakePercentageIntervalGQL!]!
|
||||||
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||||
|
getRuns(
|
||||||
|
filterInput: RunFilterInput!
|
||||||
|
runIds: [Int!] = null
|
||||||
|
runsOrdering: GetRunsOrdering = null
|
||||||
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
|
): GetRunsResult!
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@@ -59,6 +66,7 @@ type Query {
|
|||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: Int! = 5
|
limit: Int! = 5
|
||||||
after: String = null
|
after: String = null
|
||||||
|
includeCallersVideos: Boolean = true
|
||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
}
|
}
|
||||||
@@ -285,42 +293,49 @@ type RequestedMedalsGQL {
|
|||||||
runLength30: MedalGQL
|
runLength30: MedalGQL
|
||||||
runLength40: MedalGQL
|
runLength40: MedalGQL
|
||||||
runLength50: MedalGQL
|
runLength50: MedalGQL
|
||||||
totalMakes25: MedalGQL
|
totalMakes25: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
totalMakes50: MedalGQL
|
totalMakes50: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
totalMakes75: MedalGQL
|
totalMakes75: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes200: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes300: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes400: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes750: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
totalMakes100: MedalGQL
|
totalMakes100: MedalGQL
|
||||||
totalMakes200: MedalGQL
|
|
||||||
totalMakes300: MedalGQL
|
|
||||||
totalMakes400: MedalGQL
|
|
||||||
totalMakes500: MedalGQL
|
totalMakes500: MedalGQL
|
||||||
totalMakes750: MedalGQL
|
|
||||||
totalMakes1000: MedalGQL
|
totalMakes1000: MedalGQL
|
||||||
dayStreak2: MedalGQL
|
totalMakes5000: MedalGQL
|
||||||
dayStreak3: MedalGQL
|
totalMakes10000: MedalGQL
|
||||||
dayStreak4: MedalGQL
|
dailyMakes50: MedalGQL
|
||||||
dayStreak5: MedalGQL
|
dailyMakes100: MedalGQL
|
||||||
dayStreak6: MedalGQL
|
dailyMakes150: MedalGQL
|
||||||
dayStreak7: MedalGQL
|
dailyMakes200: MedalGQL
|
||||||
dayStreak14: MedalGQL
|
dailyMakes250: MedalGQL
|
||||||
dayStreak21: MedalGQL
|
|
||||||
dayStreak30: MedalGQL
|
|
||||||
dayStreak60: MedalGQL
|
|
||||||
dayStreak90: MedalGQL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type MedalGQL {
|
type MedalGQL {
|
||||||
count: Int!
|
count: Int!
|
||||||
|
nickname: String
|
||||||
}
|
}
|
||||||
|
|
||||||
input MedalScope @oneOf {
|
input MedalScope @oneOf {
|
||||||
videoId: Int
|
videoId: Int
|
||||||
interval: TimeInterval
|
interval: TimeInterval
|
||||||
|
@deprecated(reason: "NO LONGER SUPPORTED, USE DATETIME_RANGE")
|
||||||
|
datetimeRange: DatetimeRangeAggregationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetShotsResult {
|
type GetRunsResult {
|
||||||
shots: [ShotGQL!]!
|
runs: [RunGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
ids: [Int!]!
|
runIds: [Int!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type RunGQL {
|
||||||
|
id: Int!
|
||||||
|
runLength: Int!
|
||||||
|
videoId: Int!
|
||||||
|
userId: Int!
|
||||||
|
shots: [ShotGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShotGQL {
|
type ShotGQL {
|
||||||
@@ -461,6 +476,7 @@ type UploadStreamGQL {
|
|||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime!
|
updatedAt: DateTime!
|
||||||
segments: [UploadSegmentGQL!]!
|
segments: [UploadSegmentGQL!]!
|
||||||
|
clientUploadStatus: ClientUploadStatusEnum
|
||||||
resolution: VideoResolutionGQL!
|
resolution: VideoResolutionGQL!
|
||||||
streamSegmentType: StreamSegmentTypeEnum!
|
streamSegmentType: StreamSegmentTypeEnum!
|
||||||
}
|
}
|
||||||
@@ -485,6 +501,11 @@ type UploadSegmentGQL {
|
|||||||
linksRequested: Int!
|
linksRequested: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum ClientUploadStatusEnum {
|
||||||
|
UPLOAD_ENABLED
|
||||||
|
UPLOAD_DISABLED
|
||||||
|
}
|
||||||
|
|
||||||
type VideoResolutionGQL {
|
type VideoResolutionGQL {
|
||||||
width: Int
|
width: Int
|
||||||
height: Int
|
height: Int
|
||||||
@@ -572,33 +593,62 @@ type VideoProcessingStatusGQL {
|
|||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input RunFilterInput {
|
||||||
|
videoId: [Int!]
|
||||||
|
userId: [Int!]
|
||||||
|
username: [String!]
|
||||||
|
andFilters: [RunFilterInput!]
|
||||||
|
orFilters: [RunFilterInput!]
|
||||||
|
notFilter: RunFilterInput
|
||||||
|
tableSize: FloatRangeFilter
|
||||||
|
createdAt: DateRangeFilter
|
||||||
|
runLength: FloatRangeFilter
|
||||||
|
}
|
||||||
|
|
||||||
|
input GetRunsOrdering {
|
||||||
|
orderings: [RunsOrderingComponent!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
input RunsOrderingComponent @oneOf {
|
||||||
|
runLength: IntOrdering
|
||||||
|
videoId: IntOrdering
|
||||||
|
videoCreation: DatetimeOrdering
|
||||||
|
}
|
||||||
|
|
||||||
|
input IntOrdering {
|
||||||
|
descending: Boolean! = true
|
||||||
|
startingAt: Int = null
|
||||||
|
}
|
||||||
|
|
||||||
|
input DatetimeOrdering {
|
||||||
|
descending: Boolean! = true
|
||||||
|
startingAt: DateTime = null
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetShotsResult {
|
||||||
|
shots: [ShotGQL!]!
|
||||||
|
count: Int
|
||||||
|
ids: [Int!]!
|
||||||
|
}
|
||||||
|
|
||||||
input GetShotsOrdering {
|
input GetShotsOrdering {
|
||||||
orderings: [ShotsOrderingComponent!]!
|
orderings: [ShotsOrderingComponent!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
input ShotsOrderingComponent @oneOf {
|
input ShotsOrderingComponent @oneOf {
|
||||||
videoCreation: DatetimeShotOrdering
|
videoCreation: DatetimeOrdering
|
||||||
marginOfError: FloatShotOrdering
|
marginOfError: FloatOrdering
|
||||||
videoId: IntShotOrdering
|
difficulty: FloatOrdering
|
||||||
startFrame: IntShotOrdering
|
videoId: IntOrdering
|
||||||
runLength: IntShotOrdering
|
startFrame: IntOrdering
|
||||||
|
runLength: IntOrdering
|
||||||
}
|
}
|
||||||
|
|
||||||
input DatetimeShotOrdering {
|
input FloatOrdering {
|
||||||
descending: Boolean! = true
|
|
||||||
startingAt: DateTime = null
|
|
||||||
}
|
|
||||||
|
|
||||||
input FloatShotOrdering {
|
|
||||||
descending: Boolean! = true
|
descending: Boolean! = true
|
||||||
startingAt: Float = null
|
startingAt: Float = null
|
||||||
}
|
}
|
||||||
|
|
||||||
input IntShotOrdering {
|
|
||||||
descending: Boolean! = true
|
|
||||||
startingAt: Int = null
|
|
||||||
}
|
|
||||||
|
|
||||||
input GetShotsPagination {
|
input GetShotsPagination {
|
||||||
createdAfter: CreatedAfter!
|
createdAfter: CreatedAfter!
|
||||||
startFrameAfter: Int!
|
startFrameAfter: Int!
|
||||||
@@ -628,6 +678,7 @@ input VideoFilterInput {
|
|||||||
isStreamCompleted: Boolean = null
|
isStreamCompleted: Boolean = null
|
||||||
requireCursorCompletion: Boolean! = true
|
requireCursorCompletion: Boolean! = true
|
||||||
createdAt: DateRangeFilter = null
|
createdAt: DateRangeFilter = null
|
||||||
|
excludeVideosWithNoShots: Boolean = null
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoHistoryGQL {
|
type VideoHistoryGQL {
|
||||||
@@ -657,6 +708,10 @@ scalar JSON
|
|||||||
type Mutation {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||||
|
editShot(
|
||||||
|
shotId: Int!
|
||||||
|
fieldsToEdit: EditableShotFieldInputGQL!
|
||||||
|
): EditShotReturn!
|
||||||
addAnnotationToShot(
|
addAnnotationToShot(
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotationName: String!
|
annotationName: String!
|
||||||
@@ -694,6 +749,27 @@ input CreateBucketSetInput {
|
|||||||
buckets: [BucketInputGQL!]!
|
buckets: [BucketInputGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type EditShotReturn {
|
||||||
|
shot: ShotGQL
|
||||||
|
error: DoesNotOwnShotErr
|
||||||
|
}
|
||||||
|
|
||||||
|
type DoesNotOwnShotErr {
|
||||||
|
shotId: Int!
|
||||||
|
msg: String
|
||||||
|
}
|
||||||
|
|
||||||
|
input EditableShotFieldInputGQL {
|
||||||
|
intendedPocketType: PocketEnum
|
||||||
|
shotDirection: ShotDirectionEnum
|
||||||
|
spinType: SpinTypeEnum
|
||||||
|
targetPocketAngleDirection: ShotDirectionEnum
|
||||||
|
make: Boolean
|
||||||
|
backcut: Boolean
|
||||||
|
excludeFromStats: Boolean
|
||||||
|
notes: String
|
||||||
|
}
|
||||||
|
|
||||||
type AddShotAnnotationReturn {
|
type AddShotAnnotationReturn {
|
||||||
value: SuccessfulAddAddShotAnnotationErrors!
|
value: SuccessfulAddAddShotAnnotationErrors!
|
||||||
}
|
}
|
||||||
@@ -714,11 +790,6 @@ union DoesNotOwnShotErrOtherErrorNeedsNote =
|
|||||||
DoesNotOwnShotErr
|
DoesNotOwnShotErr
|
||||||
| OtherErrorNeedsNote
|
| OtherErrorNeedsNote
|
||||||
|
|
||||||
type DoesNotOwnShotErr {
|
|
||||||
shotId: Int!
|
|
||||||
msg: String
|
|
||||||
}
|
|
||||||
|
|
||||||
type OtherErrorNeedsNote {
|
type OtherErrorNeedsNote {
|
||||||
msg: String
|
msg: String
|
||||||
}
|
}
|
||||||
@@ -779,6 +850,7 @@ input VideoMetadataInput {
|
|||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
private: Boolean = null
|
private: Boolean = null
|
||||||
endStream: Boolean! = false
|
endStream: Boolean! = false
|
||||||
|
clientUploadStatus: ClientUploadStatusEnum = null
|
||||||
resolution: VideoResolution = null
|
resolution: VideoResolution = null
|
||||||
framesPerSecond: Float = null
|
framesPerSecond: Float = null
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user