@constructive-io/react 0.23.9 → 0.23.11
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 +30 -6
- package/admin/hooks/invalidation.js +80 -16
- package/admin/hooks/mutation-keys.d.ts +60 -12
- package/admin/hooks/mutation-keys.js +48 -8
- package/admin/hooks/mutations/index.d.ts +15 -3
- package/admin/hooks/mutations/index.js +15 -3
- package/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.js +34 -0
- package/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.js +39 -0
- package/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.js +39 -0
- package/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.js +39 -0
- package/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.js +40 -0
- package/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.js +40 -0
- package/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.js +40 -0
- package/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +10 -2
- package/admin/hooks/queries/index.js +10 -2
- package/admin/hooks/queries/useAppPermissionDefaultGrantQuery.d.ts +65 -0
- package/admin/hooks/queries/useAppPermissionDefaultGrantQuery.js +53 -0
- package/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.d.ts +69 -0
- package/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.js +38 -0
- package/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.d.ts +65 -0
- package/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.js +53 -0
- package/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.d.ts +69 -0
- package/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.js +38 -0
- package/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.js +53 -0
- package/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.js +38 -0
- package/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.js +53 -0
- package/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +70 -14
- package/admin/hooks/query-keys.js +45 -9
- package/admin/orm/index.d.ts +10 -2
- package/admin/orm/index.js +10 -2
- package/admin/orm/input-types.d.ts +1611 -230
- package/admin/orm/input-types.js +9 -1
- package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
- package/admin/orm/models/index.d.ts +5 -1
- package/admin/orm/models/index.js +11 -3
- package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
- package/admin/schema-types.d.ts +702 -271
- package/admin/types.d.ts +49 -15
- package/agent/orm/input-types.d.ts +289 -47
- package/agent/orm/input-types.js +1 -0
- package/agent/schema-types.d.ts +37 -14
- package/agent/types.d.ts +3 -2
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +6 -0
- package/api/hooks/invalidation.js +16 -0
- package/api/hooks/mutation-keys.d.ts +12 -0
- package/api/hooks/mutation-keys.js +8 -1
- package/api/hooks/mutations/index.d.ts +3 -0
- package/api/hooks/mutations/index.js +3 -0
- package/api/hooks/mutations/useCreateCompositeTypeMutation.d.ts +34 -0
- package/api/hooks/mutations/useCreateCompositeTypeMutation.js +34 -0
- package/api/hooks/mutations/useDeleteCompositeTypeMutation.d.ts +38 -0
- package/api/hooks/mutations/useDeleteCompositeTypeMutation.js +39 -0
- package/api/hooks/mutations/useUpdateCompositeTypeMutation.d.ts +40 -0
- package/api/hooks/mutations/useUpdateCompositeTypeMutation.js +40 -0
- package/api/hooks/queries/index.d.ts +2 -0
- package/api/hooks/queries/index.js +2 -0
- package/api/hooks/queries/useCompositeTypeQuery.d.ts +65 -0
- package/api/hooks/queries/useCompositeTypeQuery.js +53 -0
- package/api/hooks/queries/useCompositeTypesQuery.d.ts +69 -0
- package/api/hooks/queries/useCompositeTypesQuery.js +38 -0
- package/api/hooks/query-keys.d.ts +14 -0
- package/api/hooks/query-keys.js +9 -1
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +1064 -125
- package/api/orm/input-types.js +3 -0
- package/api/orm/models/compositeType.d.ts +54 -0
- package/api/orm/models/compositeType.js +104 -0
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +3 -1
- package/api/schema-types.d.ts +664 -560
- package/api/types.d.ts +15 -14
- package/auth/hooks/mutation-keys.d.ts +6 -0
- package/auth/hooks/mutation-keys.js +9 -0
- package/auth/hooks/mutations/index.d.ts +3 -0
- package/auth/hooks/mutations/index.js +3 -0
- package/auth/hooks/mutations/useLinkIdentityMutation.d.ts +20 -0
- package/auth/hooks/mutations/useLinkIdentityMutation.js +26 -0
- package/auth/hooks/mutations/useSignInSmsOtpMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSignInSmsOtpMutation.js +26 -0
- package/auth/hooks/mutations/useSignUpSmsMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSignUpSmsMutation.js +26 -0
- package/auth/orm/index.d.ts +15 -0
- package/auth/orm/input-types.d.ts +197 -1
- package/auth/orm/mutation/index.d.ts +25 -1
- package/auth/orm/mutation/index.js +36 -0
- package/auth/schema-types.d.ts +78 -34
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +30 -6
- package/esm/admin/hooks/invalidation.js +81 -17
- package/esm/admin/hooks/mutation-keys.d.ts +60 -12
- package/esm/admin/hooks/mutation-keys.js +47 -7
- package/esm/admin/hooks/mutations/index.d.ts +15 -3
- package/esm/admin/hooks/mutations/index.js +15 -3
- package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.js +36 -0
- package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.js +36 -0
- package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.js +36 -0
- package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.js +37 -0
- package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.js +37 -0
- package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.js +37 -0
- package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +10 -2
- package/esm/admin/hooks/queries/index.js +10 -2
- package/esm/admin/hooks/queries/useAppPermissionDefaultGrantQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useAppPermissionDefaultGrantQuery.js +47 -0
- package/esm/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.js +32 -0
- package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.js +47 -0
- package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.js +32 -0
- package/esm/admin/hooks/query-keys.d.ts +70 -14
- package/esm/admin/hooks/query-keys.js +44 -8
- package/esm/admin/orm/index.d.ts +10 -2
- package/esm/admin/orm/index.js +10 -2
- package/esm/admin/orm/input-types.d.ts +1611 -230
- package/esm/admin/orm/input-types.js +9 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
- package/esm/admin/orm/models/index.d.ts +5 -1
- package/esm/admin/orm/models/index.js +5 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
- package/esm/admin/schema-types.d.ts +702 -271
- package/esm/admin/types.d.ts +49 -15
- package/esm/agent/orm/input-types.d.ts +289 -47
- package/esm/agent/orm/input-types.js +1 -0
- package/esm/agent/schema-types.d.ts +37 -14
- package/esm/agent/types.d.ts +3 -2
- 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 -0
- package/esm/api/hooks/invalidation.js +17 -1
- package/esm/api/hooks/mutation-keys.d.ts +12 -0
- package/esm/api/hooks/mutation-keys.js +7 -0
- package/esm/api/hooks/mutations/index.d.ts +3 -0
- package/esm/api/hooks/mutations/index.js +3 -0
- package/esm/api/hooks/mutations/useCreateCompositeTypeMutation.d.ts +34 -0
- package/esm/api/hooks/mutations/useCreateCompositeTypeMutation.js +31 -0
- package/esm/api/hooks/mutations/useDeleteCompositeTypeMutation.d.ts +38 -0
- package/esm/api/hooks/mutations/useDeleteCompositeTypeMutation.js +36 -0
- package/esm/api/hooks/mutations/useUpdateCompositeTypeMutation.d.ts +40 -0
- package/esm/api/hooks/mutations/useUpdateCompositeTypeMutation.js +37 -0
- package/esm/api/hooks/queries/index.d.ts +2 -0
- package/esm/api/hooks/queries/index.js +2 -0
- package/esm/api/hooks/queries/useCompositeTypeQuery.d.ts +65 -0
- package/esm/api/hooks/queries/useCompositeTypeQuery.js +47 -0
- package/esm/api/hooks/queries/useCompositeTypesQuery.d.ts +69 -0
- package/esm/api/hooks/queries/useCompositeTypesQuery.js +32 -0
- package/esm/api/hooks/query-keys.d.ts +14 -0
- package/esm/api/hooks/query-keys.js +8 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +1064 -125
- package/esm/api/orm/input-types.js +3 -0
- package/esm/api/orm/models/compositeType.d.ts +54 -0
- package/esm/api/orm/models/compositeType.js +100 -0
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/api/schema-types.d.ts +664 -560
- package/esm/api/types.d.ts +15 -14
- package/esm/auth/hooks/mutation-keys.d.ts +6 -0
- package/esm/auth/hooks/mutation-keys.js +9 -0
- package/esm/auth/hooks/mutations/index.d.ts +3 -0
- package/esm/auth/hooks/mutations/index.js +3 -0
- package/esm/auth/hooks/mutations/useLinkIdentityMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useLinkIdentityMutation.js +23 -0
- package/esm/auth/hooks/mutations/useSignInSmsOtpMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSignInSmsOtpMutation.js +23 -0
- package/esm/auth/hooks/mutations/useSignUpSmsMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSignUpSmsMutation.js +23 -0
- package/esm/auth/orm/index.d.ts +15 -0
- package/esm/auth/orm/input-types.d.ts +197 -1
- package/esm/auth/orm/mutation/index.d.ts +25 -1
- package/esm/auth/orm/mutation/index.js +36 -0
- package/esm/auth/schema-types.d.ts +78 -34
- package/esm/modules/hooks/index.d.ts +1 -1
- package/esm/modules/hooks/index.js +1 -1
- package/esm/modules/hooks/invalidation.d.ts +79 -73
- package/esm/modules/hooks/invalidation.js +183 -167
- package/esm/modules/hooks/mutation-keys.d.ts +158 -146
- package/esm/modules/hooks/mutation-keys.js +104 -94
- package/esm/modules/hooks/mutations/index.d.ts +42 -39
- package/esm/modules/hooks/mutations/index.js +42 -39
- package/esm/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.d.ts +34 -0
- package/esm/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.js +31 -0
- package/esm/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.d.ts +38 -0
- package/esm/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.js +36 -0
- package/esm/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.d.ts +40 -0
- package/esm/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.js +37 -0
- package/esm/modules/hooks/queries/index.d.ts +28 -26
- package/esm/modules/hooks/queries/index.js +28 -26
- package/esm/modules/hooks/queries/useFunctionInvocationModuleQuery.d.ts +65 -0
- package/esm/modules/hooks/queries/useFunctionInvocationModuleQuery.js +47 -0
- package/esm/modules/hooks/queries/useFunctionInvocationModulesQuery.d.ts +69 -0
- package/esm/modules/hooks/queries/useFunctionInvocationModulesQuery.js +32 -0
- package/esm/modules/hooks/query-keys.d.ts +186 -172
- package/esm/modules/hooks/query-keys.js +107 -99
- package/esm/modules/orm/index.d.ts +28 -26
- package/esm/modules/orm/index.js +28 -26
- package/esm/modules/orm/input-types.d.ts +4485 -2514
- package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/esm/modules/orm/models/functionInvocationModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +14 -13
- package/esm/modules/orm/models/index.js +14 -13
- package/esm/modules/schema-types.d.ts +2258 -1951
- package/esm/modules/types.d.ts +296 -233
- package/esm/objects/orm/input-types.d.ts +62 -0
- package/esm/usage/orm/input-types.d.ts +314 -19
- package/modules/hooks/index.d.ts +1 -1
- package/modules/hooks/index.js +1 -1
- package/modules/hooks/invalidation.d.ts +79 -73
- package/modules/hooks/invalidation.js +182 -166
- package/modules/hooks/mutation-keys.d.ts +158 -146
- package/modules/hooks/mutation-keys.js +106 -96
- package/modules/hooks/mutations/index.d.ts +42 -39
- package/modules/hooks/mutations/index.js +42 -39
- package/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.d.ts +34 -0
- package/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.js +34 -0
- package/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.d.ts +38 -0
- package/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.js +39 -0
- package/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.d.ts +40 -0
- package/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.js +40 -0
- package/modules/hooks/queries/index.d.ts +28 -26
- package/modules/hooks/queries/index.js +28 -26
- package/modules/hooks/queries/useFunctionInvocationModuleQuery.d.ts +65 -0
- package/modules/hooks/queries/useFunctionInvocationModuleQuery.js +53 -0
- package/modules/hooks/queries/useFunctionInvocationModulesQuery.d.ts +69 -0
- package/modules/hooks/queries/useFunctionInvocationModulesQuery.js +38 -0
- package/modules/hooks/query-keys.d.ts +186 -172
- package/modules/hooks/query-keys.js +109 -101
- package/modules/orm/index.d.ts +28 -26
- package/modules/orm/index.js +28 -26
- package/modules/orm/input-types.d.ts +4485 -2514
- package/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/modules/orm/models/functionInvocationModule.js +104 -0
- package/modules/orm/models/index.d.ts +14 -13
- package/modules/orm/models/index.js +30 -28
- package/modules/schema-types.d.ts +2258 -1951
- package/modules/types.d.ts +296 -233
- package/objects/orm/input-types.d.ts +62 -0
- package/package.json +4 -4
- package/usage/orm/input-types.d.ts +314 -19
|
@@ -7,14 +7,22 @@ export * from './useOrgGetManagersQuery';
|
|
|
7
7
|
export * from './useOrgGetSubordinatesQuery';
|
|
8
8
|
export * from './useAppPermissionsQuery';
|
|
9
9
|
export * from './useAppPermissionQuery';
|
|
10
|
+
export * from './useAppPermissionDefaultGrantsQuery';
|
|
11
|
+
export * from './useAppPermissionDefaultGrantQuery';
|
|
10
12
|
export * from './useOrgPermissionsQuery';
|
|
11
13
|
export * from './useOrgPermissionQuery';
|
|
14
|
+
export * from './useOrgPermissionDefaultPermissionsQuery';
|
|
15
|
+
export * from './useOrgPermissionDefaultPermissionQuery';
|
|
16
|
+
export * from './useOrgPermissionDefaultGrantsQuery';
|
|
17
|
+
export * from './useOrgPermissionDefaultGrantQuery';
|
|
12
18
|
export * from './useOrgMembersQuery';
|
|
13
19
|
export * from './useOrgMemberQuery';
|
|
14
20
|
export * from './useAppPermissionDefaultsQuery';
|
|
15
21
|
export * from './useAppPermissionDefaultQuery';
|
|
16
22
|
export * from './useOrgPermissionDefaultsQuery';
|
|
17
23
|
export * from './useOrgPermissionDefaultQuery';
|
|
24
|
+
export * from './useAppPermissionDefaultPermissionsQuery';
|
|
25
|
+
export * from './useAppPermissionDefaultPermissionQuery';
|
|
18
26
|
export * from './useAppAdminGrantsQuery';
|
|
19
27
|
export * from './useAppAdminGrantQuery';
|
|
20
28
|
export * from './useAppOwnerGrantsQuery';
|
|
@@ -45,12 +53,12 @@ export * from './useOrgMembershipSettingsQuery';
|
|
|
45
53
|
export * from './useOrgMembershipSettingQuery';
|
|
46
54
|
export * from './useAppMembershipsQuery';
|
|
47
55
|
export * from './useAppMembershipQuery';
|
|
48
|
-
export * from './useAppInvitesQuery';
|
|
49
|
-
export * from './useAppInviteQuery';
|
|
50
56
|
export * from './useOrgMembershipsQuery';
|
|
51
57
|
export * from './useOrgMembershipQuery';
|
|
52
58
|
export * from './useOrgMemberProfilesQuery';
|
|
53
59
|
export * from './useOrgMemberProfileQuery';
|
|
60
|
+
export * from './useAppInvitesQuery';
|
|
61
|
+
export * from './useAppInviteQuery';
|
|
54
62
|
export * from './useOrgInvitesQuery';
|
|
55
63
|
export * from './useOrgInviteQuery';
|
|
56
64
|
export * from './useAppPermissionsGetPaddedMaskQuery';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { AppPermissionDefaultGrantSelect, AppPermissionDefaultGrantWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AppPermissionDefaultGrantSelect, AppPermissionDefaultGrantWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const appPermissionDefaultGrantQueryKey: (id: string | number) => readonly ["apppermissiondefaultgrant", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useAppPermissionDefaultGrantQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAppPermissionDefaultGrantQuery<S extends AppPermissionDefaultGrantSelect, TData = {
|
|
24
|
+
appPermissionDefaultGrant: InferSelectResult<AppPermissionDefaultGrantWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
appPermissionDefaultGrant: InferSelectResult<AppPermissionDefaultGrantWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchAppPermissionDefaultGrantQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchAppPermissionDefaultGrantQuery<S extends AppPermissionDefaultGrantSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
appPermissionDefaultGrant: InferSelectResult<AppPermissionDefaultGrantWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchAppPermissionDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchAppPermissionDefaultGrantQuery<S extends AppPermissionDefaultGrantSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { appPermissionDefaultGrantKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const appPermissionDefaultGrantQueryKey = appPermissionDefaultGrantKeys.detail;
|
|
12
|
+
export function useAppPermissionDefaultGrantQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: appPermissionDefaultGrantKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.appPermissionDefaultGrant.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchAppPermissionDefaultGrantQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.appPermissionDefaultGrant.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchAppPermissionDefaultGrantQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: appPermissionDefaultGrantKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.appPermissionDefaultGrant.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { AppPermissionDefaultGrantSelect, AppPermissionDefaultGrantWithRelations, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { AppPermissionDefaultGrantSelect, AppPermissionDefaultGrantWithRelations, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const appPermissionDefaultGrantsQueryKey: (variables?: object) => readonly ["apppermissiondefaultgrant", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useAppPermissionDefaultGrantsQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useAppPermissionDefaultGrantsQuery<S extends AppPermissionDefaultGrantSelect, TData = {
|
|
29
|
+
appPermissionDefaultGrants: ConnectionResult<InferSelectResult<AppPermissionDefaultGrantWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
appPermissionDefaultGrants: ConnectionResult<InferSelectResult<AppPermissionDefaultGrantWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchAppPermissionDefaultGrantsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchAppPermissionDefaultGrantsQuery<S extends AppPermissionDefaultGrantSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
appPermissionDefaultGrants: ConnectionResult<InferSelectResult<AppPermissionDefaultGrantWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchAppPermissionDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchAppPermissionDefaultGrantsQuery<S extends AppPermissionDefaultGrantSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { appPermissionDefaultGrantKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const appPermissionDefaultGrantsQueryKey = appPermissionDefaultGrantKeys.list;
|
|
12
|
+
export function useAppPermissionDefaultGrantsQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: appPermissionDefaultGrantKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().appPermissionDefaultGrant.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchAppPermissionDefaultGrantsQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().appPermissionDefaultGrant.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchAppPermissionDefaultGrantsQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: appPermissionDefaultGrantKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().appPermissionDefaultGrant.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const appPermissionDefaultPermissionQueryKey: (id: string | number) => readonly ["apppermissiondefaultpermission", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useAppPermissionDefaultPermissionQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAppPermissionDefaultPermissionQuery<S extends AppPermissionDefaultPermissionSelect, TData = {
|
|
24
|
+
appPermissionDefaultPermission: InferSelectResult<AppPermissionDefaultPermissionWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
appPermissionDefaultPermission: InferSelectResult<AppPermissionDefaultPermissionWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchAppPermissionDefaultPermissionQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchAppPermissionDefaultPermissionQuery<S extends AppPermissionDefaultPermissionSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
appPermissionDefaultPermission: InferSelectResult<AppPermissionDefaultPermissionWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchAppPermissionDefaultPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchAppPermissionDefaultPermissionQuery<S extends AppPermissionDefaultPermissionSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { appPermissionDefaultPermissionKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const appPermissionDefaultPermissionQueryKey = appPermissionDefaultPermissionKeys.detail;
|
|
12
|
+
export function useAppPermissionDefaultPermissionQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: appPermissionDefaultPermissionKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.appPermissionDefaultPermission.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchAppPermissionDefaultPermissionQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.appPermissionDefaultPermission.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchAppPermissionDefaultPermissionQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: appPermissionDefaultPermissionKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.appPermissionDefaultPermission.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const appPermissionDefaultPermissionsQueryKey: (variables?: object) => readonly ["apppermissiondefaultpermission", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useAppPermissionDefaultPermissionsQuery<S extends AppPermissionDefaultPermissionSelect, TData = {
|
|
29
|
+
appPermissionDefaultPermissions: ConnectionResult<InferSelectResult<AppPermissionDefaultPermissionWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
appPermissionDefaultPermissions: ConnectionResult<InferSelectResult<AppPermissionDefaultPermissionWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchAppPermissionDefaultPermissionsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchAppPermissionDefaultPermissionsQuery<S extends AppPermissionDefaultPermissionSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
appPermissionDefaultPermissions: ConnectionResult<InferSelectResult<AppPermissionDefaultPermissionWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchAppPermissionDefaultPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchAppPermissionDefaultPermissionsQuery<S extends AppPermissionDefaultPermissionSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { appPermissionDefaultPermissionKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const appPermissionDefaultPermissionsQueryKey = appPermissionDefaultPermissionKeys.list;
|
|
12
|
+
export function useAppPermissionDefaultPermissionsQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: appPermissionDefaultPermissionKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().appPermissionDefaultPermission.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchAppPermissionDefaultPermissionsQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().appPermissionDefaultPermission.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchAppPermissionDefaultPermissionsQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: appPermissionDefaultPermissionKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().appPermissionDefaultPermission.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgPermissionDefaultGrantSelect, OrgPermissionDefaultGrantWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgPermissionDefaultGrantSelect, OrgPermissionDefaultGrantWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const orgPermissionDefaultGrantQueryKey: (id: string | number) => readonly ["orgpermissiondefaultgrant", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useOrgPermissionDefaultGrantQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useOrgPermissionDefaultGrantQuery<S extends OrgPermissionDefaultGrantSelect, TData = {
|
|
24
|
+
orgPermissionDefaultGrant: InferSelectResult<OrgPermissionDefaultGrantWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
orgPermissionDefaultGrant: InferSelectResult<OrgPermissionDefaultGrantWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchOrgPermissionDefaultGrantQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchOrgPermissionDefaultGrantQuery<S extends OrgPermissionDefaultGrantSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
orgPermissionDefaultGrant: InferSelectResult<OrgPermissionDefaultGrantWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchOrgPermissionDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchOrgPermissionDefaultGrantQuery<S extends OrgPermissionDefaultGrantSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { orgPermissionDefaultGrantKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const orgPermissionDefaultGrantQueryKey = orgPermissionDefaultGrantKeys.detail;
|
|
12
|
+
export function useOrgPermissionDefaultGrantQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: orgPermissionDefaultGrantKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.orgPermissionDefaultGrant.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchOrgPermissionDefaultGrantQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.orgPermissionDefaultGrant.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchOrgPermissionDefaultGrantQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: orgPermissionDefaultGrantKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.orgPermissionDefaultGrant.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { OrgPermissionDefaultGrantSelect, OrgPermissionDefaultGrantWithRelations, OrgPermissionDefaultGrantFilter, OrgPermissionDefaultGrantOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { OrgPermissionDefaultGrantSelect, OrgPermissionDefaultGrantWithRelations, OrgPermissionDefaultGrantFilter, OrgPermissionDefaultGrantOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const orgPermissionDefaultGrantsQueryKey: (variables?: object) => readonly ["orgpermissiondefaultgrant", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useOrgPermissionDefaultGrantsQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOrgPermissionDefaultGrantsQuery<S extends OrgPermissionDefaultGrantSelect, TData = {
|
|
29
|
+
orgPermissionDefaultGrants: ConnectionResult<InferSelectResult<OrgPermissionDefaultGrantWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, OrgPermissionDefaultGrantFilter, OrgPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
orgPermissionDefaultGrants: ConnectionResult<InferSelectResult<OrgPermissionDefaultGrantWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchOrgPermissionDefaultGrantsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchOrgPermissionDefaultGrantsQuery<S extends OrgPermissionDefaultGrantSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, OrgPermissionDefaultGrantFilter, OrgPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
orgPermissionDefaultGrants: ConnectionResult<InferSelectResult<OrgPermissionDefaultGrantWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Audit log of permission additions and removals from the defaults bitmask
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchOrgPermissionDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchOrgPermissionDefaultGrantsQuery<S extends OrgPermissionDefaultGrantSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, OrgPermissionDefaultGrantFilter, OrgPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
|
|
69
|
+
}): Promise<void>;
|