Compare commits

..

25 Commits

Author SHA1 Message Date
6d5669aaf8 Merge pull request 'Make table size nonnullable float' (#35) from mk/table-size-non-optional-float into master
Reviewed-on: #35
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-08-15 18:19:07 -06:00
2c583509a2 Make table size nonnullable and float
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-15 16:54:07 -07:00
3480637600 Merge pull request 'Add debugJson to getStreamMonitoringDetails' (#34) from loewy/add-debug-json into master
Reviewed-on: #34
2024-08-13 19:09:11 -06:00
f4665f51b1 add debugJson to getStreamMonitoringDetails
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-13 15:30:04 -07:00
810212dc12 Merge pull request 'Make pagination optional' (#33) from loewy/make-pagination-optional into master
Reviewed-on: #33
2024-08-13 14:53:15 -06:00
c3210df517 make pagination optional:
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-08-13 13:49:12 -07:00
9f5c354433 Merge pull request 'Tweaks for Debugging' (#32) from mk/tweeks-for-debugging into master
Reviewed-on: #32
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-08-13 14:43:39 -06:00
23d9fef2b1 Add Debugging JSON to input
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-13 13:28:36 -07:00
df3087de7d Add VideoProcessingStatus to VideoProcessing
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-08-13 12:42:45 -07:00
5dd8318dab Add status to VideoProcessing 2024-08-13 11:33:31 -07:00
56c8bcce20 Add uploadCompletionCursor to GetUploadLinkReturn
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-08-13 10:33:53 -07:00
1c4961db5b Merge pull request 'add uploadsCompleted to getUploadStreamWithDetails query' (#31) from loewy/add-uploads-completed into master
Reviewed-on: #31
Reviewed-by: countablecloud <countablecloud@gmail.com>
2024-08-13 11:22:09 -06:00
5e0d01ea5b add uploadsCompleted to getUploadStreamWithDetails query
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-13 11:21:11 -06:00
e8938621fc Merge pull request 'Support shots pagination' (#30) from kat/paginate-get-shots into master
Reviewed-on: #30
2024-08-09 15:12:51 -06:00
8c8dcdd8e1 Support shots pagination
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-09 15:10:36 -06:00
5085c9af90 Add waitFor 2024-08-09 00:59:38 -06:00
85bc743c8e Bump getShots default 2024-08-05 23:36:54 -06:00
b8efa644e3 Merge pull request 'Add frameIndex in operation for getVideo in homographyHistory' (#29) from loewy/add-frame-index-in-homography-history into master
Reviewed-on: #29
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-08-01 19:52:51 -06:00
c18628a4ca Add pagination to getShots 2024-08-01 19:49:57 -06:00
535e24c9c2 add frameindex in operations
All checks were successful
Tests / Tests (pull_request) Successful in 11s
2024-08-01 14:52:37 -07:00
04308b1003 Merge pull request 'Add addAnnotationToShot' (#28) from mk/add-add-annotation into master
Reviewed-on: #28
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-30 18:10:44 -06:00
43c626141e Add addAnnotationToShot
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-07-30 17:08:05 -07:00
c49266e4c1 Merge pull request 'Expose frames per second on video' (#27) from kat/add-video-duration into master
Reviewed-on: #27
2024-07-30 11:54:34 -06:00
6677b9232f Expose frames per second on video
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-07-30 11:53:34 -06:00
76e792be88 Merge pull request 'Expose stream type on video' (#26) from kat/create-get-video-for-clip-calculation into master
Reviewed-on: #26
2024-07-30 01:02:18 -06:00
5 changed files with 204 additions and 19 deletions

View File

@@ -30,6 +30,8 @@ export type Scalars = {
Float: { input: number; output: number };
/** Date with time (isoformat) */
DateTime: { input: any; output: any };
/** 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). */
JSON: { input: any; output: any };
};
export type AggregateInputGql = {
@@ -102,6 +104,10 @@ export type CreateUploadStreamReturn = {
videoId: Scalars["Int"]["output"];
};
export type CreatedAfter =
| { createdAt: Scalars["DateTime"]["input"]; videoId?: never }
| { createdAt?: never; videoId: Scalars["Int"]["input"] };
export type CueObjectFeaturesGql = {
__typename?: "CueObjectFeaturesGQL";
cueBallSpeed?: Maybe<Scalars["Float"]["output"]>;
@@ -155,6 +161,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -186,6 +193,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -217,6 +225,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -248,6 +257,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -279,6 +289,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -310,6 +321,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -341,6 +353,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -372,6 +385,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -403,6 +417,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -434,6 +449,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -465,6 +481,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -496,6 +513,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -527,6 +545,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -558,6 +577,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -589,6 +609,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -620,6 +641,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -651,6 +673,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -682,6 +705,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -713,6 +737,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -744,6 +769,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -775,6 +801,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -806,6 +833,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -837,6 +865,7 @@ export type FilterInput =
orFilters: Array<FilterInput>;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -868,6 +897,7 @@ export type FilterInput =
orFilters?: never;
shotDirection: Array<ShotDirectionEnum>;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -899,6 +929,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType: Array<Scalars["String"]["input"]>;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
@@ -930,6 +961,39 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize: Scalars["Float"]["input"];
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueAngleAfterObject?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
cueSpeedAfterObject?: never;
difficulty?: never;
falsePositiveScore?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags: Array<VideoTagInput>;
targetPocketDistance?: never;
userId?: never;
@@ -961,6 +1025,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance: RangeFilter;
userId?: never;
@@ -992,6 +1057,7 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId: Array<Scalars["Int"]["input"]>;
@@ -1023,15 +1089,22 @@ export type FilterInput =
orFilters?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId: Array<Scalars["Int"]["input"]>;
};
export type GetShotsPagination = {
createdAfter: CreatedAfter;
startFrameAfter: Scalars["Int"]["input"];
};
export type GetUploadLinkReturn = {
__typename?: "GetUploadLinkReturn";
headers: Array<Maybe<Header>>;
uploadCompletionCursor?: Maybe<Scalars["Int"]["output"]>;
uploadUrl: Scalars["String"]["output"];
};
@@ -1077,6 +1150,7 @@ export type MakePercentageIntervalGql = {
export type Mutation = {
__typename?: "Mutation";
addAnnotationToShot: Scalars["Boolean"]["output"];
createBucketSet: BucketSetGql;
createUploadStream: CreateUploadStreamReturn;
deleteVideo: Scalars["Boolean"]["output"];
@@ -1089,6 +1163,11 @@ export type Mutation = {
setSegmentDuration: Scalars["Boolean"]["output"];
};
export type MutationAddAnnotationToShotArgs = {
annotationName: Scalars["String"]["input"];
shotId: Scalars["Int"]["input"];
};
export type MutationCreateBucketSetArgs = {
params: CreateBucketSetInput;
};
@@ -1163,6 +1242,17 @@ export type PocketingIntentionFeaturesGql = {
targetPocketDistance?: Maybe<Scalars["Float"]["output"]>;
};
export enum ProcessingStatusEnum {
Created = "CREATED",
Failed = "FAILED",
Queued = "QUEUED",
ReextractingFeatures = "REEXTRACTING_FEATURES",
Running = "RUNNING",
Started = "STARTED",
Succeeded = "SUCCEEDED",
Suspended = "SUSPENDED",
}
export type Query = {
__typename?: "Query";
getAggregatedShotMetrics: Array<AggregateResultGql>;
@@ -1179,6 +1269,7 @@ export type Query = {
getVideo: VideoGql;
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
getVideos: Array<VideoGql>;
waitFor: Scalars["Float"]["output"];
};
export type QueryGetAggregatedShotMetricsArgs = {
@@ -1195,6 +1286,8 @@ export type QueryGetPlayTimeArgs = {
export type QueryGetShotsArgs = {
filterInput: FilterInput;
limit?: Scalars["Int"]["input"];
shotsPagination?: InputMaybe<GetShotsPagination>;
};
export type QueryGetUserArgs = {
@@ -1215,6 +1308,7 @@ export type QueryGetUsernamesArgs = {
};
export type QueryGetVideoArgs = {
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
videoId: Scalars["Int"]["input"];
};
@@ -1227,6 +1321,10 @@ export type QueryGetVideosArgs = {
videoIds: Array<Scalars["Int"]["input"]>;
};
export type QueryWaitForArgs = {
duration: Scalars["Float"]["input"];
};
export type RangeFilter = {
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
includeOnNone?: Scalars["Boolean"]["input"];
@@ -1278,6 +1376,7 @@ export type ShotGql = {
startFrame: Scalars["Int"]["output"];
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
user?: Maybe<UserGql>;
video?: Maybe<VideoGql>;
videoId: Scalars["Int"]["output"];
};
@@ -1409,7 +1508,7 @@ export type VideoMetadataInput = {
resolution?: InputMaybe<VideoResolution>;
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
tableSize?: InputMaybe<Scalars["String"]["input"]>;
tableSize?: InputMaybe<Scalars["Float"]["input"]>;
uploadStreamMetadataInput?: InputMaybe<UploadStreamMetadataInput>;
videoName?: InputMaybe<Scalars["String"]["input"]>;
};
@@ -1424,6 +1523,17 @@ export type VideoProcessingErrorGql = {
export type VideoProcessingGql = {
__typename?: "VideoProcessingGQL";
errors: Array<VideoProcessingErrorGql>;
status: ProcessingStatusEnum;
statuses: Array<VideoProcessingStatusGql>;
};
export type VideoProcessingStatusGql = {
__typename?: "VideoProcessingStatusGQL";
appVersion: Scalars["String"]["output"];
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
sequenceId: Scalars["Int"]["output"];
status: ProcessingStatusEnum;
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
};
export type VideoResolution = {
@@ -1551,6 +1661,8 @@ export type GetVideoMakePercentageIntervalsQuery = {
export type GetShotsQueryVariables = Exact<{
filterInput: FilterInput;
shotsPagination?: InputMaybe<GetShotsPagination>;
limit?: InputMaybe<Scalars["Int"]["input"]>;
includeCreatedAt?: Scalars["Boolean"]["input"];
includeUpdatedAt?: Scalars["Boolean"]["input"];
includeCueObjectFeatures?: Scalars["Boolean"]["input"];
@@ -1678,6 +1790,7 @@ export type GetUsernamesQuery = {
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
videoId: Scalars["Int"]["input"];
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
}>;
export type GetStreamMonitoringDetailsQuery = {
@@ -1845,6 +1958,7 @@ export type GetVideoQuery = {
} | null;
homographyHistory: Array<{
__typename?: "HomographyInfoGQL";
frameIndex: number;
crop: {
__typename?: "BoundingBoxGQL";
left: number;
@@ -1931,6 +2045,7 @@ export type GetVideoForClipTimesQuery = {
getVideo: {
__typename?: "VideoGQL";
id: number;
framesPerSecond: number;
playlist?: {
__typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>;
@@ -2058,6 +2173,7 @@ export type GetUploadStreamsWithDetailsQuery = {
isCompleted: boolean;
lastIntendedSegmentBound?: number | null;
uploadCompletionCursor: number;
uploadsCompleted: number;
} | null;
}>;
pageInfo: {
@@ -2408,6 +2524,8 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
export const GetShotsDocument = gql`
query GetShots(
$filterInput: FilterInput!
$shotsPagination: GetShotsPagination
$limit: Int
$includeCreatedAt: Boolean! = false
$includeUpdatedAt: Boolean! = false
$includeCueObjectFeatures: Boolean! = false
@@ -2420,7 +2538,11 @@ export const GetShotsDocument = gql`
$includeMake: Boolean! = false
$includeIntendedPocketType: Boolean! = false
) {
getShots(filterInput: $filterInput) {
getShots(
filterInput: $filterInput
shotsPagination: $shotsPagination
limit: $limit
) {
id
videoId
startFrame
@@ -2460,6 +2582,8 @@ export const GetShotsDocument = gql`
* const { data, loading, error } = useGetShotsQuery({
* variables: {
* filterInput: // value for 'filterInput'
* shotsPagination: // value for 'shotsPagination'
* limit: // value for 'limit'
* includeCreatedAt: // value for 'includeCreatedAt'
* includeUpdatedAt: // value for 'includeUpdatedAt'
* includeCueObjectFeatures: // value for 'includeCueObjectFeatures'
@@ -2931,8 +3055,8 @@ export type GetUsernamesQueryResult = Apollo.QueryResult<
GetUsernamesQueryVariables
>;
export const GetStreamMonitoringDetailsDocument = gql`
query GetStreamMonitoringDetails($videoId: Int!) {
getVideo(videoId: $videoId) {
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
id
totalShots
makePercentage
@@ -3010,6 +3134,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
* const { data, loading, error } = useGetStreamMonitoringDetailsQuery({
* variables: {
* videoId: // value for 'videoId'
* debuggingJson: // value for 'debuggingJson'
* },
* });
*/
@@ -3379,6 +3504,7 @@ export const GetVideoDocument = gql`
segmentDurations
}
homographyHistory {
frameIndex
crop {
left
top
@@ -3720,6 +3846,7 @@ export const GetVideoForClipTimesDocument = gql`
query GetVideoForClipTimes($videoId: Int!) {
getVideo(videoId: $videoId) {
id
framesPerSecond
playlist {
segmentDurations
}
@@ -4172,6 +4299,7 @@ export const GetUploadStreamsWithDetailsDocument = gql`
isCompleted
lastIntendedSegmentBound
uploadCompletionCursor
uploadsCompleted
}
}
pageInfo {

View File

@@ -1,5 +1,7 @@
query GetShots(
$filterInput: FilterInput!
$shotsPagination: GetShotsPagination
$limit: Int
$includeCreatedAt: Boolean! = false
$includeUpdatedAt: Boolean! = false
$includeCueObjectFeatures: Boolean! = false
@@ -12,7 +14,11 @@ query GetShots(
$includeMake: Boolean! = false
$includeIntendedPocketType: Boolean! = false
) {
getShots(filterInput: $filterInput) {
getShots(
filterInput: $filterInput
shotsPagination: $shotsPagination
limit: $limit
) {
id
videoId
startFrame

View File

@@ -1,5 +1,5 @@
query GetStreamMonitoringDetails($videoId: Int!) {
getVideo(videoId: $videoId) {
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
id
totalShots
makePercentage
@@ -139,6 +139,7 @@ query GetVideo($videoId: Int!) {
segmentDurations
}
homographyHistory {
frameIndex
crop {
left
top
@@ -215,6 +216,7 @@ query GetMedianRunForVideo($videoId: Int!) {
query GetVideoForClipTimes($videoId: Int!) {
getVideo(videoId: $videoId) {
id
framesPerSecond
playlist {
segmentDurations
}

View File

@@ -72,6 +72,7 @@ query GetUploadStreamsWithDetails(
isCompleted
lastIntendedSegmentBound
uploadCompletionCursor
uploadsCompleted
}
}
pageInfo {

View File

@@ -4,11 +4,16 @@ type Query {
): [AggregateResultGQL!]!
getBucketSet(keyName: String!): BucketSetGQL
getDeployedConfig: DeployedConfigGQL!
waitFor(duration: Float!): Float!
getVideoMakePercentageIntervals(
videoId: ID!
intervalDuration: Int! = 300
): [MakePercentageIntervalGQL!]!
getShots(filterInput: FilterInput!): [ShotGQL!]!
getShots(
filterInput: FilterInput!
shotsPagination: GetShotsPagination = null
limit: Int! = 500
): [ShotGQL!]!
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL
@@ -25,7 +30,7 @@ type Query {
filters: VideoFilterInput = null
): VideoHistoryGQL!
getUserTags: [TagGQL!]!
getVideo(videoId: Int!): VideoGQL!
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
getVideos(videoIds: [Int!]!): [VideoGQL!]!
}
@@ -91,6 +96,7 @@ input FilterInput @oneOf {
isLeftMiss: [Boolean!]
isRightMiss: [Boolean!]
isDirect: [Boolean!]
tableSize: Float
bankAngle: RangeFilter
bankDistance: RangeFilter
kickAngle: RangeFilter
@@ -168,6 +174,7 @@ type ShotGQL {
user: UserGQL
annotations: [ShotAnnotationGQL!]!
falsePositiveScore: Float
video: VideoGQL
}
"""
@@ -229,15 +236,6 @@ type ShotAnnotationTypeGQL {
name: String!
}
type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoHistoryGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type VideoGQL {
id: Int!
owner: UserGQL
@@ -356,6 +354,8 @@ type IntPoint2D {
type VideoProcessingGQL {
errors: [VideoProcessingErrorGQL!]!
status: ProcessingStatusEnum!
statuses: [VideoProcessingStatusGQL!]!
}
type VideoProcessingErrorGQL {
@@ -364,6 +364,44 @@ type VideoProcessingErrorGQL {
endSegmentIndex: Int
}
enum ProcessingStatusEnum {
STARTED
FAILED
SUCCEEDED
SUSPENDED
CREATED
QUEUED
RUNNING
REEXTRACTING_FEATURES
}
type VideoProcessingStatusGQL {
status: ProcessingStatusEnum!
appVersion: String!
sequenceId: Int!
createdAt: DateTime
updatedAt: DateTime
}
input GetShotsPagination {
createdAfter: CreatedAfter!
startFrameAfter: Int!
}
input CreatedAfter @oneOf {
videoId: Int
createdAt: DateTime
}
type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoHistoryGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type PageInfoGQL {
hasNextPage: Boolean!
endCursor: String
@@ -380,9 +418,18 @@ type TagGQL {
group: String
}
"""
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).
"""
scalar JSON
@specifiedBy(
url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf"
)
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
setLoggerLevel(path: String!, level: String!): Boolean!
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean!
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
editProfileImageUri(profileImageUri: String!): UserGQL!
createUploadStream(
@@ -408,6 +455,7 @@ input CreateBucketSetInput {
type GetUploadLinkReturn {
uploadUrl: String!
headers: [Header]!
uploadCompletionCursor: Int
}
type Header {
@@ -424,7 +472,7 @@ input VideoMetadataInput {
startTime: DateTime = null
endTime: DateTime = null
gameType: String = null
tableSize: String = null
tableSize: Float = null
uploadStreamMetadataInput: UploadStreamMetadataInput = null
lastIntendedSegmentBound: Int = null
streamSegmentType: StreamSegmentTypeEnum = null