Compare commits

..

12 Commits

Author SHA1 Message Date
35a8d71128 Make shots pagination optional 2024-08-16 20:17:10 -06: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
5 changed files with 69 additions and 8 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 = {
@@ -1041,6 +1043,7 @@ export type GetShotsPagination = {
export type GetUploadLinkReturn = {
__typename?: "GetUploadLinkReturn";
headers: Array<Maybe<Header>>;
uploadCompletionCursor?: Maybe<Scalars["Int"]["output"]>;
uploadUrl: Scalars["String"]["output"];
};
@@ -1178,6 +1181,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>;
@@ -1233,6 +1247,7 @@ export type QueryGetUsernamesArgs = {
};
export type QueryGetVideoArgs = {
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
videoId: Scalars["Int"]["input"];
};
@@ -1447,6 +1462,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 = {
@@ -1574,7 +1600,7 @@ export type GetVideoMakePercentageIntervalsQuery = {
export type GetShotsQueryVariables = Exact<{
filterInput: FilterInput;
shotsPagination: GetShotsPagination;
shotsPagination?: InputMaybe<GetShotsPagination>;
limit?: InputMaybe<Scalars["Int"]["input"]>;
includeCreatedAt?: Scalars["Boolean"]["input"];
includeUpdatedAt?: Scalars["Boolean"]["input"];
@@ -1703,6 +1729,7 @@ export type GetUsernamesQuery = {
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
videoId: Scalars["Int"]["input"];
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
}>;
export type GetStreamMonitoringDetailsQuery = {
@@ -2085,6 +2112,7 @@ export type GetUploadStreamsWithDetailsQuery = {
isCompleted: boolean;
lastIntendedSegmentBound?: number | null;
uploadCompletionCursor: number;
uploadsCompleted: number;
} | null;
}>;
pageInfo: {
@@ -2435,7 +2463,7 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
export const GetShotsDocument = gql`
query GetShots(
$filterInput: FilterInput!
$shotsPagination: GetShotsPagination!
$shotsPagination: GetShotsPagination = null
$limit: Int
$includeCreatedAt: Boolean! = false
$includeUpdatedAt: Boolean! = false
@@ -2966,8 +2994,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
@@ -3045,6 +3073,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
* const { data, loading, error } = useGetStreamMonitoringDetailsQuery({
* variables: {
* videoId: // value for 'videoId'
* debuggingJson: // value for 'debuggingJson'
* },
* });
*/
@@ -4209,6 +4238,7 @@ export const GetUploadStreamsWithDetailsDocument = gql`
isCompleted
lastIntendedSegmentBound
uploadCompletionCursor
uploadsCompleted
}
}
pageInfo {

View File

@@ -1,6 +1,6 @@
query GetShots(
$filterInput: FilterInput!
$shotsPagination: GetShotsPagination!
$shotsPagination: GetShotsPagination = null
$limit: Int
$includeCreatedAt: Boolean! = false
$includeUpdatedAt: Boolean! = false

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

View File

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

View File

@@ -30,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!]!
}
@@ -353,6 +353,8 @@ type IntPoint2D {
type VideoProcessingGQL {
errors: [VideoProcessingErrorGQL!]!
status: ProcessingStatusEnum!
statuses: [VideoProcessingStatusGQL!]!
}
type VideoProcessingErrorGQL {
@@ -361,6 +363,25 @@ 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!
@@ -396,6 +417,14 @@ 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!
@@ -425,6 +454,7 @@ input CreateBucketSetInput {
type GetUploadLinkReturn {
uploadUrl: String!
headers: [Header]!
uploadCompletionCursor: Int
}
type Header {