@constructive-io/react 1.9.2 → 1.9.3

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 (220) hide show
  1. package/admin/hooks/index.d.ts +1 -1
  2. package/admin/hooks/index.js +1 -1
  3. package/admin/hooks/invalidation.d.ts +24 -0
  4. package/admin/hooks/invalidation.js +64 -0
  5. package/admin/hooks/mutation-keys.d.ts +48 -0
  6. package/admin/hooks/mutation-keys.js +32 -1
  7. package/admin/hooks/mutations/index.d.ts +8 -0
  8. package/admin/hooks/mutations/index.js +8 -0
  9. package/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
  10. package/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js} +6 -6
  11. package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
  12. package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.js +34 -0
  13. package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
  14. package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +34 -0
  15. package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
  16. package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +34 -0
  17. package/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
  18. package/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +7 -7
  19. package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
  20. package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +39 -0
  21. package/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
  22. package/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +9 -9
  23. package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
  24. package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +40 -0
  25. package/admin/hooks/queries/index.d.ts +7 -0
  26. package/admin/hooks/queries/index.js +7 -0
  27. package/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
  28. package/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +14 -14
  29. package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
  30. package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.js +38 -0
  31. package/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
  32. package/admin/hooks/queries/useOrgChartEdgeQuery.js +53 -0
  33. package/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
  34. package/admin/hooks/queries/useOrgChartEdgesQuery.js +38 -0
  35. package/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
  36. package/admin/hooks/queries/useOrgGetManagersQuery.js +38 -0
  37. package/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
  38. package/admin/hooks/queries/useOrgGetSubordinatesQuery.js +38 -0
  39. package/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
  40. package/admin/hooks/queries/useOrgIsManagerOfQuery.js +53 -0
  41. package/admin/hooks/query-keys.d.ts +58 -0
  42. package/admin/hooks/query-keys.js +34 -1
  43. package/admin/orm/index.d.ts +13 -0
  44. package/admin/orm/index.js +8 -0
  45. package/admin/orm/input-types.d.ts +399 -0
  46. package/admin/orm/models/index.d.ts +4 -0
  47. package/admin/orm/models/index.js +9 -1
  48. package/admin/orm/models/orgChartEdge.d.ts +54 -0
  49. package/admin/orm/models/orgChartEdge.js +104 -0
  50. package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
  51. package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
  52. package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
  53. package/admin/orm/models/orgGetManagersRecord.js +59 -0
  54. package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
  55. package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
  56. package/admin/orm/query/index.d.ts +11 -0
  57. package/admin/orm/query/index.js +24 -0
  58. package/admin/schema-types.d.ts +247 -1
  59. package/admin/types.d.ts +29 -0
  60. package/api/hooks/index.d.ts +1 -1
  61. package/api/hooks/index.js +1 -1
  62. package/api/hooks/invalidation.d.ts +6 -12
  63. package/api/hooks/invalidation.js +16 -32
  64. package/api/hooks/mutation-keys.d.ts +12 -24
  65. package/api/hooks/mutation-keys.js +9 -16
  66. package/api/hooks/mutations/index.d.ts +3 -6
  67. package/api/hooks/mutations/index.js +3 -6
  68. package/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
  69. package/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +6 -6
  70. package/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
  71. package/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +7 -7
  72. package/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
  73. package/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +9 -9
  74. package/api/hooks/queries/index.d.ts +2 -4
  75. package/api/hooks/queries/index.js +2 -4
  76. package/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
  77. package/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +14 -14
  78. package/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
  79. package/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +14 -14
  80. package/api/hooks/query-keys.d.ts +14 -28
  81. package/api/hooks/query-keys.js +10 -18
  82. package/api/orm/index.d.ts +2 -4
  83. package/api/orm/index.js +2 -4
  84. package/api/orm/input-types.d.ts +378 -468
  85. package/api/orm/input-types.js +2 -2
  86. package/api/orm/models/domainType.d.ts +54 -0
  87. package/api/orm/models/{apiModule.js → domainType.js} +27 -27
  88. package/api/orm/models/index.d.ts +1 -2
  89. package/api/orm/models/index.js +4 -6
  90. package/api/schema-types.d.ts +157 -226
  91. package/api/types.d.ts +16 -17
  92. package/compute/orm/input-types.d.ts +42 -3
  93. package/compute/schema-types.d.ts +25 -3
  94. package/compute/types.d.ts +5 -0
  95. package/esm/admin/hooks/index.d.ts +1 -1
  96. package/esm/admin/hooks/index.js +1 -1
  97. package/esm/admin/hooks/invalidation.d.ts +24 -0
  98. package/esm/admin/hooks/invalidation.js +65 -1
  99. package/esm/admin/hooks/mutation-keys.d.ts +48 -0
  100. package/esm/admin/hooks/mutation-keys.js +31 -0
  101. package/esm/admin/hooks/mutations/index.d.ts +8 -0
  102. package/esm/admin/hooks/mutations/index.js +8 -0
  103. package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
  104. package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js +31 -0
  105. package/esm/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
  106. package/esm/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeMutation.js} +7 -7
  107. package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
  108. package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +31 -0
  109. package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
  110. package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +31 -0
  111. package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
  112. package/esm/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +8 -8
  113. package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
  114. package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +36 -0
  115. package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
  116. package/esm/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +10 -10
  117. package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
  118. package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +37 -0
  119. package/esm/admin/hooks/queries/index.d.ts +7 -0
  120. package/esm/admin/hooks/queries/index.js +7 -0
  121. package/esm/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
  122. package/esm/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +11 -11
  123. package/esm/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
  124. package/esm/{api/hooks/queries/usePlatformApiModulesQuery.js → admin/hooks/queries/useOrgChartEdgeGrantsQuery.js} +11 -11
  125. package/esm/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
  126. package/esm/admin/hooks/queries/useOrgChartEdgeQuery.js +47 -0
  127. package/esm/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
  128. package/esm/admin/hooks/queries/useOrgChartEdgesQuery.js +32 -0
  129. package/esm/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
  130. package/esm/admin/hooks/queries/useOrgGetManagersQuery.js +32 -0
  131. package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
  132. package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.js +32 -0
  133. package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
  134. package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.js +47 -0
  135. package/esm/admin/hooks/query-keys.d.ts +58 -0
  136. package/esm/admin/hooks/query-keys.js +33 -0
  137. package/esm/admin/orm/index.d.ts +13 -0
  138. package/esm/admin/orm/index.js +8 -0
  139. package/esm/admin/orm/input-types.d.ts +399 -0
  140. package/esm/admin/orm/models/index.d.ts +4 -0
  141. package/esm/admin/orm/models/index.js +4 -0
  142. package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
  143. package/esm/admin/orm/models/orgChartEdge.js +100 -0
  144. package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
  145. package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
  146. package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
  147. package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
  148. package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
  149. package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
  150. package/esm/admin/orm/query/index.d.ts +11 -0
  151. package/esm/admin/orm/query/index.js +24 -0
  152. package/esm/admin/schema-types.d.ts +247 -1
  153. package/esm/admin/types.d.ts +29 -0
  154. package/esm/api/hooks/index.d.ts +1 -1
  155. package/esm/api/hooks/index.js +1 -1
  156. package/esm/api/hooks/invalidation.d.ts +6 -12
  157. package/esm/api/hooks/invalidation.js +17 -33
  158. package/esm/api/hooks/mutation-keys.d.ts +12 -24
  159. package/esm/api/hooks/mutation-keys.js +7 -14
  160. package/esm/api/hooks/mutations/index.d.ts +3 -6
  161. package/esm/api/hooks/mutations/index.js +3 -6
  162. package/esm/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
  163. package/esm/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +7 -7
  164. package/esm/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
  165. package/esm/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +8 -8
  166. package/esm/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
  167. package/esm/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +10 -10
  168. package/esm/api/hooks/queries/index.d.ts +2 -4
  169. package/esm/api/hooks/queries/index.js +2 -4
  170. package/esm/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
  171. package/esm/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +11 -11
  172. package/esm/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
  173. package/esm/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +11 -11
  174. package/esm/api/hooks/query-keys.d.ts +14 -28
  175. package/esm/api/hooks/query-keys.js +8 -16
  176. package/esm/api/orm/index.d.ts +2 -4
  177. package/esm/api/orm/index.js +2 -4
  178. package/esm/api/orm/input-types.d.ts +378 -468
  179. package/esm/api/orm/input-types.js +2 -2
  180. package/esm/api/orm/models/domainType.d.ts +54 -0
  181. package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
  182. package/esm/api/orm/models/index.d.ts +1 -2
  183. package/esm/api/orm/models/index.js +1 -2
  184. package/esm/api/schema-types.d.ts +157 -226
  185. package/esm/api/types.d.ts +16 -17
  186. package/esm/compute/orm/input-types.d.ts +42 -3
  187. package/esm/compute/schema-types.d.ts +25 -3
  188. package/esm/compute/types.d.ts +5 -0
  189. package/esm/modules/orm/input-types.d.ts +9 -16
  190. package/esm/modules/schema-types.d.ts +6 -10
  191. package/esm/modules/types.d.ts +1 -2
  192. package/modules/orm/input-types.d.ts +9 -16
  193. package/modules/schema-types.d.ts +6 -10
  194. package/modules/types.d.ts +1 -2
  195. package/package.json +5 -5
  196. package/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
  197. package/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
  198. package/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
  199. package/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
  200. package/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
  201. package/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
  202. package/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
  203. package/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
  204. package/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
  205. package/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
  206. package/api/hooks/queries/usePlatformApiModulesQuery.js +0 -38
  207. package/api/orm/models/apiModule.d.ts +0 -54
  208. package/api/orm/models/platformApiModule.d.ts +0 -54
  209. package/esm/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
  210. package/esm/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
  211. package/esm/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
  212. package/esm/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
  213. package/esm/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
  214. package/esm/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
  215. package/esm/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
  216. package/esm/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
  217. package/esm/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
  218. package/esm/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
  219. package/esm/api/orm/models/apiModule.d.ts +0 -54
  220. package/esm/api/orm/models/platformApiModule.d.ts +0 -54
