@grantjs/schema 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/src/cdm/cdm-export-sections.ts +22 -0
- package/src/generated/graphql.ts +1656 -46
- package/src/generated/resolvers.ts +727 -0
- package/src/index.ts +11 -10
- package/src/operations/auth/login.graphql +2 -0
- package/src/operations/auth/setupMfa.graphql +7 -0
- package/src/operations/auth/verifyMfa.graphql +7 -0
- package/src/operations/auth/verifyMfaRecoveryCode.graphql +7 -0
- package/src/operations/me/createMyMfaEnrollment.graphql +7 -0
- package/src/operations/me/generateMyMfaRecoveryCodes.graphql +3 -0
- package/src/operations/me/me.graphql +1 -0
- package/src/operations/me/myMfaDevices.graphql +10 -0
- package/src/operations/me/myMfaRecoveryCodeStatus.graphql +6 -0
- package/src/operations/me/removeMyMfaDevice.graphql +5 -0
- package/src/operations/me/setMyPrimaryMfaDevice.graphql +6 -0
- package/src/operations/me/verifyMyMfaEnrollment.graphql +5 -0
- package/src/operations/organizations/getOrganizations.graphql +1 -0
- package/src/operations/organizations/updateOrganization.graphql +1 -0
- package/src/operations/projects/cancel-project-sync.graphql +17 -0
- package/src/operations/projects/project-sync-job.graphql +37 -0
- package/src/operations/projects/project-sync-jobs.graphql +40 -0
- package/src/operations/projects/start-project-export.graphql +20 -0
- package/src/operations/projects/start-project-sync.graphql +17 -0
- package/src/operations/resources/createResource.graphql +6 -0
- package/src/schema/auth/inputs/verify-mfa-recovery-code.graphql +3 -0
- package/src/schema/auth/inputs/verify-mfa.graphql +3 -0
- package/src/schema/auth/mutations/setup-mfa.graphql +3 -0
- package/src/schema/auth/mutations/verify-mfa-recovery-code.graphql +3 -0
- package/src/schema/auth/mutations/verify-mfa.graphql +3 -0
- package/src/schema/auth/types/login-response.graphql +5 -0
- package/src/schema/auth/types/mfa-setup-response.graphql +5 -0
- package/src/schema/auth/types/mfa-verify-response.graphql +5 -0
- package/src/schema/me/inputs/generate-my-mfa-recovery-codes.graphql +3 -0
- package/src/schema/me/inputs/remove-my-mfa-device.graphql +3 -0
- package/src/schema/me/inputs/set-my-primary-mfa-device.graphql +3 -0
- package/src/schema/me/inputs/verify-my-mfa-enrollment.graphql +3 -0
- package/src/schema/me/mutations/create-my-mfa-enrollment.graphql +3 -0
- package/src/schema/me/mutations/generate-my-mfa-recovery-codes.graphql +3 -0
- package/src/schema/me/mutations/remove-my-mfa-device.graphql +3 -0
- package/src/schema/me/mutations/set-my-primary-mfa-device.graphql +3 -0
- package/src/schema/me/mutations/verify-my-mfa-enrollment.graphql +3 -0
- package/src/schema/me/queries/my-mfa-devices.graphql +3 -0
- package/src/schema/me/queries/my-mfa-recovery-code-status.graphql +3 -0
- package/src/schema/me/types/me-response.graphql +1 -0
- package/src/schema/me/types/mfa-device.graphql +8 -0
- package/src/schema/me/types/mfa-enrollment.graphql +5 -0
- package/src/schema/me/types/mfa-recovery-code-status.graphql +4 -0
- package/src/schema/me/types/mfa-verify-result.graphql +3 -0
- package/src/schema/organization-users/inputs/add-organization-user.graphql +1 -0
- package/src/schema/organization-users/types/organization-user.graphql +1 -0
- package/src/schema/organizations/inputs/update-organization.graphql +1 -0
- package/src/schema/organizations/types/organization.graphql +1 -0
- package/src/schema/permissions/inputs/create-permission.graphql +1 -0
- package/src/schema/permissions/inputs/update-permission.graphql +1 -0
- package/src/schema/permissions/types/permission.graphql +1 -0
- package/src/schema/project-user-api-keys/inputs/add-project-user-api-key.graphql +4 -0
- package/src/schema/project-users/inputs/add-project-user.graphql +1 -0
- package/src/schema/project-users/types/project-user.graphql +3 -0
- package/src/schema/projects/inputs/project-sync-job-sort.graphql +4 -0
- package/src/schema/projects/inputs/start-project-export.graphql +31 -0
- package/src/schema/projects/inputs/sync-project-cdm.graphql +132 -0
- package/src/schema/projects/mutations/cancel-project-sync.graphql +9 -0
- package/src/schema/projects/mutations/start-project-export.graphql +12 -0
- package/src/schema/projects/mutations/start-project-sync.graphql +15 -0
- package/src/schema/projects/queries/project-sync-job.graphql +7 -0
- package/src/schema/projects/queries/project-sync-jobs.graphql +17 -0
- package/src/schema/projects/types/project-sync-job-page.graphql +8 -0
- package/src/schema/projects/types/project-sync-job-sortable-field.graphql +7 -0
- package/src/schema/projects/types/project-sync-job.graphql +53 -0
- package/src/schema/projects/types/sync-project-result.graphql +27 -0
- package/src/schema/resources/inputs/create-resource.graphql +2 -0
- package/src/schema/resources/inputs/update-resource.graphql +1 -0
- package/src/schema/resources/types/resource.graphql +2 -0
- package/src/schema/tags/inputs/create-tag.graphql +1 -0
- package/src/schema/tags/inputs/update-tag.graphql +1 -0
- package/src/schema/tags/types/tag.graphql +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantjs/schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "GraphQL schema and generated types for Grant",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"@graphql-typed-document-node/core": "^3.2.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@graphql-codegen/cli": "^
|
|
17
|
-
"@graphql-codegen/client-preset": "^
|
|
18
|
-
"@graphql-codegen/typescript": "^
|
|
19
|
-
"@graphql-codegen/typescript-resolvers": "^
|
|
16
|
+
"@graphql-codegen/cli": "^7.0.0",
|
|
17
|
+
"@graphql-codegen/client-preset": "^6.0.0",
|
|
18
|
+
"@graphql-codegen/typescript": "^6.0.0",
|
|
19
|
+
"@graphql-codegen/typescript-resolvers": "^6.0.0",
|
|
20
20
|
"@parcel/watcher": "^2.5.4",
|
|
21
|
-
"@types/node": "^
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"typescript": "^
|
|
21
|
+
"@types/node": "^25.6.0",
|
|
22
|
+
"eslint": "^10.3.0",
|
|
23
|
+
"typescript": "^6"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsc",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const CDM_EXPORT_SECTIONS = [
|
|
2
|
+
'resources',
|
|
3
|
+
'permissions',
|
|
4
|
+
'groups',
|
|
5
|
+
'tags',
|
|
6
|
+
'roles',
|
|
7
|
+
'users',
|
|
8
|
+
] as const;
|
|
9
|
+
|
|
10
|
+
export type CdmExportSection = (typeof CDM_EXPORT_SECTIONS)[number];
|
|
11
|
+
|
|
12
|
+
export const CDM_HANDLER_INPUT_KEYS = [
|
|
13
|
+
'resources',
|
|
14
|
+
'permissions',
|
|
15
|
+
'tags',
|
|
16
|
+
'roleTemplates',
|
|
17
|
+
'provisionedUsers',
|
|
18
|
+
'userAssignments',
|
|
19
|
+
'projectUserApiKeys',
|
|
20
|
+
] as const;
|
|
21
|
+
|
|
22
|
+
export type CdmHandlerInputKey = (typeof CDM_HANDLER_INPUT_KEYS)[number];
|