@constructive-io/react 0.10.16 → 0.10.18
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/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +24 -12
- package/esm/public/hooks/invalidation.js +65 -33
- package/esm/public/hooks/mutation-keys.d.ts +64 -30
- package/esm/public/hooks/mutation-keys.js +55 -23
- package/esm/public/hooks/mutations/index.d.ts +16 -5
- package/esm/public/hooks/mutations/index.js +16 -5
- package/esm/public/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBlueprintConstructionMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.js +1 -1
- package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useCreateStorageModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateStorageModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintConstructionMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.js +1 -1
- package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useDeleteStorageModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteStorageModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useProvisionFullTextSearchMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionFullTextSearchMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionIndexMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionIndexMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionRelationMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionRelationMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionTableMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionTableMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionUniqueConstraintMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionUniqueConstraintMutation.js +23 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintConstructionMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.js +1 -1
- package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useUpdateStorageModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateStorageModuleMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +8 -3
- package/esm/public/hooks/queries/index.js +8 -3
- package/esm/public/hooks/queries/useBlueprintConstructionQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBlueprintConstructionQuery.js +47 -0
- package/esm/public/hooks/queries/useBlueprintConstructionsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBlueprintConstructionsQuery.js +32 -0
- package/esm/public/hooks/queries/useBlueprintQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useBlueprintQuery.js +1 -1
- package/esm/public/hooks/queries/useBlueprintsQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useBlueprintsQuery.js +1 -1
- package/esm/public/hooks/queries/useResolveBlueprintTableQuery.d.ts +53 -0
- package/esm/public/hooks/queries/useResolveBlueprintTableQuery.js +47 -0
- package/esm/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
- package/esm/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
- package/esm/public/hooks/queries/useStorageModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useStorageModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useStorageModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useStorageModulesQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +58 -28
- package/esm/public/hooks/query-keys.js +33 -16
- package/esm/public/orm/index.d.ts +53 -19
- package/esm/public/orm/index.js +8 -4
- package/esm/public/orm/input-types.d.ts +886 -249
- package/esm/public/orm/input-types.js +5 -0
- package/esm/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/esm/public/orm/models/blueprintConstruction.js +96 -0
- package/esm/public/orm/models/index.d.ts +4 -2
- package/esm/public/orm/models/index.js +4 -2
- package/esm/public/orm/models/storageModule.d.ts +56 -0
- package/esm/public/orm/models/storageModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +86 -26
- package/esm/public/orm/mutation/index.js +96 -36
- package/esm/public/orm/query/index.d.ts +16 -0
- package/esm/public/orm/query/index.js +28 -0
- package/esm/public/schema-types.d.ts +990 -645
- package/esm/public/types.d.ts +42 -18
- 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 +24 -12
- package/public/hooks/invalidation.js +64 -32
- package/public/hooks/mutation-keys.d.ts +64 -30
- package/public/hooks/mutation-keys.js +58 -26
- package/public/hooks/mutations/index.d.ts +16 -5
- package/public/hooks/mutations/index.js +16 -5
- package/public/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateBlueprintConstructionMutation.js +34 -0
- package/public/hooks/mutations/useCreateBlueprintMutation.d.ts +2 -2
- package/public/hooks/mutations/useCreateBlueprintMutation.js +1 -1
- package/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useCreateStorageModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateStorageModuleMutation.js +34 -0
- package/public/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBlueprintConstructionMutation.js +39 -0
- package/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +2 -2
- package/public/hooks/mutations/useDeleteBlueprintMutation.js +1 -1
- package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useDeleteStorageModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteStorageModuleMutation.js +39 -0
- package/public/hooks/mutations/useProvisionFullTextSearchMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionFullTextSearchMutation.js +26 -0
- package/public/hooks/mutations/useProvisionIndexMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionIndexMutation.js +26 -0
- package/public/hooks/mutations/useProvisionRelationMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionRelationMutation.js +26 -0
- package/public/hooks/mutations/useProvisionTableMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionTableMutation.js +26 -0
- package/public/hooks/mutations/useProvisionUniqueConstraintMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionUniqueConstraintMutation.js +26 -0
- package/public/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBlueprintConstructionMutation.js +40 -0
- package/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +2 -2
- package/public/hooks/mutations/useUpdateBlueprintMutation.js +1 -1
- package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useUpdateStorageModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateStorageModuleMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +8 -3
- package/public/hooks/queries/index.js +8 -3
- package/public/hooks/queries/useBlueprintConstructionQuery.d.ts +65 -0
- package/public/hooks/queries/useBlueprintConstructionQuery.js +53 -0
- package/public/hooks/queries/useBlueprintConstructionsQuery.d.ts +69 -0
- package/public/hooks/queries/useBlueprintConstructionsQuery.js +38 -0
- package/public/hooks/queries/useBlueprintQuery.d.ts +4 -4
- package/public/hooks/queries/useBlueprintQuery.js +1 -1
- package/public/hooks/queries/useBlueprintsQuery.d.ts +4 -4
- package/public/hooks/queries/useBlueprintsQuery.js +1 -1
- package/public/hooks/queries/useResolveBlueprintTableQuery.d.ts +53 -0
- package/public/hooks/queries/useResolveBlueprintTableQuery.js +53 -0
- package/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
- package/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
- package/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
- package/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
- package/public/hooks/queries/useStorageModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useStorageModuleQuery.js +53 -0
- package/public/hooks/queries/useStorageModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useStorageModulesQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +58 -28
- package/public/hooks/query-keys.js +36 -19
- package/public/orm/index.d.ts +53 -19
- package/public/orm/index.js +8 -4
- package/public/orm/input-types.d.ts +886 -249
- package/public/orm/input-types.js +5 -0
- package/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/public/orm/models/blueprintConstruction.js +100 -0
- package/public/orm/models/index.d.ts +4 -2
- package/public/orm/models/index.js +11 -7
- package/public/orm/models/storageModule.d.ts +56 -0
- package/public/orm/models/storageModule.js +100 -0
- package/public/orm/mutation/index.d.ts +86 -26
- package/public/orm/mutation/index.js +96 -36
- package/public/orm/query/index.d.ts +16 -0
- package/public/orm/query/index.js +28 -0
- package/public/schema-types.d.ts +990 -645
- package/public/types.d.ts +42 -18
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
// ============================================================================
|
|
16
16
|
// Entity Mutation Keys
|
|
17
17
|
// ============================================================================
|
|
18
|
-
export const getAllRecordMutationKeys = {
|
|
19
|
-
/** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'],
|
|
20
|
-
/** Create getAllRecord mutation key */ create: () => ['mutation', 'getallrecord', 'create'],
|
|
21
|
-
/** Update getAllRecord mutation key */ update: (id) => ['mutation', 'getallrecord', 'update', id],
|
|
22
|
-
/** Delete getAllRecord mutation key */ delete: (id) => ['mutation', 'getallrecord', 'delete', id],
|
|
23
|
-
};
|
|
24
18
|
export const orgGetManagersRecordMutationKeys = {
|
|
25
19
|
/** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'],
|
|
26
20
|
/** Create orgGetManagersRecord mutation key */ create: () => ['mutation', 'orggetmanagersrecord', 'create'],
|
|
@@ -36,6 +30,12 @@ export const orgGetSubordinatesRecordMutationKeys = {
|
|
|
36
30
|
/** Update orgGetSubordinatesRecord mutation key */ update: (id) => ['mutation', 'orggetsubordinatesrecord', 'update', id],
|
|
37
31
|
/** Delete orgGetSubordinatesRecord mutation key */ delete: (id) => ['mutation', 'orggetsubordinatesrecord', 'delete', id],
|
|
38
32
|
};
|
|
33
|
+
export const getAllRecordMutationKeys = {
|
|
34
|
+
/** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'],
|
|
35
|
+
/** Create getAllRecord mutation key */ create: () => ['mutation', 'getallrecord', 'create'],
|
|
36
|
+
/** Update getAllRecord mutation key */ update: (id) => ['mutation', 'getallrecord', 'update', id],
|
|
37
|
+
/** Delete getAllRecord mutation key */ delete: (id) => ['mutation', 'getallrecord', 'delete', id],
|
|
38
|
+
};
|
|
39
39
|
export const objectMutationKeys = {
|
|
40
40
|
/** All object mutation keys */ all: ['mutation', 'object'],
|
|
41
41
|
/** Create object mutation key */ create: () => ['mutation', 'object', 'create'],
|
|
@@ -411,6 +411,21 @@ export const blueprintTemplateMutationKeys = {
|
|
|
411
411
|
/** Update blueprintTemplate mutation key */ update: (id) => ['mutation', 'blueprinttemplate', 'update', id],
|
|
412
412
|
/** Delete blueprintTemplate mutation key */ delete: (id) => ['mutation', 'blueprinttemplate', 'delete', id],
|
|
413
413
|
};
|
|
414
|
+
export const blueprintConstructionMutationKeys = {
|
|
415
|
+
/** All blueprintConstruction mutation keys */ all: [
|
|
416
|
+
'mutation',
|
|
417
|
+
'blueprintconstruction',
|
|
418
|
+
],
|
|
419
|
+
/** Create blueprintConstruction mutation key */ create: () => ['mutation', 'blueprintconstruction', 'create'],
|
|
420
|
+
/** Update blueprintConstruction mutation key */ update: (id) => ['mutation', 'blueprintconstruction', 'update', id],
|
|
421
|
+
/** Delete blueprintConstruction mutation key */ delete: (id) => ['mutation', 'blueprintconstruction', 'delete', id],
|
|
422
|
+
};
|
|
423
|
+
export const storageModuleMutationKeys = {
|
|
424
|
+
/** All storageModule mutation keys */ all: ['mutation', 'storagemodule'],
|
|
425
|
+
/** Create storageModule mutation key */ create: () => ['mutation', 'storagemodule', 'create'],
|
|
426
|
+
/** Update storageModule mutation key */ update: (id) => ['mutation', 'storagemodule', 'update', id],
|
|
427
|
+
/** Delete storageModule mutation key */ delete: (id) => ['mutation', 'storagemodule', 'delete', id],
|
|
428
|
+
};
|
|
414
429
|
export const databaseProvisionModuleMutationKeys = {
|
|
415
430
|
/** All databaseProvisionModule mutation keys */ all: [
|
|
416
431
|
'mutation',
|
|
@@ -594,12 +609,6 @@ export const roleTypeMutationKeys = {
|
|
|
594
609
|
/** Update roleType mutation key */ update: (id) => ['mutation', 'roletype', 'update', id],
|
|
595
610
|
/** Delete roleType mutation key */ delete: (id) => ['mutation', 'roletype', 'delete', id],
|
|
596
611
|
};
|
|
597
|
-
export const migrateFileMutationKeys = {
|
|
598
|
-
/** All migrateFile mutation keys */ all: ['mutation', 'migratefile'],
|
|
599
|
-
/** Create migrateFile mutation key */ create: () => ['mutation', 'migratefile', 'create'],
|
|
600
|
-
/** Update migrateFile mutation key */ update: (id) => ['mutation', 'migratefile', 'update', id],
|
|
601
|
-
/** Delete migrateFile mutation key */ delete: (id) => ['mutation', 'migratefile', 'delete', id],
|
|
602
|
-
};
|
|
603
612
|
export const appLimitDefaultMutationKeys = {
|
|
604
613
|
/** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'],
|
|
605
614
|
/** Create appLimitDefault mutation key */ create: () => ['mutation', 'applimitdefault', 'create'],
|
|
@@ -612,6 +621,12 @@ export const orgLimitDefaultMutationKeys = {
|
|
|
612
621
|
/** Update orgLimitDefault mutation key */ update: (id) => ['mutation', 'orglimitdefault', 'update', id],
|
|
613
622
|
/** Delete orgLimitDefault mutation key */ delete: (id) => ['mutation', 'orglimitdefault', 'delete', id],
|
|
614
623
|
};
|
|
624
|
+
export const migrateFileMutationKeys = {
|
|
625
|
+
/** All migrateFile mutation keys */ all: ['mutation', 'migratefile'],
|
|
626
|
+
/** Create migrateFile mutation key */ create: () => ['mutation', 'migratefile', 'create'],
|
|
627
|
+
/** Update migrateFile mutation key */ update: (id) => ['mutation', 'migratefile', 'update', id],
|
|
628
|
+
/** Delete migrateFile mutation key */ delete: (id) => ['mutation', 'migratefile', 'delete', id],
|
|
629
|
+
};
|
|
615
630
|
export const membershipTypeMutationKeys = {
|
|
616
631
|
/** All membershipType mutation keys */ all: ['mutation', 'membershiptype'],
|
|
617
632
|
/** Create membershipType mutation key */ create: () => ['mutation', 'membershiptype', 'create'],
|
|
@@ -730,24 +745,33 @@ export const customMutationKeys = {
|
|
|
730
745
|
/** Mutation key for removeNodeAtPath */ removeNodeAtPath: (identifier) => identifier
|
|
731
746
|
? ['mutation', 'removeNodeAtPath', identifier]
|
|
732
747
|
: ['mutation', 'removeNodeAtPath'],
|
|
733
|
-
/** Mutation key for setDataAtPath */ setDataAtPath: (identifier) => identifier
|
|
734
|
-
? ['mutation', 'setDataAtPath', identifier]
|
|
735
|
-
: ['mutation', 'setDataAtPath'],
|
|
736
|
-
/** Mutation key for setPropsAndCommit */ setPropsAndCommit: (identifier) => identifier
|
|
737
|
-
? ['mutation', 'setPropsAndCommit', identifier]
|
|
738
|
-
: ['mutation', 'setPropsAndCommit'],
|
|
739
748
|
/** Mutation key for copyTemplateToBlueprint */ copyTemplateToBlueprint: (identifier) => identifier
|
|
740
749
|
? ['mutation', 'copyTemplateToBlueprint', identifier]
|
|
741
750
|
: ['mutation', 'copyTemplateToBlueprint'],
|
|
742
|
-
/** Mutation key for provisionDatabaseWithUser */ provisionDatabaseWithUser: (identifier) => identifier
|
|
743
|
-
? ['mutation', 'provisionDatabaseWithUser', identifier]
|
|
744
|
-
: ['mutation', 'provisionDatabaseWithUser'],
|
|
745
751
|
/** Mutation key for bootstrapUser */ bootstrapUser: (identifier) => identifier
|
|
746
752
|
? ['mutation', 'bootstrapUser', identifier]
|
|
747
753
|
: ['mutation', 'bootstrapUser'],
|
|
748
754
|
/** Mutation key for setFieldOrder */ setFieldOrder: (identifier) => identifier
|
|
749
755
|
? ['mutation', 'setFieldOrder', identifier]
|
|
750
756
|
: ['mutation', 'setFieldOrder'],
|
|
757
|
+
/** Mutation key for provisionUniqueConstraint */ provisionUniqueConstraint: (identifier) => identifier
|
|
758
|
+
? ['mutation', 'provisionUniqueConstraint', identifier]
|
|
759
|
+
: ['mutation', 'provisionUniqueConstraint'],
|
|
760
|
+
/** Mutation key for provisionFullTextSearch */ provisionFullTextSearch: (identifier) => identifier
|
|
761
|
+
? ['mutation', 'provisionFullTextSearch', identifier]
|
|
762
|
+
: ['mutation', 'provisionFullTextSearch'],
|
|
763
|
+
/** Mutation key for provisionIndex */ provisionIndex: (identifier) => identifier
|
|
764
|
+
? ['mutation', 'provisionIndex', identifier]
|
|
765
|
+
: ['mutation', 'provisionIndex'],
|
|
766
|
+
/** Mutation key for setDataAtPath */ setDataAtPath: (identifier) => identifier
|
|
767
|
+
? ['mutation', 'setDataAtPath', identifier]
|
|
768
|
+
: ['mutation', 'setDataAtPath'],
|
|
769
|
+
/** Mutation key for setPropsAndCommit */ setPropsAndCommit: (identifier) => identifier
|
|
770
|
+
? ['mutation', 'setPropsAndCommit', identifier]
|
|
771
|
+
: ['mutation', 'setPropsAndCommit'],
|
|
772
|
+
/** Mutation key for provisionDatabaseWithUser */ provisionDatabaseWithUser: (identifier) => identifier
|
|
773
|
+
? ['mutation', 'provisionDatabaseWithUser', identifier]
|
|
774
|
+
: ['mutation', 'provisionDatabaseWithUser'],
|
|
751
775
|
/** Mutation key for insertNodeAtPath */ insertNodeAtPath: (identifier) => identifier
|
|
752
776
|
? ['mutation', 'insertNodeAtPath', identifier]
|
|
753
777
|
: ['mutation', 'insertNodeAtPath'],
|
|
@@ -757,6 +781,9 @@ export const customMutationKeys = {
|
|
|
757
781
|
/** Mutation key for setAndCommit */ setAndCommit: (identifier) => identifier
|
|
758
782
|
? ['mutation', 'setAndCommit', identifier]
|
|
759
783
|
: ['mutation', 'setAndCommit'],
|
|
784
|
+
/** Mutation key for provisionRelation */ provisionRelation: (identifier) => identifier
|
|
785
|
+
? ['mutation', 'provisionRelation', identifier]
|
|
786
|
+
: ['mutation', 'provisionRelation'],
|
|
760
787
|
/** Mutation key for applyRls */ applyRls: (identifier) => identifier
|
|
761
788
|
? ['mutation', 'applyRls', identifier]
|
|
762
789
|
: ['mutation', 'applyRls'],
|
|
@@ -774,6 +801,9 @@ export const customMutationKeys = {
|
|
|
774
801
|
/** Mutation key for oneTimeToken */ oneTimeToken: (identifier) => identifier
|
|
775
802
|
? ['mutation', 'oneTimeToken', identifier]
|
|
776
803
|
: ['mutation', 'oneTimeToken'],
|
|
804
|
+
/** Mutation key for provisionTable */ provisionTable: (identifier) => identifier
|
|
805
|
+
? ['mutation', 'provisionTable', identifier]
|
|
806
|
+
: ['mutation', 'provisionTable'],
|
|
777
807
|
/** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier) => identifier
|
|
778
808
|
? ['mutation', 'sendVerificationEmail', identifier]
|
|
779
809
|
: ['mutation', 'sendVerificationEmail'],
|
|
@@ -810,9 +840,9 @@ export const customMutationKeys = {
|
|
|
810
840
|
* ```
|
|
811
841
|
*/
|
|
812
842
|
export const mutationKeys = {
|
|
813
|
-
getAllRecord: getAllRecordMutationKeys,
|
|
814
843
|
orgGetManagersRecord: orgGetManagersRecordMutationKeys,
|
|
815
844
|
orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys,
|
|
845
|
+
getAllRecord: getAllRecordMutationKeys,
|
|
816
846
|
object: objectMutationKeys,
|
|
817
847
|
appPermission: appPermissionMutationKeys,
|
|
818
848
|
orgPermission: orgPermissionMutationKeys,
|
|
@@ -873,6 +903,8 @@ export const mutationKeys = {
|
|
|
873
903
|
usersModule: usersModuleMutationKeys,
|
|
874
904
|
blueprint: blueprintMutationKeys,
|
|
875
905
|
blueprintTemplate: blueprintTemplateMutationKeys,
|
|
906
|
+
blueprintConstruction: blueprintConstructionMutationKeys,
|
|
907
|
+
storageModule: storageModuleMutationKeys,
|
|
876
908
|
databaseProvisionModule: databaseProvisionModuleMutationKeys,
|
|
877
909
|
appAdminGrant: appAdminGrantMutationKeys,
|
|
878
910
|
appOwnerGrant: appOwnerGrantMutationKeys,
|
|
@@ -903,9 +935,9 @@ export const mutationKeys = {
|
|
|
903
935
|
store: storeMutationKeys,
|
|
904
936
|
appPermissionDefault: appPermissionDefaultMutationKeys,
|
|
905
937
|
roleType: roleTypeMutationKeys,
|
|
906
|
-
migrateFile: migrateFileMutationKeys,
|
|
907
938
|
appLimitDefault: appLimitDefaultMutationKeys,
|
|
908
939
|
orgLimitDefault: orgLimitDefaultMutationKeys,
|
|
940
|
+
migrateFile: migrateFileMutationKeys,
|
|
909
941
|
membershipType: membershipTypeMutationKeys,
|
|
910
942
|
commit: commitMutationKeys,
|
|
911
943
|
appMembershipDefault: appMembershipDefaultMutationKeys,
|
|
@@ -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';
|
|
7
6
|
export * from './useCreateOrgGetManagersRecordMutation';
|
|
8
7
|
export * from './useCreateOrgGetSubordinatesRecordMutation';
|
|
8
|
+
export * from './useCreateGetAllRecordMutation';
|
|
9
9
|
export * from './useCreateObjectMutation';
|
|
10
10
|
export * from './useUpdateObjectMutation';
|
|
11
11
|
export * from './useDeleteObjectMutation';
|
|
@@ -186,6 +186,12 @@ export * from './useDeleteBlueprintMutation';
|
|
|
186
186
|
export * from './useCreateBlueprintTemplateMutation';
|
|
187
187
|
export * from './useUpdateBlueprintTemplateMutation';
|
|
188
188
|
export * from './useDeleteBlueprintTemplateMutation';
|
|
189
|
+
export * from './useCreateBlueprintConstructionMutation';
|
|
190
|
+
export * from './useUpdateBlueprintConstructionMutation';
|
|
191
|
+
export * from './useDeleteBlueprintConstructionMutation';
|
|
192
|
+
export * from './useCreateStorageModuleMutation';
|
|
193
|
+
export * from './useUpdateStorageModuleMutation';
|
|
194
|
+
export * from './useDeleteStorageModuleMutation';
|
|
189
195
|
export * from './useCreateDatabaseProvisionModuleMutation';
|
|
190
196
|
export * from './useUpdateDatabaseProvisionModuleMutation';
|
|
191
197
|
export * from './useDeleteDatabaseProvisionModuleMutation';
|
|
@@ -276,13 +282,13 @@ export * from './useDeleteAppPermissionDefaultMutation';
|
|
|
276
282
|
export * from './useCreateRoleTypeMutation';
|
|
277
283
|
export * from './useUpdateRoleTypeMutation';
|
|
278
284
|
export * from './useDeleteRoleTypeMutation';
|
|
279
|
-
export * from './useCreateMigrateFileMutation';
|
|
280
285
|
export * from './useCreateAppLimitDefaultMutation';
|
|
281
286
|
export * from './useUpdateAppLimitDefaultMutation';
|
|
282
287
|
export * from './useDeleteAppLimitDefaultMutation';
|
|
283
288
|
export * from './useCreateOrgLimitDefaultMutation';
|
|
284
289
|
export * from './useUpdateOrgLimitDefaultMutation';
|
|
285
290
|
export * from './useDeleteOrgLimitDefaultMutation';
|
|
291
|
+
export * from './useCreateMigrateFileMutation';
|
|
286
292
|
export * from './useCreateMembershipTypeMutation';
|
|
287
293
|
export * from './useUpdateMembershipTypeMutation';
|
|
288
294
|
export * from './useDeleteMembershipTypeMutation';
|
|
@@ -328,15 +334,19 @@ export * from './useInitEmptyRepoMutation';
|
|
|
328
334
|
export * from './useConstructBlueprintMutation';
|
|
329
335
|
export * from './useResetPasswordMutation';
|
|
330
336
|
export * from './useRemoveNodeAtPathMutation';
|
|
331
|
-
export * from './useSetDataAtPathMutation';
|
|
332
|
-
export * from './useSetPropsAndCommitMutation';
|
|
333
337
|
export * from './useCopyTemplateToBlueprintMutation';
|
|
334
|
-
export * from './useProvisionDatabaseWithUserMutation';
|
|
335
338
|
export * from './useBootstrapUserMutation';
|
|
336
339
|
export * from './useSetFieldOrderMutation';
|
|
340
|
+
export * from './useProvisionUniqueConstraintMutation';
|
|
341
|
+
export * from './useProvisionFullTextSearchMutation';
|
|
342
|
+
export * from './useProvisionIndexMutation';
|
|
343
|
+
export * from './useSetDataAtPathMutation';
|
|
344
|
+
export * from './useSetPropsAndCommitMutation';
|
|
345
|
+
export * from './useProvisionDatabaseWithUserMutation';
|
|
337
346
|
export * from './useInsertNodeAtPathMutation';
|
|
338
347
|
export * from './useUpdateNodeAtPathMutation';
|
|
339
348
|
export * from './useSetAndCommitMutation';
|
|
349
|
+
export * from './useProvisionRelationMutation';
|
|
340
350
|
export * from './useApplyRlsMutation';
|
|
341
351
|
export * from './useSignInOneTimeTokenMutation';
|
|
342
352
|
export * from './useCreateUserDatabaseMutation';
|
|
@@ -344,6 +354,7 @@ export * from './useExtendTokenExpiresMutation';
|
|
|
344
354
|
export * from './useSignInMutation';
|
|
345
355
|
export * from './useSignUpMutation';
|
|
346
356
|
export * from './useOneTimeTokenMutation';
|
|
357
|
+
export * from './useProvisionTableMutation';
|
|
347
358
|
export * from './useSendVerificationEmailMutation';
|
|
348
359
|
export * from './useForgotPasswordMutation';
|
|
349
360
|
export * from './useVerifyPasswordMutation';
|
|
@@ -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';
|
|
7
6
|
export * from './useCreateOrgGetManagersRecordMutation';
|
|
8
7
|
export * from './useCreateOrgGetSubordinatesRecordMutation';
|
|
8
|
+
export * from './useCreateGetAllRecordMutation';
|
|
9
9
|
export * from './useCreateObjectMutation';
|
|
10
10
|
export * from './useUpdateObjectMutation';
|
|
11
11
|
export * from './useDeleteObjectMutation';
|
|
@@ -186,6 +186,12 @@ export * from './useDeleteBlueprintMutation';
|
|
|
186
186
|
export * from './useCreateBlueprintTemplateMutation';
|
|
187
187
|
export * from './useUpdateBlueprintTemplateMutation';
|
|
188
188
|
export * from './useDeleteBlueprintTemplateMutation';
|
|
189
|
+
export * from './useCreateBlueprintConstructionMutation';
|
|
190
|
+
export * from './useUpdateBlueprintConstructionMutation';
|
|
191
|
+
export * from './useDeleteBlueprintConstructionMutation';
|
|
192
|
+
export * from './useCreateStorageModuleMutation';
|
|
193
|
+
export * from './useUpdateStorageModuleMutation';
|
|
194
|
+
export * from './useDeleteStorageModuleMutation';
|
|
189
195
|
export * from './useCreateDatabaseProvisionModuleMutation';
|
|
190
196
|
export * from './useUpdateDatabaseProvisionModuleMutation';
|
|
191
197
|
export * from './useDeleteDatabaseProvisionModuleMutation';
|
|
@@ -276,13 +282,13 @@ export * from './useDeleteAppPermissionDefaultMutation';
|
|
|
276
282
|
export * from './useCreateRoleTypeMutation';
|
|
277
283
|
export * from './useUpdateRoleTypeMutation';
|
|
278
284
|
export * from './useDeleteRoleTypeMutation';
|
|
279
|
-
export * from './useCreateMigrateFileMutation';
|
|
280
285
|
export * from './useCreateAppLimitDefaultMutation';
|
|
281
286
|
export * from './useUpdateAppLimitDefaultMutation';
|
|
282
287
|
export * from './useDeleteAppLimitDefaultMutation';
|
|
283
288
|
export * from './useCreateOrgLimitDefaultMutation';
|
|
284
289
|
export * from './useUpdateOrgLimitDefaultMutation';
|
|
285
290
|
export * from './useDeleteOrgLimitDefaultMutation';
|
|
291
|
+
export * from './useCreateMigrateFileMutation';
|
|
286
292
|
export * from './useCreateMembershipTypeMutation';
|
|
287
293
|
export * from './useUpdateMembershipTypeMutation';
|
|
288
294
|
export * from './useDeleteMembershipTypeMutation';
|
|
@@ -328,15 +334,19 @@ export * from './useInitEmptyRepoMutation';
|
|
|
328
334
|
export * from './useConstructBlueprintMutation';
|
|
329
335
|
export * from './useResetPasswordMutation';
|
|
330
336
|
export * from './useRemoveNodeAtPathMutation';
|
|
331
|
-
export * from './useSetDataAtPathMutation';
|
|
332
|
-
export * from './useSetPropsAndCommitMutation';
|
|
333
337
|
export * from './useCopyTemplateToBlueprintMutation';
|
|
334
|
-
export * from './useProvisionDatabaseWithUserMutation';
|
|
335
338
|
export * from './useBootstrapUserMutation';
|
|
336
339
|
export * from './useSetFieldOrderMutation';
|
|
340
|
+
export * from './useProvisionUniqueConstraintMutation';
|
|
341
|
+
export * from './useProvisionFullTextSearchMutation';
|
|
342
|
+
export * from './useProvisionIndexMutation';
|
|
343
|
+
export * from './useSetDataAtPathMutation';
|
|
344
|
+
export * from './useSetPropsAndCommitMutation';
|
|
345
|
+
export * from './useProvisionDatabaseWithUserMutation';
|
|
337
346
|
export * from './useInsertNodeAtPathMutation';
|
|
338
347
|
export * from './useUpdateNodeAtPathMutation';
|
|
339
348
|
export * from './useSetAndCommitMutation';
|
|
349
|
+
export * from './useProvisionRelationMutation';
|
|
340
350
|
export * from './useApplyRlsMutation';
|
|
341
351
|
export * from './useSignInOneTimeTokenMutation';
|
|
342
352
|
export * from './useCreateUserDatabaseMutation';
|
|
@@ -344,6 +354,7 @@ export * from './useExtendTokenExpiresMutation';
|
|
|
344
354
|
export * from './useSignInMutation';
|
|
345
355
|
export * from './useSignUpMutation';
|
|
346
356
|
export * from './useOneTimeTokenMutation';
|
|
357
|
+
export * from './useProvisionTableMutation';
|
|
347
358
|
export * from './useSendVerificationEmailMutation';
|
|
348
359
|
export * from './useForgotPasswordMutation';
|
|
349
360
|
export * from './useVerifyPasswordMutation';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
|
|
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 { BlueprintConstructionSelect, BlueprintConstructionWithRelations, CreateBlueprintConstructionInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BlueprintConstructionSelect, BlueprintConstructionWithRelations, CreateBlueprintConstructionInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateBlueprintConstructionMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateBlueprintConstructionMutation<S extends BlueprintConstructionSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & BlueprintConstructionSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createBlueprintConstruction: {
|
|
28
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateBlueprintConstructionInput['blueprintConstruction']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createBlueprintConstruction: {
|
|
32
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateBlueprintConstructionInput['blueprintConstruction']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
|
|
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 { blueprintConstructionKeys } from '../query-keys';
|
|
10
|
+
import { blueprintConstructionMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateBlueprintConstructionMutation(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: blueprintConstructionMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.blueprintConstruction.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: blueprintConstructionKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* An owned,
|
|
2
|
+
* An owned, editable 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 at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ import type { BlueprintSelect, BlueprintWithRelations, CreateBlueprintInput } fr
|
|
|
8
8
|
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
9
|
export type { BlueprintSelect, BlueprintWithRelations, CreateBlueprintInput, } from '../../orm/input-types';
|
|
10
10
|
/**
|
|
11
|
-
* An owned,
|
|
11
|
+
* An owned, editable 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 at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* An owned,
|
|
2
|
+
* An owned, editable 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 at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ import type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, Cre
|
|
|
8
8
|
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
9
|
export type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, CreateSecureTableProvisionInput, } from '../../orm/input-types';
|
|
10
10
|
/**
|
|
11
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via
|
|
11
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for StorageModule
|
|
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 { StorageModuleSelect, StorageModuleWithRelations, CreateStorageModuleInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { StorageModuleSelect, StorageModuleWithRelations, CreateStorageModuleInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a StorageModule
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateStorageModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateStorageModuleMutation<S extends StorageModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & StorageModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, StorageModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createStorageModule: {
|
|
28
|
+
storageModule: InferSelectResult<StorageModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateStorageModuleInput['storageModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createStorageModule: {
|
|
32
|
+
storageModule: InferSelectResult<StorageModuleWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateStorageModuleInput['storageModule']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for StorageModule
|
|
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 { storageModuleKeys } from '../query-keys';
|
|
10
|
+
import { storageModuleMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateStorageModuleMutation(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: storageModuleMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.storageModule.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: storageModuleKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
|
|
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 { BlueprintConstructionSelect, BlueprintConstructionWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BlueprintConstructionSelect, BlueprintConstructionWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeleteBlueprintConstructionMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteBlueprintConstructionMutation<S extends BlueprintConstructionSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & BlueprintConstructionSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, BlueprintConstructionSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteBlueprintConstruction: {
|
|
28
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteBlueprintConstruction: {
|
|
34
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts.
|
|
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 { blueprintConstructionKeys } from '../query-keys';
|
|
10
|
+
import { blueprintConstructionMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useDeleteBlueprintConstructionMutation(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: blueprintConstructionMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id }) => getClient()
|
|
19
|
+
.blueprintConstruction.delete({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
select: args.select,
|
|
24
|
+
})
|
|
25
|
+
.unwrap(),
|
|
26
|
+
onSuccess: (_, variables) => {
|
|
27
|
+
queryClient.removeQueries({
|
|
28
|
+
queryKey: blueprintConstructionKeys.detail(variables.id),
|
|
29
|
+
});
|
|
30
|
+
queryClient.invalidateQueries({
|
|
31
|
+
queryKey: blueprintConstructionKeys.lists(),
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
...mutationOptions,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* An owned,
|
|
2
|
+
* An owned, editable 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 at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ import type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-ty
|
|
|
8
8
|
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
9
|
export type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types';
|
|
10
10
|
/**
|
|
11
|
-
* An owned,
|
|
11
|
+
* An owned, editable 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 at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* An owned,
|
|
2
|
+
* An owned, editable 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 at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ import type { SecureTableProvisionSelect, SecureTableProvisionWithRelations } fr
|
|
|
8
8
|
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
9
|
export type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, } from '../../orm/input-types';
|
|
10
10
|
/**
|
|
11
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via
|
|
11
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via
|
|
2
|
+
* Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|