@constructive-io/react 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +24 -0
- package/admin/hooks/invalidation.js +64 -0
- package/admin/hooks/mutation-keys.d.ts +48 -0
- package/admin/hooks/mutation-keys.js +32 -1
- package/admin/hooks/mutations/index.d.ts +8 -0
- package/admin/hooks/mutations/index.js +8 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js} +6 -6
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +7 -7
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +9 -9
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +7 -0
- package/admin/hooks/queries/index.js +7 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +14 -14
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.js +38 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.js +53 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.js +38 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.js +53 -0
- package/admin/hooks/query-keys.d.ts +58 -0
- package/admin/hooks/query-keys.js +34 -1
- package/admin/orm/index.d.ts +13 -0
- package/admin/orm/index.js +8 -0
- package/admin/orm/input-types.d.ts +399 -0
- package/admin/orm/models/index.d.ts +4 -0
- package/admin/orm/models/index.js +9 -1
- package/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/admin/orm/models/orgChartEdge.js +104 -0
- package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
- package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/admin/orm/models/orgGetManagersRecord.js +59 -0
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
- package/admin/orm/query/index.d.ts +11 -0
- package/admin/orm/query/index.js +24 -0
- package/admin/schema-types.d.ts +247 -1
- package/admin/types.d.ts +29 -0
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +6 -12
- package/api/hooks/invalidation.js +16 -32
- package/api/hooks/mutation-keys.d.ts +12 -24
- package/api/hooks/mutation-keys.js +9 -16
- package/api/hooks/mutations/index.d.ts +3 -6
- package/api/hooks/mutations/index.js +3 -6
- package/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +6 -6
- package/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +7 -7
- package/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +9 -9
- package/api/hooks/queries/index.d.ts +2 -4
- package/api/hooks/queries/index.js +2 -4
- package/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +14 -14
- package/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +14 -14
- package/api/hooks/query-keys.d.ts +14 -28
- package/api/hooks/query-keys.js +10 -18
- package/api/orm/index.d.ts +2 -4
- package/api/orm/index.js +2 -4
- package/api/orm/input-types.d.ts +378 -468
- package/api/orm/input-types.js +2 -2
- package/api/orm/models/domainType.d.ts +54 -0
- package/api/orm/models/{apiModule.js → domainType.js} +27 -27
- package/api/orm/models/index.d.ts +1 -2
- package/api/orm/models/index.js +4 -6
- package/api/schema-types.d.ts +157 -226
- package/api/types.d.ts +16 -17
- package/compute/orm/input-types.d.ts +42 -3
- package/compute/schema-types.d.ts +25 -3
- package/compute/types.d.ts +5 -0
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +24 -0
- package/esm/admin/hooks/invalidation.js +65 -1
- package/esm/admin/hooks/mutation-keys.d.ts +48 -0
- package/esm/admin/hooks/mutation-keys.js +31 -0
- package/esm/admin/hooks/mutations/index.d.ts +8 -0
- package/esm/admin/hooks/mutations/index.js +8 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/esm/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeMutation.js} +7 -7
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/esm/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/esm/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +10 -10
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +7 -0
- package/esm/admin/hooks/queries/index.js +7 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/esm/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/esm/{api/hooks/queries/usePlatformApiModulesQuery.js → admin/hooks/queries/useOrgChartEdgeGrantsQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.js +47 -0
- package/esm/admin/hooks/query-keys.d.ts +58 -0
- package/esm/admin/hooks/query-keys.js +33 -0
- package/esm/admin/orm/index.d.ts +13 -0
- package/esm/admin/orm/index.js +8 -0
- package/esm/admin/orm/input-types.d.ts +399 -0
- package/esm/admin/orm/models/index.d.ts +4 -0
- package/esm/admin/orm/models/index.js +4 -0
- package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/esm/admin/orm/models/orgChartEdge.js +100 -0
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/esm/admin/orm/query/index.d.ts +11 -0
- package/esm/admin/orm/query/index.js +24 -0
- package/esm/admin/schema-types.d.ts +247 -1
- package/esm/admin/types.d.ts +29 -0
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +6 -12
- package/esm/api/hooks/invalidation.js +17 -33
- package/esm/api/hooks/mutation-keys.d.ts +12 -24
- package/esm/api/hooks/mutation-keys.js +7 -14
- package/esm/api/hooks/mutations/index.d.ts +3 -6
- package/esm/api/hooks/mutations/index.js +3 -6
- package/esm/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/esm/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +7 -7
- package/esm/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/esm/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +8 -8
- package/esm/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/esm/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +10 -10
- package/esm/api/hooks/queries/index.d.ts +2 -4
- package/esm/api/hooks/queries/index.js +2 -4
- package/esm/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/esm/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +11 -11
- package/esm/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/esm/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +11 -11
- package/esm/api/hooks/query-keys.d.ts +14 -28
- package/esm/api/hooks/query-keys.js +8 -16
- package/esm/api/orm/index.d.ts +2 -4
- package/esm/api/orm/index.js +2 -4
- package/esm/api/orm/input-types.d.ts +378 -468
- package/esm/api/orm/input-types.js +2 -2
- package/esm/api/orm/models/domainType.d.ts +54 -0
- package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
- package/esm/api/orm/models/index.d.ts +1 -2
- package/esm/api/orm/models/index.js +1 -2
- package/esm/api/schema-types.d.ts +157 -226
- package/esm/api/types.d.ts +16 -17
- package/esm/compute/orm/input-types.d.ts +42 -3
- package/esm/compute/schema-types.d.ts +25 -3
- package/esm/compute/types.d.ts +5 -0
- package/esm/modules/orm/input-types.d.ts +9 -16
- package/esm/modules/schema-types.d.ts +6 -10
- package/esm/modules/types.d.ts +1 -2
- package/modules/orm/input-types.d.ts +9 -16
- package/modules/schema-types.d.ts +6 -10
- package/modules/types.d.ts +1 -2
- package/package.json +5 -5
- package/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModulesQuery.js +0 -38
- package/api/orm/models/apiModule.d.ts +0 -54
- package/api/orm/models/platformApiModule.d.ts +0 -54
- package/esm/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/esm/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/esm/api/orm/models/apiModule.d.ts +0 -54
- package/esm/api/orm/models/platformApiModule.d.ts +0 -54
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.siteMutationKeys = exports.schemaGrantMutationKeys = exports.schemaMutationKeys = exports.routeMutationKeys = exports.routeBindingMutationKeys = exports.rlsSettingMutationKeys = exports.pubkeySettingMutationKeys = exports.primaryKeyConstraintMutationKeys = exports.policyMutationKeys = exports.platformSiteThemeMutationKeys = exports.platformSiteModuleMutationKeys = exports.platformSiteMetadatumMutationKeys = exports.platformSiteMutationKeys = exports.platformManagedDomainMutationKeys = exports.platformDomainVerificationMutationKeys = exports.platformDomainEventMutationKeys = exports.platformDomainMutationKeys = exports.platformCorsSettingMutationKeys = exports.platformApiSettingMutationKeys = exports.platformApiSchemaMutationKeys = exports.
|
|
9
|
-
exports.mutationKeys = exports.customMutationKeys = exports.webauthnSettingMutationKeys = exports.viewTableMutationKeys = exports.viewRuleMutationKeys = exports.viewGrantMutationKeys = exports.viewMutationKeys = exports.uniqueConstraintMutationKeys = exports.triggerFunctionMutationKeys = exports.triggerMutationKeys = exports.tableGrantMutationKeys = exports.tableMutationKeys = exports.sqlActionMutationKeys = exports.spatialRelationMutationKeys = exports.siteThemeMutationKeys = exports.siteModuleMutationKeys =
|
|
8
|
+
exports.siteMetadatumMutationKeys = exports.siteMutationKeys = exports.schemaGrantMutationKeys = exports.schemaMutationKeys = exports.routeMutationKeys = exports.routeBindingMutationKeys = exports.rlsSettingMutationKeys = exports.pubkeySettingMutationKeys = exports.primaryKeyConstraintMutationKeys = exports.policyMutationKeys = exports.platformSiteThemeMutationKeys = exports.platformSiteModuleMutationKeys = exports.platformSiteMetadatumMutationKeys = exports.platformSiteMutationKeys = exports.platformManagedDomainMutationKeys = exports.platformDomainVerificationMutationKeys = exports.platformDomainEventMutationKeys = exports.platformDomainMutationKeys = exports.platformCorsSettingMutationKeys = exports.platformApiSettingMutationKeys = exports.platformApiSchemaMutationKeys = exports.platformApiMutationKeys = exports.partitionMutationKeys = exports.nodeTypeRegistryMutationKeys = exports.managedDomainMutationKeys = exports.indexMutationKeys = exports.httpRouteMutationKeys = exports.hostnameBindingMutationKeys = exports.functionMutationKeys = exports.fullTextSearchMutationKeys = exports.foreignKeyConstraintMutationKeys = exports.fieldMutationKeys = exports.exclusionConstraintMutationKeys = exports.enumMutationKeys = exports.embeddingChunkMutationKeys = exports.domainVerificationMutationKeys = exports.domainTypeMutationKeys = exports.domainEventMutationKeys = exports.domainMutationKeys = exports.defaultPrivilegeMutationKeys = exports.databaseTransferMutationKeys = exports.databaseSettingMutationKeys = exports.databaseMutationKeys = exports.corsSettingMutationKeys = exports.compositeTypeMutationKeys = exports.checkConstraintMutationKeys = exports.astMigrationMutationKeys = exports.apiSettingMutationKeys = exports.apiSchemaMutationKeys = exports.apiMutationKeys = void 0;
|
|
9
|
+
exports.mutationKeys = exports.customMutationKeys = exports.webauthnSettingMutationKeys = exports.viewTableMutationKeys = exports.viewRuleMutationKeys = exports.viewGrantMutationKeys = exports.viewMutationKeys = exports.uniqueConstraintMutationKeys = exports.triggerFunctionMutationKeys = exports.triggerMutationKeys = exports.tableGrantMutationKeys = exports.tableMutationKeys = exports.sqlActionMutationKeys = exports.spatialRelationMutationKeys = exports.siteThemeMutationKeys = exports.siteModuleMutationKeys = void 0;
|
|
10
10
|
// ============================================================================
|
|
11
11
|
// Mutation keys for tracking in-flight mutations
|
|
12
12
|
//
|
|
@@ -25,12 +25,6 @@ exports.apiMutationKeys = {
|
|
|
25
25
|
/** Update api mutation key */ update: (id) => ['mutation', 'api', 'update', id],
|
|
26
26
|
/** Delete api mutation key */ delete: (id) => ['mutation', 'api', 'delete', id],
|
|
27
27
|
};
|
|
28
|
-
exports.apiModuleMutationKeys = {
|
|
29
|
-
/** All apiModule mutation keys */ all: ['mutation', 'apimodule'],
|
|
30
|
-
/** Create apiModule mutation key */ create: () => ['mutation', 'apimodule', 'create'],
|
|
31
|
-
/** Update apiModule mutation key */ update: (id) => ['mutation', 'apimodule', 'update', id],
|
|
32
|
-
/** Delete apiModule mutation key */ delete: (id) => ['mutation', 'apimodule', 'delete', id],
|
|
33
|
-
};
|
|
34
28
|
exports.apiSchemaMutationKeys = {
|
|
35
29
|
/** All apiSchema mutation keys */ all: ['mutation', 'apischema'],
|
|
36
30
|
/** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'],
|
|
@@ -103,6 +97,12 @@ exports.domainEventMutationKeys = {
|
|
|
103
97
|
/** Update domainEvent mutation key */ update: (id) => ['mutation', 'domainevent', 'update', id],
|
|
104
98
|
/** Delete domainEvent mutation key */ delete: (id) => ['mutation', 'domainevent', 'delete', id],
|
|
105
99
|
};
|
|
100
|
+
exports.domainTypeMutationKeys = {
|
|
101
|
+
/** All domainType mutation keys */ all: ['mutation', 'domaintype'],
|
|
102
|
+
/** Create domainType mutation key */ create: () => ['mutation', 'domaintype', 'create'],
|
|
103
|
+
/** Update domainType mutation key */ update: (id) => ['mutation', 'domaintype', 'update', id],
|
|
104
|
+
/** Delete domainType mutation key */ delete: (id) => ['mutation', 'domaintype', 'delete', id],
|
|
105
|
+
};
|
|
106
106
|
exports.domainVerificationMutationKeys = {
|
|
107
107
|
/** All domainVerification mutation keys */ all: ['mutation', 'domainverification'],
|
|
108
108
|
/** Create domainVerification mutation key */ create: () => ['mutation', 'domainverification', 'create'],
|
|
@@ -193,12 +193,6 @@ exports.platformApiMutationKeys = {
|
|
|
193
193
|
/** Update platformApi mutation key */ update: (id) => ['mutation', 'platformapi', 'update', id],
|
|
194
194
|
/** Delete platformApi mutation key */ delete: (id) => ['mutation', 'platformapi', 'delete', id],
|
|
195
195
|
};
|
|
196
|
-
exports.platformApiModuleMutationKeys = {
|
|
197
|
-
/** All platformApiModule mutation keys */ all: ['mutation', 'platformapimodule'],
|
|
198
|
-
/** Create platformApiModule mutation key */ create: () => ['mutation', 'platformapimodule', 'create'],
|
|
199
|
-
/** Update platformApiModule mutation key */ update: (id) => ['mutation', 'platformapimodule', 'update', id],
|
|
200
|
-
/** Delete platformApiModule mutation key */ delete: (id) => ['mutation', 'platformapimodule', 'delete', id],
|
|
201
|
-
};
|
|
202
196
|
exports.platformApiSchemaMutationKeys = {
|
|
203
197
|
/** All platformApiSchema mutation keys */ all: ['mutation', 'platformapischema'],
|
|
204
198
|
/** Create platformApiSchema mutation key */ create: () => ['mutation', 'platformapischema', 'create'],
|
|
@@ -468,7 +462,6 @@ exports.customMutationKeys = {
|
|
|
468
462
|
*/
|
|
469
463
|
exports.mutationKeys = {
|
|
470
464
|
api: exports.apiMutationKeys,
|
|
471
|
-
apiModule: exports.apiModuleMutationKeys,
|
|
472
465
|
apiSchema: exports.apiSchemaMutationKeys,
|
|
473
466
|
apiSetting: exports.apiSettingMutationKeys,
|
|
474
467
|
astMigration: exports.astMigrationMutationKeys,
|
|
@@ -481,6 +474,7 @@ exports.mutationKeys = {
|
|
|
481
474
|
defaultPrivilege: exports.defaultPrivilegeMutationKeys,
|
|
482
475
|
domain: exports.domainMutationKeys,
|
|
483
476
|
domainEvent: exports.domainEventMutationKeys,
|
|
477
|
+
domainType: exports.domainTypeMutationKeys,
|
|
484
478
|
domainVerification: exports.domainVerificationMutationKeys,
|
|
485
479
|
embeddingChunk: exports.embeddingChunkMutationKeys,
|
|
486
480
|
enum: exports.enumMutationKeys,
|
|
@@ -496,7 +490,6 @@ exports.mutationKeys = {
|
|
|
496
490
|
nodeTypeRegistry: exports.nodeTypeRegistryMutationKeys,
|
|
497
491
|
partition: exports.partitionMutationKeys,
|
|
498
492
|
platformApi: exports.platformApiMutationKeys,
|
|
499
|
-
platformApiModule: exports.platformApiModuleMutationKeys,
|
|
500
493
|
platformApiSchema: exports.platformApiSchemaMutationKeys,
|
|
501
494
|
platformApiSetting: exports.platformApiSettingMutationKeys,
|
|
502
495
|
platformCorsSetting: exports.platformCorsSettingMutationKeys,
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
export * from './useCreateApiMutation';
|
|
7
7
|
export * from './useUpdateApiMutation';
|
|
8
8
|
export * from './useDeleteApiMutation';
|
|
9
|
-
export * from './useCreateApiModuleMutation';
|
|
10
|
-
export * from './useUpdateApiModuleMutation';
|
|
11
|
-
export * from './useDeleteApiModuleMutation';
|
|
12
9
|
export * from './useCreateApiSchemaMutation';
|
|
13
10
|
export * from './useUpdateApiSchemaMutation';
|
|
14
11
|
export * from './useDeleteApiSchemaMutation';
|
|
@@ -43,6 +40,9 @@ export * from './useDeleteDomainMutation';
|
|
|
43
40
|
export * from './useCreateDomainEventMutation';
|
|
44
41
|
export * from './useUpdateDomainEventMutation';
|
|
45
42
|
export * from './useDeleteDomainEventMutation';
|
|
43
|
+
export * from './useCreateDomainTypeMutation';
|
|
44
|
+
export * from './useUpdateDomainTypeMutation';
|
|
45
|
+
export * from './useDeleteDomainTypeMutation';
|
|
46
46
|
export * from './useCreateDomainVerificationMutation';
|
|
47
47
|
export * from './useUpdateDomainVerificationMutation';
|
|
48
48
|
export * from './useDeleteDomainVerificationMutation';
|
|
@@ -88,9 +88,6 @@ export * from './useDeletePartitionMutation';
|
|
|
88
88
|
export * from './useCreatePlatformApiMutation';
|
|
89
89
|
export * from './useUpdatePlatformApiMutation';
|
|
90
90
|
export * from './useDeletePlatformApiMutation';
|
|
91
|
-
export * from './useCreatePlatformApiModuleMutation';
|
|
92
|
-
export * from './useUpdatePlatformApiModuleMutation';
|
|
93
|
-
export * from './useDeletePlatformApiModuleMutation';
|
|
94
91
|
export * from './useCreatePlatformApiSchemaMutation';
|
|
95
92
|
export * from './useUpdatePlatformApiSchemaMutation';
|
|
96
93
|
export * from './useDeletePlatformApiSchemaMutation';
|
|
@@ -22,9 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
__exportStar(require("./useCreateApiMutation"), exports);
|
|
23
23
|
__exportStar(require("./useUpdateApiMutation"), exports);
|
|
24
24
|
__exportStar(require("./useDeleteApiMutation"), exports);
|
|
25
|
-
__exportStar(require("./useCreateApiModuleMutation"), exports);
|
|
26
|
-
__exportStar(require("./useUpdateApiModuleMutation"), exports);
|
|
27
|
-
__exportStar(require("./useDeleteApiModuleMutation"), exports);
|
|
28
25
|
__exportStar(require("./useCreateApiSchemaMutation"), exports);
|
|
29
26
|
__exportStar(require("./useUpdateApiSchemaMutation"), exports);
|
|
30
27
|
__exportStar(require("./useDeleteApiSchemaMutation"), exports);
|
|
@@ -59,6 +56,9 @@ __exportStar(require("./useDeleteDomainMutation"), exports);
|
|
|
59
56
|
__exportStar(require("./useCreateDomainEventMutation"), exports);
|
|
60
57
|
__exportStar(require("./useUpdateDomainEventMutation"), exports);
|
|
61
58
|
__exportStar(require("./useDeleteDomainEventMutation"), exports);
|
|
59
|
+
__exportStar(require("./useCreateDomainTypeMutation"), exports);
|
|
60
|
+
__exportStar(require("./useUpdateDomainTypeMutation"), exports);
|
|
61
|
+
__exportStar(require("./useDeleteDomainTypeMutation"), exports);
|
|
62
62
|
__exportStar(require("./useCreateDomainVerificationMutation"), exports);
|
|
63
63
|
__exportStar(require("./useUpdateDomainVerificationMutation"), exports);
|
|
64
64
|
__exportStar(require("./useDeleteDomainVerificationMutation"), exports);
|
|
@@ -104,9 +104,6 @@ __exportStar(require("./useDeletePartitionMutation"), exports);
|
|
|
104
104
|
__exportStar(require("./useCreatePlatformApiMutation"), exports);
|
|
105
105
|
__exportStar(require("./useUpdatePlatformApiMutation"), exports);
|
|
106
106
|
__exportStar(require("./useDeletePlatformApiMutation"), exports);
|
|
107
|
-
__exportStar(require("./useCreatePlatformApiModuleMutation"), exports);
|
|
108
|
-
__exportStar(require("./useUpdatePlatformApiModuleMutation"), exports);
|
|
109
|
-
__exportStar(require("./useDeletePlatformApiModuleMutation"), exports);
|
|
110
107
|
__exportStar(require("./useCreatePlatformApiSchemaMutation"), exports);
|
|
111
108
|
__exportStar(require("./useUpdatePlatformApiSchemaMutation"), exports);
|
|
112
109
|
__exportStar(require("./useDeletePlatformApiSchemaMutation"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for DomainType
|
|
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 { DomainTypeSelect, DomainTypeWithRelations, CreateDomainTypeInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DomainTypeSelect, DomainTypeWithRelations, CreateDomainTypeInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a DomainType
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateDomainTypeMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateDomainTypeMutation<S extends DomainTypeSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DomainTypeSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createDomainType: {
|
|
28
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateDomainTypeInput['domainType']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createDomainType: {
|
|
32
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateDomainTypeInput['domainType']>;
|
package/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Create mutation hook for DomainType
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useCreateDomainTypeMutation = useCreateDomainTypeMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
12
|
const query_keys_1 = require("../query-keys");
|
|
13
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function
|
|
14
|
+
function useCreateDomainTypeMutation(params) {
|
|
15
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
17
|
void _selection;
|
|
18
18
|
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
19
|
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.
|
|
20
|
+
mutationKey: mutation_keys_1.domainTypeMutationKeys.create(),
|
|
21
21
|
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
-
.
|
|
22
|
+
.domainType.create({
|
|
23
23
|
data,
|
|
24
24
|
select: args.select,
|
|
25
25
|
})
|
|
26
26
|
.unwrap(),
|
|
27
27
|
onSuccess: () => {
|
|
28
28
|
queryClient.invalidateQueries({
|
|
29
|
-
queryKey: query_keys_1.
|
|
29
|
+
queryKey: query_keys_1.domainTypeKeys.lists(),
|
|
30
30
|
});
|
|
31
31
|
},
|
|
32
32
|
...mutationOptions,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delete mutation hook for DomainType
|
|
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 { DomainTypeSelect, DomainTypeWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DomainTypeSelect, DomainTypeWithRelations } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for deleting a DomainType with typed selection
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeleteDomainTypeMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteDomainTypeMutation<S extends DomainTypeSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DomainTypeSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteDomainType: {
|
|
28
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteDomainType: {
|
|
34
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
package/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Delete mutation hook for DomainType
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useDeleteDomainTypeMutation = useDeleteDomainTypeMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
12
|
const query_keys_1 = require("../query-keys");
|
|
13
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function
|
|
14
|
+
function useDeleteDomainTypeMutation(params) {
|
|
15
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
17
|
void _selection;
|
|
18
18
|
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
19
|
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.
|
|
20
|
+
mutationKey: mutation_keys_1.domainTypeMutationKeys.all,
|
|
21
21
|
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
-
.
|
|
22
|
+
.domainType.delete({
|
|
23
23
|
where: {
|
|
24
24
|
id,
|
|
25
25
|
},
|
|
@@ -28,10 +28,10 @@ function useDeleteApiModuleMutation(params) {
|
|
|
28
28
|
.unwrap(),
|
|
29
29
|
onSuccess: (_, variables) => {
|
|
30
30
|
queryClient.removeQueries({
|
|
31
|
-
queryKey: query_keys_1.
|
|
31
|
+
queryKey: query_keys_1.domainTypeKeys.detail(variables.id),
|
|
32
32
|
});
|
|
33
33
|
queryClient.invalidateQueries({
|
|
34
|
-
queryKey: query_keys_1.
|
|
34
|
+
queryKey: query_keys_1.domainTypeKeys.lists(),
|
|
35
35
|
});
|
|
36
36
|
},
|
|
37
37
|
...mutationOptions,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for DomainType
|
|
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 { DomainTypeSelect, DomainTypeWithRelations, DomainTypePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DomainTypeSelect, DomainTypeWithRelations, DomainTypePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a DomainType
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateDomainTypeMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', domainTypePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateDomainTypeMutation<S extends DomainTypeSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & DomainTypeSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateDomainType: {
|
|
28
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
domainTypePatch: DomainTypePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateDomainType: {
|
|
35
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
domainTypePatch: DomainTypePatch;
|
|
40
|
+
}>;
|
package/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js}
RENAMED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Update mutation hook for DomainType
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useUpdateDomainTypeMutation = useUpdateDomainTypeMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
12
|
const query_keys_1 = require("../query-keys");
|
|
13
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function
|
|
14
|
+
function useUpdateDomainTypeMutation(params) {
|
|
15
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
17
|
void _selection;
|
|
18
18
|
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
19
|
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.
|
|
21
|
-
mutationFn: ({ id,
|
|
22
|
-
.
|
|
20
|
+
mutationKey: mutation_keys_1.domainTypeMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, domainTypePatch }) => (0, client_1.getClient)()
|
|
22
|
+
.domainType.update({
|
|
23
23
|
where: {
|
|
24
24
|
id,
|
|
25
25
|
},
|
|
26
|
-
data:
|
|
26
|
+
data: domainTypePatch,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
29
29
|
.unwrap(),
|
|
30
30
|
onSuccess: (_, variables) => {
|
|
31
31
|
queryClient.invalidateQueries({
|
|
32
|
-
queryKey: query_keys_1.
|
|
32
|
+
queryKey: query_keys_1.domainTypeKeys.detail(variables.id),
|
|
33
33
|
});
|
|
34
34
|
queryClient.invalidateQueries({
|
|
35
|
-
queryKey: query_keys_1.
|
|
35
|
+
queryKey: query_keys_1.domainTypeKeys.lists(),
|
|
36
36
|
});
|
|
37
37
|
},
|
|
38
38
|
...mutationOptions,
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export * from './useApisQuery';
|
|
7
7
|
export * from './useApiQuery';
|
|
8
|
-
export * from './useApiModulesQuery';
|
|
9
|
-
export * from './useApiModuleQuery';
|
|
10
8
|
export * from './useApiSchemasQuery';
|
|
11
9
|
export * from './useApiSchemaQuery';
|
|
12
10
|
export * from './useApiSettingsQuery';
|
|
@@ -31,6 +29,8 @@ export * from './useDomainsQuery';
|
|
|
31
29
|
export * from './useDomainQuery';
|
|
32
30
|
export * from './useDomainEventsQuery';
|
|
33
31
|
export * from './useDomainEventQuery';
|
|
32
|
+
export * from './useDomainTypesQuery';
|
|
33
|
+
export * from './useDomainTypeQuery';
|
|
34
34
|
export * from './useDomainVerificationsQuery';
|
|
35
35
|
export * from './useDomainVerificationQuery';
|
|
36
36
|
export * from './useEmbeddingChunksQuery';
|
|
@@ -61,8 +61,6 @@ export * from './usePartitionsQuery';
|
|
|
61
61
|
export * from './usePartitionQuery';
|
|
62
62
|
export * from './usePlatformApisQuery';
|
|
63
63
|
export * from './usePlatformApiQuery';
|
|
64
|
-
export * from './usePlatformApiModulesQuery';
|
|
65
|
-
export * from './usePlatformApiModuleQuery';
|
|
66
64
|
export * from './usePlatformApiSchemasQuery';
|
|
67
65
|
export * from './usePlatformApiSchemaQuery';
|
|
68
66
|
export * from './usePlatformApiSettingsQuery';
|
|
@@ -21,8 +21,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
*/
|
|
22
22
|
__exportStar(require("./useApisQuery"), exports);
|
|
23
23
|
__exportStar(require("./useApiQuery"), exports);
|
|
24
|
-
__exportStar(require("./useApiModulesQuery"), exports);
|
|
25
|
-
__exportStar(require("./useApiModuleQuery"), exports);
|
|
26
24
|
__exportStar(require("./useApiSchemasQuery"), exports);
|
|
27
25
|
__exportStar(require("./useApiSchemaQuery"), exports);
|
|
28
26
|
__exportStar(require("./useApiSettingsQuery"), exports);
|
|
@@ -47,6 +45,8 @@ __exportStar(require("./useDomainsQuery"), exports);
|
|
|
47
45
|
__exportStar(require("./useDomainQuery"), exports);
|
|
48
46
|
__exportStar(require("./useDomainEventsQuery"), exports);
|
|
49
47
|
__exportStar(require("./useDomainEventQuery"), exports);
|
|
48
|
+
__exportStar(require("./useDomainTypesQuery"), exports);
|
|
49
|
+
__exportStar(require("./useDomainTypeQuery"), exports);
|
|
50
50
|
__exportStar(require("./useDomainVerificationsQuery"), exports);
|
|
51
51
|
__exportStar(require("./useDomainVerificationQuery"), exports);
|
|
52
52
|
__exportStar(require("./useEmbeddingChunksQuery"), exports);
|
|
@@ -77,8 +77,6 @@ __exportStar(require("./usePartitionsQuery"), exports);
|
|
|
77
77
|
__exportStar(require("./usePartitionQuery"), exports);
|
|
78
78
|
__exportStar(require("./usePlatformApisQuery"), exports);
|
|
79
79
|
__exportStar(require("./usePlatformApiQuery"), exports);
|
|
80
|
-
__exportStar(require("./usePlatformApiModulesQuery"), exports);
|
|
81
|
-
__exportStar(require("./usePlatformApiModuleQuery"), exports);
|
|
82
80
|
__exportStar(require("./usePlatformApiSchemasQuery"), exports);
|
|
83
81
|
__exportStar(require("./usePlatformApiSchemaQuery"), exports);
|
|
84
82
|
__exportStar(require("./usePlatformApiSettingsQuery"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for DomainType
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { DomainTypeSelect, DomainTypeWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { DomainTypeSelect, DomainTypeWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const domainTypeQueryKey: (id: string | number) => readonly ["domaintype", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single DomainType
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useDomainTypeQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDomainTypeQuery<S extends DomainTypeSelect, TData = {
|
|
24
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single DomainType without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchDomainTypeQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchDomainTypeQuery<S extends DomainTypeSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single DomainType for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchDomainTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchDomainTypeQuery<S extends DomainTypeSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Single item query hook for DomainType
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.domainTypeQueryKey = void 0;
|
|
9
|
+
exports.useDomainTypeQuery = useDomainTypeQuery;
|
|
10
|
+
exports.fetchDomainTypeQuery = fetchDomainTypeQuery;
|
|
11
|
+
exports.prefetchDomainTypeQuery = prefetchDomainTypeQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.domainTypeQueryKey = query_keys_1.domainTypeKeys.detail;
|
|
18
|
+
function useDomainTypeQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
23
|
+
queryKey: query_keys_1.domainTypeKeys.detail(params.id),
|
|
24
24
|
queryFn: () => (0, client_1.getClient)()
|
|
25
|
-
.
|
|
25
|
+
.domainType.findOne({
|
|
26
26
|
id: params.id,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
@@ -30,21 +30,21 @@ function useApiModuleQuery(params) {
|
|
|
30
30
|
...queryOptions,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
async function
|
|
33
|
+
async function fetchDomainTypeQuery(params) {
|
|
34
34
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
35
|
return (0, client_1.getClient)()
|
|
36
|
-
.
|
|
36
|
+
.domainType.findOne({
|
|
37
37
|
id: params.id,
|
|
38
38
|
select: args.select,
|
|
39
39
|
})
|
|
40
40
|
.unwrap();
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function prefetchDomainTypeQuery(queryClient, params) {
|
|
43
43
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
44
|
await queryClient.prefetchQuery({
|
|
45
|
-
queryKey: query_keys_1.
|
|
45
|
+
queryKey: query_keys_1.domainTypeKeys.detail(params.id),
|
|
46
46
|
queryFn: () => (0, client_1.getClient)()
|
|
47
|
-
.
|
|
47
|
+
.domainType.findOne({
|
|
48
48
|
id: params.id,
|
|
49
49
|
select: args.select,
|
|
50
50
|
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for DomainType
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { DomainTypeSelect, DomainTypeWithRelations, DomainTypeFilter, DomainTypeOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { DomainTypeSelect, DomainTypeWithRelations, DomainTypeFilter, DomainTypeOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const domainTypesQueryKey: (variables?: object) => readonly ["domaintype", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching DomainType list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useDomainTypesQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDomainTypesQuery<S extends DomainTypeSelect, TData = {
|
|
29
|
+
domainTypes: ConnectionResult<InferSelectResult<DomainTypeWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, DomainTypeFilter, DomainTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
domainTypes: ConnectionResult<InferSelectResult<DomainTypeWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch DomainType list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchDomainTypesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchDomainTypesQuery<S extends DomainTypeSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, DomainTypeFilter, DomainTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
domainTypes: ConnectionResult<InferSelectResult<DomainTypeWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch DomainType list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchDomainTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchDomainTypesQuery<S extends DomainTypeSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, DomainTypeFilter, DomainTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DomainTypeSelect>;
|
|
69
|
+
}): Promise<void>;
|