Compare commits
13 Commits
dean/last-
...
loewy/stor
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f661d3c55 | |||
| bc52145a9e | |||
| 5c286f2bcf | |||
| d636c298f8 | |||
| 681320c62d | |||
| 49f409f60b | |||
| e7fc6c147d | |||
| 10c3f6de53 | |||
|
|
d7b1aaee13 | ||
| b477590137 | |||
|
|
d428a8caa2 | ||
| 48207e12ee | |||
| 6758f3e77a |
142
src/index.tsx
142
src/index.tsx
@@ -28,6 +28,8 @@ export type Scalars = {
|
|||||||
Boolean: { input: boolean; output: boolean };
|
Boolean: { input: boolean; output: boolean };
|
||||||
Int: { input: number; output: number };
|
Int: { input: number; output: number };
|
||||||
Float: { 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 (isoformat) */
|
||||||
Date: { input: any; output: any };
|
Date: { input: any; output: any };
|
||||||
/** Date with time (isoformat) */
|
/** Date with time (isoformat) */
|
||||||
@@ -2853,11 +2855,13 @@ export type Query = {
|
|||||||
getOrderedShots: GetShotsResult;
|
getOrderedShots: GetShotsResult;
|
||||||
getPlayTime: UserPlayTimeGql;
|
getPlayTime: UserPlayTimeGql;
|
||||||
getQuotaStatus: QuotaStatusGql;
|
getQuotaStatus: QuotaStatusGql;
|
||||||
|
getResolvedTier: ResolvedTierGql;
|
||||||
getRuns: GetRunsResult;
|
getRuns: GetRunsResult;
|
||||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
getShotsByIds: Array<ShotGql>;
|
getShotsByIds: Array<ShotGql>;
|
||||||
getShotsWithMetadata: GetShotsResult;
|
getShotsWithMetadata: GetShotsResult;
|
||||||
|
getStorageStatus?: Maybe<StorageStatusGql>;
|
||||||
getTableState: TableStateGql;
|
getTableState: TableStateGql;
|
||||||
getUser?: Maybe<UserGql>;
|
getUser?: Maybe<UserGql>;
|
||||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||||
@@ -3158,6 +3162,18 @@ export type RequestedMedalsGql = {
|
|||||||
totalMakes10000?: Maybe<MedalGql>;
|
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 = {
|
export type RuleSet = {
|
||||||
__typename?: "RuleSet";
|
__typename?: "RuleSet";
|
||||||
createdAt: Scalars["DateTime"]["output"];
|
createdAt: Scalars["DateTime"]["output"];
|
||||||
@@ -3370,6 +3386,20 @@ export enum SpinTypeEnum {
|
|||||||
Unknown = "UNKNOWN",
|
Unknown = "UNKNOWN",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type StorageStatusGql = {
|
||||||
|
__typename?: "StorageStatusGQL";
|
||||||
|
isNearLimit: Scalars["Boolean"]["output"];
|
||||||
|
isOverLimit: Scalars["Boolean"]["output"];
|
||||||
|
isUnlimited: Scalars["Boolean"]["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"];
|
||||||
|
userId: Scalars["Int"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export type StreamErrorGql = {
|
export type StreamErrorGql = {
|
||||||
__typename?: "StreamErrorGQL";
|
__typename?: "StreamErrorGQL";
|
||||||
message: Scalars["String"]["output"];
|
message: Scalars["String"]["output"];
|
||||||
@@ -4284,6 +4314,8 @@ export type GetFeedQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
isCompleted: boolean;
|
||||||
|
lastSegmentUploadedAt?: any | null;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -4395,6 +4427,8 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
isCompleted: boolean;
|
||||||
|
lastSegmentUploadedAt?: any | null;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -4539,6 +4573,8 @@ export type GetVideoFeedQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
isCompleted: boolean;
|
||||||
|
lastSegmentUploadedAt?: any | null;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -4694,6 +4730,7 @@ export type GetDrillRunLeaderboardQuery = {
|
|||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
pocketSize?: number | null;
|
pocketSize?: number | null;
|
||||||
|
createdAt?: any | null;
|
||||||
};
|
};
|
||||||
user: {
|
user: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
@@ -5091,6 +5128,25 @@ export type GetSubscriptionStatusQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetStorageStatusQueryVariables = Exact<{ [key: string]: never }>;
|
||||||
|
|
||||||
|
export type GetStorageStatusQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getStorageStatus?: {
|
||||||
|
__typename?: "StorageStatusGQL";
|
||||||
|
userId: number;
|
||||||
|
tierName: string;
|
||||||
|
retainedStorageUsedBytes: any;
|
||||||
|
retainedStorageLimitBytes?: any | null;
|
||||||
|
isUnlimited: boolean;
|
||||||
|
policyConfigured: boolean;
|
||||||
|
remainingStorageBytes?: any | null;
|
||||||
|
storageUsageRatio?: number | null;
|
||||||
|
isNearLimit: boolean;
|
||||||
|
isOverLimit: boolean;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetAppleAppAccountTokenQueryVariables = Exact<{
|
export type GetAppleAppAccountTokenQueryVariables = Exact<{
|
||||||
[key: string]: never;
|
[key: string]: never;
|
||||||
}>;
|
}>;
|
||||||
@@ -6498,6 +6554,8 @@ export type GetVideoCardQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
|
isCompleted: boolean;
|
||||||
|
lastSegmentUploadedAt?: any | null;
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -7211,6 +7269,8 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
|
isCompleted
|
||||||
|
lastSegmentUploadedAt
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
@@ -9807,6 +9867,7 @@ export const GetDrillRunLeaderboardDocument = gql`
|
|||||||
video {
|
video {
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
|
createdAt
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -10871,6 +10932,87 @@ export type GetSubscriptionStatusQueryResult = Apollo.QueryResult<
|
|||||||
GetSubscriptionStatusQuery,
|
GetSubscriptionStatusQuery,
|
||||||
GetSubscriptionStatusQueryVariables
|
GetSubscriptionStatusQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetStorageStatusDocument = gql`
|
||||||
|
query GetStorageStatus {
|
||||||
|
getStorageStatus {
|
||||||
|
userId
|
||||||
|
tierName
|
||||||
|
retainedStorageUsedBytes
|
||||||
|
retainedStorageLimitBytes
|
||||||
|
isUnlimited
|
||||||
|
policyConfigured
|
||||||
|
remainingStorageBytes
|
||||||
|
storageUsageRatio
|
||||||
|
isNearLimit
|
||||||
|
isOverLimit
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetStorageStatusQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetStorageStatusQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetStorageStatusQuery` 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 } = useGetStorageStatusQuery({
|
||||||
|
* variables: {
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetStorageStatusQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetStorageStatusQuery,
|
||||||
|
GetStorageStatusQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<GetStorageStatusQuery, GetStorageStatusQueryVariables>(
|
||||||
|
GetStorageStatusDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useGetStorageStatusLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetStorageStatusQuery,
|
||||||
|
GetStorageStatusQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetStorageStatusQuery,
|
||||||
|
GetStorageStatusQueryVariables
|
||||||
|
>(GetStorageStatusDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetStorageStatusSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetStorageStatusQuery,
|
||||||
|
GetStorageStatusQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetStorageStatusQuery,
|
||||||
|
GetStorageStatusQueryVariables
|
||||||
|
>(GetStorageStatusDocument, options);
|
||||||
|
}
|
||||||
|
export type GetStorageStatusQueryHookResult = ReturnType<
|
||||||
|
typeof useGetStorageStatusQuery
|
||||||
|
>;
|
||||||
|
export type GetStorageStatusLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetStorageStatusLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetStorageStatusSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetStorageStatusSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetStorageStatusQueryResult = Apollo.QueryResult<
|
||||||
|
GetStorageStatusQuery,
|
||||||
|
GetStorageStatusQueryVariables
|
||||||
|
>;
|
||||||
export const GetAppleAppAccountTokenDocument = gql`
|
export const GetAppleAppAccountTokenDocument = gql`
|
||||||
query GetAppleAppAccountToken {
|
query GetAppleAppAccountToken {
|
||||||
getAppleAppAccountToken
|
getAppleAppAccountToken
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
|
isCompleted
|
||||||
|
lastSegmentUploadedAt
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ query GetDrillRunLeaderboard(
|
|||||||
video {
|
video {
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
|
createdAt
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
|
|||||||
@@ -67,6 +67,21 @@ query GetSubscriptionStatus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetStorageStatus {
|
||||||
|
getStorageStatus {
|
||||||
|
userId
|
||||||
|
tierName
|
||||||
|
retainedStorageUsedBytes
|
||||||
|
retainedStorageLimitBytes
|
||||||
|
isUnlimited
|
||||||
|
policyConfigured
|
||||||
|
remainingStorageBytes
|
||||||
|
storageUsageRatio
|
||||||
|
isNearLimit
|
||||||
|
isOverLimit
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
query GetAppleAppAccountToken {
|
query GetAppleAppAccountToken {
|
||||||
getAppleAppAccountToken
|
getAppleAppAccountToken
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,8 +108,10 @@ type Query {
|
|||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||||
|
getResolvedTier: ResolvedTierGQL!
|
||||||
getAppleAppAccountToken: String!
|
getAppleAppAccountToken: String!
|
||||||
getQuotaStatus: QuotaStatusGQL!
|
getQuotaStatus: QuotaStatusGQL!
|
||||||
|
getStorageStatus: StorageStatusGQL
|
||||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@@ -1071,6 +1073,17 @@ enum StripeSubscriptionStatusEnum {
|
|||||||
PAUSED
|
PAUSED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ResolvedTierGQL {
|
||||||
|
tierName: String!
|
||||||
|
tierDisplayName: String!
|
||||||
|
hasActiveSubscription: Boolean!
|
||||||
|
entitlementSource: EntitlementSourceTypeEnum
|
||||||
|
entitlementStatus: String
|
||||||
|
entitlementStartsAt: DateTime
|
||||||
|
entitlementEndsAt: DateTime
|
||||||
|
capabilities: [String!]!
|
||||||
|
}
|
||||||
|
|
||||||
type QuotaStatusGQL {
|
type QuotaStatusGQL {
|
||||||
tierName: String!
|
tierName: String!
|
||||||
periodStart: DateTime!
|
periodStart: DateTime!
|
||||||
@@ -1095,6 +1108,24 @@ type QuotaBucketStatusGQL {
|
|||||||
canUpload: Boolean!
|
canUpload: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type StorageStatusGQL {
|
||||||
|
userId: Int!
|
||||||
|
tierName: String!
|
||||||
|
retainedStorageUsedBytes: BigInt!
|
||||||
|
retainedStorageLimitBytes: BigInt
|
||||||
|
isUnlimited: Boolean!
|
||||||
|
policyConfigured: Boolean!
|
||||||
|
remainingStorageBytes: BigInt
|
||||||
|
storageUsageRatio: Float
|
||||||
|
isNearLimit: Boolean!
|
||||||
|
isOverLimit: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Integer value that can exceed GraphQL Int's 32-bit range.
|
||||||
|
"""
|
||||||
|
scalar BigInt
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user