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 };
|
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) */
|
||||||
@@ -2859,6 +2861,7 @@ export type Query = {
|
|||||||
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;
|
||||||
@@ -3383,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"];
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ type Query {
|
|||||||
getResolvedTier: ResolvedTierGQL!
|
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
|
||||||
@@ -1107,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