@@ -414,6 +414,42 @@ export interface OrgAdminGrant {
414
414
  isGrant?: boolean | null;
415
415
  updatedAt?: string | null;
416
416
  }
417
+ /** Organizational chart edges defining parent-child reporting relationships between members within an entity */
418
+ export interface OrgChartEdge {
419
+ /** User ID of the subordinate (employee) in this reporting relationship */
420
+ childId?: string | null;
421
+ createdAt?: string | null;
422
+ /** Organization this hierarchy edge belongs to */
423
+ entityId?: string | null;
424
+ id: string;
425
+ /** User ID of the manager; NULL indicates a top-level position with no direct report */
426
+ parentId?: string | null;
427
+ /** Numeric seniority level for this position (higher = more senior) */
428
+ positionLevel?: number | null;
429
+ /** Job title or role name for this position in the org chart */
430
+ positionTitle?: string | null;
431
+ updatedAt?: string | null;
432
+ }
433
+ /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */
434
+ export interface OrgChartEdgeGrant {
435
+ /** User ID of the subordinate being placed in the hierarchy */
436
+ childId?: string | null;
437
+ /** Timestamp when this grant or revocation was recorded */
438
+ createdAt?: string | null;
439
+ /** Organization this grant applies to */
440
+ entityId?: string | null;
441
+ /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */
442
+ grantorId?: string | null;
443
+ id: string;
444
+ /** TRUE to add/update the edge, FALSE to remove it */
445
+ isGrant?: boolean | null;
446
+ /** User ID of the manager being assigned; NULL for top-level positions */
447
+ parentId?: string | null;
448
+ /** Numeric seniority level being assigned in this grant */
449
+ positionLevel?: number | null;
450
+ /** Job title or role name being assigned in this grant */
451
+ positionTitle?: string | null;
452
+ }
417
453
  /** Records of successfully claimed invitations, linking senders to receivers */
