@grantjs/schema 1.7.0 → 1.9.0

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 (70) hide show
  1. package/package.json +1 -1
  2. package/src/generated/graphql.ts +1080 -30
  3. package/src/generated/resolvers.ts +185 -0
  4. package/src/generated/schema-types.ts +385 -1
  5. package/src/index.ts +9 -6
  6. package/src/operations/me/my-user-authentication-methods.graphql +1 -0
  7. package/src/operations/project-apps/clear-project-app-picture.graphql +7 -0
  8. package/src/operations/project-apps/get-project-apps.graphql +7 -0
  9. package/src/operations/project-apps/update-project-app.graphql +7 -0
  10. package/src/operations/project-apps/upload-project-app-picture.graphql +6 -0
  11. package/src/operations/projects/clear-project-picture.graphql +7 -0
  12. package/src/operations/projects/getProjects.graphql +3 -0
  13. package/src/operations/projects/updateProject.graphql +3 -0
  14. package/src/operations/projects/upload-project-picture.graphql +6 -0
  15. package/src/operations/uploads/confirm-my-project-membership-picture-upload.graphql +8 -0
  16. package/src/operations/uploads/confirm-my-user-picture-upload.graphql +6 -0
  17. package/src/operations/uploads/confirm-organization-picture-upload.graphql +6 -0
  18. package/src/operations/uploads/confirm-project-app-picture-upload.graphql +6 -0
  19. package/src/operations/uploads/confirm-project-picture-upload.graphql +6 -0
  20. package/src/operations/uploads/confirm-user-picture-upload.graphql +6 -0
  21. package/src/operations/uploads/request-my-project-membership-picture-upload-url.graphql +13 -0
  22. package/src/operations/uploads/request-my-user-picture-upload-url.graphql +11 -0
  23. package/src/operations/uploads/request-organization-picture-upload-url.graphql +11 -0
  24. package/src/operations/uploads/request-project-app-picture-upload-url.graphql +11 -0
  25. package/src/operations/uploads/request-project-picture-upload-url.graphql +11 -0
  26. package/src/operations/uploads/request-user-picture-upload-url.graphql +11 -0
  27. package/src/project-oauth.types.test.ts +18 -0
  28. package/src/project-oauth.types.ts +22 -0
  29. package/src/schema/me/inputs/change-my-password.graphql +4 -1
  30. package/src/schema/me/inputs/confirm-my-project-membership-picture-upload.graphql +4 -0
  31. package/src/schema/me/inputs/confirm-my-user-picture-upload.graphql +8 -0
  32. package/src/schema/me/inputs/request-my-project-membership-picture-upload-url.graphql +11 -0
  33. package/src/schema/me/inputs/request-my-user-picture-upload-url.graphql +11 -0
  34. package/src/schema/me/mutations/confirm-my-project-membership-picture-upload.graphql +10 -0
  35. package/src/schema/me/mutations/confirm-my-user-picture-upload.graphql +9 -0
  36. package/src/schema/me/mutations/request-my-project-membership-picture-upload-url.graphql +13 -0
  37. package/src/schema/me/mutations/request-my-user-picture-upload-url.graphql +12 -0
  38. package/src/schema/organizations/inputs/confirm-organization-picture-upload.graphql +9 -0
  39. package/src/schema/organizations/inputs/request-organization-picture-upload-url.graphql +12 -0
  40. package/src/schema/organizations/mutations/confirm-organization-picture-upload.graphql +10 -0
  41. package/src/schema/organizations/mutations/request-organization-picture-upload-url.graphql +12 -0
  42. package/src/schema/project-apps/inputs/clear-project-app-picture.graphql +4 -0
  43. package/src/schema/project-apps/inputs/confirm-project-app-picture-upload.graphql +9 -0
  44. package/src/schema/project-apps/inputs/request-project-app-picture-upload-url.graphql +12 -0
  45. package/src/schema/project-apps/inputs/update-project-app.graphql +12 -0
  46. package/src/schema/project-apps/inputs/upload-project-app-picture.graphql +7 -0
  47. package/src/schema/project-apps/mutations/clear-project-app-picture.graphql +6 -0
  48. package/src/schema/project-apps/mutations/confirm-project-app-picture-upload.graphql +10 -0
  49. package/src/schema/project-apps/mutations/request-project-app-picture-upload-url.graphql +12 -0
  50. package/src/schema/project-apps/mutations/upload-project-app-picture.graphql +6 -0
  51. package/src/schema/project-apps/types/project-app.graphql +13 -0
  52. package/src/schema/project-apps/types/upload-project-app-picture-result.graphql +4 -0
  53. package/src/schema/projects/inputs/clear-project-picture.graphql +4 -0
  54. package/src/schema/projects/inputs/confirm-project-picture-upload.graphql +9 -0
  55. package/src/schema/projects/inputs/request-project-picture-upload-url.graphql +12 -0
  56. package/src/schema/projects/inputs/update-project.graphql +8 -0
  57. package/src/schema/projects/inputs/upload-project-picture.graphql +7 -0
  58. package/src/schema/projects/mutations/clear-project-picture.graphql +6 -0
  59. package/src/schema/projects/mutations/confirm-project-picture-upload.graphql +8 -0
  60. package/src/schema/projects/mutations/request-project-picture-upload-url.graphql +12 -0
  61. package/src/schema/projects/mutations/upload-project-picture.graphql +6 -0
  62. package/src/schema/projects/types/project.graphql +9 -0
  63. package/src/schema/projects/types/upload-project-picture-result.graphql +4 -0
  64. package/src/schema/uploads/types/upload-url.graphql +33 -0
  65. package/src/schema/user-authentication-method/types/user-authentication-method.graphql +4 -0
  66. package/src/schema/users/inputs/confirm-user-picture-upload.graphql +5 -0
  67. package/src/schema/users/inputs/request-user-picture-upload-url.graphql +12 -0
  68. package/src/schema/users/mutations/confirm-user-picture-upload.graphql +8 -0
  69. package/src/schema/users/mutations/request-user-picture-upload-url.graphql +12 -0
  70. package/src/sdl-contract.test.ts +11 -2
@@ -40,9 +40,18 @@ describe('operation documents', () => {
40
40
 
41
41
  // Pinned, not a floor: pass 5 slice 5 removed one file and two query operations
42
42
  // that were superseded by list queries, and a floor would have absorbed that
43
- // silently. 116 before that slice, 115 after, 116 with upload-organization-picture.
43
+ // silently. 116 before that slice, 115 after it, 117 once part D's first
44
+ // direct-upload pair (`requestMyUserPictureUploadUrl`,
45
+ // `confirmMyUserPictureUpload`) arrived, and 121 with the two remaining targets —
46
+ // project membership and the administrator route — each another request/confirm
47
+ // pair. 122 after `main` merged in, which added `upload-organization-picture`.
48
+ // 124 after slice 17b: organization request/confirm (the last upload target).
49
+ // 132 after project branding: request/confirm/upload/clear for project and
50
+ // project-app pictures (eight operation documents).
51
+ // Updating this number is the point of the pin, not a nuisance: every change
52
+ // to it should be a line in a commit message.
44
53
  it('finds every document under src/operations', () => {
45
- expect(files).toHaveLength(116);
54
+ expect(files).toHaveLength(132);
46
55
  });
47
56
 
48
57
  it.each(files.map((f) => [relative(process.cwd(), f), f]))('%s validates', (_label, file) => {