Add devMode

This commit is contained in:
Ivan Malison 2024-04-01 20:46:21 -06:00
parent 3bacc356af
commit ddd7e2d50b
2 changed files with 84 additions and 73 deletions

View File

@ -118,6 +118,8 @@ export type CueObjectFeaturesGql = {
export type DeployedConfigGql = { export type DeployedConfigGql = {
__typename?: "DeployedConfigGQL"; __typename?: "DeployedConfigGQL";
allowNewUsers: Scalars["Boolean"]["output"]; allowNewUsers: Scalars["Boolean"]["output"];
devMode: Scalars["Boolean"]["output"];
firebase: Scalars["Boolean"]["output"];
}; };
export enum DeviceTypeEnum { export enum DeviceTypeEnum {
@ -187,6 +189,7 @@ export type Mutation = {
editUploadStream: Scalars["Boolean"]["output"]; editUploadStream: Scalars["Boolean"]["output"];
getProfileImageUploadLink: GetUploadLinkReturn; getProfileImageUploadLink: GetUploadLinkReturn;
getUploadLink: GetUploadLinkReturn; getUploadLink: GetUploadLinkReturn;
setLoggerLevel: Scalars["Boolean"]["output"];
}; };
export type MutationCreateBucketSetArgs = { export type MutationCreateBucketSetArgs = {
@ -219,6 +222,11 @@ export type MutationGetUploadLinkArgs = {
videoId: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"];
}; };
export type MutationSetLoggerLevelArgs = {
level: Scalars["String"]["input"];
path: Scalars["String"]["input"];
};
export type OrFilter = { export type OrFilter = {
filters: Array<FilterInput>; filters: Array<FilterInput>;
}; };

View File

@ -2,18 +2,18 @@ type Query {
getAggregatedShotMetrics( getAggregatedShotMetrics(
aggregateInput: AggregateInputGQL! aggregateInput: AggregateInputGQL!
): [AggregateResultGQL!]! ): [AggregateResultGQL!]!
getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL
getDeployedConfig: DeployedConfigGQL!
getPlayTime(userId: Int!): UserPlayTimeGQL!
getVideo(videoId: Int!): VideoGQL!
getShots(filterInput: FilterInput!): [ShotGQL!]!
getBucketSet(keyName: String!): BucketSetGQL getBucketSet(keyName: String!): BucketSetGQL
getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL! getDeployedConfig: DeployedConfigGQL!
getVideoMakePercentageIntervals( getVideoMakePercentageIntervals(
videoId: ID! videoId: ID!
intervalDuration: Int! = 300 intervalDuration: Int! = 300
): [MakePercentageIntervalGQL!]! ): [MakePercentageIntervalGQL!]!
getShots(filterInput: FilterInput!): [ShotGQL!]!
getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL
getPlayTime(userId: Int!): UserPlayTimeGQL!
getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL!
getVideo(videoId: Int!): VideoGQL!
} }
type AggregateResultGQL { type AggregateResultGQL {
@ -103,47 +103,26 @@ input VideoTagClassInput {
name: String! name: String!
} }
type UserGQL { type BucketSetGQL {
id: Int! keyName: String!
firebaseUid: String! feature: String!
username: String! buckets: [BucketGQL!]!
profileImageUri: String
createdAt: DateTime
updatedAt: DateTime
} }
""" type BucketGQL {
Date with time (isoformat) rangeKey: String!
""" lowerBound: Float!
scalar DateTime }
type DeployedConfigGQL { type DeployedConfigGQL {
allowNewUsers: Boolean! allowNewUsers: Boolean!
firebase: Boolean!
devMode: Boolean!
} }
type UserPlayTimeGQL { type MakePercentageIntervalGQL {
totalSeconds: Float!
}
type VideoGQL {
id: Int!
owner: UserGQL
name: String
totalShotsMade: Int!
totalShots: Int!
makePercentage: Float! makePercentage: Float!
medianRun: Float elapsedTime: Float!
averageTimeBetweenShots: Float
createdAt: DateTime
updatedAt: DateTime
shots: [ShotGQL!]!
startTime: DateTime
endTime: DateTime
elapsedTime: Float
framesPerSecond: Int!
stream: UploadStreamGQL
tags: [VideoTag!]!
homographyHistory: [HomographyInfoGQL!]!
} }
type ShotGQL { type ShotGQL {
@ -158,6 +137,11 @@ type ShotGQL {
bankFeatures: BankFeaturesGQL bankFeatures: BankFeaturesGQL
} }
"""
Date with time (isoformat)
"""
scalar DateTime
type CueObjectFeaturesGQL { type CueObjectFeaturesGQL {
cueObjectDistance: Float cueObjectDistance: Float
cueObjectAngle: Float cueObjectAngle: Float
@ -182,6 +166,45 @@ enum WallTypeEnum {
SHORT SHORT
} }
type UserGQL {
id: Int!
firebaseUid: String!
username: String!
profileImageUri: String
createdAt: DateTime
updatedAt: DateTime
}
type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoFeedGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type VideoGQL {
id: Int!
owner: UserGQL
name: String
totalShotsMade: Int!
totalShots: Int!
makePercentage: Float!
medianRun: Float
averageTimeBetweenShots: Float
createdAt: DateTime
updatedAt: DateTime
shots: [ShotGQL!]!
startTime: DateTime
endTime: DateTime
elapsedTime: Float
framesPerSecond: Int!
stream: UploadStreamGQL
tags: [VideoTag!]!
homographyHistory: [HomographyInfoGQL!]!
}
type UploadStreamGQL { type UploadStreamGQL {
id: ID! id: ID!
linksRequested: Int! linksRequested: Int!
@ -235,42 +258,22 @@ type IntPoint2D {
y: Int! y: Int!
} }
type BucketSetGQL {
keyName: String!
feature: String!
buckets: [BucketGQL!]!
}
type BucketGQL {
rangeKey: String!
lowerBound: Float!
}
type VideoFeedGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type PageInfoGQL { type PageInfoGQL {
hasNextPage: Boolean! hasNextPage: Boolean!
endCursor: String endCursor: String
} }
type MakePercentageIntervalGQL {
makePercentage: Float!
elapsedTime: Float!
}
type Mutation { type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
setLoggerLevel(path: String!, level: String!): Boolean!
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
editProfileImageUri(profileImageUri: String!): UserGQL!
createUploadStream( createUploadStream(
videoMetadata: VideoMetadataInput! videoMetadata: VideoMetadataInput!
): CreateUploadStreamReturn! ): CreateUploadStreamReturn!
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn! getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean! editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
deleteVideo(videoId: Int!): Boolean! deleteVideo(videoId: Int!): Boolean!
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
editProfileImageUri(profileImageUri: String!): UserGQL!
} }
input CreateBucketSetInput { input CreateBucketSetInput {
@ -279,6 +282,16 @@ input CreateBucketSetInput {
buckets: [BucketInputGQL!]! buckets: [BucketInputGQL!]!
} }
type GetUploadLinkReturn {
uploadUrl: String!
headers: [Header]!
}
type Header {
key: String!
value: String!
}
type CreateUploadStreamReturn { type CreateUploadStreamReturn {
videoId: Int! videoId: Int!
} }
@ -310,13 +323,3 @@ enum DeviceTypeEnum {
ANDROID ANDROID
BROWSER BROWSER
} }
type GetUploadLinkReturn {
uploadUrl: String!
headers: [Header]!
}
type Header {
key: String!
value: String!
}