Compare commits
10 Commits
kat/add-st
...
kat/expose
Author | SHA1 | Date | |
---|---|---|---|
f9b02f65e0 | |||
ba36bc709c | |||
4005416233 | |||
db4a6315cd | |||
172df69340 | |||
a030a0ef16 | |||
7a6cc2739f | |||
41c9701e18 | |||
16e79ed608 | |||
f401e1879b |
105
src/index.tsx
105
src/index.tsx
@@ -34,6 +34,16 @@ export type Scalars = {
|
||||
JSON: { input: any; output: any };
|
||||
};
|
||||
|
||||
export type AddShotAnnotationErrors = {
|
||||
__typename?: "AddShotAnnotationErrors";
|
||||
error: DoesNotOwnShotErrOtherErrorNeedsNote;
|
||||
};
|
||||
|
||||
export type AddShotAnnotationReturn = {
|
||||
__typename?: "AddShotAnnotationReturn";
|
||||
value: SuccessfulAddAddShotAnnotationErrors;
|
||||
};
|
||||
|
||||
export type AggregateInputGql = {
|
||||
aggregations: Array<AggregationInput>;
|
||||
filterInput?: InputMaybe<FilterInput>;
|
||||
@@ -131,6 +141,16 @@ export enum DeviceTypeEnum {
|
||||
Ios = "IOS",
|
||||
}
|
||||
|
||||
export type DoesNotOwnShotErr = {
|
||||
__typename?: "DoesNotOwnShotErr";
|
||||
msg?: Maybe<Scalars["String"]["output"]>;
|
||||
shotId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
| DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote;
|
||||
|
||||
export type EnumAggregation = {
|
||||
feature: Scalars["String"]["input"];
|
||||
};
|
||||
@@ -1097,6 +1117,16 @@ export type FilterInput =
|
||||
videoId: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type GetProfileUploadLinkErrors = {
|
||||
__typename?: "GetProfileUploadLinkErrors";
|
||||
error: TooManyProfileImageUploadsErr;
|
||||
};
|
||||
|
||||
export type GetProfileUploadLinkReturn = {
|
||||
__typename?: "GetProfileUploadLinkReturn";
|
||||
value: UploadLinkGetProfileUploadLinkErrors;
|
||||
};
|
||||
|
||||
export type GetShotsPagination = {
|
||||
createdAfter: CreatedAfter;
|
||||
startFrameAfter: Scalars["Int"]["input"];
|
||||
@@ -1169,14 +1199,14 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
||||
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: Scalars["Boolean"]["output"];
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||
@@ -1184,6 +1214,7 @@ export type Mutation = {
|
||||
|
||||
export type MutationAddAnnotationToShotArgs = {
|
||||
annotationName: Scalars["String"]["input"];
|
||||
notes?: InputMaybe<Scalars["String"]["input"]>;
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
@@ -1237,6 +1268,11 @@ export type NoInitForChunkedUploadErr = {
|
||||
segmentType: StreamSegmentTypeEnum;
|
||||
};
|
||||
|
||||
export type OtherErrorNeedsNote = {
|
||||
__typename?: "OtherErrorNeedsNote";
|
||||
msg?: Maybe<Scalars["String"]["output"]>;
|
||||
};
|
||||
|
||||
export type PageInfoGql = {
|
||||
__typename?: "PageInfoGQL";
|
||||
endCursor?: Maybe<Scalars["String"]["output"]>;
|
||||
@@ -1313,6 +1349,10 @@ export type QueryGetPlayTimeArgs = {
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetShotAnnotationTypesArgs = {
|
||||
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
};
|
||||
|
||||
export type QueryGetShotsArgs = {
|
||||
filterInput: FilterInput;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
@@ -1377,6 +1417,7 @@ export type ShotAnnotationGql = {
|
||||
__typename?: "ShotAnnotationGQL";
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
creator: UserGql;
|
||||
errorDefault: Scalars["Boolean"]["output"];
|
||||
notes: Scalars["String"]["output"];
|
||||
shotId: Scalars["Int"]["output"];
|
||||
type: ShotAnnotationTypeGql;
|
||||
@@ -1427,6 +1468,15 @@ export enum StreamSegmentTypeEnum {
|
||||
RbChunkedMp4 = "RB_CHUNKED_MP4",
|
||||
}
|
||||
|
||||
export type SuccessfulAdd = {
|
||||
__typename?: "SuccessfulAdd";
|
||||
value: Scalars["Boolean"]["output"];
|
||||
};
|
||||
|
||||
export type SuccessfulAddAddShotAnnotationErrors =
|
||||
| AddShotAnnotationErrors
|
||||
| SuccessfulAdd;
|
||||
|
||||
export type TagGql = {
|
||||
__typename?: "TagGQL";
|
||||
group?: Maybe<Scalars["String"]["output"]>;
|
||||
@@ -1452,6 +1502,10 @@ export type UploadLink = {
|
||||
uploadUrl: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type UploadLinkGetProfileUploadLinkErrors =
|
||||
| GetProfileUploadLinkErrors
|
||||
| UploadLink;
|
||||
|
||||
export type UploadLinkGetUploadLinkErrors = GetUploadLinkErrors | UploadLink;
|
||||
|
||||
export type UploadSegmentGql = {
|
||||
@@ -1741,6 +1795,17 @@ export type GetShotsQuery = {
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||
video?: {
|
||||
__typename?: "VideoGQL";
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
resolution: {
|
||||
__typename?: "VideoResolutionGQL";
|
||||
width?: number | null;
|
||||
height?: number | null;
|
||||
};
|
||||
} | null;
|
||||
} | null;
|
||||
cueObjectFeatures?: {
|
||||
__typename?: "CueObjectFeaturesGQL";
|
||||
cueObjectDistance?: number | null;
|
||||
@@ -1777,19 +1842,14 @@ export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||
export type GetProfileImageUploadLinkMutation = {
|
||||
__typename?: "Mutation";
|
||||
getProfileImageUploadLink: {
|
||||
__typename?: "GetUploadLinkReturn";
|
||||
__typename?: "GetProfileUploadLinkReturn";
|
||||
value:
|
||||
| {
|
||||
__typename?: "GetUploadLinkErrors";
|
||||
error:
|
||||
| { __typename?: "MustHaveSetForUploadLinkErr" }
|
||||
| { __typename?: "NoInitForChunkedUploadErr" }
|
||||
| { __typename?: "ProcessingFailedErr" }
|
||||
| { __typename?: "SegmentAlreadyUploadedErr" }
|
||||
| {
|
||||
__typename?: "TooManyProfileImageUploadsErr";
|
||||
linksRequested: number;
|
||||
};
|
||||
__typename?: "GetProfileUploadLinkErrors";
|
||||
error: {
|
||||
__typename?: "TooManyProfileImageUploadsErr";
|
||||
linksRequested: number;
|
||||
};
|
||||
}
|
||||
| {
|
||||
__typename?: "UploadLink";
|
||||
@@ -1995,6 +2055,7 @@ export type GetVideosQuery = {
|
||||
getVideos: Array<{
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
framesPerSecond: number;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
@@ -2192,6 +2253,10 @@ export type GetUploadLinkMutation = {
|
||||
value: string;
|
||||
} | null>;
|
||||
};
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
uploadCompletionCursor: number;
|
||||
} | null;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2668,6 +2733,14 @@ export const GetShotsDocument = gql`
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
@@ -2843,7 +2916,7 @@ export const GetProfileImageUploadLinkDocument = gql`
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
... on GetProfileUploadLinkErrors {
|
||||
error {
|
||||
... on TooManyProfileImageUploadsErr {
|
||||
linksRequested
|
||||
@@ -3549,6 +3622,7 @@ export const GetVideosDocument = gql`
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
framesPerSecond
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
@@ -4142,6 +4216,9 @@ export const GetUploadLinkDocument = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
stream {
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@@ -27,6 +27,14 @@ query GetShots(
|
||||
id
|
||||
}
|
||||
falsePositiveScore
|
||||
video {
|
||||
stream {
|
||||
resolution {
|
||||
width
|
||||
height
|
||||
}
|
||||
}
|
||||
}
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
|
@@ -8,7 +8,7 @@ mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
value
|
||||
}
|
||||
}
|
||||
... on GetUploadLinkErrors {
|
||||
... on GetProfileUploadLinkErrors {
|
||||
error {
|
||||
... on TooManyProfileImageUploadsErr {
|
||||
linksRequested
|
||||
|
@@ -118,6 +118,7 @@ query GetVideoDetails($videoId: Int!) {
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
framesPerSecond
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
|
@@ -34,6 +34,9 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
stream {
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
114
src/schema.gql
114
src/schema.gql
@@ -14,7 +14,7 @@ type Query {
|
||||
shotsPagination: GetShotsPagination = null
|
||||
limit: Int! = 500
|
||||
): [ShotGQL!]!
|
||||
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
|
||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||
getUser(userId: Int!): UserGQL
|
||||
getLoggedInUser: UserGQL
|
||||
getUsernames(
|
||||
@@ -231,6 +231,7 @@ type ShotAnnotationGQL {
|
||||
type: ShotAnnotationTypeGQL!
|
||||
creator: UserGQL!
|
||||
notes: String!
|
||||
errorDefault: Boolean!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
@@ -434,8 +435,14 @@ scalar JSON
|
||||
type Mutation {
|
||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean!
|
||||
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
notes: String = null
|
||||
): AddShotAnnotationReturn!
|
||||
getProfileImageUploadLink(
|
||||
fileExt: String = ".png"
|
||||
): GetProfileUploadLinkReturn!
|
||||
editProfileImageUri(profileImageUri: String!): UserGQL!
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@@ -457,12 +464,42 @@ input CreateBucketSetInput {
|
||||
buckets: [BucketInputGQL!]!
|
||||
}
|
||||
|
||||
type GetUploadLinkReturn {
|
||||
value: UploadLinkGetUploadLinkErrors!
|
||||
stream: UploadStreamGQL
|
||||
type AddShotAnnotationReturn {
|
||||
value: SuccessfulAddAddShotAnnotationErrors!
|
||||
}
|
||||
|
||||
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
||||
union SuccessfulAddAddShotAnnotationErrors =
|
||||
SuccessfulAdd
|
||||
| AddShotAnnotationErrors
|
||||
|
||||
type SuccessfulAdd {
|
||||
value: Boolean!
|
||||
}
|
||||
|
||||
type AddShotAnnotationErrors {
|
||||
error: DoesNotOwnShotErrOtherErrorNeedsNote!
|
||||
}
|
||||
|
||||
union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote
|
||||
|
||||
type DoesNotOwnShotErr {
|
||||
shotId: Int!
|
||||
msg: String
|
||||
}
|
||||
|
||||
type OtherErrorNeedsNote {
|
||||
msg: String
|
||||
}
|
||||
|
||||
type GetProfileUploadLinkReturn {
|
||||
value: UploadLinkGetProfileUploadLinkErrors!
|
||||
}
|
||||
|
||||
union UploadLinkGetProfileUploadLinkErrors =
|
||||
UploadLink
|
||||
| GetProfileUploadLinkErrors
|
||||
|
||||
type UploadLink {
|
||||
uploadUrl: String!
|
||||
@@ -474,32 +511,8 @@ type Header {
|
||||
value: String!
|
||||
}
|
||||
|
||||
type GetUploadLinkErrors {
|
||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr!
|
||||
}
|
||||
|
||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr =
|
||||
MustHaveSetForUploadLinkErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| ProcessingFailedErr
|
||||
| NoInitForChunkedUploadErr
|
||||
| TooManyProfileImageUploadsErr
|
||||
|
||||
type MustHaveSetForUploadLinkErr {
|
||||
resolution: Boolean
|
||||
framesPerSecond: Boolean
|
||||
}
|
||||
|
||||
type SegmentAlreadyUploadedErr {
|
||||
segmentId: Int!
|
||||
}
|
||||
|
||||
type ProcessingFailedErr {
|
||||
processing: VideoProcessingGQL!
|
||||
}
|
||||
|
||||
type NoInitForChunkedUploadErr {
|
||||
segmentType: StreamSegmentTypeEnum!
|
||||
type GetProfileUploadLinkErrors {
|
||||
error: TooManyProfileImageUploadsErr!
|
||||
}
|
||||
|
||||
type TooManyProfileImageUploadsErr {
|
||||
@@ -546,3 +559,38 @@ input VideoResolution {
|
||||
width: Int!
|
||||
height: Int!
|
||||
}
|
||||
|
||||
type GetUploadLinkReturn {
|
||||
value: UploadLinkGetUploadLinkErrors!
|
||||
stream: UploadStreamGQL
|
||||
}
|
||||
|
||||
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
||||
|
||||
type GetUploadLinkErrors {
|
||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr!
|
||||
}
|
||||
|
||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr =
|
||||
MustHaveSetForUploadLinkErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| ProcessingFailedErr
|
||||
| NoInitForChunkedUploadErr
|
||||
| TooManyProfileImageUploadsErr
|
||||
|
||||
type MustHaveSetForUploadLinkErr {
|
||||
resolution: Boolean
|
||||
framesPerSecond: Boolean
|
||||
}
|
||||
|
||||
type SegmentAlreadyUploadedErr {
|
||||
segmentId: Int!
|
||||
}
|
||||
|
||||
type ProcessingFailedErr {
|
||||
processing: VideoProcessingGQL!
|
||||
}
|
||||
|
||||
type NoInitForChunkedUploadErr {
|
||||
segmentType: StreamSegmentTypeEnum!
|
||||
}
|
||||
|
Reference in New Issue
Block a user