@constructive-io/react 0.8.0 → 0.8.2
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/README.md +0 -8
- package/admin/orm/input-types.d.ts +33 -127
- package/admin/schema-types.d.ts +20 -110
- package/admin/types.d.ts +0 -19
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +16 -16
- package/auth/hooks/invalidation.js +33 -33
- package/auth/hooks/mutation-keys.d.ts +32 -32
- package/auth/hooks/mutation-keys.js +20 -20
- package/auth/hooks/mutations/index.d.ts +9 -9
- package/auth/hooks/mutations/index.js +9 -9
- package/auth/hooks/queries/index.d.ts +6 -6
- package/auth/hooks/queries/index.js +6 -6
- package/auth/hooks/query-keys.d.ts +38 -38
- package/auth/hooks/query-keys.js +23 -23
- package/auth/orm/index.d.ts +6 -6
- package/auth/orm/index.js +6 -6
- package/auth/orm/input-types.d.ts +279 -327
- package/auth/orm/input-types.js +9 -1
- package/auth/orm/models/index.d.ts +3 -3
- package/auth/orm/models/index.js +7 -7
- package/auth/schema-types.d.ts +276 -188
- package/auth/types.d.ts +14 -24
- package/esm/admin/orm/input-types.d.ts +33 -127
- package/esm/admin/schema-types.d.ts +20 -110
- package/esm/admin/types.d.ts +0 -19
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +16 -16
- package/esm/auth/hooks/invalidation.js +34 -34
- package/esm/auth/hooks/mutation-keys.d.ts +32 -32
- package/esm/auth/hooks/mutation-keys.js +19 -19
- package/esm/auth/hooks/mutations/index.d.ts +9 -9
- package/esm/auth/hooks/mutations/index.js +9 -9
- package/esm/auth/hooks/queries/index.d.ts +6 -6
- package/esm/auth/hooks/queries/index.js +6 -6
- package/esm/auth/hooks/query-keys.d.ts +38 -38
- package/esm/auth/hooks/query-keys.js +22 -22
- package/esm/auth/orm/index.d.ts +6 -6
- package/esm/auth/orm/index.js +6 -6
- package/esm/auth/orm/input-types.d.ts +279 -327
- package/esm/auth/orm/input-types.js +9 -1
- package/esm/auth/orm/models/index.d.ts +3 -3
- package/esm/auth/orm/models/index.js +3 -3
- package/esm/auth/schema-types.d.ts +276 -188
- package/esm/auth/types.d.ts +14 -24
- package/esm/index.d.ts +5 -1
- package/esm/index.js +5 -1
- package/esm/objects/orm/input-types.d.ts +17 -48
- package/esm/objects/schema-types.d.ts +3 -37
- package/esm/objects/types.d.ts +0 -6
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +77 -53
- package/esm/public/hooks/invalidation.js +202 -138
- package/esm/public/hooks/mutation-keys.d.ts +180 -122
- package/esm/public/hooks/mutation-keys.js +129 -86
- package/esm/public/hooks/mutations/index.d.ts +50 -33
- package/esm/public/hooks/mutations/index.js +50 -33
- package/esm/public/hooks/mutations/useAcceptDatabaseTransferMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useAcceptDatabaseTransferMutation.js +23 -0
- package/esm/public/hooks/mutations/useCancelDatabaseTransferMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useCancelDatabaseTransferMutation.js +23 -0
- package/esm/public/hooks/mutations/useConstructBlueprintMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useConstructBlueprintMutation.js +23 -0
- package/esm/public/hooks/mutations/useCopyTemplateToBlueprintMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useCopyTemplateToBlueprintMutation.js +23 -0
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateBlueprintTemplateMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBlueprintTemplateMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateDatabaseTransferMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateDatabaseTransferMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateEmbeddingChunkMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateEmbeddingChunkMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateEnumMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateUuidModuleMutation.js → useCreateEnumMutation.js} +7 -7
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintTemplateMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintTemplateMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteDatabaseTransferMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteDatabaseTransferMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteEmbeddingChunkMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteEmbeddingChunkMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteEnumMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/{useDeleteUuidModuleMutation.js → useDeleteEnumMutation.js} +8 -8
- package/esm/public/hooks/mutations/useRejectDatabaseTransferMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRejectDatabaseTransferMutation.js +23 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintTemplateMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintTemplateMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateDatabaseTransferMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateDatabaseTransferMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateEmbeddingChunkMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateEmbeddingChunkMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateEnumMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/{useUpdateUuidModuleMutation.js → useUpdateEnumMutation.js} +10 -10
- package/esm/public/hooks/queries/index.d.ts +25 -17
- package/esm/public/hooks/queries/index.js +25 -17
- package/esm/public/hooks/queries/useBlueprintQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBlueprintQuery.js +47 -0
- package/esm/public/hooks/queries/useBlueprintTemplateQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBlueprintTemplateQuery.js +47 -0
- package/esm/public/hooks/queries/useBlueprintTemplatesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBlueprintTemplatesQuery.js +32 -0
- package/esm/public/hooks/queries/useBlueprintsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBlueprintsQuery.js +32 -0
- package/esm/public/hooks/queries/useDatabaseTransferQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useDatabaseTransferQuery.js +47 -0
- package/esm/public/hooks/queries/useDatabaseTransfersQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useDatabaseTransfersQuery.js +32 -0
- package/esm/public/hooks/queries/useEmbeddingChunkQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useEmbeddingChunkQuery.js +47 -0
- package/esm/public/hooks/queries/useEmbeddingChunksQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useEmbeddingChunksQuery.js +32 -0
- package/esm/public/hooks/queries/useEnumQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useUuidModuleQuery.js → useEnumQuery.js} +11 -11
- package/esm/public/hooks/queries/useEnumsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useUuidModulesQuery.js → useEnumsQuery.js} +11 -11
- package/esm/public/hooks/query-keys.d.ts +180 -124
- package/esm/public/hooks/query-keys.js +103 -71
- package/esm/public/orm/index.d.ts +81 -48
- package/esm/public/orm/index.js +26 -18
- package/esm/public/orm/input-types.d.ts +2447 -2980
- package/esm/public/orm/input-types.js +26 -1
- package/esm/public/orm/models/blueprint.d.ts +56 -0
- package/esm/public/orm/models/blueprint.js +94 -0
- package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/esm/public/orm/models/blueprintTemplate.js +94 -0
- package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
- package/esm/public/orm/models/databaseTransfer.js +94 -0
- package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
- package/esm/public/orm/models/embeddingChunk.js +94 -0
- package/esm/public/orm/models/enum.d.ts +56 -0
- package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
- package/esm/public/orm/models/index.d.ts +13 -9
- package/esm/public/orm/models/index.js +13 -9
- package/esm/public/orm/mutation/index.d.ts +98 -50
- package/esm/public/orm/mutation/index.js +126 -66
- package/esm/public/schema-types.d.ts +2328 -2206
- package/esm/public/types.d.ts +161 -379
- package/index.d.ts +5 -1
- package/index.js +5 -1
- package/objects/orm/input-types.d.ts +17 -48
- package/objects/schema-types.d.ts +3 -37
- package/objects/types.d.ts +0 -6
- package/package.json +3 -3
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +77 -53
- package/public/hooks/invalidation.js +201 -137
- package/public/hooks/mutation-keys.d.ts +180 -122
- package/public/hooks/mutation-keys.js +132 -89
- package/public/hooks/mutations/index.d.ts +50 -33
- package/public/hooks/mutations/index.js +50 -33
- package/public/hooks/mutations/useAcceptDatabaseTransferMutation.d.ts +20 -0
- package/public/hooks/mutations/useAcceptDatabaseTransferMutation.js +26 -0
- package/public/hooks/mutations/useCancelDatabaseTransferMutation.d.ts +20 -0
- package/public/hooks/mutations/useCancelDatabaseTransferMutation.js +26 -0
- package/public/hooks/mutations/useConstructBlueprintMutation.d.ts +20 -0
- package/public/hooks/mutations/useConstructBlueprintMutation.js +26 -0
- package/public/hooks/mutations/useCopyTemplateToBlueprintMutation.d.ts +20 -0
- package/public/hooks/mutations/useCopyTemplateToBlueprintMutation.js +26 -0
- package/public/hooks/mutations/useCreateBlueprintMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateBlueprintMutation.js +34 -0
- package/public/hooks/mutations/useCreateBlueprintTemplateMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateBlueprintTemplateMutation.js +34 -0
- package/public/hooks/mutations/useCreateDatabaseTransferMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateDatabaseTransferMutation.js +34 -0
- package/public/hooks/mutations/useCreateEmbeddingChunkMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateEmbeddingChunkMutation.js +34 -0
- package/public/hooks/mutations/useCreateEnumMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateUuidModuleMutation.js → useCreateEnumMutation.js} +6 -6
- package/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBlueprintMutation.js +39 -0
- package/public/hooks/mutations/useDeleteBlueprintTemplateMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBlueprintTemplateMutation.js +39 -0
- package/public/hooks/mutations/useDeleteDatabaseTransferMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteDatabaseTransferMutation.js +39 -0
- package/public/hooks/mutations/useDeleteEmbeddingChunkMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteEmbeddingChunkMutation.js +39 -0
- package/public/hooks/mutations/useDeleteEnumMutation.d.ts +38 -0
- package/public/hooks/mutations/{useDeleteUuidModuleMutation.js → useDeleteEnumMutation.js} +7 -7
- package/public/hooks/mutations/useRejectDatabaseTransferMutation.d.ts +20 -0
- package/public/hooks/mutations/useRejectDatabaseTransferMutation.js +26 -0
- package/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBlueprintMutation.js +40 -0
- package/public/hooks/mutations/useUpdateBlueprintTemplateMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBlueprintTemplateMutation.js +40 -0
- package/public/hooks/mutations/useUpdateDatabaseTransferMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateDatabaseTransferMutation.js +40 -0
- package/public/hooks/mutations/useUpdateEmbeddingChunkMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateEmbeddingChunkMutation.js +40 -0
- package/public/hooks/mutations/useUpdateEnumMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateUuidModuleMutation.js → useUpdateEnumMutation.js} +9 -9
- package/public/hooks/queries/index.d.ts +25 -17
- package/public/hooks/queries/index.js +25 -17
- package/public/hooks/queries/useBlueprintQuery.d.ts +65 -0
- package/public/hooks/queries/useBlueprintQuery.js +53 -0
- package/public/hooks/queries/useBlueprintTemplateQuery.d.ts +65 -0
- package/public/hooks/queries/useBlueprintTemplateQuery.js +53 -0
- package/public/hooks/queries/useBlueprintTemplatesQuery.d.ts +69 -0
- package/public/hooks/queries/useBlueprintTemplatesQuery.js +38 -0
- package/public/hooks/queries/useBlueprintsQuery.d.ts +69 -0
- package/public/hooks/queries/useBlueprintsQuery.js +38 -0
- package/public/hooks/queries/useDatabaseTransferQuery.d.ts +65 -0
- package/public/hooks/queries/useDatabaseTransferQuery.js +53 -0
- package/public/hooks/queries/useDatabaseTransfersQuery.d.ts +69 -0
- package/public/hooks/queries/useDatabaseTransfersQuery.js +38 -0
- package/public/hooks/queries/useEmbeddingChunkQuery.d.ts +65 -0
- package/public/hooks/queries/useEmbeddingChunkQuery.js +53 -0
- package/public/hooks/queries/useEmbeddingChunksQuery.d.ts +69 -0
- package/public/hooks/queries/useEmbeddingChunksQuery.js +38 -0
- package/public/hooks/queries/useEnumQuery.d.ts +65 -0
- package/public/hooks/queries/{useUuidModuleQuery.js → useEnumQuery.js} +14 -14
- package/public/hooks/queries/useEnumsQuery.d.ts +69 -0
- package/public/hooks/queries/{useUuidModulesQuery.js → useEnumsQuery.js} +14 -14
- package/public/hooks/query-keys.d.ts +180 -124
- package/public/hooks/query-keys.js +106 -74
- package/public/orm/index.d.ts +81 -48
- package/public/orm/index.js +26 -18
- package/public/orm/input-types.d.ts +2447 -2980
- package/public/orm/input-types.js +26 -1
- package/public/orm/models/blueprint.d.ts +56 -0
- package/public/orm/models/blueprint.js +98 -0
- package/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/public/orm/models/blueprintTemplate.js +98 -0
- package/public/orm/models/databaseTransfer.d.ts +56 -0
- package/public/orm/models/databaseTransfer.js +98 -0
- package/public/orm/models/embeddingChunk.d.ts +56 -0
- package/public/orm/models/embeddingChunk.js +98 -0
- package/public/orm/models/enum.d.ts +56 -0
- package/public/orm/models/{uuidModule.js → enum.js} +25 -25
- package/public/orm/models/index.d.ts +13 -9
- package/public/orm/models/index.js +29 -21
- package/public/orm/mutation/index.d.ts +98 -50
- package/public/orm/mutation/index.js +126 -66
- package/public/schema-types.d.ts +2328 -2206
- package/public/types.d.ts +161 -379
- package/esm/public/hooks/mutations/useCreateUuidModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useDeleteUuidModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useUpdateUuidModuleMutation.d.ts +0 -40
- package/esm/public/hooks/queries/useUuidModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useUuidModulesQuery.d.ts +0 -69
- package/esm/public/orm/models/uuidModule.d.ts +0 -56
- package/public/hooks/mutations/useCreateUuidModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useDeleteUuidModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useUpdateUuidModuleMutation.d.ts +0 -40
- package/public/hooks/queries/useUuidModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useUuidModulesQuery.d.ts +0 -69
- package/public/orm/models/uuidModule.d.ts +0 -56
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export * from './useCreateGetAllRecordMutation';
|
|
6
7
|
export * from './useCreateOrgGetManagersRecordMutation';
|
|
7
8
|
export * from './useCreateOrgGetSubordinatesRecordMutation';
|
|
8
|
-
export * from './useCreateGetAllRecordMutation';
|
|
9
9
|
export * from './useCreateObjectMutation';
|
|
10
10
|
export * from './useUpdateObjectMutation';
|
|
11
11
|
export * from './useDeleteObjectMutation';
|
|
@@ -69,6 +69,9 @@ export * from './useDeleteViewGrantMutation';
|
|
|
69
69
|
export * from './useCreateViewRuleMutation';
|
|
70
70
|
export * from './useUpdateViewRuleMutation';
|
|
71
71
|
export * from './useDeleteViewRuleMutation';
|
|
72
|
+
export * from './useCreateEmbeddingChunkMutation';
|
|
73
|
+
export * from './useUpdateEmbeddingChunkMutation';
|
|
74
|
+
export * from './useDeleteEmbeddingChunkMutation';
|
|
72
75
|
export * from './useCreateTableTemplateModuleMutation';
|
|
73
76
|
export * from './useUpdateTableTemplateModuleMutation';
|
|
74
77
|
export * from './useDeleteTableTemplateModuleMutation';
|
|
@@ -84,6 +87,9 @@ export * from './useDeleteSchemaGrantMutation';
|
|
|
84
87
|
export * from './useCreateDefaultPrivilegeMutation';
|
|
85
88
|
export * from './useUpdateDefaultPrivilegeMutation';
|
|
86
89
|
export * from './useDeleteDefaultPrivilegeMutation';
|
|
90
|
+
export * from './useCreateEnumMutation';
|
|
91
|
+
export * from './useUpdateEnumMutation';
|
|
92
|
+
export * from './useDeleteEnumMutation';
|
|
87
93
|
export * from './useCreateApiSchemaMutation';
|
|
88
94
|
export * from './useUpdateApiSchemaMutation';
|
|
89
95
|
export * from './useDeleteApiSchemaMutation';
|
|
@@ -105,6 +111,9 @@ export * from './useDeleteSiteThemeMutation';
|
|
|
105
111
|
export * from './useCreateTriggerFunctionMutation';
|
|
106
112
|
export * from './useUpdateTriggerFunctionMutation';
|
|
107
113
|
export * from './useDeleteTriggerFunctionMutation';
|
|
114
|
+
export * from './useCreateDatabaseTransferMutation';
|
|
115
|
+
export * from './useUpdateDatabaseTransferMutation';
|
|
116
|
+
export * from './useDeleteDatabaseTransferMutation';
|
|
108
117
|
export * from './useCreateApiMutation';
|
|
109
118
|
export * from './useUpdateApiMutation';
|
|
110
119
|
export * from './useDeleteApiMutation';
|
|
@@ -174,9 +183,12 @@ export * from './useDeleteUserAuthModuleMutation';
|
|
|
174
183
|
export * from './useCreateUsersModuleMutation';
|
|
175
184
|
export * from './useUpdateUsersModuleMutation';
|
|
176
185
|
export * from './useDeleteUsersModuleMutation';
|
|
177
|
-
export * from './
|
|
178
|
-
export * from './
|
|
179
|
-
export * from './
|
|
186
|
+
export * from './useCreateBlueprintMutation';
|
|
187
|
+
export * from './useUpdateBlueprintMutation';
|
|
188
|
+
export * from './useDeleteBlueprintMutation';
|
|
189
|
+
export * from './useCreateBlueprintTemplateMutation';
|
|
190
|
+
export * from './useUpdateBlueprintTemplateMutation';
|
|
191
|
+
export * from './useDeleteBlueprintTemplateMutation';
|
|
180
192
|
export * from './useCreateDatabaseProvisionModuleMutation';
|
|
181
193
|
export * from './useUpdateDatabaseProvisionModuleMutation';
|
|
182
194
|
export * from './useDeleteDatabaseProvisionModuleMutation';
|
|
@@ -210,6 +222,9 @@ export * from './useDeleteOrgChartEdgeMutation';
|
|
|
210
222
|
export * from './useCreateOrgChartEdgeGrantMutation';
|
|
211
223
|
export * from './useUpdateOrgChartEdgeGrantMutation';
|
|
212
224
|
export * from './useDeleteOrgChartEdgeGrantMutation';
|
|
225
|
+
export * from './useCreateOrgPermissionDefaultMutation';
|
|
226
|
+
export * from './useUpdateOrgPermissionDefaultMutation';
|
|
227
|
+
export * from './useDeleteOrgPermissionDefaultMutation';
|
|
213
228
|
export * from './useCreateAppLimitMutation';
|
|
214
229
|
export * from './useUpdateAppLimitMutation';
|
|
215
230
|
export * from './useDeleteAppLimitMutation';
|
|
@@ -222,6 +237,21 @@ export * from './useDeleteAppStepMutation';
|
|
|
222
237
|
export * from './useCreateAppAchievementMutation';
|
|
223
238
|
export * from './useUpdateAppAchievementMutation';
|
|
224
239
|
export * from './useDeleteAppAchievementMutation';
|
|
240
|
+
export * from './useCreateAppLevelMutation';
|
|
241
|
+
export * from './useUpdateAppLevelMutation';
|
|
242
|
+
export * from './useDeleteAppLevelMutation';
|
|
243
|
+
export * from './useCreateEmailMutation';
|
|
244
|
+
export * from './useUpdateEmailMutation';
|
|
245
|
+
export * from './useDeleteEmailMutation';
|
|
246
|
+
export * from './useCreatePhoneNumberMutation';
|
|
247
|
+
export * from './useUpdatePhoneNumberMutation';
|
|
248
|
+
export * from './useDeletePhoneNumberMutation';
|
|
249
|
+
export * from './useCreateCryptoAddressMutation';
|
|
250
|
+
export * from './useUpdateCryptoAddressMutation';
|
|
251
|
+
export * from './useDeleteCryptoAddressMutation';
|
|
252
|
+
export * from './useCreateConnectedAccountMutation';
|
|
253
|
+
export * from './useUpdateConnectedAccountMutation';
|
|
254
|
+
export * from './useDeleteConnectedAccountMutation';
|
|
225
255
|
export * from './useCreateInviteMutation';
|
|
226
256
|
export * from './useUpdateInviteMutation';
|
|
227
257
|
export * from './useDeleteInviteMutation';
|
|
@@ -234,6 +264,9 @@ export * from './useDeleteOrgInviteMutation';
|
|
|
234
264
|
export * from './useCreateOrgClaimedInviteMutation';
|
|
235
265
|
export * from './useUpdateOrgClaimedInviteMutation';
|
|
236
266
|
export * from './useDeleteOrgClaimedInviteMutation';
|
|
267
|
+
export * from './useCreateAuditLogMutation';
|
|
268
|
+
export * from './useUpdateAuditLogMutation';
|
|
269
|
+
export * from './useDeleteAuditLogMutation';
|
|
237
270
|
export * from './useCreateRefMutation';
|
|
238
271
|
export * from './useUpdateRefMutation';
|
|
239
272
|
export * from './useDeleteRefMutation';
|
|
@@ -243,27 +276,15 @@ export * from './useDeleteStoreMutation';
|
|
|
243
276
|
export * from './useCreateAppPermissionDefaultMutation';
|
|
244
277
|
export * from './useUpdateAppPermissionDefaultMutation';
|
|
245
278
|
export * from './useDeleteAppPermissionDefaultMutation';
|
|
246
|
-
export * from './useCreateCryptoAddressMutation';
|
|
247
|
-
export * from './useUpdateCryptoAddressMutation';
|
|
248
|
-
export * from './useDeleteCryptoAddressMutation';
|
|
249
279
|
export * from './useCreateRoleTypeMutation';
|
|
250
280
|
export * from './useUpdateRoleTypeMutation';
|
|
251
281
|
export * from './useDeleteRoleTypeMutation';
|
|
252
|
-
export * from './useCreateOrgPermissionDefaultMutation';
|
|
253
|
-
export * from './useUpdateOrgPermissionDefaultMutation';
|
|
254
|
-
export * from './useDeleteOrgPermissionDefaultMutation';
|
|
255
|
-
export * from './useCreatePhoneNumberMutation';
|
|
256
|
-
export * from './useUpdatePhoneNumberMutation';
|
|
257
|
-
export * from './useDeletePhoneNumberMutation';
|
|
258
282
|
export * from './useCreateAppLimitDefaultMutation';
|
|
259
283
|
export * from './useUpdateAppLimitDefaultMutation';
|
|
260
284
|
export * from './useDeleteAppLimitDefaultMutation';
|
|
261
285
|
export * from './useCreateOrgLimitDefaultMutation';
|
|
262
286
|
export * from './useUpdateOrgLimitDefaultMutation';
|
|
263
287
|
export * from './useDeleteOrgLimitDefaultMutation';
|
|
264
|
-
export * from './useCreateConnectedAccountMutation';
|
|
265
|
-
export * from './useUpdateConnectedAccountMutation';
|
|
266
|
-
export * from './useDeleteConnectedAccountMutation';
|
|
267
288
|
export * from './useCreateNodeTypeRegistryMutation';
|
|
268
289
|
export * from './useUpdateNodeTypeRegistryMutation';
|
|
269
290
|
export * from './useDeleteNodeTypeRegistryMutation';
|
|
@@ -282,16 +303,7 @@ export * from './useDeleteRlsModuleMutation';
|
|
|
282
303
|
export * from './useCreateOrgMembershipDefaultMutation';
|
|
283
304
|
export * from './useUpdateOrgMembershipDefaultMutation';
|
|
284
305
|
export * from './useDeleteOrgMembershipDefaultMutation';
|
|
285
|
-
export * from './useCreateAuditLogMutation';
|
|
286
|
-
export * from './useUpdateAuditLogMutation';
|
|
287
|
-
export * from './useDeleteAuditLogMutation';
|
|
288
|
-
export * from './useCreateAppLevelMutation';
|
|
289
|
-
export * from './useUpdateAppLevelMutation';
|
|
290
|
-
export * from './useDeleteAppLevelMutation';
|
|
291
306
|
export * from './useCreateSqlMigrationMutation';
|
|
292
|
-
export * from './useCreateEmailMutation';
|
|
293
|
-
export * from './useUpdateEmailMutation';
|
|
294
|
-
export * from './useDeleteEmailMutation';
|
|
295
307
|
export * from './useCreateUserMutation';
|
|
296
308
|
export * from './useUpdateUserMutation';
|
|
297
309
|
export * from './useDeleteUserMutation';
|
|
@@ -302,23 +314,28 @@ export * from './useDeleteAppMembershipMutation';
|
|
|
302
314
|
export * from './useCreateHierarchyModuleMutation';
|
|
303
315
|
export * from './useUpdateHierarchyModuleMutation';
|
|
304
316
|
export * from './useDeleteHierarchyModuleMutation';
|
|
305
|
-
export * from './useSignOutMutation';
|
|
306
317
|
export * from './useSendAccountDeletionEmailMutation';
|
|
307
|
-
export * from './
|
|
318
|
+
export * from './useSignOutMutation';
|
|
319
|
+
export * from './useAcceptDatabaseTransferMutation';
|
|
320
|
+
export * from './useCancelDatabaseTransferMutation';
|
|
321
|
+
export * from './useRejectDatabaseTransferMutation';
|
|
308
322
|
export * from './useSubmitInviteCodeMutation';
|
|
309
323
|
export * from './useSubmitOrgInviteCodeMutation';
|
|
310
|
-
export * from './
|
|
311
|
-
export * from './useInitEmptyRepoMutation';
|
|
324
|
+
export * from './useCheckPasswordMutation';
|
|
312
325
|
export * from './useConfirmDeleteAccountMutation';
|
|
313
326
|
export * from './useSetPasswordMutation';
|
|
314
327
|
export * from './useVerifyEmailMutation';
|
|
315
|
-
export * from './
|
|
328
|
+
export * from './useFreezeObjectsMutation';
|
|
329
|
+
export * from './useInitEmptyRepoMutation';
|
|
330
|
+
export * from './useConstructBlueprintMutation';
|
|
316
331
|
export * from './useResetPasswordMutation';
|
|
317
|
-
export * from './
|
|
318
|
-
export * from './useSetFieldOrderMutation';
|
|
332
|
+
export * from './useRemoveNodeAtPathMutation';
|
|
319
333
|
export * from './useSetDataAtPathMutation';
|
|
320
334
|
export * from './useSetPropsAndCommitMutation';
|
|
335
|
+
export * from './useCopyTemplateToBlueprintMutation';
|
|
321
336
|
export * from './useProvisionDatabaseWithUserMutation';
|
|
337
|
+
export * from './useBootstrapUserMutation';
|
|
338
|
+
export * from './useSetFieldOrderMutation';
|
|
322
339
|
export * from './useInsertNodeAtPathMutation';
|
|
323
340
|
export * from './useUpdateNodeAtPathMutation';
|
|
324
341
|
export * from './useSetAndCommitMutation';
|
|
@@ -329,7 +346,7 @@ export * from './useExtendTokenExpiresMutation';
|
|
|
329
346
|
export * from './useSignInMutation';
|
|
330
347
|
export * from './useSignUpMutation';
|
|
331
348
|
export * from './useOneTimeTokenMutation';
|
|
332
|
-
export * from './useForgotPasswordMutation';
|
|
333
349
|
export * from './useSendVerificationEmailMutation';
|
|
350
|
+
export * from './useForgotPasswordMutation';
|
|
334
351
|
export * from './useVerifyPasswordMutation';
|
|
335
352
|
export * from './useVerifyTotpMutation';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for acceptDatabaseTransfer
|
|
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 { AcceptDatabaseTransferVariables } from '../../orm/mutation';
|
|
8
|
+
import type { AcceptDatabaseTransferPayloadSelect, AcceptDatabaseTransferPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { AcceptDatabaseTransferVariables } from '../../orm/mutation';
|
|
11
|
+
export type { AcceptDatabaseTransferPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useAcceptDatabaseTransferMutation<S extends AcceptDatabaseTransferPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & AcceptDatabaseTransferPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, AcceptDatabaseTransferPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
acceptDatabaseTransfer: InferSelectResult<AcceptDatabaseTransferPayload, S> | null;
|
|
18
|
+
}, Error, AcceptDatabaseTransferVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
acceptDatabaseTransfer: InferSelectResult<AcceptDatabaseTransferPayload, S> | null;
|
|
20
|
+
}, Error, AcceptDatabaseTransferVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for acceptDatabaseTransfer
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useAcceptDatabaseTransferMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.acceptDatabaseTransfer(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.acceptDatabaseTransfer(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for cancelDatabaseTransfer
|
|
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 { CancelDatabaseTransferVariables } from '../../orm/mutation';
|
|
8
|
+
import type { CancelDatabaseTransferPayloadSelect, CancelDatabaseTransferPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { CancelDatabaseTransferVariables } from '../../orm/mutation';
|
|
11
|
+
export type { CancelDatabaseTransferPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useCancelDatabaseTransferMutation<S extends CancelDatabaseTransferPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & CancelDatabaseTransferPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, CancelDatabaseTransferPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
cancelDatabaseTransfer: InferSelectResult<CancelDatabaseTransferPayload, S> | null;
|
|
18
|
+
}, Error, CancelDatabaseTransferVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
cancelDatabaseTransfer: InferSelectResult<CancelDatabaseTransferPayload, S> | null;
|
|
20
|
+
}, Error, CancelDatabaseTransferVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for cancelDatabaseTransfer
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useCancelDatabaseTransferMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.cancelDatabaseTransfer(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.cancelDatabaseTransfer(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for constructBlueprint
|
|
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 { ConstructBlueprintVariables } from '../../orm/mutation';
|
|
8
|
+
import type { ConstructBlueprintPayloadSelect, ConstructBlueprintPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { ConstructBlueprintVariables } from '../../orm/mutation';
|
|
11
|
+
export type { ConstructBlueprintPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useConstructBlueprintMutation<S extends ConstructBlueprintPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & ConstructBlueprintPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, ConstructBlueprintPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
constructBlueprint: InferSelectResult<ConstructBlueprintPayload, S> | null;
|
|
18
|
+
}, Error, ConstructBlueprintVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
constructBlueprint: InferSelectResult<ConstructBlueprintPayload, S> | null;
|
|
20
|
+
}, Error, ConstructBlueprintVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for constructBlueprint
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useConstructBlueprintMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.constructBlueprint(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.constructBlueprint(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for copyTemplateToBlueprint
|
|
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 { CopyTemplateToBlueprintVariables } from '../../orm/mutation';
|
|
8
|
+
import type { CopyTemplateToBlueprintPayloadSelect, CopyTemplateToBlueprintPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { CopyTemplateToBlueprintVariables } from '../../orm/mutation';
|
|
11
|
+
export type { CopyTemplateToBlueprintPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useCopyTemplateToBlueprintMutation<S extends CopyTemplateToBlueprintPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & CopyTemplateToBlueprintPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, CopyTemplateToBlueprintPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
copyTemplateToBlueprint: InferSelectResult<CopyTemplateToBlueprintPayload, S> | null;
|
|
18
|
+
}, Error, CopyTemplateToBlueprintVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
copyTemplateToBlueprint: InferSelectResult<CopyTemplateToBlueprintPayload, S> | null;
|
|
20
|
+
}, Error, CopyTemplateToBlueprintVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for copyTemplateToBlueprint
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useCopyTemplateToBlueprintMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.copyTemplateToBlueprint(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.copyTemplateToBlueprint(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
|
|
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 { BlueprintSelect, BlueprintWithRelations, CreateBlueprintInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BlueprintSelect, BlueprintWithRelations, CreateBlueprintInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateBlueprintMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateBlueprintMutation<S extends BlueprintSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & BlueprintSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createBlueprint: {
|
|
28
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateBlueprintInput['blueprint']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createBlueprint: {
|
|
32
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateBlueprintInput['blueprint']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction.
|
|
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 { blueprintKeys } from '../query-keys';
|
|
10
|
+
import { blueprintMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateBlueprintMutation(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: blueprintMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.blueprint.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: blueprintKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible).
|
|
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 { BlueprintTemplateSelect, BlueprintTemplateWithRelations, CreateBlueprintTemplateInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BlueprintTemplateSelect, BlueprintTemplateWithRelations, CreateBlueprintTemplateInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateBlueprintTemplateMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateBlueprintTemplateMutation<S extends BlueprintTemplateSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & BlueprintTemplateSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintTemplateSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createBlueprintTemplate: {
|
|
28
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateBlueprintTemplateInput['blueprintTemplate']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createBlueprintTemplate: {
|
|
32
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateBlueprintTemplateInput['blueprintTemplate']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible).
|
|
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 { blueprintTemplateKeys } from '../query-keys';
|
|
10
|
+
import { blueprintTemplateMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateBlueprintTemplateMutation(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: blueprintTemplateMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.blueprintTemplate.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: blueprintTemplateKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for DatabaseTransfer
|
|
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 { DatabaseTransferSelect, DatabaseTransferWithRelations, CreateDatabaseTransferInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DatabaseTransferSelect, DatabaseTransferWithRelations, CreateDatabaseTransferInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a DatabaseTransfer
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateDatabaseTransferMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateDatabaseTransferMutation<S extends DatabaseTransferSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DatabaseTransferSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DatabaseTransferSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createDatabaseTransfer: {
|
|
28
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateDatabaseTransferInput['databaseTransfer']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createDatabaseTransfer: {
|
|
32
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateDatabaseTransferInput['databaseTransfer']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for DatabaseTransfer
|
|
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 { databaseTransferKeys } from '../query-keys';
|
|
10
|
+
import { databaseTransferMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateDatabaseTransferMutation(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: databaseTransferMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.databaseTransfer.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: databaseTransferKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for EmbeddingChunk
|
|
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 { EmbeddingChunkSelect, EmbeddingChunkWithRelations, CreateEmbeddingChunkInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { EmbeddingChunkSelect, EmbeddingChunkWithRelations, CreateEmbeddingChunkInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a EmbeddingChunk
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateEmbeddingChunkMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateEmbeddingChunkMutation<S extends EmbeddingChunkSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & EmbeddingChunkSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, EmbeddingChunkSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createEmbeddingChunk: {
|
|
28
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateEmbeddingChunkInput['embeddingChunk']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createEmbeddingChunk: {
|
|
32
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateEmbeddingChunkInput['embeddingChunk']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for EmbeddingChunk
|
|
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 { embeddingChunkKeys } from '../query-keys';
|
|
10
|
+
import { embeddingChunkMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateEmbeddingChunkMutation(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: embeddingChunkMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.embeddingChunk.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: embeddingChunkKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|