Compare commits
1 Commits
loewy/stor
...
loewy/mobi
| Author | SHA1 | Date | |
|---|---|---|---|
| 42530ca3c1 |
104
src/index.tsx
104
src/index.tsx
@@ -3391,16 +3391,12 @@ export type StorageStatusGql = {
|
|||||||
isNearLimit: Scalars["Boolean"]["output"];
|
isNearLimit: Scalars["Boolean"]["output"];
|
||||||
isOverLimit: Scalars["Boolean"]["output"];
|
isOverLimit: Scalars["Boolean"]["output"];
|
||||||
isUnlimited: Scalars["Boolean"]["output"];
|
isUnlimited: Scalars["Boolean"]["output"];
|
||||||
lastCalculatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
||||||
policyConfigured: Scalars["Boolean"]["output"];
|
policyConfigured: Scalars["Boolean"]["output"];
|
||||||
remainingStorageBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
remainingStorageBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
||||||
retainedStorageLimitBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
retainedStorageLimitBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
||||||
retainedStorageUsedBytes: Scalars["BigInt"]["output"];
|
retainedStorageUsedBytes: Scalars["BigInt"]["output"];
|
||||||
storageUsageRatio?: Maybe<Scalars["Float"]["output"]>;
|
storageUsageRatio?: Maybe<Scalars["Float"]["output"]>;
|
||||||
tierName: Scalars["String"]["output"];
|
tierName: Scalars["String"]["output"];
|
||||||
usageCalculated: Scalars["Boolean"]["output"];
|
|
||||||
usageEstimated: Scalars["Boolean"]["output"];
|
|
||||||
usageSource?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
userId: Scalars["Int"]["output"];
|
userId: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -5132,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;
|
||||||
}>;
|
}>;
|
||||||
@@ -10917,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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1119,10 +1119,6 @@ type StorageStatusGQL {
|
|||||||
storageUsageRatio: Float
|
storageUsageRatio: Float
|
||||||
isNearLimit: Boolean!
|
isNearLimit: Boolean!
|
||||||
isOverLimit: Boolean!
|
isOverLimit: Boolean!
|
||||||
usageCalculated: Boolean!
|
|
||||||
usageSource: String
|
|
||||||
lastCalculatedAt: DateTime
|
|
||||||
usageEstimated: Boolean!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user