Merge pull request 'Add storage status schema' (#270) from pr8-storage-status into master
Reviewed-on: #270
This commit is contained in:
@@ -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) */
|
||||
@@ -2859,6 +2861,7 @@ export type Query = {
|
||||
getShots: Array<ShotGql>;
|
||||
getShotsByIds: Array<ShotGql>;
|
||||
getShotsWithMetadata: GetShotsResult;
|
||||
getStorageStatus?: Maybe<StorageStatusGql>;
|
||||
getTableState: TableStateGql;
|
||||
getUser?: Maybe<UserGql>;
|
||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||
@@ -3383,6 +3386,20 @@ export enum SpinTypeEnum {
|
||||
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 = {
|
||||
__typename?: "StreamErrorGQL";
|
||||
message: Scalars["String"]["output"];
|
||||
|
||||
@@ -111,6 +111,7 @@ type Query {
|
||||
getResolvedTier: ResolvedTierGQL!
|
||||
getAppleAppAccountToken: String!
|
||||
getQuotaStatus: QuotaStatusGQL!
|
||||
getStorageStatus: StorageStatusGQL
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@@ -1107,6 +1108,24 @@ 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!
|
||||
}
|
||||
|
||||
"""
|
||||
Integer value that can exceed GraphQL Int's 32-bit range.
|
||||
"""
|
||||
scalar BigInt
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user