418
454
  export interface OrgClaimedInvite {
419
455
  createdAt?: string | null;
@@ -427,6 +463,14 @@ export interface OrgClaimedInvite {
427
463
  senderId?: string | null;
428
464
  updatedAt?: string | null;
429
465
  }
466
+ export interface OrgGetManagersRecord {
467
+ depth?: number | null;
468
+ userId?: string | null;
469
+ }
470
+ export interface OrgGetSubordinatesRecord {
471
+ depth?: number | null;
472
+ userId?: string | null;
473
+ }
430
474
  /** Records of individual permission grants and revocations for members via bitmask */
431
475
  export interface OrgGrant {
432
476
  /** The member receiving or losing the permission grant; NULL if user was deleted */
@@ -677,8 +721,16 @@ export interface MembershipTypeRelations {
677
721
  }
678
722
  export interface OrgAdminGrantRelations {
679
723
  }
724
+ export interface OrgChartEdgeRelations {
725
+ }
726
+ export interface OrgChartEdgeGrantRelations {
727
+ }
680
728
  export interface OrgClaimedInviteRelations {
681
729
  }
730
+ export interface OrgGetManagersRecordRelations {
731
+ }
732
+ export interface OrgGetSubordinatesRecordRelations {
733
+ }
682
734
  export interface OrgGrantRelations {
683
735
  }
684
736
  export interface OrgInviteRelations {
@@ -722,7 +774,11 @@ export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant &
722
774
  export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & AppPermissionDefaultPermissionRelations;
723
775
  export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations;
724
776
  export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations;
777
+ export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations;
778
+ export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations;
725
779
  export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations;
780
+ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations;
781
+ export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations;
726
782
  export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations;
727
783
  export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations;
728
784
  export type OrgMemberWithRelations = OrgMember & OrgMemberRelations;
@@ -869,6 +925,27 @@ export type OrgAdminGrantSelect = {
869
925
  isGrant?: boolean;
870
926
  updatedAt?: boolean;
871
927
  };
928
+ export type OrgChartEdgeSelect = {
929
+ childId?: boolean;
930
+ createdAt?: boolean;
931
+ entityId?: boolean;
932
+ id?: boolean;
933
+ parentId?: boolean;
934
+ positionLevel?: boolean;
935
+ positionTitle?: boolean;
936
+ updatedAt?: boolean;
937
+ };
938
+ export type OrgChartEdgeGrantSelect = {
939
+ childId?: boolean;
940
+ createdAt?: boolean;
941
+ entityId?: boolean;
942
+ grantorId?: boolean;
943
+ id?: boolean;
944
+ isGrant?: boolean;
945
+ parentId?: boolean;
946
+ positionLevel?: boolean;
947
+ positionTitle?: boolean;
948
+ };
872
949
  export type OrgClaimedInviteSelect = {
873
950
  createdAt?: boolean;
874
951
  data?: boolean;
@@ -878,6 +955,14 @@ export type OrgClaimedInviteSelect = {
878
955
  senderId?: boolean;
879
956
  updatedAt?: boolean;
880
957
  };
958
+ export type OrgGetManagersRecordSelect = {
959
+ depth?: boolean;
960
+ userId?: boolean;
961
+ };
962
+ export type OrgGetSubordinatesRecordSelect = {
963
+ depth?: boolean;
964
+ userId?: boolean;
965
+ };
881
966
  export type OrgGrantSelect = {
882
967
  actorId?: boolean;
883
968
  createdAt?: boolean;
@@ -1331,6 +1416,56 @@ export interface OrgAdminGrantFilter {
1331
1416
  /** Filter by the object’s `updatedAt` field. */
1332
1417
  updatedAt?: DatetimeFilter;
1333
1418
  }
1419
+ export interface OrgChartEdgeFilter {
1420
+ /** Checks for all expressions in this list. */
1421
+ and?: OrgChartEdgeFilter[];
1422
+ /** Filter by the object’s `childId` field. */
1423
+ childId?: UUIDFilter;
1424
+ /** Filter by the object’s `createdAt` field. */
1425
+ createdAt?: DatetimeFilter;
1426
+ /** Filter by the object’s `entityId` field. */
1427
+ entityId?: UUIDFilter;
1428
+ /** Filter by the object’s `id` field. */
1429
+ id?: UUIDFilter;
1430
+ /** Negates the expression. */
1431
+ not?: OrgChartEdgeFilter;
1432
+ /** Checks for any expressions in this list. */
1433
+ or?: OrgChartEdgeFilter[];
1434
+ /** Filter by the object’s `parentId` field. */
1435
+ parentId?: UUIDFilter;
1436
+ /** Filter by the object’s `positionLevel` field. */
1437
+ positionLevel?: IntFilter;
1438
+ /** Filter by the object’s `positionTitle` field. */
1439
+ positionTitle?: StringFilter;
1440
+ /** Filter by the object’s `updatedAt` field. */
1441
+ updatedAt?: DatetimeFilter;
1442
+ }
1443
+ export interface OrgChartEdgeGrantFilter {
1444
+ /** Checks for all expressions in this list. */
1445
+ and?: OrgChartEdgeGrantFilter[];
1446
+ /** Filter by the object’s `childId` field. */
1447
+ childId?: UUIDFilter;
1448
+ /** Filter by the object’s `createdAt` field. */
1449
+ createdAt?: DatetimeFilter;
1450
+ /** Filter by the object’s `entityId` field. */
1451
+ entityId?: UUIDFilter;
1452
+ /** Filter by the object’s `grantorId` field. */
1453
+ grantorId?: UUIDFilter;
1454
+ /** Filter by the object’s `id` field. */
1455
+ id?: UUIDFilter;
1456
+ /** Filter by the object’s `isGrant` field. */
1457
+ isGrant?: BooleanFilter;
1458
+ /** Negates the expression. */
1459
+ not?: OrgChartEdgeGrantFilter;
1460
+ /** Checks for any expressions in this list. */
1461
+ or?: OrgChartEdgeGrantFilter[];
1462
+ /** Filter by the object’s `parentId` field. */
1463
+ parentId?: UUIDFilter;
1464
+ /** Filter by the object’s `positionLevel` field. */
1465
+ positionLevel?: IntFilter;
1466
+ /** Filter by the object’s `positionTitle` field. */
1467
+ positionTitle?: StringFilter;
1468
+ }
1334
1469
  export interface OrgClaimedInviteFilter {
1335
1470
  /** Checks for all expressions in this list. */
1336
1471
  and?: OrgClaimedInviteFilter[];
@@ -1351,6 +1486,20 @@ export interface OrgClaimedInviteFilter {
1351
1486
  /** Filter by the object’s `updatedAt` field. */
1352
1487
  updatedAt?: DatetimeFilter;
1353
1488
  }
1489
+ export interface OrgGetManagersRecordFilter {
1490
+ depth?: IntFilter;
1491
+ userId?: UUIDFilter;
1492
+ and?: OrgGetManagersRecordFilter[];
1493
+ or?: OrgGetManagersRecordFilter[];
1494
+ not?: OrgGetManagersRecordFilter;
1495
+ }
1496
+ export interface OrgGetSubordinatesRecordFilter {
1497
+ depth?: IntFilter;
1498
+ userId?: UUIDFilter;
1499
+ and?: OrgGetSubordinatesRecordFilter[];
1500
+ or?: OrgGetSubordinatesRecordFilter[];
1501
+ not?: OrgGetSubordinatesRecordFilter;
1502
+ }
1354
1503
  export interface OrgGrantFilter {
1355
1504
  /** Filter by the object’s `actorId` field. */
1356
1505
  actorId?: UUIDFilter;
@@ -1690,7 +1839,11 @@ export type AppPermissionDefaultGrantOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DE
1690
1839
  export type AppPermissionDefaultPermissionOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PERMISSION_ID_ASC' | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1691
1840
  export type MembershipTypeOrderBy = 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' | 'HAS_USERS_TABLE_ENTRY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC';
1692
1841
  export type OrgAdminGrantOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1842
+ export type OrgChartEdgeOrderBy = 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1843
+ export type OrgChartEdgeGrantOrderBy = 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
1693
1844
  export type OrgClaimedInviteOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1845
+ export type OrgGetManagersRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'DEPTH_ASC' | 'DEPTH_DESC' | 'USER_ID_ASC' | 'USER_ID_DESC';
1846
+ export type OrgGetSubordinatesRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'DEPTH_ASC' | 'DEPTH_DESC' | 'USER_ID_ASC' | 'USER_ID_DESC';
1694
1847
  export type OrgGrantOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1695
1848
  export type OrgInviteOrderBy = 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'NATURAL' | 'PHONE_ASC' | 'PHONE_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1696
1849
  export type OrgMemberOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
@@ -2031,6 +2184,62 @@ export interface DeleteOrgAdminGrantInput {
2031
2184
  clientMutationId?: string;
2032
2185
  id: string;
2033
2186
  }
2187
+ export interface CreateOrgChartEdgeInput {
2188
+ clientMutationId?: string;
2189
+ orgChartEdge: {
2190
+ childId: string;
2191
+ entityId: string;
2192
+ parentId?: string;
2193
+ positionLevel?: number;
2194
+ positionTitle?: string;
2195
+ };
2196
+ }
2197
+ export interface OrgChartEdgePatch {
2198
+ childId?: string | null;
2199
+ entityId?: string | null;
2200
+ parentId?: string | null;
2201
+ positionLevel?: number | null;
2202
+ positionTitle?: string | null;
2203
+ }
2204
+ export interface UpdateOrgChartEdgeInput {
2205
+ clientMutationId?: string;
2206
+ id: string;
2207
+ orgChartEdgePatch: OrgChartEdgePatch;
2208
+ }
2209
+ export interface DeleteOrgChartEdgeInput {
2210
+ clientMutationId?: string;
2211
+ id: string;
2212
+ }
2213
+ export interface CreateOrgChartEdgeGrantInput {
2214
+ clientMutationId?: string;
2215
+ orgChartEdgeGrant: {
2216
+ childId: string;
2217
+ entityId: string;
2218
+ grantorId?: string;
2219
+ isGrant?: boolean;
2220
+ parentId?: string;
2221
+ positionLevel?: number;
2222
+ positionTitle?: string;
2223
+ };
2224
+ }
2225
+ export interface OrgChartEdgeGrantPatch {
2226
+ childId?: string | null;
2227
+ entityId?: string | null;
2228
+ grantorId?: string | null;
2229
+ isGrant?: boolean | null;
2230
+ parentId?: string | null;
2231
+ positionLevel?: number | null;
2232
+ positionTitle?: string | null;
2233
+ }
2234
+ export interface UpdateOrgChartEdgeGrantInput {
2235
+ clientMutationId?: string;
2236
+ id: string;
2237
+ orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch;
2238
+ }
2239
+ export interface DeleteOrgChartEdgeGrantInput {
2240
+ clientMutationId?: string;
2241
+ id: string;
2242
+ }
2034
2243
  export interface CreateOrgClaimedInviteInput {
2035
2244
  clientMutationId?: string;
2036
2245
  orgClaimedInvite: {
@@ -2055,6 +2264,46 @@ export interface DeleteOrgClaimedInviteInput {
2055
2264
  clientMutationId?: string;
2056
2265
  id: string;
2057
2266
  }
2267
+ export interface CreateOrgGetManagersRecordInput {
2268
+ clientMutationId?: string;
2269
+ orgGetManagersRecord: {
2270
+ depth?: number;
2271
+ userId: string;
2272
+ };
2273
+ }
2274
+ export interface OrgGetManagersRecordPatch {
2275
+ depth?: number | null;
2276
+ userId?: string | null;
2277
+ }
2278
+ export interface UpdateOrgGetManagersRecordInput {
2279
+ clientMutationId?: string;
2280
+ id: string;
2281
+ orgGetManagersRecordPatch: OrgGetManagersRecordPatch;
2282
+ }
2283
+ export interface DeleteOrgGetManagersRecordInput {
2284
+ clientMutationId?: string;
2285
+ id: string;
2286
+ }
2287
+ export interface CreateOrgGetSubordinatesRecordInput {
2288
+ clientMutationId?: string;
2289
+ orgGetSubordinatesRecord: {
2290
+ depth?: number;
2291
+ userId: string;
2292
+ };
2293
+ }
2294
+ export interface OrgGetSubordinatesRecordPatch {
2295
+ depth?: number | null;
2296
+ userId?: string | null;
2297
+ }
2298
+ export interface UpdateOrgGetSubordinatesRecordInput {
2299
+ clientMutationId?: string;
2300
+ id: string;
2301
+ orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch;
2302
+ }
2303
+ export interface DeleteOrgGetSubordinatesRecordInput {
2304
+ clientMutationId?: string;
2305
+ id: string;
2306
+ }
2058
2307
  export interface CreateOrgGrantInput {
2059
2308
  clientMutationId?: string;
2060
2309
  orgGrant: {
@@ -2742,6 +2991,42 @@ export interface OrgAdminGrantInput {
2742
2991
  isGrant?: boolean;
2743
2992
  updatedAt?: string;
2744
2993
  }
2994
+ /** An input for mutations affecting `OrgChartEdge` */
2995
+ export interface OrgChartEdgeInput {
2996
+ /** User ID of the subordinate (employee) in this reporting relationship */
2997
+ childId: string;
2998
+ createdAt?: string;
2999
+ /** Organization this hierarchy edge belongs to */
3000
+ entityId: string;
3001
+ id?: string;
3002
+ /** User ID of the manager; NULL indicates a top-level position with no direct report */
3003
+ parentId?: string;
3004
+ /** Numeric seniority level for this position (higher = more senior) */
3005
+ positionLevel?: number;
3006
+ /** Job title or role name for this position in the org chart */
3007
+ positionTitle?: string;
3008
+ updatedAt?: string;
3009
+ }
3010
+ /** An input for mutations affecting `OrgChartEdgeGrant` */
3011
+ export interface OrgChartEdgeGrantInput {
3012
+ /** User ID of the subordinate being placed in the hierarchy */
3013
+ childId: string;
3014
+ /** Timestamp when this grant or revocation was recorded */
3015
+ createdAt?: string;
3016
+ /** Organization this grant applies to */
3017
+ entityId: string;
3018
+ /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */
3019
+ grantorId?: string;
3020
+ id?: string;
3021
+ /** TRUE to add/update the edge, FALSE to remove it */
3022
+ isGrant?: boolean;
3023
+ /** User ID of the manager being assigned; NULL for top-level positions */
3024
+ parentId?: string;
3025
+ /** Numeric seniority level being assigned in this grant */
3026
+ positionLevel?: number;
3027
+ /** Job title or role name being assigned in this grant */
3028
+ positionTitle?: string;
3029
+ }
2745
3030
  /** An input for mutations affecting `OrgClaimedInvite` */
2746
3031
  export interface OrgClaimedInviteInput {
2747
3032
  createdAt?: string;
@@ -3969,6 +4254,96 @@ export type DeleteOrgAdminGrantPayloadSelect = {
3969
4254
  select: OrgAdminGrantEdgeSelect;
3970
4255
  };
3971
4256
  };
4257
+ export interface CreateOrgChartEdgePayload {
4258
+ clientMutationId?: string | null;
4259
+ /** The `OrgChartEdge` that was created by this mutation. */
4260
+ orgChartEdge?: OrgChartEdge | null;
4261
+ orgChartEdgeEdge?: OrgChartEdgeEdge | null;
4262
+ }
4263
+ export type CreateOrgChartEdgePayloadSelect = {
4264
+ clientMutationId?: boolean;
4265
+ orgChartEdge?: {
4266
+ select: OrgChartEdgeSelect;
4267
+ };
4268
+ orgChartEdgeEdge?: {
4269
+ select: OrgChartEdgeEdgeSelect;
4270
+ };
4271
+ };
4272
+ export interface UpdateOrgChartEdgePayload {
4273
+ clientMutationId?: string | null;
4274
+ /** The `OrgChartEdge` that was updated by this mutation. */
4275
+ orgChartEdge?: OrgChartEdge | null;
4276
+ orgChartEdgeEdge?: OrgChartEdgeEdge | null;
4277
+ }
4278
+ export type UpdateOrgChartEdgePayloadSelect = {
4279
+ clientMutationId?: boolean;
4280
+ orgChartEdge?: {
4281
+ select: OrgChartEdgeSelect;
4282
+ };
4283
+ orgChartEdgeEdge?: {
4284
+ select: OrgChartEdgeEdgeSelect;
4285
+ };
4286
+ };
4287
+ export interface DeleteOrgChartEdgePayload {
4288
+ clientMutationId?: string | null;
4289
+ /** The `OrgChartEdge` that was deleted by this mutation. */
4290
+ orgChartEdge?: OrgChartEdge | null;
4291
+ orgChartEdgeEdge?: OrgChartEdgeEdge | null;
4292
+ }
4293
+ export type DeleteOrgChartEdgePayloadSelect = {
4294
+ clientMutationId?: boolean;
4295
+ orgChartEdge?: {
4296
+ select: OrgChartEdgeSelect;
4297
+ };
4298
+ orgChartEdgeEdge?: {
4299
+ select: OrgChartEdgeEdgeSelect;
4300
+ };
4301
+ };
4302
+ export interface CreateOrgChartEdgeGrantPayload {
4303
+ clientMutationId?: string | null;
4304
+ /** The `OrgChartEdgeGrant` that was created by this mutation. */
4305
+ orgChartEdgeGrant?: OrgChartEdgeGrant | null;
4306
+ orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null;
4307
+ }
4308
+ export type CreateOrgChartEdgeGrantPayloadSelect = {
4309
+ clientMutationId?: boolean;
4310
+ orgChartEdgeGrant?: {
4311
+ select: OrgChartEdgeGrantSelect;
4312
+ };
4313
+ orgChartEdgeGrantEdge?: {
4314
+ select: OrgChartEdgeGrantEdgeSelect;
4315
+ };
4316
+ };
4317
+ export interface UpdateOrgChartEdgeGrantPayload {
4318
+ clientMutationId?: string | null;
4319
+ /** The `OrgChartEdgeGrant` that was updated by this mutation. */
4320
+ orgChartEdgeGrant?: OrgChartEdgeGrant | null;
4321
+ orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null;
4322
+ }
4323
+ export type UpdateOrgChartEdgeGrantPayloadSelect = {
4324
+ clientMutationId?: boolean;
4325
+ orgChartEdgeGrant?: {
4326
+ select: OrgChartEdgeGrantSelect;
4327
+ };
4328
+ orgChartEdgeGrantEdge?: {
4329
+ select: OrgChartEdgeGrantEdgeSelect;
4330
+ };
4331
+ };
4332
+ export interface DeleteOrgChartEdgeGrantPayload {
4333
+ clientMutationId?: string | null;
4334
+ /** The `OrgChartEdgeGrant` that was deleted by this mutation. */
4335
+ orgChartEdgeGrant?: OrgChartEdgeGrant | null;
4336
+ orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null;
4337
+ }
4338
+ export type DeleteOrgChartEdgeGrantPayloadSelect = {
4339
+ clientMutationId?: boolean;
4340
+ orgChartEdgeGrant?: {
4341
+ select: OrgChartEdgeGrantSelect;
4342
+ };
4343
+ orgChartEdgeGrantEdge?: {
4344
+ select: OrgChartEdgeGrantEdgeSelect;
4345
+ };
4346
+ };
3972
4347
  export interface CreateOrgClaimedInvitePayload {
3973
4348
  clientMutationId?: string | null;
3974
4349
  /** The `OrgClaimedInvite` that was created by this mutation. */
@@ -4739,6 +5114,30 @@ export type OrgAdminGrantEdgeSelect = {
4739
5114
  select: OrgAdminGrantSelect;
4740
5115
  };
4741
5116
  };
5117
+ /** A `OrgChartEdge` edge in the connection. */
5118
+ export interface OrgChartEdgeEdge {
5119
+ cursor?: string | null;
5120
+ /** The `OrgChartEdge` at the end of the edge. */
5121
+ node?: OrgChartEdge | null;
5122
+ }
5123
+ export type OrgChartEdgeEdgeSelect = {
5124
+ cursor?: boolean;
5125
+ node?: {
5126
+ select: OrgChartEdgeSelect;
5127
+ };
5128
+ };
5129
+ /** A `OrgChartEdgeGrant` edge in the connection. */
5130
+ export interface OrgChartEdgeGrantEdge {
5131
+ cursor?: string | null;
5132
+ /** The `OrgChartEdgeGrant` at the end of the edge. */
5133
+ node?: OrgChartEdgeGrant | null;
5134
+ }
5135
+ export type OrgChartEdgeGrantEdgeSelect = {
5136
+ cursor?: boolean;
5137
+ node?: {
5138
+ select: OrgChartEdgeGrantSelect;
5139
+ };
5140
+ };
4742
5141
  /** A `OrgClaimedInvite` edge in the connection. */
4743
5142
  export interface OrgClaimedInviteEdge {
4744
5143
  cursor?: string | null;
@@ -16,7 +16,11 @@ export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant';
16
16
  export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission';
17
17
  export { MembershipTypeModel } from './membershipType';
18
18
  export { OrgAdminGrantModel } from './orgAdminGrant';
19
+ export { OrgChartEdgeModel } from './orgChartEdge';
20
+ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
19
21
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
22
+ export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
23
+ export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
20
24
  export { OrgGrantModel } from './orgGrant';
21
25
  export { OrgInviteModel } from './orgInvite';
22
26
  export { OrgMemberModel } from './orgMember';
@@ -16,7 +16,11 @@ export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant';
16
16
  export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission';
17
17
  export { MembershipTypeModel } from './membershipType';
18
18
  export { OrgAdminGrantModel } from './orgAdminGrant';
19
+ export { OrgChartEdgeModel } from './orgChartEdge';
20
+ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
19
21
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
22
+ export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
23
+ export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
20
24
  export { OrgGrantModel } from './orgGrant';
21
25
  export { OrgInviteModel } from './orgInvite';
22
26
  export { OrgMemberModel } from './orgMember';
@@ -0,0 +1,54 @@
1
+ /**
2
+ * OrgChartEdge model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { OrgChartEdgeWithRelations, OrgChartEdgeSelect, OrgChartEdgeFilter, OrgChartEdgeOrderBy, CreateOrgChartEdgeInput, OrgChartEdgePatch } from '../input-types';
10
+ export declare class OrgChartEdgeModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgChartEdgeSelect>(args: FindManyArgs<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
16
+ orgChartEdges: ConnectionResult<InferSelectResult<OrgChartEdgeWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgChartEdgeSelect>(args: FindFirstArgs<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
21
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends OrgChartEdgeSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
27
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S> | null;
28
+ }>;
29
+ create<S extends OrgChartEdgeSelect>(args: CreateArgs<S, CreateOrgChartEdgeInput['orgChartEdge']> & {
30
+ select: S;
31
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
32
+ createOrgChartEdge: {
33
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends OrgChartEdgeSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, OrgChartEdgePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
41
+ updateOrgChartEdge: {
42
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends OrgChartEdgeSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
50
+ deleteOrgChartEdge: {
51
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,100 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class OrgChartEdgeModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgChartEdge', 'orgChartEdges', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgChartEdge',
22
+ fieldName: 'orgChartEdges',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgChartEdge', 'orgChartEdges', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'OrgChartEdge',
36
+ fieldName: 'orgChartEdge',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('OrgChartEdge', 'orgChartEdges', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'OrgChartEdge',
57
+ fieldName: 'orgChartEdge',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('OrgChartEdge', 'createOrgChartEdge', 'orgChartEdge', args.select, args.data, 'CreateOrgChartEdgeInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'OrgChartEdge',
71
+ fieldName: 'createOrgChartEdge',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('OrgChartEdge', 'updateOrgChartEdge', 'orgChartEdge', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeInput', 'id', 'orgChartEdgePatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'OrgChartEdge',
82
+ fieldName: 'updateOrgChartEdge',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('OrgChartEdge', 'deleteOrgChartEdge', 'orgChartEdge', {
89
+ id: args.where.id,
90
+ }, 'DeleteOrgChartEdgeInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'OrgChartEdge',
95
+ fieldName: 'deleteOrgChartEdge',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }