feat: integrate new modules (#5087)

This commit is contained in:
DarkSky
2023-12-14 09:50:46 +00:00
parent a93c12e122
commit 2b7f6f8b74
26 changed files with 424 additions and 149 deletions

View File

@@ -508,6 +508,32 @@ mutation publishPage($workspaceId: String!, $pageId: String!, $mode: PublicPageM
}`,
};
export const quotaQuery = {
id: 'quotaQuery' as const,
operationName: 'quota',
definitionName: 'currentUser',
containsFile: false,
query: `
query quota {
currentUser {
quota {
name
blobLimit
storageQuota
historyPeriod
memberLimit
humanReadable {
name
blobLimit
storageQuota
historyPeriod
memberLimit
}
}
}
}`,
};
export const recoverDocMutation = {
id: 'recoverDocMutation' as const,
operationName: 'recoverDoc',

View File

@@ -0,0 +1,18 @@
query quota {
currentUser {
quota {
name
blobLimit
storageQuota
historyPeriod
memberLimit
humanReadable {
name
blobLimit
storageQuota
historyPeriod
memberLimit
}
}
}
}

View File

@@ -499,6 +499,31 @@ export type PublishPageMutation = {
};
};
export type QuotaQueryVariables = Exact<{ [key: string]: never }>;
export type QuotaQuery = {
__typename?: 'Query';
currentUser: {
__typename?: 'UserType';
quota: {
__typename?: 'UserQuota';
name: string;
blobLimit: number;
storageQuota: number;
historyPeriod: number;
memberLimit: number;
humanReadable: {
__typename?: 'UserQuotaHumanReadable';
name: string;
blobLimit: string;
storageQuota: string;
historyPeriod: string;
memberLimit: string;
};
} | null;
} | null;
};
export type RecoverDocMutationVariables = Exact<{
workspaceId: Scalars['String']['input'];
docId: Scalars['String']['input'];
@@ -819,6 +844,11 @@ export type Queries =
variables: PricesQueryVariables;
response: PricesQuery;
}
| {
name: 'quotaQuery';
variables: QuotaQueryVariables;
response: QuotaQuery;
}
| {
name: 'serverConfigQuery';
variables: ServerConfigQueryVariables;