Compare commits
5 Commits
loewy/mobi
...
2718c29230
| Author | SHA1 | Date | |
|---|---|---|---|
| 2718c29230 | |||
| 524dcf77b4 | |||
| 7b1aa11071 | |||
| c388932271 | |||
| 4f661d3c55 |
106
src/index.tsx
106
src/index.tsx
@@ -3391,12 +3391,16 @@ 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"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -5128,6 +5132,23 @@ export type GetSubscriptionStatusQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetResolvedTierQueryVariables = Exact<{ [key: string]: never }>;
|
||||||
|
|
||||||
|
export type GetResolvedTierQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getResolvedTier: {
|
||||||
|
__typename?: "ResolvedTierGQL";
|
||||||
|
tierName: string;
|
||||||
|
tierDisplayName: string;
|
||||||
|
hasActiveSubscription: boolean;
|
||||||
|
entitlementSource?: EntitlementSourceTypeEnum | null;
|
||||||
|
entitlementStatus?: string | null;
|
||||||
|
entitlementStartsAt?: any | null;
|
||||||
|
entitlementEndsAt?: any | null;
|
||||||
|
capabilities: Array<string>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetStorageStatusQueryVariables = Exact<{ [key: string]: never }>;
|
export type GetStorageStatusQueryVariables = Exact<{ [key: string]: never }>;
|
||||||
|
|
||||||
export type GetStorageStatusQuery = {
|
export type GetStorageStatusQuery = {
|
||||||
@@ -5144,6 +5165,9 @@ export type GetStorageStatusQuery = {
|
|||||||
storageUsageRatio?: number | null;
|
storageUsageRatio?: number | null;
|
||||||
isNearLimit: boolean;
|
isNearLimit: boolean;
|
||||||
isOverLimit: boolean;
|
isOverLimit: boolean;
|
||||||
|
usageCalculated: boolean;
|
||||||
|
usageSource?: string | null;
|
||||||
|
lastCalculatedAt?: any | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -10932,6 +10956,85 @@ export type GetSubscriptionStatusQueryResult = Apollo.QueryResult<
|
|||||||
GetSubscriptionStatusQuery,
|
GetSubscriptionStatusQuery,
|
||||||
GetSubscriptionStatusQueryVariables
|
GetSubscriptionStatusQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetResolvedTierDocument = gql`
|
||||||
|
query GetResolvedTier {
|
||||||
|
getResolvedTier {
|
||||||
|
tierName
|
||||||
|
tierDisplayName
|
||||||
|
hasActiveSubscription
|
||||||
|
entitlementSource
|
||||||
|
entitlementStatus
|
||||||
|
entitlementStartsAt
|
||||||
|
entitlementEndsAt
|
||||||
|
capabilities
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetResolvedTierQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetResolvedTierQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetResolvedTierQuery` 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 } = useGetResolvedTierQuery({
|
||||||
|
* variables: {
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetResolvedTierQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
GetResolvedTierQuery,
|
||||||
|
GetResolvedTierQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<GetResolvedTierQuery, GetResolvedTierQueryVariables>(
|
||||||
|
GetResolvedTierDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useGetResolvedTierLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetResolvedTierQuery,
|
||||||
|
GetResolvedTierQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<
|
||||||
|
GetResolvedTierQuery,
|
||||||
|
GetResolvedTierQueryVariables
|
||||||
|
>(GetResolvedTierDocument, options);
|
||||||
|
}
|
||||||
|
export function useGetResolvedTierSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetResolvedTierQuery,
|
||||||
|
GetResolvedTierQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
GetResolvedTierQuery,
|
||||||
|
GetResolvedTierQueryVariables
|
||||||
|
>(GetResolvedTierDocument, options);
|
||||||
|
}
|
||||||
|
export type GetResolvedTierQueryHookResult = ReturnType<
|
||||||
|
typeof useGetResolvedTierQuery
|
||||||
|
>;
|
||||||
|
export type GetResolvedTierLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetResolvedTierLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetResolvedTierSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetResolvedTierSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetResolvedTierQueryResult = Apollo.QueryResult<
|
||||||
|
GetResolvedTierQuery,
|
||||||
|
GetResolvedTierQueryVariables
|
||||||
|
>;
|
||||||
export const GetStorageStatusDocument = gql`
|
export const GetStorageStatusDocument = gql`
|
||||||
query GetStorageStatus {
|
query GetStorageStatus {
|
||||||
getStorageStatus {
|
getStorageStatus {
|
||||||
@@ -10945,6 +11048,9 @@ export const GetStorageStatusDocument = gql`
|
|||||||
storageUsageRatio
|
storageUsageRatio
|
||||||
isNearLimit
|
isNearLimit
|
||||||
isOverLimit
|
isOverLimit
|
||||||
|
usageCalculated
|
||||||
|
usageSource
|
||||||
|
lastCalculatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -67,6 +67,19 @@ query GetSubscriptionStatus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetResolvedTier {
|
||||||
|
getResolvedTier {
|
||||||
|
tierName
|
||||||
|
tierDisplayName
|
||||||
|
hasActiveSubscription
|
||||||
|
entitlementSource
|
||||||
|
entitlementStatus
|
||||||
|
entitlementStartsAt
|
||||||
|
entitlementEndsAt
|
||||||
|
capabilities
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
query GetStorageStatus {
|
query GetStorageStatus {
|
||||||
getStorageStatus {
|
getStorageStatus {
|
||||||
userId
|
userId
|
||||||
@@ -79,6 +92,9 @@ query GetStorageStatus {
|
|||||||
storageUsageRatio
|
storageUsageRatio
|
||||||
isNearLimit
|
isNearLimit
|
||||||
isOverLimit
|
isOverLimit
|
||||||
|
usageCalculated
|
||||||
|
usageSource
|
||||||
|
lastCalculatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1119,6 +1119,10 @@ 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