@constructive-io/react 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +24 -0
- package/admin/hooks/invalidation.js +64 -0
- package/admin/hooks/mutation-keys.d.ts +48 -0
- package/admin/hooks/mutation-keys.js +32 -1
- package/admin/hooks/mutations/index.d.ts +8 -0
- package/admin/hooks/mutations/index.js +8 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js} +6 -6
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +7 -7
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +9 -9
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +7 -0
- package/admin/hooks/queries/index.js +7 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +14 -14
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.js +38 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.js +53 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.js +38 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.js +53 -0
- package/admin/hooks/query-keys.d.ts +58 -0
- package/admin/hooks/query-keys.js +34 -1
- package/admin/orm/index.d.ts +13 -0
- package/admin/orm/index.js +8 -0
- package/admin/orm/input-types.d.ts +399 -0
- package/admin/orm/models/index.d.ts +4 -0
- package/admin/orm/models/index.js +9 -1
- package/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/admin/orm/models/orgChartEdge.js +104 -0
- package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
- package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/admin/orm/models/orgGetManagersRecord.js +59 -0
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
- package/admin/orm/query/index.d.ts +11 -0
- package/admin/orm/query/index.js +24 -0
- package/admin/schema-types.d.ts +247 -1
- package/admin/types.d.ts +29 -0
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +6 -12
- package/api/hooks/invalidation.js +16 -32
- package/api/hooks/mutation-keys.d.ts +12 -24
- package/api/hooks/mutation-keys.js +9 -16
- package/api/hooks/mutations/index.d.ts +3 -6
- package/api/hooks/mutations/index.js +3 -6
- package/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +6 -6
- package/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +7 -7
- package/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +9 -9
- package/api/hooks/queries/index.d.ts +2 -4
- package/api/hooks/queries/index.js +2 -4
- package/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +14 -14
- package/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +14 -14
- package/api/hooks/query-keys.d.ts +14 -28
- package/api/hooks/query-keys.js +10 -18
- package/api/orm/index.d.ts +2 -4
- package/api/orm/index.js +2 -4
- package/api/orm/input-types.d.ts +378 -468
- package/api/orm/input-types.js +2 -2
- package/api/orm/models/domainType.d.ts +54 -0
- package/api/orm/models/{apiModule.js → domainType.js} +27 -27
- package/api/orm/models/index.d.ts +1 -2
- package/api/orm/models/index.js +4 -6
- package/api/schema-types.d.ts +157 -226
- package/api/types.d.ts +16 -17
- package/compute/orm/input-types.d.ts +42 -3
- package/compute/schema-types.d.ts +25 -3
- package/compute/types.d.ts +5 -0
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +24 -0
- package/esm/admin/hooks/invalidation.js +65 -1
- package/esm/admin/hooks/mutation-keys.d.ts +48 -0
- package/esm/admin/hooks/mutation-keys.js +31 -0
- package/esm/admin/hooks/mutations/index.d.ts +8 -0
- package/esm/admin/hooks/mutations/index.js +8 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/esm/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeMutation.js} +7 -7
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/esm/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/esm/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +10 -10
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +7 -0
- package/esm/admin/hooks/queries/index.js +7 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/esm/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/esm/{api/hooks/queries/usePlatformApiModulesQuery.js → admin/hooks/queries/useOrgChartEdgeGrantsQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.js +47 -0
- package/esm/admin/hooks/query-keys.d.ts +58 -0
- package/esm/admin/hooks/query-keys.js +33 -0
- package/esm/admin/orm/index.d.ts +13 -0
- package/esm/admin/orm/index.js +8 -0
- package/esm/admin/orm/input-types.d.ts +399 -0
- package/esm/admin/orm/models/index.d.ts +4 -0
- package/esm/admin/orm/models/index.js +4 -0
- package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/esm/admin/orm/models/orgChartEdge.js +100 -0
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/esm/admin/orm/query/index.d.ts +11 -0
- package/esm/admin/orm/query/index.js +24 -0
- package/esm/admin/schema-types.d.ts +247 -1
- package/esm/admin/types.d.ts +29 -0
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +6 -12
- package/esm/api/hooks/invalidation.js +17 -33
- package/esm/api/hooks/mutation-keys.d.ts +12 -24
- package/esm/api/hooks/mutation-keys.js +7 -14
- package/esm/api/hooks/mutations/index.d.ts +3 -6
- package/esm/api/hooks/mutations/index.js +3 -6
- package/esm/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/esm/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +7 -7
- package/esm/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/esm/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +8 -8
- package/esm/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/esm/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +10 -10
- package/esm/api/hooks/queries/index.d.ts +2 -4
- package/esm/api/hooks/queries/index.js +2 -4
- package/esm/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/esm/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +11 -11
- package/esm/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/esm/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +11 -11
- package/esm/api/hooks/query-keys.d.ts +14 -28
- package/esm/api/hooks/query-keys.js +8 -16
- package/esm/api/orm/index.d.ts +2 -4
- package/esm/api/orm/index.js +2 -4
- package/esm/api/orm/input-types.d.ts +378 -468
- package/esm/api/orm/input-types.js +2 -2
- package/esm/api/orm/models/domainType.d.ts +54 -0
- package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
- package/esm/api/orm/models/index.d.ts +1 -2
- package/esm/api/orm/models/index.js +1 -2
- package/esm/api/schema-types.d.ts +157 -226
- package/esm/api/types.d.ts +16 -17
- package/esm/compute/orm/input-types.d.ts +42 -3
- package/esm/compute/schema-types.d.ts +25 -3
- package/esm/compute/types.d.ts +5 -0
- package/esm/modules/orm/input-types.d.ts +9 -16
- package/esm/modules/schema-types.d.ts +6 -10
- package/esm/modules/types.d.ts +1 -2
- package/modules/orm/input-types.d.ts +9 -16
- package/modules/schema-types.d.ts +6 -10
- package/modules/types.d.ts +1 -2
- package/package.json +5 -5
- package/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModulesQuery.js +0 -38
- package/api/orm/models/apiModule.d.ts +0 -54
- package/api/orm/models/platformApiModule.d.ts +0 -54
- package/esm/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/esm/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/esm/api/orm/models/apiModule.d.ts +0 -54
- package/esm/api/orm/models/platformApiModule.d.ts +0 -54
package/api/orm/input-types.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.connectionFieldsMap = void 0;
|
|
|
4
4
|
// ============ Connection Fields Map ============
|
|
5
5
|
exports.connectionFieldsMap = {
|
|
6
6
|
Api: {
|
|
7
|
-
apiModules: 'ApiModule',
|
|
8
7
|
apiSchemas: 'ApiSchema',
|
|
9
8
|
corsSettings: 'CorsSetting',
|
|
10
9
|
},
|
|
@@ -13,6 +12,7 @@ exports.connectionFieldsMap = {
|
|
|
13
12
|
compositeTypes: 'CompositeType',
|
|
14
13
|
databaseTransfers: 'DatabaseTransfer',
|
|
15
14
|
defaultPrivileges: 'DefaultPrivilege',
|
|
15
|
+
domainTypes: 'DomainType',
|
|
16
16
|
embeddingChunks: 'EmbeddingChunk',
|
|
17
17
|
enums: 'Enum',
|
|
18
18
|
exclusionConstraints: 'ExclusionConstraint',
|
|
@@ -52,7 +52,6 @@ exports.connectionFieldsMap = {
|
|
|
52
52
|
domainVerifications: 'DomainVerification',
|
|
53
53
|
},
|
|
54
54
|
PlatformApi: {
|
|
55
|
-
platformApiModulesByApiId: 'PlatformApiModule',
|
|
56
55
|
platformApiSchemasByApiId: 'PlatformApiSchema',
|
|
57
56
|
},
|
|
58
57
|
PlatformDomain: {
|
|
@@ -72,6 +71,7 @@ exports.connectionFieldsMap = {
|
|
|
72
71
|
apiSchemas: 'ApiSchema',
|
|
73
72
|
compositeTypes: 'CompositeType',
|
|
74
73
|
defaultPrivileges: 'DefaultPrivilege',
|
|
74
|
+
domainTypes: 'DomainType',
|
|
75
75
|
enums: 'Enum',
|
|
76
76
|
functions: 'Function',
|
|
77
77
|
platformApiSchemas: 'PlatformApiSchema',
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DomainType model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { DomainTypeWithRelations, DomainTypeSelect, DomainTypeFilter, DomainTypeOrderBy, CreateDomainTypeInput, DomainTypePatch } from '../input-types';
|
|
10
|
+
export declare class DomainTypeModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends DomainTypeSelect>(args: FindManyArgs<S, DomainTypeFilter, DomainTypeOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
16
|
+
domainTypes: ConnectionResult<InferSelectResult<DomainTypeWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends DomainTypeSelect>(args: FindFirstArgs<S, DomainTypeFilter, DomainTypeOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
21
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends DomainTypeSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
27
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends DomainTypeSelect>(args: CreateArgs<S, CreateDomainTypeInput['domainType']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
32
|
+
createDomainType: {
|
|
33
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends DomainTypeSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, DomainTypePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
41
|
+
updateDomainType: {
|
|
42
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends DomainTypeSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, DomainTypeSelect>): QueryBuilder<{
|
|
50
|
+
deleteDomainType: {
|
|
51
|
+
domainType: InferSelectResult<DomainTypeWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DomainTypeModel = void 0;
|
|
4
4
|
const query_builder_1 = require("../query-builder");
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
|
-
class
|
|
6
|
+
class DomainTypeModel {
|
|
7
7
|
client;
|
|
8
8
|
constructor(client) {
|
|
9
9
|
this.client = client;
|
|
10
10
|
}
|
|
11
11
|
findMany(args) {
|
|
12
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('DomainType', 'domainTypes', args.select, {
|
|
13
13
|
where: args?.where,
|
|
14
14
|
orderBy: args?.orderBy,
|
|
15
15
|
first: args?.first,
|
|
@@ -17,88 +17,88 @@ class ApiModuleModel {
|
|
|
17
17
|
after: args?.after,
|
|
18
18
|
before: args?.before,
|
|
19
19
|
offset: args?.offset,
|
|
20
|
-
}, '
|
|
20
|
+
}, 'DomainTypeFilter', 'DomainTypeOrderBy', input_types_1.connectionFieldsMap);
|
|
21
21
|
return new query_builder_1.QueryBuilder({
|
|
22
22
|
client: this.client,
|
|
23
23
|
operation: 'query',
|
|
24
|
-
operationName: '
|
|
25
|
-
fieldName: '
|
|
24
|
+
operationName: 'DomainType',
|
|
25
|
+
fieldName: 'domainTypes',
|
|
26
26
|
document,
|
|
27
27
|
variables,
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
findFirst(args) {
|
|
31
|
-
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('DomainType', 'domainTypes', args.select, {
|
|
32
32
|
where: args?.where,
|
|
33
33
|
orderBy: args?.orderBy,
|
|
34
|
-
}, '
|
|
34
|
+
}, 'DomainTypeFilter', 'DomainTypeOrderBy', input_types_1.connectionFieldsMap);
|
|
35
35
|
return new query_builder_1.QueryBuilder({
|
|
36
36
|
client: this.client,
|
|
37
37
|
operation: 'query',
|
|
38
|
-
operationName: '
|
|
39
|
-
fieldName: '
|
|
38
|
+
operationName: 'DomainType',
|
|
39
|
+
fieldName: 'domainType',
|
|
40
40
|
document,
|
|
41
41
|
variables,
|
|
42
42
|
transform: (data) => ({
|
|
43
|
-
|
|
43
|
+
domainType: data.domainTypes?.nodes?.[0] ?? null,
|
|
44
44
|
}),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
findOne(args) {
|
|
48
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('DomainType', 'domainTypes', args.select, {
|
|
49
49
|
where: {
|
|
50
50
|
id: {
|
|
51
51
|
equalTo: args.id,
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
first: 1,
|
|
55
|
-
}, '
|
|
55
|
+
}, 'DomainTypeFilter', 'DomainTypeOrderBy', input_types_1.connectionFieldsMap);
|
|
56
56
|
return new query_builder_1.QueryBuilder({
|
|
57
57
|
client: this.client,
|
|
58
58
|
operation: 'query',
|
|
59
|
-
operationName: '
|
|
60
|
-
fieldName: '
|
|
59
|
+
operationName: 'DomainType',
|
|
60
|
+
fieldName: 'domainType',
|
|
61
61
|
document,
|
|
62
62
|
variables,
|
|
63
63
|
transform: (data) => ({
|
|
64
|
-
|
|
64
|
+
domainType: data.domainTypes?.nodes?.[0] ?? null,
|
|
65
65
|
}),
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
create(args) {
|
|
69
|
-
const { document, variables } = (0, query_builder_1.buildCreateDocument)('
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('DomainType', 'createDomainType', 'domainType', args.select, args.data, 'CreateDomainTypeInput', input_types_1.connectionFieldsMap);
|
|
70
70
|
return new query_builder_1.QueryBuilder({
|
|
71
71
|
client: this.client,
|
|
72
72
|
operation: 'mutation',
|
|
73
|
-
operationName: '
|
|
74
|
-
fieldName: '
|
|
73
|
+
operationName: 'DomainType',
|
|
74
|
+
fieldName: 'createDomainType',
|
|
75
75
|
document,
|
|
76
76
|
variables,
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('DomainType', 'updateDomainType', 'domainType', args.select, args.where.id, args.data, 'UpdateDomainTypeInput', 'id', 'domainTypePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
84
|
-
operationName: '
|
|
85
|
-
fieldName: '
|
|
84
|
+
operationName: 'DomainType',
|
|
85
|
+
fieldName: 'updateDomainType',
|
|
86
86
|
document,
|
|
87
87
|
variables,
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
delete(args) {
|
|
91
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('DomainType', 'deleteDomainType', 'domainType', {
|
|
92
92
|
id: args.where.id,
|
|
93
|
-
}, '
|
|
93
|
+
}, 'DeleteDomainTypeInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
94
|
return new query_builder_1.QueryBuilder({
|
|
95
95
|
client: this.client,
|
|
96
96
|
operation: 'mutation',
|
|
97
|
-
operationName: '
|
|
98
|
-
fieldName: '
|
|
97
|
+
operationName: 'DomainType',
|
|
98
|
+
fieldName: 'deleteDomainType',
|
|
99
99
|
document,
|
|
100
100
|
variables,
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
exports.
|
|
104
|
+
exports.DomainTypeModel = DomainTypeModel;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
export { ApiModel } from './api';
|
|
7
|
-
export { ApiModuleModel } from './apiModule';
|
|
8
7
|
export { ApiSchemaModel } from './apiSchema';
|
|
9
8
|
export { ApiSettingModel } from './apiSetting';
|
|
10
9
|
export { AstMigrationModel } from './astMigration';
|
|
@@ -17,6 +16,7 @@ export { DatabaseTransferModel } from './databaseTransfer';
|
|
|
17
16
|
export { DefaultPrivilegeModel } from './defaultPrivilege';
|
|
18
17
|
export { DomainModel } from './domain';
|
|
19
18
|
export { DomainEventModel } from './domainEvent';
|
|
19
|
+
export { DomainTypeModel } from './domainType';
|
|
20
20
|
export { DomainVerificationModel } from './domainVerification';
|
|
21
21
|
export { EmbeddingChunkModel } from './embeddingChunk';
|
|
22
22
|
export { EnumModel } from './enum';
|
|
@@ -32,7 +32,6 @@ export { ManagedDomainModel } from './managedDomain';
|
|
|
32
32
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
33
33
|
export { PartitionModel } from './partition';
|
|
34
34
|
export { PlatformApiModel } from './platformApi';
|
|
35
|
-
export { PlatformApiModuleModel } from './platformApiModule';
|
|
36
35
|
export { PlatformApiSchemaModel } from './platformApiSchema';
|
|
37
36
|
export { PlatformApiSettingModel } from './platformApiSetting';
|
|
38
37
|
export { PlatformCorsSettingModel } from './platformCorsSetting';
|
package/api/orm/models/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SiteModel = exports.SchemaGrantModel = exports.SchemaModel = exports.RouteModel = exports.RouteBindingModel = exports.RlsSettingModel = exports.PubkeySettingModel = exports.PrimaryKeyConstraintModel = exports.PolicyModel = exports.PlatformSiteThemeModel = exports.PlatformSiteModuleModel = exports.PlatformSiteMetadatumModel = exports.PlatformSiteModel = exports.PlatformManagedDomainModel = exports.PlatformDomainVerificationModel = exports.PlatformDomainEventModel = exports.PlatformDomainModel = exports.PlatformCorsSettingModel = exports.PlatformApiSettingModel = exports.PlatformApiSchemaModel = exports.
|
|
4
|
-
exports.WebauthnSettingModel = exports.ViewTableModel = exports.ViewRuleModel = exports.ViewGrantModel = exports.ViewModel = exports.UniqueConstraintModel = exports.TriggerFunctionModel = exports.TriggerModel = exports.TableGrantModel = exports.TableModel = exports.SqlActionModel = exports.SpatialRelationModel = exports.SiteThemeModel = exports.SiteModuleModel =
|
|
3
|
+
exports.SiteMetadatumModel = exports.SiteModel = exports.SchemaGrantModel = exports.SchemaModel = exports.RouteModel = exports.RouteBindingModel = exports.RlsSettingModel = exports.PubkeySettingModel = exports.PrimaryKeyConstraintModel = exports.PolicyModel = exports.PlatformSiteThemeModel = exports.PlatformSiteModuleModel = exports.PlatformSiteMetadatumModel = exports.PlatformSiteModel = exports.PlatformManagedDomainModel = exports.PlatformDomainVerificationModel = exports.PlatformDomainEventModel = exports.PlatformDomainModel = exports.PlatformCorsSettingModel = exports.PlatformApiSettingModel = exports.PlatformApiSchemaModel = exports.PlatformApiModel = exports.PartitionModel = exports.NodeTypeRegistryModel = exports.ManagedDomainModel = exports.IndexModel = exports.HttpRouteModel = exports.HostnameBindingModel = exports.FunctionModel = exports.FullTextSearchModel = exports.ForeignKeyConstraintModel = exports.FieldModel = exports.ExclusionConstraintModel = exports.EnumModel = exports.EmbeddingChunkModel = exports.DomainVerificationModel = exports.DomainTypeModel = exports.DomainEventModel = exports.DomainModel = exports.DefaultPrivilegeModel = exports.DatabaseTransferModel = exports.DatabaseSettingModel = exports.DatabaseModel = exports.CorsSettingModel = exports.CompositeTypeModel = exports.CheckConstraintModel = exports.AstMigrationModel = exports.ApiSettingModel = exports.ApiSchemaModel = exports.ApiModel = void 0;
|
|
4
|
+
exports.WebauthnSettingModel = exports.ViewTableModel = exports.ViewRuleModel = exports.ViewGrantModel = exports.ViewModel = exports.UniqueConstraintModel = exports.TriggerFunctionModel = exports.TriggerModel = exports.TableGrantModel = exports.TableModel = exports.SqlActionModel = exports.SpatialRelationModel = exports.SiteThemeModel = exports.SiteModuleModel = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* Models barrel export
|
|
7
7
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -9,8 +9,6 @@ exports.WebauthnSettingModel = exports.ViewTableModel = exports.ViewRuleModel =
|
|
|
9
9
|
*/
|
|
10
10
|
var api_1 = require("./api");
|
|
11
11
|
Object.defineProperty(exports, "ApiModel", { enumerable: true, get: function () { return api_1.ApiModel; } });
|
|
12
|
-
var apiModule_1 = require("./apiModule");
|
|
13
|
-
Object.defineProperty(exports, "ApiModuleModel", { enumerable: true, get: function () { return apiModule_1.ApiModuleModel; } });
|
|
14
12
|
var apiSchema_1 = require("./apiSchema");
|
|
15
13
|
Object.defineProperty(exports, "ApiSchemaModel", { enumerable: true, get: function () { return apiSchema_1.ApiSchemaModel; } });
|
|
16
14
|
var apiSetting_1 = require("./apiSetting");
|
|
@@ -35,6 +33,8 @@ var domain_1 = require("./domain");
|
|
|
35
33
|
Object.defineProperty(exports, "DomainModel", { enumerable: true, get: function () { return domain_1.DomainModel; } });
|
|
36
34
|
var domainEvent_1 = require("./domainEvent");
|
|
37
35
|
Object.defineProperty(exports, "DomainEventModel", { enumerable: true, get: function () { return domainEvent_1.DomainEventModel; } });
|
|
36
|
+
var domainType_1 = require("./domainType");
|
|
37
|
+
Object.defineProperty(exports, "DomainTypeModel", { enumerable: true, get: function () { return domainType_1.DomainTypeModel; } });
|
|
38
38
|
var domainVerification_1 = require("./domainVerification");
|
|
39
39
|
Object.defineProperty(exports, "DomainVerificationModel", { enumerable: true, get: function () { return domainVerification_1.DomainVerificationModel; } });
|
|
40
40
|
var embeddingChunk_1 = require("./embeddingChunk");
|
|
@@ -65,8 +65,6 @@ var partition_1 = require("./partition");
|
|
|
65
65
|
Object.defineProperty(exports, "PartitionModel", { enumerable: true, get: function () { return partition_1.PartitionModel; } });
|
|
66
66
|
var platformApi_1 = require("./platformApi");
|
|
67
67
|
Object.defineProperty(exports, "PlatformApiModel", { enumerable: true, get: function () { return platformApi_1.PlatformApiModel; } });
|
|
68
|
-
var platformApiModule_1 = require("./platformApiModule");
|
|
69
|
-
Object.defineProperty(exports, "PlatformApiModuleModel", { enumerable: true, get: function () { return platformApiModule_1.PlatformApiModuleModel; } });
|
|
70
68
|
var platformApiSchema_1 = require("./platformApiSchema");
|
|
71
69
|
Object.defineProperty(exports, "PlatformApiSchemaModel", { enumerable: true, get: function () { return platformApiSchema_1.PlatformApiSchemaModel; } });
|
|
72
70
|
var platformApiSetting_1 = require("./platformApiSetting");
|