Compare commits
8 Commits
update-agg
...
ce8cfd6a68
Author | SHA1 | Date | |
---|---|---|---|
ce8cfd6a68 | |||
|
234d4d0fa9 | ||
|
4d05d9a539 | ||
|
3f16310f67 | ||
204e289627 | |||
fd731b2ecf | |||
e733e413ef | |||
90fc81776f |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.direnv
|
@@ -129,7 +129,6 @@ export type Mutation = {
|
|||||||
createBucketSet: BucketSetGql;
|
createBucketSet: BucketSetGql;
|
||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
processVideoSource: ProcessVideoSourceReturn;
|
|
||||||
terminateUploadStream: Scalars['Boolean']['output'];
|
terminateUploadStream: Scalars['Boolean']['output'];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -146,18 +145,16 @@ export type MutationCreateUploadStreamArgs = {
|
|||||||
|
|
||||||
|
|
||||||
export type MutationGetUploadLinkArgs = {
|
export type MutationGetUploadLinkArgs = {
|
||||||
chunkIndex: Scalars['Int']['input'];
|
segmentIndex: Scalars['Int']['input'];
|
||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationProcessVideoSourceArgs = {
|
|
||||||
input: ProcessVideoSourceInput;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
export type MutationTerminateUploadStreamArgs = {
|
export type MutationTerminateUploadStreamArgs = {
|
||||||
|
gameType?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
tableSize?: InputMaybe<Scalars['String']['input']>;
|
||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
|
videoName?: InputMaybe<Scalars['String']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type OrFilter = {
|
export type OrFilter = {
|
||||||
@@ -176,19 +173,11 @@ export type PocketingIntentionFeaturesGql = {
|
|||||||
targetPocketDistance?: Maybe<Scalars['Float']['output']>;
|
targetPocketDistance?: Maybe<Scalars['Float']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ProcessVideoSourceInput = {
|
|
||||||
val: Scalars['Int']['input'];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ProcessVideoSourceReturn = {
|
|
||||||
__typename?: 'ProcessVideoSourceReturn';
|
|
||||||
val: Scalars['Int']['output'];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Query = {
|
export type Query = {
|
||||||
__typename?: 'Query';
|
__typename?: 'Query';
|
||||||
getAggregateShots: Array<AggregateResultGql>;
|
getAggregateShots: Array<AggregateResultGql>;
|
||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
|
getLoggedInUser?: Maybe<UserGql>;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
getUser?: Maybe<UserGql>;
|
getUser?: Maybe<UserGql>;
|
||||||
getVideo: VideoGql;
|
getVideo: VideoGql;
|
||||||
@@ -315,6 +304,7 @@ export type UploadStreamMetadata = {
|
|||||||
export type UserGql = {
|
export type UserGql = {
|
||||||
__typename?: 'UserGQL';
|
__typename?: 'UserGQL';
|
||||||
createdAt?: Maybe<Scalars['DateTime']['output']>;
|
createdAt?: Maybe<Scalars['DateTime']['output']>;
|
||||||
|
firebaseUid: Scalars['String']['output'];
|
||||||
id: Scalars['Int']['output'];
|
id: Scalars['Int']['output'];
|
||||||
statistics: UserStatisticsGql;
|
statistics: UserStatisticsGql;
|
||||||
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
||||||
@@ -394,7 +384,7 @@ export type CreateUploadStreamMutation = { __typename?: 'Mutation', createUpload
|
|||||||
|
|
||||||
export type GetUploadLinkMutationVariables = Exact<{
|
export type GetUploadLinkMutationVariables = Exact<{
|
||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
chunkIndex: Scalars['Int']['input'];
|
segmentIndex: Scalars['Int']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -402,6 +392,9 @@ export type GetUploadLinkMutation = { __typename?: 'Mutation', getUploadLink: {
|
|||||||
|
|
||||||
export type TerminateUploadStreamMutationVariables = Exact<{
|
export type TerminateUploadStreamMutationVariables = Exact<{
|
||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
|
videoName?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
gameType?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
tableSize?: InputMaybe<Scalars['String']['input']>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -569,8 +562,8 @@ export type CreateUploadStreamMutationHookResult = ReturnType<typeof useCreateUp
|
|||||||
export type CreateUploadStreamMutationResult = Apollo.MutationResult<CreateUploadStreamMutation>;
|
export type CreateUploadStreamMutationResult = Apollo.MutationResult<CreateUploadStreamMutation>;
|
||||||
export type CreateUploadStreamMutationOptions = Apollo.BaseMutationOptions<CreateUploadStreamMutation, CreateUploadStreamMutationVariables>;
|
export type CreateUploadStreamMutationOptions = Apollo.BaseMutationOptions<CreateUploadStreamMutation, CreateUploadStreamMutationVariables>;
|
||||||
export const GetUploadLinkDocument = gql`
|
export const GetUploadLinkDocument = gql`
|
||||||
mutation GetUploadLink($videoId: Int!, $chunkIndex: Int!) {
|
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||||
getUploadLink(videoId: $videoId, chunkIndex: $chunkIndex) {
|
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||||
uploadUrl
|
uploadUrl
|
||||||
linksRequested
|
linksRequested
|
||||||
}
|
}
|
||||||
@@ -592,7 +585,7 @@ export type GetUploadLinkMutationFn = Apollo.MutationFunction<GetUploadLinkMutat
|
|||||||
* const [getUploadLinkMutation, { data, loading, error }] = useGetUploadLinkMutation({
|
* const [getUploadLinkMutation, { data, loading, error }] = useGetUploadLinkMutation({
|
||||||
* variables: {
|
* variables: {
|
||||||
* videoId: // value for 'videoId'
|
* videoId: // value for 'videoId'
|
||||||
* chunkIndex: // value for 'chunkIndex'
|
* segmentIndex: // value for 'segmentIndex'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -604,8 +597,13 @@ export type GetUploadLinkMutationHookResult = ReturnType<typeof useGetUploadLink
|
|||||||
export type GetUploadLinkMutationResult = Apollo.MutationResult<GetUploadLinkMutation>;
|
export type GetUploadLinkMutationResult = Apollo.MutationResult<GetUploadLinkMutation>;
|
||||||
export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<GetUploadLinkMutation, GetUploadLinkMutationVariables>;
|
export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<GetUploadLinkMutation, GetUploadLinkMutationVariables>;
|
||||||
export const TerminateUploadStreamDocument = gql`
|
export const TerminateUploadStreamDocument = gql`
|
||||||
mutation TerminateUploadStream($videoId: Int!) {
|
mutation TerminateUploadStream($videoId: Int!, $videoName: String, $gameType: String, $tableSize: String) {
|
||||||
terminateUploadStream(videoId: $videoId)
|
terminateUploadStream(
|
||||||
|
videoId: $videoId
|
||||||
|
videoName: $videoName
|
||||||
|
gameType: $gameType
|
||||||
|
tableSize: $tableSize
|
||||||
|
)
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>;
|
export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>;
|
||||||
@@ -624,6 +622,9 @@ export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<TerminateU
|
|||||||
* const [terminateUploadStreamMutation, { data, loading, error }] = useTerminateUploadStreamMutation({
|
* const [terminateUploadStreamMutation, { data, loading, error }] = useTerminateUploadStreamMutation({
|
||||||
* variables: {
|
* variables: {
|
||||||
* videoId: // value for 'videoId'
|
* videoId: // value for 'videoId'
|
||||||
|
* videoName: // value for 'videoName'
|
||||||
|
* gameType: // value for 'gameType'
|
||||||
|
* tableSize: // value for 'tableSize'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
mutation CreateUploadStream(
|
mutation CreateUploadStream(
|
||||||
$videoName: String!,
|
$videoName: String!
|
||||||
$deviceType: DeviceTypeEnum,
|
$deviceType: DeviceTypeEnum
|
||||||
$osVersion: String,
|
$osVersion: String
|
||||||
$appVersion: String,
|
$appVersion: String
|
||||||
$browserName: String,
|
$browserName: String
|
||||||
$browserVersion: String,
|
$browserVersion: String
|
||||||
$locale: String,
|
$locale: String
|
||||||
$timezone: String,
|
$timezone: String
|
||||||
$networkType: String,
|
$networkType: String
|
||||||
$ipAddress: String
|
$ipAddress: String
|
||||||
) {
|
) {
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
@@ -28,13 +28,23 @@ mutation CreateUploadStream(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation GetUploadLink($videoId: Int!, $chunkIndex: Int!) {
|
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||||
getUploadLink(videoId: $videoId, chunkIndex: $chunkIndex) {
|
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||||
uploadUrl
|
uploadUrl
|
||||||
linksRequested
|
linksRequested
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation TerminateUploadStream($videoId: Int!) {
|
mutation TerminateUploadStream(
|
||||||
terminateUploadStream(videoId: $videoId)
|
$videoId: Int!
|
||||||
|
$videoName: String
|
||||||
|
$gameType: String
|
||||||
|
$tableSize: String
|
||||||
|
) {
|
||||||
|
terminateUploadStream(
|
||||||
|
videoId: $videoId
|
||||||
|
videoName: $videoName
|
||||||
|
gameType: $gameType
|
||||||
|
tableSize: $tableSize
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
type Query {
|
type Query {
|
||||||
getAggregateShots(bucketSets: [BucketSetInputGQL!]!): [AggregateResultGQL!]!
|
getAggregateShots(bucketSets: [BucketSetInputGQL!]!): [AggregateResultGQL!]!
|
||||||
getUser(userId: Int!): UserGQL
|
getUser(userId: Int!): UserGQL
|
||||||
|
getLoggedInUser: UserGQL
|
||||||
getVideo(videoId: Int!): VideoGQL!
|
getVideo(videoId: Int!): VideoGQL!
|
||||||
getShots(filterInput: FilterInput = null): [ShotGQL!]!
|
getShots(filterInput: FilterInput = null): [ShotGQL!]!
|
||||||
getBucketSet(keyName: String!): BucketSetGQL
|
getBucketSet(keyName: String!): BucketSetGQL
|
||||||
@@ -40,6 +41,7 @@ input BucketInputGQL {
|
|||||||
|
|
||||||
type UserGQL {
|
type UserGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
|
firebaseUid: String!
|
||||||
username: String!
|
username: String!
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
@@ -224,10 +226,9 @@ type BucketSetGQL {
|
|||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
processVideoSource(input: ProcessVideoSourceInput!): ProcessVideoSourceReturn!
|
|
||||||
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
|
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
|
||||||
getUploadLink(videoId: Int!, chunkIndex: Int!): GetUploadLinkReturn!
|
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||||
terminateUploadStream(videoId: Int!): Boolean!
|
terminateUploadStream(videoId: Int!, videoName: String = null, gameType: String = null, tableSize: String = null): Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
input CreateBucketSetInput {
|
input CreateBucketSetInput {
|
||||||
@@ -236,14 +237,6 @@ input CreateBucketSetInput {
|
|||||||
buckets: [BucketInputGQL!]!
|
buckets: [BucketInputGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProcessVideoSourceReturn {
|
|
||||||
val: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
input ProcessVideoSourceInput {
|
|
||||||
val: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user