|
|
|
|
@@ -3391,12 +3391,16 @@ export type 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"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -5128,25 +5132,6 @@ 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<{
|
|
|
|
|
[key: string]: never;
|
|
|
|
|
}>;
|
|
|
|
|
@@ -10932,87 +10917,6 @@ export type GetSubscriptionStatusQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetSubscriptionStatusQuery,
|
|
|
|
|
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`
|
|
|
|
|
query GetAppleAppAccountToken {
|
|
|
|
|
getAppleAppAccountToken
|
|
|
|
|
|