chore(ios): update gql schema

This commit is contained in:
DarkSky
2025-06-16 15:21:42 +08:00
parent a1abb60dec
commit deeca60efa
87 changed files with 2325 additions and 322 deletions
+7 -7
View File
@@ -15,7 +15,7 @@ export const passwordLimitsFragment = `fragment PasswordLimits on PasswordLimits
minLength
maxLength
}`;
export const licenseFragment = `fragment license on License {
export const licenseBodyFragment = `fragment licenseBody on License {
expiredAt
installedAt
quantity
@@ -1443,10 +1443,10 @@ export const activateLicenseMutation = {
op: 'activateLicense',
query: `mutation activateLicense($workspaceId: String!, $license: String!) {
activateLicense(workspaceId: $workspaceId, license: $license) {
...license
...licenseBody
}
}
${licenseFragment}`,
${licenseBodyFragment}`,
};
export const deactivateLicenseMutation = {
@@ -1463,11 +1463,11 @@ export const getLicenseQuery = {
query: `query getLicense($workspaceId: String!) {
workspace(id: $workspaceId) {
license {
...license
...licenseBody
}
}
}
${licenseFragment}`,
${licenseBodyFragment}`,
};
export const installLicenseMutation = {
@@ -1475,10 +1475,10 @@ export const installLicenseMutation = {
op: 'installLicense',
query: `mutation installLicense($workspaceId: String!, $license: Upload!) {
installLicense(workspaceId: $workspaceId, license: $license) {
...license
...licenseBody
}
}
${licenseFragment}`,
${licenseBodyFragment}`,
file: true,
};
@@ -1,7 +1,7 @@
#import './license.gql'
#import './license-body.gql'
mutation activateLicense($workspaceId: String!, $license: String!) {
activateLicense(workspaceId: $workspaceId, license: $license) {
...license
...licenseBody
}
}
@@ -1,9 +1,9 @@
#import './license.gql'
#import './license-body.gql'
query getLicense($workspaceId: String!) {
workspace(id: $workspaceId) {
license {
...license
...licenseBody
}
}
}
@@ -1,7 +1,7 @@
#import './license.gql'
#import './license-body.gql'
mutation installLicense($workspaceId: String!, $license: Upload!) {
installLicense(workspaceId: $workspaceId, license: $license) {
...license
...licenseBody
}
}
@@ -1,4 +1,4 @@
fragment license on License {
fragment licenseBody on License {
expiredAt
installedAt
quantity
+1 -1
View File
@@ -4401,7 +4401,7 @@ export type InstallLicenseMutation = {
};
};
export type LicenseFragment = {
export type LicenseBodyFragment = {
__typename?: 'License';
expiredAt: string | null;
installedAt: string;