@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.
- package/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +24 -0
- package/admin/hooks/invalidation.js +64 -0
- package/admin/hooks/mutation-keys.d.ts +48 -0
- package/admin/hooks/mutation-keys.js +32 -1
- package/admin/hooks/mutations/index.d.ts +8 -0
- package/admin/hooks/mutations/index.js +8 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js} +6 -6
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +7 -7
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +9 -9
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +7 -0
- package/admin/hooks/queries/index.js +7 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +14 -14
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.js +38 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.js +53 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.js +38 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.js +53 -0
- package/admin/hooks/query-keys.d.ts +58 -0
- package/admin/hooks/query-keys.js +34 -1
- package/admin/orm/index.d.ts +13 -0
- package/admin/orm/index.js +8 -0
- package/admin/orm/input-types.d.ts +399 -0
- package/admin/orm/models/index.d.ts +4 -0
- package/admin/orm/models/index.js +9 -1
- package/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/admin/orm/models/orgChartEdge.js +104 -0
- package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
- package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/admin/orm/models/orgGetManagersRecord.js +59 -0
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
- package/admin/orm/query/index.d.ts +11 -0
- package/admin/orm/query/index.js +24 -0
- package/admin/schema-types.d.ts +247 -1
- package/admin/types.d.ts +29 -0
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +6 -12
- package/api/hooks/invalidation.js +16 -32
- package/api/hooks/mutation-keys.d.ts +12 -24
- package/api/hooks/mutation-keys.js +9 -16
- package/api/hooks/mutations/index.d.ts +3 -6
- package/api/hooks/mutations/index.js +3 -6
- package/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +6 -6
- package/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +7 -7
- package/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +9 -9
- package/api/hooks/queries/index.d.ts +2 -4
- package/api/hooks/queries/index.js +2 -4
- package/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +14 -14
- package/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +14 -14
- package/api/hooks/query-keys.d.ts +14 -28
- package/api/hooks/query-keys.js +10 -18
- package/api/orm/index.d.ts +2 -4
- package/api/orm/index.js +2 -4
- package/api/orm/input-types.d.ts +378 -468
- package/api/orm/input-types.js +2 -2
- package/api/orm/models/domainType.d.ts +54 -0
- package/api/orm/models/{apiModule.js → domainType.js} +27 -27
- package/api/orm/models/index.d.ts +1 -2
- package/api/orm/models/index.js +4 -6
- package/api/schema-types.d.ts +157 -226
- package/api/types.d.ts +16 -17
- package/compute/orm/input-types.d.ts +42 -3
- package/compute/schema-types.d.ts +25 -3
- package/compute/types.d.ts +5 -0
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +24 -0
- package/esm/admin/hooks/invalidation.js +65 -1
- package/esm/admin/hooks/mutation-keys.d.ts +48 -0
- package/esm/admin/hooks/mutation-keys.js +31 -0
- package/esm/admin/hooks/mutations/index.d.ts +8 -0
- package/esm/admin/hooks/mutations/index.js +8 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/esm/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeMutation.js} +7 -7
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/esm/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/esm/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +10 -10
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +7 -0
- package/esm/admin/hooks/queries/index.js +7 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/esm/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/esm/{api/hooks/queries/usePlatformApiModulesQuery.js → admin/hooks/queries/useOrgChartEdgeGrantsQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.js +47 -0
- package/esm/admin/hooks/query-keys.d.ts +58 -0
- package/esm/admin/hooks/query-keys.js +33 -0
- package/esm/admin/orm/index.d.ts +13 -0
- package/esm/admin/orm/index.js +8 -0
- package/esm/admin/orm/input-types.d.ts +399 -0
- package/esm/admin/orm/models/index.d.ts +4 -0
- package/esm/admin/orm/models/index.js +4 -0
- package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/esm/admin/orm/models/orgChartEdge.js +100 -0
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/esm/admin/orm/query/index.d.ts +11 -0
- package/esm/admin/orm/query/index.js +24 -0
- package/esm/admin/schema-types.d.ts +247 -1
- package/esm/admin/types.d.ts +29 -0
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +6 -12
- package/esm/api/hooks/invalidation.js +17 -33
- package/esm/api/hooks/mutation-keys.d.ts +12 -24
- package/esm/api/hooks/mutation-keys.js +7 -14
- package/esm/api/hooks/mutations/index.d.ts +3 -6
- package/esm/api/hooks/mutations/index.js +3 -6
- package/esm/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/esm/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +7 -7
- package/esm/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/esm/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +8 -8
- package/esm/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/esm/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +10 -10
- package/esm/api/hooks/queries/index.d.ts +2 -4
- package/esm/api/hooks/queries/index.js +2 -4
- package/esm/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/esm/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +11 -11
- package/esm/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/esm/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +11 -11
- package/esm/api/hooks/query-keys.d.ts +14 -28
- package/esm/api/hooks/query-keys.js +8 -16
- package/esm/api/orm/index.d.ts +2 -4
- package/esm/api/orm/index.js +2 -4
- package/esm/api/orm/input-types.d.ts +378 -468
- package/esm/api/orm/input-types.js +2 -2
- package/esm/api/orm/models/domainType.d.ts +54 -0
- package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
- package/esm/api/orm/models/index.d.ts +1 -2
- package/esm/api/orm/models/index.js +1 -2
- package/esm/api/schema-types.d.ts +157 -226
- package/esm/api/types.d.ts +16 -17
- package/esm/compute/orm/input-types.d.ts +42 -3
- package/esm/compute/schema-types.d.ts +25 -3
- package/esm/compute/types.d.ts +5 -0
- package/esm/modules/orm/input-types.d.ts +9 -16
- package/esm/modules/schema-types.d.ts +6 -10
- package/esm/modules/types.d.ts +1 -2
- package/modules/orm/input-types.d.ts +9 -16
- package/modules/schema-types.d.ts +6 -10
- package/modules/types.d.ts +1 -2
- package/package.json +5 -5
- package/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModulesQuery.js +0 -38
- package/api/orm/models/apiModule.d.ts +0 -54
- package/api/orm/models/platformApiModule.d.ts +0 -54
- package/esm/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/esm/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/esm/api/orm/models/apiModule.d.ts +0 -54
- package/esm/api/orm/models/platformApiModule.d.ts +0 -54
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import { appAdminGrantKeys, appClaimedInviteKeys, appGrantKeys, appInviteKeys, appMembershipKeys, appMembershipDefaultKeys, appOwnerGrantKeys, appPermissionKeys, appPermissionDefaultKeys, appPermissionDefaultGrantKeys, appPermissionDefaultPermissionKeys, membershipTypeKeys, orgAdminGrantKeys, orgClaimedInviteKeys, orgGrantKeys, orgInviteKeys, orgMemberKeys, orgMemberProfileKeys, orgMembershipKeys, orgMembershipDefaultKeys, orgMembershipSettingKeys, orgOwnerGrantKeys, orgPermissionKeys, orgPermissionDefaultKeys, orgPermissionDefaultGrantKeys, orgPermissionDefaultPermissionKeys, } from './query-keys';
|
|
6
|
+
import { appAdminGrantKeys, appClaimedInviteKeys, appGrantKeys, appInviteKeys, appMembershipKeys, appMembershipDefaultKeys, appOwnerGrantKeys, appPermissionKeys, appPermissionDefaultKeys, appPermissionDefaultGrantKeys, appPermissionDefaultPermissionKeys, membershipTypeKeys, orgAdminGrantKeys, orgChartEdgeKeys, orgChartEdgeGrantKeys, orgClaimedInviteKeys, orgGetManagersRecordKeys, orgGetSubordinatesRecordKeys, orgGrantKeys, orgInviteKeys, orgMemberKeys, orgMemberProfileKeys, orgMembershipKeys, orgMembershipDefaultKeys, orgMembershipSettingKeys, orgOwnerGrantKeys, orgPermissionKeys, orgPermissionDefaultKeys, orgPermissionDefaultGrantKeys, orgPermissionDefaultPermissionKeys, } from './query-keys';
|
|
7
7
|
/**
|
|
8
8
|
// ============================================================================
|
|
9
9
|
// Invalidation Helpers
|
|
@@ -167,6 +167,28 @@ export const invalidate = {
|
|
|
167
167
|
queryKey: orgAdminGrantKeys.detail(id),
|
|
168
168
|
}),
|
|
169
169
|
},
|
|
170
|
+
/** Invalidate orgChartEdge queries */ orgChartEdge: {
|
|
171
|
+
/** Invalidate all orgChartEdge queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
172
|
+
queryKey: orgChartEdgeKeys.all,
|
|
173
|
+
}),
|
|
174
|
+
/** Invalidate orgChartEdge list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
175
|
+
queryKey: orgChartEdgeKeys.lists(),
|
|
176
|
+
}),
|
|
177
|
+
/** Invalidate a specific orgChartEdge */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
178
|
+
queryKey: orgChartEdgeKeys.detail(id),
|
|
179
|
+
}),
|
|
180
|
+
},
|
|
181
|
+
/** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: {
|
|
182
|
+
/** Invalidate all orgChartEdgeGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
183
|
+
queryKey: orgChartEdgeGrantKeys.all,
|
|
184
|
+
}),
|
|
185
|
+
/** Invalidate orgChartEdgeGrant list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
186
|
+
queryKey: orgChartEdgeGrantKeys.lists(),
|
|
187
|
+
}),
|
|
188
|
+
/** Invalidate a specific orgChartEdgeGrant */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
189
|
+
queryKey: orgChartEdgeGrantKeys.detail(id),
|
|
190
|
+
}),
|
|
191
|
+
},
|
|
170
192
|
/** Invalidate orgClaimedInvite queries */ orgClaimedInvite: {
|
|
171
193
|
/** Invalidate all orgClaimedInvite queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
172
194
|
queryKey: orgClaimedInviteKeys.all,
|
|
@@ -178,6 +200,28 @@ export const invalidate = {
|
|
|
178
200
|
queryKey: orgClaimedInviteKeys.detail(id),
|
|
179
201
|
}),
|
|
180
202
|
},
|
|
203
|
+
/** Invalidate orgGetManagersRecord queries */ orgGetManagersRecord: {
|
|
204
|
+
/** Invalidate all orgGetManagersRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
205
|
+
queryKey: orgGetManagersRecordKeys.all,
|
|
206
|
+
}),
|
|
207
|
+
/** Invalidate orgGetManagersRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
208
|
+
queryKey: orgGetManagersRecordKeys.lists(),
|
|
209
|
+
}),
|
|
210
|
+
/** Invalidate a specific orgGetManagersRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
211
|
+
queryKey: orgGetManagersRecordKeys.detail(id),
|
|
212
|
+
}),
|
|
213
|
+
},
|
|
214
|
+
/** Invalidate orgGetSubordinatesRecord queries */ orgGetSubordinatesRecord: {
|
|
215
|
+
/** Invalidate all orgGetSubordinatesRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
216
|
+
queryKey: orgGetSubordinatesRecordKeys.all,
|
|
217
|
+
}),
|
|
218
|
+
/** Invalidate orgGetSubordinatesRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
219
|
+
queryKey: orgGetSubordinatesRecordKeys.lists(),
|
|
220
|
+
}),
|
|
221
|
+
/** Invalidate a specific orgGetSubordinatesRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
222
|
+
queryKey: orgGetSubordinatesRecordKeys.detail(id),
|
|
223
|
+
}),
|
|
224
|
+
},
|
|
181
225
|
/** Invalidate orgGrant queries */ orgGrant: {
|
|
182
226
|
/** Invalidate all orgGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
183
227
|
queryKey: orgGrantKeys.all,
|
|
@@ -388,11 +432,31 @@ export const remove = {
|
|
|
388
432
|
queryKey: orgAdminGrantKeys.detail(id),
|
|
389
433
|
});
|
|
390
434
|
},
|
|
435
|
+
/** Remove orgChartEdge from cache */ orgChartEdge: (queryClient, id) => {
|
|
436
|
+
queryClient.removeQueries({
|
|
437
|
+
queryKey: orgChartEdgeKeys.detail(id),
|
|
438
|
+
});
|
|
439
|
+
},
|
|
440
|
+
/** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: (queryClient, id) => {
|
|
441
|
+
queryClient.removeQueries({
|
|
442
|
+
queryKey: orgChartEdgeGrantKeys.detail(id),
|
|
443
|
+
});
|
|
444
|
+
},
|
|
391
445
|
/** Remove orgClaimedInvite from cache */ orgClaimedInvite: (queryClient, id) => {
|
|
392
446
|
queryClient.removeQueries({
|
|
393
447
|
queryKey: orgClaimedInviteKeys.detail(id),
|
|
394
448
|
});
|
|
395
449
|
},
|
|
450
|
+
/** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: (queryClient, id) => {
|
|
451
|
+
queryClient.removeQueries({
|
|
452
|
+
queryKey: orgGetManagersRecordKeys.detail(id),
|
|
453
|
+
});
|
|
454
|
+
},
|
|
455
|
+
/** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: (queryClient, id) => {
|
|
456
|
+
queryClient.removeQueries({
|
|
457
|
+
queryKey: orgGetSubordinatesRecordKeys.detail(id),
|
|
458
|
+
});
|
|
459
|
+
},
|
|
396
460
|
/** Remove orgGrant from cache */ orgGrant: (queryClient, id) => {
|
|
397
461
|
queryClient.removeQueries({
|
|
398
462
|
queryKey: orgGrantKeys.detail(id),
|
|
@@ -81,12 +81,36 @@ export declare const orgAdminGrantMutationKeys: {
|
|
|
81
81
|
/** Update orgAdminGrant mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgadmingrant", "update", string | number];
|
|
82
82
|
/** Delete orgAdminGrant mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgadmingrant", "delete", string | number];
|
|
83
83
|
};
|
|
84
|
+
export declare const orgChartEdgeMutationKeys: {
|
|
85
|
+
/** All orgChartEdge mutation keys */ readonly all: readonly ["mutation", "orgchartedge"];
|
|
86
|
+
/** Create orgChartEdge mutation key */ readonly create: () => readonly ["mutation", "orgchartedge", "create"];
|
|
87
|
+
/** Update orgChartEdge mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgchartedge", "update", string | number];
|
|
88
|
+
/** Delete orgChartEdge mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgchartedge", "delete", string | number];
|
|
89
|
+
};
|
|
90
|
+
export declare const orgChartEdgeGrantMutationKeys: {
|
|
91
|
+
/** All orgChartEdgeGrant mutation keys */ readonly all: readonly ["mutation", "orgchartedgegrant"];
|
|
92
|
+
/** Create orgChartEdgeGrant mutation key */ readonly create: () => readonly ["mutation", "orgchartedgegrant", "create"];
|
|
93
|
+
/** Update orgChartEdgeGrant mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgchartedgegrant", "update", string | number];
|
|
94
|
+
/** Delete orgChartEdgeGrant mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgchartedgegrant", "delete", string | number];
|
|
95
|
+
};
|
|
84
96
|
export declare const orgClaimedInviteMutationKeys: {
|
|
85
97
|
/** All orgClaimedInvite mutation keys */ readonly all: readonly ["mutation", "orgclaimedinvite"];
|
|
86
98
|
/** Create orgClaimedInvite mutation key */ readonly create: () => readonly ["mutation", "orgclaimedinvite", "create"];
|
|
87
99
|
/** Update orgClaimedInvite mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgclaimedinvite", "update", string | number];
|
|
88
100
|
/** Delete orgClaimedInvite mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgclaimedinvite", "delete", string | number];
|
|
89
101
|
};
|
|
102
|
+
export declare const orgGetManagersRecordMutationKeys: {
|
|
103
|
+
/** All orgGetManagersRecord mutation keys */ readonly all: readonly ["mutation", "orggetmanagersrecord"];
|
|
104
|
+
/** Create orgGetManagersRecord mutation key */ readonly create: () => readonly ["mutation", "orggetmanagersrecord", "create"];
|
|
105
|
+
/** Update orgGetManagersRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orggetmanagersrecord", "update", string | number];
|
|
106
|
+
/** Delete orgGetManagersRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orggetmanagersrecord", "delete", string | number];
|
|
107
|
+
};
|
|
108
|
+
export declare const orgGetSubordinatesRecordMutationKeys: {
|
|
109
|
+
/** All orgGetSubordinatesRecord mutation keys */ readonly all: readonly ["mutation", "orggetsubordinatesrecord"];
|
|
110
|
+
/** Create orgGetSubordinatesRecord mutation key */ readonly create: () => readonly ["mutation", "orggetsubordinatesrecord", "create"];
|
|
111
|
+
/** Update orgGetSubordinatesRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orggetsubordinatesrecord", "update", string | number];
|
|
112
|
+
/** Delete orgGetSubordinatesRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orggetsubordinatesrecord", "delete", string | number];
|
|
113
|
+
};
|
|
90
114
|
export declare const orgGrantMutationKeys: {
|
|
91
115
|
/** All orgGrant mutation keys */ readonly all: readonly ["mutation", "orggrant"];
|
|
92
116
|
/** Create orgGrant mutation key */ readonly create: () => readonly ["mutation", "orggrant", "create"];
|
|
@@ -265,12 +289,36 @@ export declare const mutationKeys: {
|
|
|
265
289
|
/** Update orgAdminGrant mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgadmingrant", "update", string | number];
|
|
266
290
|
/** Delete orgAdminGrant mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgadmingrant", "delete", string | number];
|
|
267
291
|
};
|
|
292
|
+
readonly orgChartEdge: {
|
|
293
|
+
/** All orgChartEdge mutation keys */ readonly all: readonly ["mutation", "orgchartedge"];
|
|
294
|
+
/** Create orgChartEdge mutation key */ readonly create: () => readonly ["mutation", "orgchartedge", "create"];
|
|
295
|
+
/** Update orgChartEdge mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgchartedge", "update", string | number];
|
|
296
|
+
/** Delete orgChartEdge mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgchartedge", "delete", string | number];
|
|
297
|
+
};
|
|
298
|
+
readonly orgChartEdgeGrant: {
|
|
299
|
+
/** All orgChartEdgeGrant mutation keys */ readonly all: readonly ["mutation", "orgchartedgegrant"];
|
|
300
|
+
/** Create orgChartEdgeGrant mutation key */ readonly create: () => readonly ["mutation", "orgchartedgegrant", "create"];
|
|
301
|
+
/** Update orgChartEdgeGrant mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgchartedgegrant", "update", string | number];
|
|
302
|
+
/** Delete orgChartEdgeGrant mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgchartedgegrant", "delete", string | number];
|
|
303
|
+
};
|
|
268
304
|
readonly orgClaimedInvite: {
|
|
269
305
|
/** All orgClaimedInvite mutation keys */ readonly all: readonly ["mutation", "orgclaimedinvite"];
|
|
270
306
|
/** Create orgClaimedInvite mutation key */ readonly create: () => readonly ["mutation", "orgclaimedinvite", "create"];
|
|
271
307
|
/** Update orgClaimedInvite mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orgclaimedinvite", "update", string | number];
|
|
272
308
|
/** Delete orgClaimedInvite mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orgclaimedinvite", "delete", string | number];
|
|
273
309
|
};
|
|
310
|
+
readonly orgGetManagersRecord: {
|
|
311
|
+
/** All orgGetManagersRecord mutation keys */ readonly all: readonly ["mutation", "orggetmanagersrecord"];
|
|
312
|
+
/** Create orgGetManagersRecord mutation key */ readonly create: () => readonly ["mutation", "orggetmanagersrecord", "create"];
|
|
313
|
+
/** Update orgGetManagersRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orggetmanagersrecord", "update", string | number];
|
|
314
|
+
/** Delete orgGetManagersRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orggetmanagersrecord", "delete", string | number];
|
|
315
|
+
};
|
|
316
|
+
readonly orgGetSubordinatesRecord: {
|
|
317
|
+
/** All orgGetSubordinatesRecord mutation keys */ readonly all: readonly ["mutation", "orggetsubordinatesrecord"];
|
|
318
|
+
/** Create orgGetSubordinatesRecord mutation key */ readonly create: () => readonly ["mutation", "orggetsubordinatesrecord", "create"];
|
|
319
|
+
/** Update orgGetSubordinatesRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "orggetsubordinatesrecord", "update", string | number];
|
|
320
|
+
/** Delete orgGetSubordinatesRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "orggetsubordinatesrecord", "delete", string | number];
|
|
321
|
+
};
|
|
274
322
|
readonly orgGrant: {
|
|
275
323
|
/** All orgGrant mutation keys */ readonly all: readonly ["mutation", "orggrant"];
|
|
276
324
|
/** Create orgGrant mutation key */ readonly create: () => readonly ["mutation", "orggrant", "create"];
|
|
@@ -99,12 +99,39 @@ export const orgAdminGrantMutationKeys = {
|
|
|
99
99
|
/** Update orgAdminGrant mutation key */ update: (id) => ['mutation', 'orgadmingrant', 'update', id],
|
|
100
100
|
/** Delete orgAdminGrant mutation key */ delete: (id) => ['mutation', 'orgadmingrant', 'delete', id],
|
|
101
101
|
};
|
|
102
|
+
export const orgChartEdgeMutationKeys = {
|
|
103
|
+
/** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'],
|
|
104
|
+
/** Create orgChartEdge mutation key */ create: () => ['mutation', 'orgchartedge', 'create'],
|
|
105
|
+
/** Update orgChartEdge mutation key */ update: (id) => ['mutation', 'orgchartedge', 'update', id],
|
|
106
|
+
/** Delete orgChartEdge mutation key */ delete: (id) => ['mutation', 'orgchartedge', 'delete', id],
|
|
107
|
+
};
|
|
108
|
+
export const orgChartEdgeGrantMutationKeys = {
|
|
109
|
+
/** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'],
|
|
110
|
+
/** Create orgChartEdgeGrant mutation key */ create: () => ['mutation', 'orgchartedgegrant', 'create'],
|
|
111
|
+
/** Update orgChartEdgeGrant mutation key */ update: (id) => ['mutation', 'orgchartedgegrant', 'update', id],
|
|
112
|
+
/** Delete orgChartEdgeGrant mutation key */ delete: (id) => ['mutation', 'orgchartedgegrant', 'delete', id],
|
|
113
|
+
};
|
|
102
114
|
export const orgClaimedInviteMutationKeys = {
|
|
103
115
|
/** All orgClaimedInvite mutation keys */ all: ['mutation', 'orgclaimedinvite'],
|
|
104
116
|
/** Create orgClaimedInvite mutation key */ create: () => ['mutation', 'orgclaimedinvite', 'create'],
|
|
105
117
|
/** Update orgClaimedInvite mutation key */ update: (id) => ['mutation', 'orgclaimedinvite', 'update', id],
|
|
106
118
|
/** Delete orgClaimedInvite mutation key */ delete: (id) => ['mutation', 'orgclaimedinvite', 'delete', id],
|
|
107
119
|
};
|
|
120
|
+
export const orgGetManagersRecordMutationKeys = {
|
|
121
|
+
/** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'],
|
|
122
|
+
/** Create orgGetManagersRecord mutation key */ create: () => ['mutation', 'orggetmanagersrecord', 'create'],
|
|
123
|
+
/** Update orgGetManagersRecord mutation key */ update: (id) => ['mutation', 'orggetmanagersrecord', 'update', id],
|
|
124
|
+
/** Delete orgGetManagersRecord mutation key */ delete: (id) => ['mutation', 'orggetmanagersrecord', 'delete', id],
|
|
125
|
+
};
|
|
126
|
+
export const orgGetSubordinatesRecordMutationKeys = {
|
|
127
|
+
/** All orgGetSubordinatesRecord mutation keys */ all: [
|
|
128
|
+
'mutation',
|
|
129
|
+
'orggetsubordinatesrecord',
|
|
130
|
+
],
|
|
131
|
+
/** Create orgGetSubordinatesRecord mutation key */ create: () => ['mutation', 'orggetsubordinatesrecord', 'create'],
|
|
132
|
+
/** Update orgGetSubordinatesRecord mutation key */ update: (id) => ['mutation', 'orggetsubordinatesrecord', 'update', id],
|
|
133
|
+
/** Delete orgGetSubordinatesRecord mutation key */ delete: (id) => ['mutation', 'orggetsubordinatesrecord', 'delete', id],
|
|
134
|
+
};
|
|
108
135
|
export const orgGrantMutationKeys = {
|
|
109
136
|
/** All orgGrant mutation keys */ all: ['mutation', 'orggrant'],
|
|
110
137
|
/** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'],
|
|
@@ -233,7 +260,11 @@ export const mutationKeys = {
|
|
|
233
260
|
appPermissionDefaultPermission: appPermissionDefaultPermissionMutationKeys,
|
|
234
261
|
membershipType: membershipTypeMutationKeys,
|
|
235
262
|
orgAdminGrant: orgAdminGrantMutationKeys,
|
|
263
|
+
orgChartEdge: orgChartEdgeMutationKeys,
|
|
264
|
+
orgChartEdgeGrant: orgChartEdgeGrantMutationKeys,
|
|
236
265
|
orgClaimedInvite: orgClaimedInviteMutationKeys,
|
|
266
|
+
orgGetManagersRecord: orgGetManagersRecordMutationKeys,
|
|
267
|
+
orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys,
|
|
237
268
|
orgGrant: orgGrantMutationKeys,
|
|
238
269
|
orgInvite: orgInviteMutationKeys,
|
|
239
270
|
orgMember: orgMemberMutationKeys,
|
|
@@ -42,9 +42,17 @@ export * from './useDeleteMembershipTypeMutation';
|
|
|
42
42
|
export * from './useCreateOrgAdminGrantMutation';
|
|
43
43
|
export * from './useUpdateOrgAdminGrantMutation';
|
|
44
44
|
export * from './useDeleteOrgAdminGrantMutation';
|
|
45
|
+
export * from './useCreateOrgChartEdgeMutation';
|
|
46
|
+
export * from './useUpdateOrgChartEdgeMutation';
|
|
47
|
+
export * from './useDeleteOrgChartEdgeMutation';
|
|
48
|
+
export * from './useCreateOrgChartEdgeGrantMutation';
|
|
49
|
+
export * from './useUpdateOrgChartEdgeGrantMutation';
|
|
50
|
+
export * from './useDeleteOrgChartEdgeGrantMutation';
|
|
45
51
|
export * from './useCreateOrgClaimedInviteMutation';
|
|
46
52
|
export * from './useUpdateOrgClaimedInviteMutation';
|
|
47
53
|
export * from './useDeleteOrgClaimedInviteMutation';
|
|
54
|
+
export * from './useCreateOrgGetManagersRecordMutation';
|
|
55
|
+
export * from './useCreateOrgGetSubordinatesRecordMutation';
|
|
48
56
|
export * from './useCreateOrgGrantMutation';
|
|
49
57
|
export * from './useUpdateOrgGrantMutation';
|
|
50
58
|
export * from './useDeleteOrgGrantMutation';
|
|
@@ -42,9 +42,17 @@ export * from './useDeleteMembershipTypeMutation';
|
|
|
42
42
|
export * from './useCreateOrgAdminGrantMutation';
|
|
43
43
|
export * from './useUpdateOrgAdminGrantMutation';
|
|
44
44
|
export * from './useDeleteOrgAdminGrantMutation';
|
|
45
|
+
export * from './useCreateOrgChartEdgeMutation';
|
|
46
|
+
export * from './useUpdateOrgChartEdgeMutation';
|
|
47
|
+
export * from './useDeleteOrgChartEdgeMutation';
|
|
48
|
+
export * from './useCreateOrgChartEdgeGrantMutation';
|
|
49
|
+
export * from './useUpdateOrgChartEdgeGrantMutation';
|
|
50
|
+
export * from './useDeleteOrgChartEdgeGrantMutation';
|
|
45
51
|
export * from './useCreateOrgClaimedInviteMutation';
|
|
46
52
|
export * from './useUpdateOrgClaimedInviteMutation';
|
|
47
53
|
export * from './useDeleteOrgClaimedInviteMutation';
|
|
54
|
+
export * from './useCreateOrgGetManagersRecordMutation';
|
|
55
|
+
export * from './useCreateOrgGetSubordinatesRecordMutation';
|
|
48
56
|
export * from './useCreateOrgGrantMutation';
|
|
49
57
|
export * from './useUpdateOrgGrantMutation';
|
|
50
58
|
export * from './useDeleteOrgGrantMutation';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations, CreateOrgChartEdgeGrantInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations, CreateOrgChartEdgeGrantInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateOrgChartEdgeGrantMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateOrgChartEdgeGrantMutation<S extends OrgChartEdgeGrantSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgChartEdgeGrantSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createOrgChartEdgeGrant: {
|
|
28
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createOrgChartEdgeGrant: {
|
|
32
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { orgChartEdgeGrantKeys } from '../query-keys';
|
|
10
|
+
import { orgChartEdgeGrantMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateOrgChartEdgeGrantMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: orgChartEdgeGrantMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.orgChartEdgeGrant.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: orgChartEdgeGrantKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations, CreateOrgChartEdgeInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations, CreateOrgChartEdgeInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateOrgChartEdgeMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateOrgChartEdgeMutation<S extends OrgChartEdgeSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgChartEdgeSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgChartEdgeSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createOrgChartEdge: {
|
|
28
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateOrgChartEdgeInput['orgChartEdge']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createOrgChartEdge: {
|
|
32
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateOrgChartEdgeInput['orgChartEdge']>;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export function
|
|
9
|
+
import { orgChartEdgeKeys } from '../query-keys';
|
|
10
|
+
import { orgChartEdgeMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateOrgChartEdgeMutation(params) {
|
|
12
12
|
const args = buildSelectionArgs(params.selection);
|
|
13
13
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
14
|
void _selection;
|
|
15
15
|
const queryClient = useQueryClient();
|
|
16
16
|
return useMutation({
|
|
17
|
-
mutationKey:
|
|
17
|
+
mutationKey: orgChartEdgeMutationKeys.create(),
|
|
18
18
|
mutationFn: (data) => getClient()
|
|
19
|
-
.
|
|
19
|
+
.orgChartEdge.create({
|
|
20
20
|
data,
|
|
21
21
|
select: args.select,
|
|
22
22
|
})
|
|
23
23
|
.unwrap(),
|
|
24
24
|
onSuccess: () => {
|
|
25
25
|
queryClient.invalidateQueries({
|
|
26
|
-
queryKey:
|
|
26
|
+
queryKey: orgChartEdgeKeys.lists(),
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
29
|
...mutationOptions,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for OrgGetManagersRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgGetManagersRecordSelect, OrgGetManagersRecordWithRelations, CreateOrgGetManagersRecordInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgGetManagersRecordSelect, OrgGetManagersRecordWithRelations, CreateOrgGetManagersRecordInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a OrgGetManagersRecord
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateOrgGetManagersRecordMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateOrgGetManagersRecordMutation<S extends OrgGetManagersRecordSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgGetManagersRecordSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgGetManagersRecordSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createOrgGetManagersRecord: {
|
|
28
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateOrgGetManagersRecordInput['orgGetManagersRecord']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createOrgGetManagersRecord: {
|
|
32
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateOrgGetManagersRecordInput['orgGetManagersRecord']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for OrgGetManagersRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { orgGetManagersRecordKeys } from '../query-keys';
|
|
10
|
+
import { orgGetManagersRecordMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateOrgGetManagersRecordMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: orgGetManagersRecordMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.orgGetManagersRecord.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: orgGetManagersRecordKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for OrgGetSubordinatesRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordWithRelations, CreateOrgGetSubordinatesRecordInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordWithRelations, CreateOrgGetSubordinatesRecordInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a OrgGetSubordinatesRecord
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateOrgGetSubordinatesRecordMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateOrgGetSubordinatesRecordMutation<S extends OrgGetSubordinatesRecordSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgGetSubordinatesRecordSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgGetSubordinatesRecordSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createOrgGetSubordinatesRecord: {
|
|
28
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createOrgGetSubordinatesRecord: {
|
|
32
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for OrgGetSubordinatesRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { orgGetSubordinatesRecordKeys } from '../query-keys';
|
|
10
|
+
import { orgGetSubordinatesRecordMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateOrgGetSubordinatesRecordMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: orgGetSubordinatesRecordMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.orgGetSubordinatesRecord.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: orgGetSubordinatesRecordKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeleteOrgChartEdgeGrantMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteOrgChartEdgeGrantMutation<S extends OrgChartEdgeGrantSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgChartEdgeGrantSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteOrgChartEdgeGrant: {
|
|
28
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteOrgChartEdgeGrant: {
|
|
34
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export function
|
|
9
|
+
import { orgChartEdgeGrantKeys } from '../query-keys';
|
|
10
|
+
import { orgChartEdgeGrantMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useDeleteOrgChartEdgeGrantMutation(params) {
|
|
12
12
|
const args = buildSelectionArgs(params.selection);
|
|
13
13
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
14
|
void _selection;
|
|
15
15
|
const queryClient = useQueryClient();
|
|
16
16
|
return useMutation({
|
|
17
|
-
mutationKey:
|
|
17
|
+
mutationKey: orgChartEdgeGrantMutationKeys.all,
|
|
18
18
|
mutationFn: ({ id }) => getClient()
|
|
19
|
-
.
|
|
19
|
+
.orgChartEdgeGrant.delete({
|
|
20
20
|
where: {
|
|
21
21
|
id,
|
|
22
22
|
},
|
|
@@ -25,10 +25,10 @@ export function useDeletePlatformApiModuleMutation(params) {
|
|
|
25
25
|
.unwrap(),
|
|
26
26
|
onSuccess: (_, variables) => {
|
|
27
27
|
queryClient.removeQueries({
|
|
28
|
-
queryKey:
|
|
28
|
+
queryKey: orgChartEdgeGrantKeys.detail(variables.id),
|
|
29
29
|
});
|
|
30
30
|
queryClient.invalidateQueries({
|
|
31
|
-
queryKey:
|
|
31
|
+
queryKey: orgChartEdgeGrantKeys.lists(),
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
34
|
...mutationOptions,
|