@constructive-io/sdk 1.11.2 → 1.11.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/orm/client.js +11 -1
- package/agent/orm/client.js +11 -1
- package/agent/orm/input-types.d.ts +0 -3
- package/api/orm/client.js +11 -1
- package/api/orm/index.d.ts +66 -4
- package/api/orm/index.js +36 -4
- package/api/orm/input-types.d.ts +4946 -630
- package/api/orm/input-types.js +34 -6
- package/api/orm/models/apis.d.ts +54 -0
- package/api/orm/models/{api.js → apis.js} +27 -27
- package/api/orm/models/derive.d.ts +54 -0
- package/api/orm/models/derive.js +104 -0
- package/api/orm/models/fieldBehavior.d.ts +54 -0
- package/api/orm/models/fieldBehavior.js +104 -0
- package/api/orm/models/foreignKeyConstraintBehavior.d.ts +54 -0
- package/api/orm/models/foreignKeyConstraintBehavior.js +104 -0
- package/api/orm/models/index.d.ts +18 -2
- package/api/orm/models/index.js +38 -6
- package/api/orm/models/page.d.ts +54 -0
- package/api/orm/models/page.js +104 -0
- package/api/orm/models/platformApis.d.ts +54 -0
- package/api/orm/models/platformApis.js +104 -0
- package/api/orm/models/platformPage.d.ts +54 -0
- package/api/orm/models/platformPage.js +104 -0
- package/api/orm/models/platformSiteAppLink.d.ts +54 -0
- package/api/orm/models/platformSiteAppLink.js +104 -0
- package/api/orm/models/platformSiteDeepLink.d.ts +54 -0
- package/api/orm/models/platformSiteDeepLink.js +104 -0
- package/api/orm/models/platformSiteErrorPage.d.ts +54 -0
- package/api/orm/models/platformSiteErrorPage.js +104 -0
- package/api/orm/models/platformSiteWebConfig.d.ts +54 -0
- package/api/orm/models/platformSiteWebConfig.js +104 -0
- package/api/orm/models/siteAppLink.d.ts +54 -0
- package/api/orm/models/{platformApi.js → siteAppLink.js} +27 -27
- package/api/orm/models/siteDeepLink.d.ts +54 -0
- package/api/orm/models/siteDeepLink.js +104 -0
- package/api/orm/models/siteErrorPage.d.ts +54 -0
- package/api/orm/models/siteErrorPage.js +104 -0
- package/api/orm/models/siteWebConfig.d.ts +54 -0
- package/api/orm/models/siteWebConfig.js +104 -0
- package/api/orm/models/tableBehavior.d.ts +54 -0
- package/api/orm/models/tableBehavior.js +104 -0
- package/api/orm/models/uniqueConstraintBehavior.d.ts +54 -0
- package/api/orm/models/uniqueConstraintBehavior.js +104 -0
- package/api/orm/models/viewBehavior.d.ts +54 -0
- package/api/orm/models/viewBehavior.js +104 -0
- package/api/orm/mutation/index.d.ts +33 -1
- package/api/orm/mutation/index.js +48 -0
- package/api/orm/query/index.d.ts +17 -0
- package/api/orm/query/index.js +28 -0
- package/auth/orm/client.js +11 -1
- package/auth/orm/input-types.d.ts +166 -220
- package/auth/orm/input-types.js +6 -11
- package/compute/orm/client.js +11 -1
- package/compute/orm/index.d.ts +4 -0
- package/compute/orm/index.js +4 -0
- package/compute/orm/input-types.d.ts +539 -8
- package/compute/orm/input-types.js +2 -0
- package/compute/orm/models/functionCapabilityBinding.d.ts +54 -0
- package/compute/orm/models/functionCapabilityBinding.js +104 -0
- package/compute/orm/models/index.d.ts +2 -0
- package/compute/orm/models/index.js +6 -2
- package/compute/orm/models/platformFunctionCapabilityBinding.d.ts +54 -0
- package/compute/orm/models/platformFunctionCapabilityBinding.js +104 -0
- package/config/orm/client.js +11 -1
- package/config/orm/input-types.d.ts +53 -5
- package/esm/admin/orm/client.js +11 -1
- package/esm/agent/orm/client.js +11 -1
- package/esm/agent/orm/input-types.d.ts +0 -3
- package/esm/api/orm/client.js +11 -1
- package/esm/api/orm/index.d.ts +66 -4
- package/esm/api/orm/index.js +36 -4
- package/esm/api/orm/input-types.d.ts +4946 -630
- package/esm/api/orm/input-types.js +34 -6
- package/esm/api/orm/models/apis.d.ts +54 -0
- package/esm/api/orm/models/{api.js → apis.js} +25 -25
- package/esm/api/orm/models/derive.d.ts +54 -0
- package/esm/api/orm/models/derive.js +100 -0
- package/esm/api/orm/models/fieldBehavior.d.ts +54 -0
- package/esm/api/orm/models/fieldBehavior.js +100 -0
- package/esm/api/orm/models/foreignKeyConstraintBehavior.d.ts +54 -0
- package/esm/api/orm/models/foreignKeyConstraintBehavior.js +100 -0
- package/esm/api/orm/models/index.d.ts +18 -2
- package/esm/api/orm/models/index.js +18 -2
- package/esm/api/orm/models/page.d.ts +54 -0
- package/esm/api/orm/models/page.js +100 -0
- package/esm/api/orm/models/platformApis.d.ts +54 -0
- package/esm/api/orm/models/{platformApi.js → platformApis.js} +25 -25
- package/esm/api/orm/models/platformPage.d.ts +54 -0
- package/esm/api/orm/models/platformPage.js +100 -0
- package/esm/api/orm/models/platformSiteAppLink.d.ts +54 -0
- package/esm/api/orm/models/platformSiteAppLink.js +100 -0
- package/esm/api/orm/models/platformSiteDeepLink.d.ts +54 -0
- package/esm/api/orm/models/platformSiteDeepLink.js +100 -0
- package/esm/api/orm/models/platformSiteErrorPage.d.ts +54 -0
- package/esm/api/orm/models/platformSiteErrorPage.js +100 -0
- package/esm/api/orm/models/platformSiteWebConfig.d.ts +54 -0
- package/esm/api/orm/models/platformSiteWebConfig.js +100 -0
- package/esm/api/orm/models/siteAppLink.d.ts +54 -0
- package/esm/api/orm/models/siteAppLink.js +100 -0
- package/esm/api/orm/models/siteDeepLink.d.ts +54 -0
- package/esm/api/orm/models/siteDeepLink.js +100 -0
- package/esm/api/orm/models/siteErrorPage.d.ts +54 -0
- package/esm/api/orm/models/siteErrorPage.js +100 -0
- package/esm/api/orm/models/siteWebConfig.d.ts +54 -0
- package/esm/api/orm/models/siteWebConfig.js +100 -0
- package/esm/api/orm/models/tableBehavior.d.ts +54 -0
- package/esm/api/orm/models/tableBehavior.js +100 -0
- package/esm/api/orm/models/uniqueConstraintBehavior.d.ts +54 -0
- package/esm/api/orm/models/uniqueConstraintBehavior.js +100 -0
- package/esm/api/orm/models/viewBehavior.d.ts +54 -0
- package/esm/api/orm/models/viewBehavior.js +100 -0
- package/esm/api/orm/mutation/index.d.ts +33 -1
- package/esm/api/orm/mutation/index.js +48 -0
- package/esm/api/orm/query/index.d.ts +17 -0
- package/esm/api/orm/query/index.js +28 -0
- package/esm/auth/orm/client.js +11 -1
- package/esm/auth/orm/input-types.d.ts +166 -220
- package/esm/auth/orm/input-types.js +6 -11
- package/esm/compute/orm/client.js +11 -1
- package/esm/compute/orm/index.d.ts +4 -0
- package/esm/compute/orm/index.js +4 -0
- package/esm/compute/orm/input-types.d.ts +539 -8
- package/esm/compute/orm/input-types.js +2 -0
- package/esm/compute/orm/models/functionCapabilityBinding.d.ts +54 -0
- package/esm/compute/orm/models/functionCapabilityBinding.js +100 -0
- package/esm/compute/orm/models/index.d.ts +2 -0
- package/esm/compute/orm/models/index.js +2 -0
- package/esm/compute/orm/models/platformFunctionCapabilityBinding.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionCapabilityBinding.js +100 -0
- package/esm/config/orm/client.js +11 -1
- package/esm/config/orm/input-types.d.ts +53 -5
- package/esm/infra/orm/client.js +11 -1
- package/esm/modules/orm/client.js +11 -1
- package/esm/modules/orm/index.d.ts +2 -0
- package/esm/modules/orm/index.js +2 -0
- package/esm/modules/orm/input-types.d.ts +2116 -122
- package/esm/modules/orm/input-types.js +40 -0
- package/esm/modules/orm/models/index.d.ts +1 -0
- package/esm/modules/orm/models/index.js +1 -0
- package/esm/modules/orm/models/pagesModule.d.ts +54 -0
- package/esm/modules/orm/models/pagesModule.js +100 -0
- package/esm/objects/orm/client.js +11 -1
- package/esm/usage/orm/client.js +11 -1
- package/infra/orm/client.js +11 -1
- package/modules/orm/client.js +11 -1
- package/modules/orm/index.d.ts +2 -0
- package/modules/orm/index.js +2 -0
- package/modules/orm/input-types.d.ts +2116 -122
- package/modules/orm/input-types.js +40 -0
- package/modules/orm/models/index.d.ts +1 -0
- package/modules/orm/models/index.js +4 -2
- package/modules/orm/models/pagesModule.d.ts +54 -0
- package/modules/orm/models/pagesModule.js +104 -0
- package/objects/orm/client.js +11 -1
- package/package.json +5 -5
- package/usage/orm/client.js +11 -1
- package/api/orm/models/api.d.ts +0 -54
- package/api/orm/models/platformApi.d.ts +0 -54
- package/esm/api/orm/models/api.d.ts +0 -54
- package/esm/api/orm/models/platformApi.d.ts +0 -54
package/api/orm/input-types.js
CHANGED
|
@@ -3,20 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.connectionFieldsMap = void 0;
|
|
4
4
|
// ============ Connection Fields Map ============
|
|
5
5
|
exports.connectionFieldsMap = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Apis: {
|
|
7
|
+
apiSchemasByApiId: 'ApiSchema',
|
|
8
|
+
corsSettingsByApiId: 'CorsSetting',
|
|
9
9
|
},
|
|
10
10
|
Database: {
|
|
11
11
|
checkConstraints: 'CheckConstraint',
|
|
12
12
|
compositeTypes: 'CompositeType',
|
|
13
13
|
databaseTransfers: 'DatabaseTransfer',
|
|
14
14
|
defaultPrivileges: 'DefaultPrivilege',
|
|
15
|
+
derives: 'Derive',
|
|
15
16
|
domainTypes: 'DomainType',
|
|
16
17
|
embeddingChunks: 'EmbeddingChunk',
|
|
17
18
|
enums: 'Enum',
|
|
18
19
|
exclusionConstraints: 'ExclusionConstraint',
|
|
20
|
+
fieldBehaviors: 'FieldBehavior',
|
|
19
21
|
fields: 'Field',
|
|
22
|
+
foreignKeyConstraintBehaviors: 'ForeignKeyConstraintBehavior',
|
|
20
23
|
foreignKeyConstraints: 'ForeignKeyConstraint',
|
|
21
24
|
fullTextSearches: 'FullTextSearch',
|
|
22
25
|
functions: 'Function',
|
|
@@ -27,11 +30,14 @@ exports.connectionFieldsMap = {
|
|
|
27
30
|
schemaGrants: 'SchemaGrant',
|
|
28
31
|
schemas: 'Schema',
|
|
29
32
|
spatialRelations: 'SpatialRelation',
|
|
33
|
+
tableBehaviors: 'TableBehavior',
|
|
30
34
|
tableGrants: 'TableGrant',
|
|
31
35
|
tables: 'Table',
|
|
32
36
|
triggerFunctions: 'TriggerFunction',
|
|
33
37
|
triggers: 'Trigger',
|
|
38
|
+
uniqueConstraintBehaviors: 'UniqueConstraintBehavior',
|
|
34
39
|
uniqueConstraints: 'UniqueConstraint',
|
|
40
|
+
viewBehaviors: 'ViewBehavior',
|
|
35
41
|
viewGrants: 'ViewGrant',
|
|
36
42
|
viewRules: 'ViewRule',
|
|
37
43
|
viewTables: 'ViewTable',
|
|
@@ -44,14 +50,21 @@ exports.connectionFieldsMap = {
|
|
|
44
50
|
routes: 'Route',
|
|
45
51
|
},
|
|
46
52
|
Field: {
|
|
53
|
+
embeddingChunksByEmbeddingFieldId: 'EmbeddingChunk',
|
|
54
|
+
embeddingChunksByParentFkFieldId: 'EmbeddingChunk',
|
|
55
|
+
fieldBehaviors: 'FieldBehavior',
|
|
56
|
+
partitionsByPartitionKeyId: 'Partition',
|
|
47
57
|
spatialRelations: 'SpatialRelation',
|
|
48
58
|
spatialRelationsByRefFieldId: 'SpatialRelation',
|
|
49
59
|
},
|
|
60
|
+
ForeignKeyConstraint: {
|
|
61
|
+
foreignKeyConstraintBehaviors: 'ForeignKeyConstraintBehavior',
|
|
62
|
+
},
|
|
50
63
|
ManagedDomain: {
|
|
51
64
|
domainEvents: 'DomainEvent',
|
|
52
65
|
domainVerifications: 'DomainVerification',
|
|
53
66
|
},
|
|
54
|
-
|
|
67
|
+
PlatformApis: {
|
|
55
68
|
platformApiSchemasByApiId: 'PlatformApiSchema',
|
|
56
69
|
},
|
|
57
70
|
PlatformDomain: {
|
|
@@ -63,7 +76,10 @@ exports.connectionFieldsMap = {
|
|
|
63
76
|
platformDomainVerificationsByManagedDomainId: 'PlatformDomainVerification',
|
|
64
77
|
},
|
|
65
78
|
PlatformSite: {
|
|
66
|
-
|
|
79
|
+
platformPagesBySiteId: 'PlatformPage',
|
|
80
|
+
platformSiteAppLinksBySiteId: 'PlatformSiteAppLink',
|
|
81
|
+
platformSiteDeepLinksBySiteId: 'PlatformSiteDeepLink',
|
|
82
|
+
platformSiteErrorPagesBySiteId: 'PlatformSiteErrorPage',
|
|
67
83
|
platformSiteModulesBySiteId: 'PlatformSiteModule',
|
|
68
84
|
platformSiteThemesBySiteId: 'PlatformSiteTheme',
|
|
69
85
|
},
|
|
@@ -80,30 +96,42 @@ exports.connectionFieldsMap = {
|
|
|
80
96
|
views: 'View',
|
|
81
97
|
},
|
|
82
98
|
Site: {
|
|
83
|
-
|
|
99
|
+
pages: 'Page',
|
|
100
|
+
siteAppLinks: 'SiteAppLink',
|
|
101
|
+
siteDeepLinks: 'SiteDeepLink',
|
|
102
|
+
siteErrorPages: 'SiteErrorPage',
|
|
84
103
|
siteModules: 'SiteModule',
|
|
85
104
|
siteThemes: 'SiteTheme',
|
|
86
105
|
},
|
|
87
106
|
Table: {
|
|
88
107
|
checkConstraints: 'CheckConstraint',
|
|
108
|
+
derives: 'Derive',
|
|
109
|
+
derivesBySourceTableId: 'Derive',
|
|
89
110
|
embeddingChunks: 'EmbeddingChunk',
|
|
90
111
|
embeddingChunksByChunksTableId: 'EmbeddingChunk',
|
|
91
112
|
exclusionConstraints: 'ExclusionConstraint',
|
|
92
113
|
fields: 'Field',
|
|
93
114
|
foreignKeyConstraints: 'ForeignKeyConstraint',
|
|
115
|
+
foreignKeyConstraintsByRefTableId: 'ForeignKeyConstraint',
|
|
94
116
|
fullTextSearches: 'FullTextSearch',
|
|
95
117
|
indices: 'Index',
|
|
96
118
|
policies: 'Policy',
|
|
97
119
|
primaryKeyConstraints: 'PrimaryKeyConstraint',
|
|
98
120
|
spatialRelations: 'SpatialRelation',
|
|
99
121
|
spatialRelationsByRefTableId: 'SpatialRelation',
|
|
122
|
+
tableBehaviors: 'TableBehavior',
|
|
100
123
|
tableGrants: 'TableGrant',
|
|
124
|
+
tablesByInheritsId: 'Table',
|
|
101
125
|
triggers: 'Trigger',
|
|
102
126
|
uniqueConstraints: 'UniqueConstraint',
|
|
103
127
|
viewTables: 'ViewTable',
|
|
104
128
|
views: 'View',
|
|
105
129
|
},
|
|
130
|
+
UniqueConstraint: {
|
|
131
|
+
uniqueConstraintBehaviors: 'UniqueConstraintBehavior',
|
|
132
|
+
},
|
|
106
133
|
View: {
|
|
134
|
+
viewBehaviors: 'ViewBehavior',
|
|
107
135
|
viewGrants: 'ViewGrant',
|
|
108
136
|
viewRules: 'ViewRule',
|
|
109
137
|
viewTables: 'ViewTable',
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apis 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 { ApisWithRelations, ApisSelect, ApisFilter, ApisOrderBy, CreateApisInput, ApisPatch } from '../input-types';
|
|
10
|
+
export declare class ApisModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ApisSelect>(args: FindManyArgs<S, ApisFilter, ApisOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ApisSelect>): QueryBuilder<{
|
|
16
|
+
apises: ConnectionResult<InferSelectResult<ApisWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ApisSelect>(args: FindFirstArgs<S, ApisFilter, ApisOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ApisSelect>): QueryBuilder<{
|
|
21
|
+
apis: InferSelectResult<ApisWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ApisSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ApisSelect>): QueryBuilder<{
|
|
27
|
+
apis: InferSelectResult<ApisWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ApisSelect>(args: CreateArgs<S, CreateApisInput['apis']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ApisSelect>): QueryBuilder<{
|
|
32
|
+
createApis: {
|
|
33
|
+
apis: InferSelectResult<ApisWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ApisSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, ApisPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, ApisSelect>): QueryBuilder<{
|
|
41
|
+
updateApis: {
|
|
42
|
+
apis: InferSelectResult<ApisWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends ApisSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, ApisSelect>): QueryBuilder<{
|
|
50
|
+
deleteApis: {
|
|
51
|
+
apis: InferSelectResult<ApisWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ApisModel = void 0;
|
|
4
4
|
const query_builder_1 = require("../query-builder");
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
|
-
class
|
|
6
|
+
class ApisModel {
|
|
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)('Apis', 'apises', args.select, {
|
|
13
13
|
where: args?.where,
|
|
14
14
|
orderBy: args?.orderBy,
|
|
15
15
|
first: args?.first,
|
|
@@ -17,88 +17,88 @@ class ApiModel {
|
|
|
17
17
|
after: args?.after,
|
|
18
18
|
before: args?.before,
|
|
19
19
|
offset: args?.offset,
|
|
20
|
-
}, '
|
|
20
|
+
}, 'ApisFilter', 'ApisOrderBy', 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: 'Apis',
|
|
25
|
+
fieldName: 'apises',
|
|
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)('Apis', 'apises', args.select, {
|
|
32
32
|
where: args?.where,
|
|
33
33
|
orderBy: args?.orderBy,
|
|
34
|
-
}, '
|
|
34
|
+
}, 'ApisFilter', 'ApisOrderBy', 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: 'Apis',
|
|
39
|
+
fieldName: 'apis',
|
|
40
40
|
document,
|
|
41
41
|
variables,
|
|
42
42
|
transform: (data) => ({
|
|
43
|
-
|
|
43
|
+
apis: data.apises?.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)('Apis', 'apises', args.select, {
|
|
49
49
|
where: {
|
|
50
50
|
id: {
|
|
51
51
|
equalTo: args.id,
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
first: 1,
|
|
55
|
-
}, '
|
|
55
|
+
}, 'ApisFilter', 'ApisOrderBy', 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: 'Apis',
|
|
60
|
+
fieldName: 'apis',
|
|
61
61
|
document,
|
|
62
62
|
variables,
|
|
63
63
|
transform: (data) => ({
|
|
64
|
-
|
|
64
|
+
apis: data.apises?.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)('Apis', 'createApis', 'apis', args.select, args.data, 'CreateApisInput', 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: 'Apis',
|
|
74
|
+
fieldName: 'createApis',
|
|
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)('Apis', 'updateApis', 'apis', args.select, args.where.id, args.data, 'UpdateApisInput', 'id', 'apisPatch', 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: 'Apis',
|
|
85
|
+
fieldName: 'updateApis',
|
|
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)('Apis', 'deleteApis', 'apis', {
|
|
92
92
|
id: args.where.id,
|
|
93
|
-
}, '
|
|
93
|
+
}, 'DeleteApisInput', 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: 'Apis',
|
|
98
|
+
fieldName: 'deleteApis',
|
|
99
99
|
document,
|
|
100
100
|
variables,
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
exports.
|
|
104
|
+
exports.ApisModel = ApisModel;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derive 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 { DeriveWithRelations, DeriveSelect, DeriveFilter, DeriveOrderBy, CreateDeriveInput, DerivePatch } from '../input-types';
|
|
10
|
+
export declare class DeriveModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends DeriveSelect>(args: FindManyArgs<S, DeriveFilter, DeriveOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, DeriveSelect>): QueryBuilder<{
|
|
16
|
+
derives: ConnectionResult<InferSelectResult<DeriveWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends DeriveSelect>(args: FindFirstArgs<S, DeriveFilter, DeriveOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, DeriveSelect>): QueryBuilder<{
|
|
21
|
+
derive: InferSelectResult<DeriveWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends DeriveSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, DeriveSelect>): QueryBuilder<{
|
|
27
|
+
derive: InferSelectResult<DeriveWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends DeriveSelect>(args: CreateArgs<S, CreateDeriveInput['derive']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, DeriveSelect>): QueryBuilder<{
|
|
32
|
+
createDerive: {
|
|
33
|
+
derive: InferSelectResult<DeriveWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends DeriveSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, DerivePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, DeriveSelect>): QueryBuilder<{
|
|
41
|
+
updateDerive: {
|
|
42
|
+
derive: InferSelectResult<DeriveWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends DeriveSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, DeriveSelect>): QueryBuilder<{
|
|
50
|
+
deleteDerive: {
|
|
51
|
+
derive: InferSelectResult<DeriveWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeriveModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class DeriveModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Derive', 'derives', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'DeriveFilter', 'DeriveOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'Derive',
|
|
25
|
+
fieldName: 'derives',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('Derive', 'derives', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'DeriveFilter', 'DeriveOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'Derive',
|
|
39
|
+
fieldName: 'derive',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
derive: data.derives?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Derive', 'derives', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'DeriveFilter', 'DeriveOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'Derive',
|
|
60
|
+
fieldName: 'derive',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
derive: data.derives?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('Derive', 'createDerive', 'derive', args.select, args.data, 'CreateDeriveInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'Derive',
|
|
74
|
+
fieldName: 'createDerive',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('Derive', 'updateDerive', 'derive', args.select, args.where.id, args.data, 'UpdateDeriveInput', 'id', 'derivePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'Derive',
|
|
85
|
+
fieldName: 'updateDerive',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Derive', 'deleteDerive', 'derive', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteDeriveInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'Derive',
|
|
98
|
+
fieldName: 'deleteDerive',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.DeriveModel = DeriveModel;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FieldBehavior 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 { FieldBehaviorWithRelations, FieldBehaviorSelect, FieldBehaviorFilter, FieldBehaviorOrderBy, CreateFieldBehaviorInput, FieldBehaviorPatch } from '../input-types';
|
|
10
|
+
export declare class FieldBehaviorModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends FieldBehaviorSelect>(args: FindManyArgs<S, FieldBehaviorFilter, FieldBehaviorOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
|
|
16
|
+
fieldBehaviors: ConnectionResult<InferSelectResult<FieldBehaviorWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends FieldBehaviorSelect>(args: FindFirstArgs<S, FieldBehaviorFilter, FieldBehaviorOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
|
|
21
|
+
fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends FieldBehaviorSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
|
|
27
|
+
fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends FieldBehaviorSelect>(args: CreateArgs<S, CreateFieldBehaviorInput['fieldBehavior']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
|
|
32
|
+
createFieldBehavior: {
|
|
33
|
+
fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends FieldBehaviorSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, FieldBehaviorPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
|
|
41
|
+
updateFieldBehavior: {
|
|
42
|
+
fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends FieldBehaviorSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
|
|
50
|
+
deleteFieldBehavior: {
|
|
51
|
+
fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldBehaviorModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class FieldBehaviorModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('FieldBehavior', 'fieldBehaviors', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'FieldBehaviorFilter', 'FieldBehaviorOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'FieldBehavior',
|
|
25
|
+
fieldName: 'fieldBehaviors',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('FieldBehavior', 'fieldBehaviors', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'FieldBehaviorFilter', 'FieldBehaviorOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'FieldBehavior',
|
|
39
|
+
fieldName: 'fieldBehavior',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
fieldBehavior: data.fieldBehaviors?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('FieldBehavior', 'fieldBehaviors', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'FieldBehaviorFilter', 'FieldBehaviorOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'FieldBehavior',
|
|
60
|
+
fieldName: 'fieldBehavior',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
fieldBehavior: data.fieldBehaviors?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('FieldBehavior', 'createFieldBehavior', 'fieldBehavior', args.select, args.data, 'CreateFieldBehaviorInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'FieldBehavior',
|
|
74
|
+
fieldName: 'createFieldBehavior',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('FieldBehavior', 'updateFieldBehavior', 'fieldBehavior', args.select, args.where.id, args.data, 'UpdateFieldBehaviorInput', 'id', 'fieldBehaviorPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'FieldBehavior',
|
|
85
|
+
fieldName: 'updateFieldBehavior',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('FieldBehavior', 'deleteFieldBehavior', 'fieldBehavior', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteFieldBehaviorInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'FieldBehavior',
|
|
98
|
+
fieldName: 'deleteFieldBehavior',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.FieldBehaviorModel = FieldBehaviorModel;
|