@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.
Files changed (77) hide show
  1. package/package.json +8 -8
  2. package/src/cdm/cdm-export-sections.ts +22 -0
  3. package/src/generated/graphql.ts +1656 -46
  4. package/src/generated/resolvers.ts +727 -0
  5. package/src/index.ts +11 -10
  6. package/src/operations/auth/login.graphql +2 -0
  7. package/src/operations/auth/setupMfa.graphql +7 -0
  8. package/src/operations/auth/verifyMfa.graphql +7 -0
  9. package/src/operations/auth/verifyMfaRecoveryCode.graphql +7 -0
  10. package/src/operations/me/createMyMfaEnrollment.graphql +7 -0
  11. package/src/operations/me/generateMyMfaRecoveryCodes.graphql +3 -0
  12. package/src/operations/me/me.graphql +1 -0
  13. package/src/operations/me/myMfaDevices.graphql +10 -0
  14. package/src/operations/me/myMfaRecoveryCodeStatus.graphql +6 -0
  15. package/src/operations/me/removeMyMfaDevice.graphql +5 -0
  16. package/src/operations/me/setMyPrimaryMfaDevice.graphql +6 -0
  17. package/src/operations/me/verifyMyMfaEnrollment.graphql +5 -0
  18. package/src/operations/organizations/getOrganizations.graphql +1 -0
  19. package/src/operations/organizations/updateOrganization.graphql +1 -0
  20. package/src/operations/projects/cancel-project-sync.graphql +17 -0
  21. package/src/operations/projects/project-sync-job.graphql +37 -0
  22. package/src/operations/projects/project-sync-jobs.graphql +40 -0
  23. package/src/operations/projects/start-project-export.graphql +20 -0
  24. package/src/operations/projects/start-project-sync.graphql +17 -0
  25. package/src/operations/resources/createResource.graphql +6 -0
  26. package/src/schema/auth/inputs/verify-mfa-recovery-code.graphql +3 -0
  27. package/src/schema/auth/inputs/verify-mfa.graphql +3 -0
  28. package/src/schema/auth/mutations/setup-mfa.graphql +3 -0
  29. package/src/schema/auth/mutations/verify-mfa-recovery-code.graphql +3 -0
  30. package/src/schema/auth/mutations/verify-mfa.graphql +3 -0
  31. package/src/schema/auth/types/login-response.graphql +5 -0
  32. package/src/schema/auth/types/mfa-setup-response.graphql +5 -0
  33. package/src/schema/auth/types/mfa-verify-response.graphql +5 -0
  34. package/src/schema/me/inputs/generate-my-mfa-recovery-codes.graphql +3 -0
  35. package/src/schema/me/inputs/remove-my-mfa-device.graphql +3 -0
  36. package/src/schema/me/inputs/set-my-primary-mfa-device.graphql +3 -0
  37. package/src/schema/me/inputs/verify-my-mfa-enrollment.graphql +3 -0
  38. package/src/schema/me/mutations/create-my-mfa-enrollment.graphql +3 -0
  39. package/src/schema/me/mutations/generate-my-mfa-recovery-codes.graphql +3 -0
  40. package/src/schema/me/mutations/remove-my-mfa-device.graphql +3 -0
  41. package/src/schema/me/mutations/set-my-primary-mfa-device.graphql +3 -0
  42. package/src/schema/me/mutations/verify-my-mfa-enrollment.graphql +3 -0
  43. package/src/schema/me/queries/my-mfa-devices.graphql +3 -0
  44. package/src/schema/me/queries/my-mfa-recovery-code-status.graphql +3 -0
  45. package/src/schema/me/types/me-response.graphql +1 -0
  46. package/src/schema/me/types/mfa-device.graphql +8 -0
  47. package/src/schema/me/types/mfa-enrollment.graphql +5 -0
  48. package/src/schema/me/types/mfa-recovery-code-status.graphql +4 -0
  49. package/src/schema/me/types/mfa-verify-result.graphql +3 -0
  50. package/src/schema/organization-users/inputs/add-organization-user.graphql +1 -0
  51. package/src/schema/organization-users/types/organization-user.graphql +1 -0
  52. package/src/schema/organizations/inputs/update-organization.graphql +1 -0
  53. package/src/schema/organizations/types/organization.graphql +1 -0
  54. package/src/schema/permissions/inputs/create-permission.graphql +1 -0
  55. package/src/schema/permissions/inputs/update-permission.graphql +1 -0
  56. package/src/schema/permissions/types/permission.graphql +1 -0
  57. package/src/schema/project-user-api-keys/inputs/add-project-user-api-key.graphql +4 -0
  58. package/src/schema/project-users/inputs/add-project-user.graphql +1 -0
  59. package/src/schema/project-users/types/project-user.graphql +3 -0
  60. package/src/schema/projects/inputs/project-sync-job-sort.graphql +4 -0
  61. package/src/schema/projects/inputs/start-project-export.graphql +31 -0
  62. package/src/schema/projects/inputs/sync-project-cdm.graphql +132 -0
  63. package/src/schema/projects/mutations/cancel-project-sync.graphql +9 -0
  64. package/src/schema/projects/mutations/start-project-export.graphql +12 -0
  65. package/src/schema/projects/mutations/start-project-sync.graphql +15 -0
  66. package/src/schema/projects/queries/project-sync-job.graphql +7 -0
  67. package/src/schema/projects/queries/project-sync-jobs.graphql +17 -0
  68. package/src/schema/projects/types/project-sync-job-page.graphql +8 -0
  69. package/src/schema/projects/types/project-sync-job-sortable-field.graphql +7 -0
  70. package/src/schema/projects/types/project-sync-job.graphql +53 -0
  71. package/src/schema/projects/types/sync-project-result.graphql +27 -0
  72. package/src/schema/resources/inputs/create-resource.graphql +2 -0
  73. package/src/schema/resources/inputs/update-resource.graphql +1 -0
  74. package/src/schema/resources/types/resource.graphql +2 -0
  75. package/src/schema/tags/inputs/create-tag.graphql +1 -0
  76. package/src/schema/tags/inputs/update-tag.graphql +1 -0
  77. 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.0.0",
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": "^6.0.0",
17
- "@graphql-codegen/client-preset": "^5.0.0",
18
- "@graphql-codegen/typescript": "^5.0.0",
19
- "@graphql-codegen/typescript-resolvers": "^5.0.0",
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": "^24.7.2",
22
- "eslint": "^9.37.0",
23
- "typescript": "^5"
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];