Compare commits
1 Commits
e431a1751f
...
kat/reserv
| Author | SHA1 | Date | |
|---|---|---|---|
| 15be60f2ca |
195
src/index.tsx
195
src/index.tsx
@@ -1747,7 +1747,6 @@ export type Mutation = {
|
|||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||||
updateShotAnnotations: UpdateShotAnnotationReturn;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationAddAnnotationToShotArgs = {
|
export type MutationAddAnnotationToShotArgs = {
|
||||||
@@ -1801,11 +1800,6 @@ export type MutationSetSegmentDurationArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationUpdateShotAnnotationsArgs = {
|
|
||||||
annotations: Array<UpdateAnnotationInputGql>;
|
|
||||||
shotId: Scalars["Int"]["input"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type NoInitForChunkedUploadErr = {
|
export type NoInitForChunkedUploadErr = {
|
||||||
__typename?: "NoInitForChunkedUploadErr";
|
__typename?: "NoInitForChunkedUploadErr";
|
||||||
segmentType: StreamSegmentTypeEnum;
|
segmentType: StreamSegmentTypeEnum;
|
||||||
@@ -2067,15 +2061,6 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|||||||
| AddShotAnnotationErrors
|
| AddShotAnnotationErrors
|
||||||
| SuccessfulAdd;
|
| SuccessfulAdd;
|
||||||
|
|
||||||
export type SuccessfulUpdate = {
|
|
||||||
__typename?: "SuccessfulUpdate";
|
|
||||||
value: Scalars["Boolean"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SuccessfulUpdateUpdateShotAnnotationErrors =
|
|
||||||
| SuccessfulUpdate
|
|
||||||
| UpdateShotAnnotationErrors;
|
|
||||||
|
|
||||||
export type TagGql = {
|
export type TagGql = {
|
||||||
__typename?: "TagGQL";
|
__typename?: "TagGQL";
|
||||||
group?: Maybe<Scalars["String"]["output"]>;
|
group?: Maybe<Scalars["String"]["output"]>;
|
||||||
@@ -2113,21 +2098,6 @@ export type TooManyProfileImageUploadsErr = {
|
|||||||
linksRequested: Scalars["Int"]["output"];
|
linksRequested: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UpdateAnnotationInputGql = {
|
|
||||||
name: Scalars["String"]["input"];
|
|
||||||
notes?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type UpdateShotAnnotationErrors = {
|
|
||||||
__typename?: "UpdateShotAnnotationErrors";
|
|
||||||
error?: Maybe<DoesNotOwnShotErr>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type UpdateShotAnnotationReturn = {
|
|
||||||
__typename?: "UpdateShotAnnotationReturn";
|
|
||||||
value: SuccessfulUpdateUpdateShotAnnotationErrors;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type UploadLink = {
|
export type UploadLink = {
|
||||||
__typename?: "UploadLink";
|
__typename?: "UploadLink";
|
||||||
headers: Array<Maybe<Header>>;
|
headers: Array<Maybe<Header>>;
|
||||||
@@ -2943,59 +2913,6 @@ export type GetVideosQuery = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type VideoStreamMetadataFragment = {
|
|
||||||
__typename?: "VideoGQL";
|
|
||||||
id: number;
|
|
||||||
framesPerSecond: number;
|
|
||||||
stream?: {
|
|
||||||
__typename?: "UploadStreamGQL";
|
|
||||||
id: string;
|
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
|
||||||
segments: Array<{
|
|
||||||
__typename?: "UploadSegmentGQL";
|
|
||||||
uploaded: boolean;
|
|
||||||
valid: boolean;
|
|
||||||
segmentIndex: number;
|
|
||||||
endFrameIndex?: number | null;
|
|
||||||
framesPerSecond?: number | null;
|
|
||||||
}>;
|
|
||||||
} | null;
|
|
||||||
playlist?: {
|
|
||||||
__typename?: "HLSPlaylistGQL";
|
|
||||||
segmentDurations: Array<number>;
|
|
||||||
} | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetVideoForShotTimeQueryVariables = Exact<{
|
|
||||||
videoId: Scalars["Int"]["input"];
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type GetVideoForShotTimeQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getVideo: {
|
|
||||||
__typename?: "VideoGQL";
|
|
||||||
id: number;
|
|
||||||
framesPerSecond: number;
|
|
||||||
stream?: {
|
|
||||||
__typename?: "UploadStreamGQL";
|
|
||||||
id: string;
|
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
|
||||||
segments: Array<{
|
|
||||||
__typename?: "UploadSegmentGQL";
|
|
||||||
uploaded: boolean;
|
|
||||||
valid: boolean;
|
|
||||||
segmentIndex: number;
|
|
||||||
endFrameIndex?: number | null;
|
|
||||||
framesPerSecond?: number | null;
|
|
||||||
}>;
|
|
||||||
} | null;
|
|
||||||
playlist?: {
|
|
||||||
__typename?: "HLSPlaylistGQL";
|
|
||||||
segmentDurations: Array<number>;
|
|
||||||
} | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetVideoQueryVariables = Exact<{
|
export type GetVideoQueryVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
}>;
|
}>;
|
||||||
@@ -3351,26 +3268,6 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const VideoStreamMetadataFragmentDoc = gql`
|
|
||||||
fragment VideoStreamMetadata on VideoGQL {
|
|
||||||
id
|
|
||||||
framesPerSecond
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
streamSegmentType
|
|
||||||
segments {
|
|
||||||
uploaded
|
|
||||||
valid
|
|
||||||
segmentIndex
|
|
||||||
endFrameIndex
|
|
||||||
framesPerSecond
|
|
||||||
}
|
|
||||||
}
|
|
||||||
playlist {
|
|
||||||
segmentDurations
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export const GetAggregatedShotMetricsDocument = gql`
|
export const GetAggregatedShotMetricsDocument = gql`
|
||||||
query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
||||||
getAggregatedShotMetrics(aggregateInput: $aggregateInput) {
|
getAggregatedShotMetrics(aggregateInput: $aggregateInput) {
|
||||||
@@ -4986,10 +4883,24 @@ export type GetVideoDetailsQueryResult = Apollo.QueryResult<
|
|||||||
export const GetVideosDocument = gql`
|
export const GetVideosDocument = gql`
|
||||||
query GetVideos($videoIds: [Int!]!) {
|
query GetVideos($videoIds: [Int!]!) {
|
||||||
getVideos(videoIds: $videoIds) {
|
getVideos(videoIds: $videoIds) {
|
||||||
...VideoStreamMetadata
|
id
|
||||||
|
framesPerSecond
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
segments {
|
||||||
|
uploaded
|
||||||
|
valid
|
||||||
|
segmentIndex
|
||||||
|
endFrameIndex
|
||||||
|
framesPerSecond
|
||||||
|
}
|
||||||
|
}
|
||||||
|
playlist {
|
||||||
|
segmentDurations
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
${VideoStreamMetadataFragmentDoc}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -5052,80 +4963,6 @@ export type GetVideosQueryResult = Apollo.QueryResult<
|
|||||||
GetVideosQuery,
|
GetVideosQuery,
|
||||||
GetVideosQueryVariables
|
GetVideosQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetVideoForShotTimeDocument = gql`
|
|
||||||
query GetVideoForShotTime($videoId: Int!) {
|
|
||||||
getVideo(videoId: $videoId) {
|
|
||||||
...VideoStreamMetadata
|
|
||||||
}
|
|
||||||
}
|
|
||||||
${VideoStreamMetadataFragmentDoc}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetVideoForShotTimeQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetVideoForShotTimeQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetVideoForShotTimeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
||||||
* you can use to render your UI.
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const { data, loading, error } = useGetVideoForShotTimeQuery({
|
|
||||||
* variables: {
|
|
||||||
* videoId: // value for 'videoId'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetVideoForShotTimeQuery(
|
|
||||||
baseOptions: Apollo.QueryHookOptions<
|
|
||||||
GetVideoForShotTimeQuery,
|
|
||||||
GetVideoForShotTimeQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<
|
|
||||||
GetVideoForShotTimeQuery,
|
|
||||||
GetVideoForShotTimeQueryVariables
|
|
||||||
>(GetVideoForShotTimeDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetVideoForShotTimeLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetVideoForShotTimeQuery,
|
|
||||||
GetVideoForShotTimeQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<
|
|
||||||
GetVideoForShotTimeQuery,
|
|
||||||
GetVideoForShotTimeQueryVariables
|
|
||||||
>(GetVideoForShotTimeDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetVideoForShotTimeSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetVideoForShotTimeQuery,
|
|
||||||
GetVideoForShotTimeQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetVideoForShotTimeQuery,
|
|
||||||
GetVideoForShotTimeQueryVariables
|
|
||||||
>(GetVideoForShotTimeDocument, options);
|
|
||||||
}
|
|
||||||
export type GetVideoForShotTimeQueryHookResult = ReturnType<
|
|
||||||
typeof useGetVideoForShotTimeQuery
|
|
||||||
>;
|
|
||||||
export type GetVideoForShotTimeLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetVideoForShotTimeLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetVideoForShotTimeSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetVideoForShotTimeSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetVideoForShotTimeQueryResult = Apollo.QueryResult<
|
|
||||||
GetVideoForShotTimeQuery,
|
|
||||||
GetVideoForShotTimeQueryVariables
|
|
||||||
>;
|
|
||||||
export const GetVideoDocument = gql`
|
export const GetVideoDocument = gql`
|
||||||
query GetVideo($videoId: Int!) {
|
query GetVideo($videoId: Int!) {
|
||||||
getVideo(videoId: $videoId) {
|
getVideo(videoId: $videoId) {
|
||||||
|
|||||||
@@ -117,34 +117,25 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
|
|
||||||
query GetVideos($videoIds: [Int!]!) {
|
query GetVideos($videoIds: [Int!]!) {
|
||||||
getVideos(videoIds: $videoIds) {
|
getVideos(videoIds: $videoIds) {
|
||||||
...VideoStreamMetadata
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment VideoStreamMetadata on VideoGQL {
|
|
||||||
id
|
|
||||||
framesPerSecond
|
|
||||||
stream {
|
|
||||||
id
|
id
|
||||||
streamSegmentType
|
framesPerSecond
|
||||||
segments {
|
stream {
|
||||||
uploaded
|
id
|
||||||
valid
|
streamSegmentType
|
||||||
segmentIndex
|
segments {
|
||||||
endFrameIndex
|
uploaded
|
||||||
framesPerSecond
|
valid
|
||||||
|
segmentIndex
|
||||||
|
endFrameIndex
|
||||||
|
framesPerSecond
|
||||||
|
}
|
||||||
|
}
|
||||||
|
playlist {
|
||||||
|
segmentDurations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
playlist {
|
|
||||||
segmentDurations
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoForShotTime($videoId: Int!) {
|
|
||||||
getVideo(videoId: $videoId) {
|
|
||||||
...VideoStreamMetadata
|
|
||||||
}
|
|
||||||
}
|
|
||||||
query GetVideo($videoId: Int!) {
|
query GetVideo($videoId: Int!) {
|
||||||
getVideo(videoId: $videoId) {
|
getVideo(videoId: $videoId) {
|
||||||
id
|
id
|
||||||
|
|||||||
@@ -545,10 +545,6 @@ type Mutation {
|
|||||||
annotationName: String!
|
annotationName: String!
|
||||||
notes: String = null
|
notes: String = null
|
||||||
): AddShotAnnotationReturn!
|
): AddShotAnnotationReturn!
|
||||||
updateShotAnnotations(
|
|
||||||
shotId: Int!
|
|
||||||
annotations: [UpdateAnnotationInputGQL!]!
|
|
||||||
): UpdateShotAnnotationReturn!
|
|
||||||
getProfileImageUploadLink(
|
getProfileImageUploadLink(
|
||||||
fileExt: String = ".png"
|
fileExt: String = ".png"
|
||||||
): GetProfileUploadLinkReturn!
|
): GetProfileUploadLinkReturn!
|
||||||
@@ -602,27 +598,6 @@ type OtherErrorNeedsNote {
|
|||||||
msg: String
|
msg: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateShotAnnotationReturn {
|
|
||||||
value: SuccessfulUpdateUpdateShotAnnotationErrors!
|
|
||||||
}
|
|
||||||
|
|
||||||
union SuccessfulUpdateUpdateShotAnnotationErrors =
|
|
||||||
SuccessfulUpdate
|
|
||||||
| UpdateShotAnnotationErrors
|
|
||||||
|
|
||||||
type SuccessfulUpdate {
|
|
||||||
value: Boolean!
|
|
||||||
}
|
|
||||||
|
|
||||||
type UpdateShotAnnotationErrors {
|
|
||||||
error: DoesNotOwnShotErr
|
|
||||||
}
|
|
||||||
|
|
||||||
input UpdateAnnotationInputGQL {
|
|
||||||
name: String!
|
|
||||||
notes: String = null
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetProfileUploadLinkReturn {
|
type GetProfileUploadLinkReturn {
|
||||||
value: UploadLinkGetProfileUploadLinkErrors!
|
value: UploadLinkGetProfileUploadLinkErrors!
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user