Compare commits
17 Commits
42601f9587
...
loewy/stor
| Author | SHA1 | Date | |
|---|---|---|---|
| c388932271 | |||
| bc52145a9e | |||
| 5c286f2bcf | |||
| d636c298f8 | |||
| 681320c62d | |||
| 49f409f60b | |||
| e7fc6c147d | |||
| 10c3f6de53 | |||
|
|
d7b1aaee13 | ||
| b477590137 | |||
|
|
d428a8caa2 | ||
| 48207e12ee | |||
|
|
1d403f8155 | ||
| 6758f3e77a | |||
|
|
79979b001a | ||
| 49fbebd0c2 | |||
| 9219451c8d |
@@ -28,6 +28,8 @@ export type Scalars = {
|
||||
Boolean: { input: boolean; output: boolean };
|
||||
Int: { input: number; output: number };
|
||||
Float: { input: number; output: number };
|
||||
/** Integer value that can exceed GraphQL Int's 32-bit range. */
|
||||
BigInt: { input: any; output: any };
|
||||
/** Date (isoformat) */
|
||||
Date: { input: any; output: any };
|
||||
/** Date with time (isoformat) */
|
||||
@@ -327,6 +329,7 @@ export type EditShotReturn = {
|
||||
|
||||
export type EditUserInputGql = {
|
||||
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
bio?: InputMaybe<Scalars["String"]["input"]>;
|
||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
@@ -2852,11 +2855,13 @@ export type Query = {
|
||||
getOrderedShots: GetShotsResult;
|
||||
getPlayTime: UserPlayTimeGql;
|
||||
getQuotaStatus: QuotaStatusGql;
|
||||
getResolvedTier: ResolvedTierGql;
|
||||
getRuns: GetRunsResult;
|
||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||
getShots: Array<ShotGql>;
|
||||
getShotsByIds: Array<ShotGql>;
|
||||
getShotsWithMetadata: GetShotsResult;
|
||||
getStorageStatus?: Maybe<StorageStatusGql>;
|
||||
getTableState: TableStateGql;
|
||||
getUser?: Maybe<UserGql>;
|
||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||
@@ -3157,6 +3162,18 @@ export type RequestedMedalsGql = {
|
||||
totalMakes10000?: Maybe<MedalGql>;
|
||||
};
|
||||
|
||||
export type ResolvedTierGql = {
|
||||
__typename?: "ResolvedTierGQL";
|
||||
capabilities: Array<Scalars["String"]["output"]>;
|
||||
entitlementEndsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
entitlementSource?: Maybe<EntitlementSourceTypeEnum>;
|
||||
entitlementStartsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
entitlementStatus?: Maybe<Scalars["String"]["output"]>;
|
||||
hasActiveSubscription: Scalars["Boolean"]["output"];
|
||||
tierDisplayName: Scalars["String"]["output"];
|
||||
tierName: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type RuleSet = {
|
||||
__typename?: "RuleSet";
|
||||
createdAt: Scalars["DateTime"]["output"];
|
||||
@@ -3369,6 +3386,24 @@ export enum SpinTypeEnum {
|
||||
Unknown = "UNKNOWN",
|
||||
}
|
||||
|
||||
export type StorageStatusGql = {
|
||||
__typename?: "StorageStatusGQL";
|
||||
isNearLimit: Scalars["Boolean"]["output"];
|
||||
isOverLimit: Scalars["Boolean"]["output"];
|
||||
isUnlimited: Scalars["Boolean"]["output"];
|
||||
lastCalculatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
policyConfigured: Scalars["Boolean"]["output"];
|
||||
remainingStorageBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
||||
retainedStorageLimitBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
||||
retainedStorageUsedBytes: Scalars["BigInt"]["output"];
|
||||
storageUsageRatio?: Maybe<Scalars["Float"]["output"]>;
|
||||
tierName: Scalars["String"]["output"];
|
||||
usageCalculated: Scalars["Boolean"]["output"];
|
||||
usageEstimated: Scalars["Boolean"]["output"];
|
||||
usageSource?: Maybe<Scalars["String"]["output"]>;
|
||||
userId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type StreamErrorGql = {
|
||||
__typename?: "StreamErrorGQL";
|
||||
message: Scalars["String"]["output"];
|
||||
@@ -3540,6 +3575,7 @@ export type UploadStreamGql = {
|
||||
initPlaylistUploadStatus?: Maybe<InitPlaylistUploadStatusEnum>;
|
||||
isCompleted: Scalars["Boolean"]["output"];
|
||||
lastIntendedSegmentBound?: Maybe<Scalars["Int"]["output"]>;
|
||||
lastSegmentUploadedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
linksRequested: Scalars["Int"]["output"];
|
||||
lowestUnuploadedSegmentIndex: Scalars["Int"]["output"];
|
||||
resolution: VideoResolutionGql;
|
||||
@@ -3556,6 +3592,7 @@ export type UserGql = {
|
||||
__typename?: "UserGQL";
|
||||
activeVideoId?: Maybe<Scalars["Int"]["output"]>;
|
||||
agreesToMarketing?: Maybe<Scalars["Boolean"]["output"]>;
|
||||
bio?: Maybe<Scalars["String"]["output"]>;
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
fargoRating?: Maybe<Scalars["Int"]["output"]>;
|
||||
firebaseUid?: Maybe<Scalars["String"]["output"]>;
|
||||
@@ -4281,6 +4318,8 @@ export type GetFeedQuery = {
|
||||
id: string;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
isCompleted: boolean;
|
||||
lastSegmentUploadedAt?: any | null;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
@@ -4392,6 +4431,8 @@ export type VideoCardFieldsFragment = {
|
||||
id: string;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
isCompleted: boolean;
|
||||
lastSegmentUploadedAt?: any | null;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
@@ -4536,6 +4577,8 @@ export type GetVideoFeedQuery = {
|
||||
id: string;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
isCompleted: boolean;
|
||||
lastSegmentUploadedAt?: any | null;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
@@ -4691,6 +4734,7 @@ export type GetDrillRunLeaderboardQuery = {
|
||||
__typename?: "VideoGQL";
|
||||
tableSize: number;
|
||||
pocketSize?: number | null;
|
||||
createdAt?: any | null;
|
||||
};
|
||||
user: {
|
||||
__typename?: "UserGQL";
|
||||
@@ -5041,11 +5085,6 @@ export type GetAvailableSubscriptionOptionsQuery = {
|
||||
getAvailableSubscriptionOptions: {
|
||||
__typename?: "StripeSubscriptionOptionsGQL";
|
||||
trialPeriodDays?: number | null;
|
||||
appleIap: {
|
||||
__typename?: "AppleIapSubscriptionOptionsGQL";
|
||||
enabled: boolean;
|
||||
proMonthlyProductId?: string | null;
|
||||
};
|
||||
products: Array<{
|
||||
__typename?: "StripeProductGQL";
|
||||
id: string;
|
||||
@@ -5944,6 +5983,7 @@ export type EditProfileImageUriMutation = {
|
||||
username: string;
|
||||
isAdmin?: boolean | null;
|
||||
profileImageUri?: string | null;
|
||||
bio?: string | null;
|
||||
fargoRating?: number | null;
|
||||
activeVideoId?: number | null;
|
||||
createdAt?: any | null;
|
||||
@@ -5964,6 +6004,7 @@ export type GetLoggedInUserQuery = {
|
||||
username: string;
|
||||
isAdmin?: boolean | null;
|
||||
profileImageUri?: string | null;
|
||||
bio?: string | null;
|
||||
fargoRating?: number | null;
|
||||
activeVideoId?: number | null;
|
||||
createdAt?: any | null;
|
||||
@@ -5986,6 +6027,7 @@ export type GetUserQuery = {
|
||||
username: string;
|
||||
isAdmin?: boolean | null;
|
||||
profileImageUri?: string | null;
|
||||
bio?: string | null;
|
||||
fargoRating?: number | null;
|
||||
activeVideoId?: number | null;
|
||||
createdAt?: any | null;
|
||||
@@ -6175,6 +6217,7 @@ export type EditUserMutationVariables = Exact<{
|
||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
bio?: InputMaybe<Scalars["String"]["input"]>;
|
||||
}>;
|
||||
|
||||
export type EditUserMutation = {
|
||||
@@ -6188,6 +6231,7 @@ export type EditUserMutation = {
|
||||
updatedAt?: any | null;
|
||||
videosPrivateByDefault?: boolean | null;
|
||||
agreesToMarketing?: boolean | null;
|
||||
bio?: string | null;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6205,6 +6249,7 @@ export type UserFragmentFragment = {
|
||||
username: string;
|
||||
isAdmin?: boolean | null;
|
||||
profileImageUri?: string | null;
|
||||
bio?: string | null;
|
||||
fargoRating?: number | null;
|
||||
activeVideoId?: number | null;
|
||||
createdAt?: any | null;
|
||||
@@ -6228,6 +6273,7 @@ export type GetUsersMatchingQuery = {
|
||||
username: string;
|
||||
isAdmin?: boolean | null;
|
||||
profileImageUri?: string | null;
|
||||
bio?: string | null;
|
||||
fargoRating?: number | null;
|
||||
activeVideoId?: number | null;
|
||||
createdAt?: any | null;
|
||||
@@ -6493,6 +6539,8 @@ export type GetVideoCardQuery = {
|
||||
id: string;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
streamSegmentType: StreamSegmentTypeEnum;
|
||||
isCompleted: boolean;
|
||||
lastSegmentUploadedAt?: any | null;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
@@ -7206,6 +7254,8 @@ export const VideoCardFieldsFragmentDoc = gql`
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
streamSegmentType
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
}
|
||||
tableSize
|
||||
pocketSize
|
||||
@@ -7407,6 +7457,7 @@ export const UserFragmentFragmentDoc = gql`
|
||||
username
|
||||
isAdmin
|
||||
profileImageUri
|
||||
bio
|
||||
fargoRating
|
||||
activeVideoId
|
||||
createdAt
|
||||
@@ -9801,6 +9852,7 @@ export const GetDrillRunLeaderboardDocument = gql`
|
||||
video {
|
||||
tableSize
|
||||
pocketSize
|
||||
createdAt
|
||||
}
|
||||
user {
|
||||
id
|
||||
@@ -10696,10 +10748,6 @@ export const GetAvailableSubscriptionOptionsDocument = gql`
|
||||
query GetAvailableSubscriptionOptions {
|
||||
getAvailableSubscriptionOptions {
|
||||
trialPeriodDays
|
||||
appleIap {
|
||||
enabled
|
||||
proMonthlyProductId
|
||||
}
|
||||
products {
|
||||
id
|
||||
name
|
||||
@@ -13413,6 +13461,7 @@ export const EditUserDocument = gql`
|
||||
$fargoRating: Int
|
||||
$videosPrivateByDefault: Boolean
|
||||
$agreesToMarketing: Boolean
|
||||
$bio: String
|
||||
) {
|
||||
editUser(
|
||||
input: {
|
||||
@@ -13420,6 +13469,7 @@ export const EditUserDocument = gql`
|
||||
fargoRating: $fargoRating
|
||||
videosPrivateByDefault: $videosPrivateByDefault
|
||||
agreesToMarketing: $agreesToMarketing
|
||||
bio: $bio
|
||||
}
|
||||
) {
|
||||
id
|
||||
@@ -13429,6 +13479,7 @@ export const EditUserDocument = gql`
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
agreesToMarketing
|
||||
bio
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -13454,6 +13505,7 @@ export type EditUserMutationFn = Apollo.MutationFunction<
|
||||
* fargoRating: // value for 'fargoRating'
|
||||
* videosPrivateByDefault: // value for 'videosPrivateByDefault'
|
||||
* agreesToMarketing: // value for 'agreesToMarketing'
|
||||
* bio: // value for 'bio'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
|
||||
@@ -42,6 +42,8 @@ fragment VideoCardFields on VideoGQL {
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
streamSegmentType
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
}
|
||||
tableSize
|
||||
pocketSize
|
||||
|
||||
@@ -56,6 +56,7 @@ query GetDrillRunLeaderboard(
|
||||
video {
|
||||
tableSize
|
||||
pocketSize
|
||||
createdAt
|
||||
}
|
||||
user {
|
||||
id
|
||||
|
||||
@@ -29,10 +29,6 @@ mutation CreateCustomerPortalSession {
|
||||
query GetAvailableSubscriptionOptions {
|
||||
getAvailableSubscriptionOptions {
|
||||
trialPeriodDays
|
||||
appleIap {
|
||||
enabled
|
||||
proMonthlyProductId
|
||||
}
|
||||
products {
|
||||
id
|
||||
name
|
||||
|
||||
@@ -177,6 +177,7 @@ mutation editUser(
|
||||
$fargoRating: Int
|
||||
$videosPrivateByDefault: Boolean
|
||||
$agreesToMarketing: Boolean
|
||||
$bio: String
|
||||
) {
|
||||
editUser(
|
||||
input: {
|
||||
@@ -184,6 +185,7 @@ mutation editUser(
|
||||
fargoRating: $fargoRating
|
||||
videosPrivateByDefault: $videosPrivateByDefault
|
||||
agreesToMarketing: $agreesToMarketing
|
||||
bio: $bio
|
||||
}
|
||||
) {
|
||||
id
|
||||
@@ -193,6 +195,7 @@ mutation editUser(
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
agreesToMarketing
|
||||
bio
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,6 +209,7 @@ fragment UserFragment on UserGQL {
|
||||
username
|
||||
isAdmin
|
||||
profileImageUri
|
||||
bio
|
||||
fargoRating
|
||||
activeVideoId
|
||||
createdAt
|
||||
|
||||
@@ -108,8 +108,10 @@ type Query {
|
||||
): UserRelationshipsResult!
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||
getResolvedTier: ResolvedTierGQL!
|
||||
getAppleAppAccountToken: String!
|
||||
getQuotaStatus: QuotaStatusGQL!
|
||||
getStorageStatus: StorageStatusGQL
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@@ -356,6 +358,7 @@ type UserGQL {
|
||||
activeVideoId: Int
|
||||
stripeCustomerId: String
|
||||
profileImageUri: String
|
||||
bio: String
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
videosPrivateByDefault: Boolean
|
||||
@@ -529,6 +532,7 @@ type UploadStreamGQL {
|
||||
initPlaylistUploadStatus: InitPlaylistUploadStatusEnum
|
||||
lowestUnuploadedSegmentIndex: Int!
|
||||
uploadCompletionCursor: Int!
|
||||
lastSegmentUploadedAt: DateTime
|
||||
errors: [StreamErrorGQL!]!
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
@@ -1069,6 +1073,17 @@ enum StripeSubscriptionStatusEnum {
|
||||
PAUSED
|
||||
}
|
||||
|
||||
type ResolvedTierGQL {
|
||||
tierName: String!
|
||||
tierDisplayName: String!
|
||||
hasActiveSubscription: Boolean!
|
||||
entitlementSource: EntitlementSourceTypeEnum
|
||||
entitlementStatus: String
|
||||
entitlementStartsAt: DateTime
|
||||
entitlementEndsAt: DateTime
|
||||
capabilities: [String!]!
|
||||
}
|
||||
|
||||
type QuotaStatusGQL {
|
||||
tierName: String!
|
||||
periodStart: DateTime!
|
||||
@@ -1093,6 +1108,28 @@ type QuotaBucketStatusGQL {
|
||||
canUpload: Boolean!
|
||||
}
|
||||
|
||||
type StorageStatusGQL {
|
||||
userId: Int!
|
||||
tierName: String!
|
||||
retainedStorageUsedBytes: BigInt!
|
||||
retainedStorageLimitBytes: BigInt
|
||||
isUnlimited: Boolean!
|
||||
policyConfigured: Boolean!
|
||||
remainingStorageBytes: BigInt
|
||||
storageUsageRatio: Float
|
||||
isNearLimit: Boolean!
|
||||
isOverLimit: Boolean!
|
||||
usageCalculated: Boolean!
|
||||
usageSource: String
|
||||
lastCalculatedAt: DateTime
|
||||
usageEstimated: Boolean!
|
||||
}
|
||||
|
||||
"""
|
||||
Integer value that can exceed GraphQL Int's 32-bit range.
|
||||
"""
|
||||
scalar BigInt
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
@@ -1364,6 +1401,7 @@ input EditUserInputGQL {
|
||||
fargoRating: Int = null
|
||||
videosPrivateByDefault: Boolean = null
|
||||
agreesToMarketing: Boolean = null
|
||||
bio: String = null
|
||||
}
|
||||
|
||||
type SyncAppleSubscriptionResultGQL {
|
||||
|
||||
Reference in New Issue
Block a user