@constructive-io/sdk 0.14.0 → 0.14.1
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/index.d.ts +6 -4
- package/admin/orm/index.js +6 -4
- package/admin/orm/input-types.d.ts +503 -295
- package/admin/orm/models/index.d.ts +3 -2
- package/admin/orm/models/index.js +7 -5
- package/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
- package/auth/orm/index.d.ts +45 -15
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +186 -251
- package/auth/orm/input-types.js +0 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/auth/orm/models/userConnectedAccount.js +76 -0
- package/auth/orm/mutation/index.d.ts +56 -16
- package/auth/orm/mutation/index.js +78 -18
- package/auth/orm/query/index.d.ts +12 -4
- package/auth/orm/query/index.js +19 -7
- package/esm/admin/orm/index.d.ts +6 -4
- package/esm/admin/orm/index.js +6 -4
- package/esm/admin/orm/input-types.d.ts +503 -295
- package/esm/admin/orm/models/index.d.ts +3 -2
- package/esm/admin/orm/models/index.js +3 -2
- package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{public/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
- package/esm/auth/orm/index.d.ts +45 -15
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +186 -251
- package/esm/auth/orm/input-types.js +0 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/auth/orm/models/userConnectedAccount.js +72 -0
- package/esm/auth/orm/mutation/index.d.ts +56 -16
- package/esm/auth/orm/mutation/index.js +78 -18
- package/esm/auth/orm/query/index.d.ts +12 -4
- package/esm/auth/orm/query/index.js +19 -7
- package/esm/public/orm/index.d.ts +69 -19
- package/esm/public/orm/index.js +16 -6
- package/esm/public/orm/input-types.d.ts +2047 -640
- package/esm/public/orm/input-types.js +15 -6
- package/esm/public/orm/models/devicesModule.d.ts +56 -0
- package/esm/public/orm/models/devicesModule.js +96 -0
- package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
- package/esm/public/orm/models/index.d.ts +8 -3
- package/esm/public/orm/models/index.js +8 -3
- package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{auth/orm/models/connectedAccount.js → public/orm/models/orgMemberProfile.js} +24 -24
- package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/esm/public/orm/models/sessionSecretsModule.js +96 -0
- package/esm/public/orm/models/spatialRelation.d.ts +56 -0
- package/esm/public/orm/models/spatialRelation.js +96 -0
- package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/public/orm/models/userConnectedAccount.js +72 -0
- package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +72 -20
- package/esm/public/orm/mutation/index.js +96 -24
- package/esm/public/orm/query/index.d.ts +24 -2
- package/esm/public/orm/query/index.js +36 -4
- package/package.json +2 -2
- package/public/orm/index.d.ts +69 -19
- package/public/orm/index.js +16 -6
- package/public/orm/input-types.d.ts +2047 -640
- package/public/orm/input-types.js +15 -6
- package/public/orm/models/devicesModule.d.ts +56 -0
- package/public/orm/models/devicesModule.js +100 -0
- package/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
- package/public/orm/models/index.d.ts +8 -3
- package/public/orm/models/index.js +19 -9
- package/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
- package/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/public/orm/models/sessionSecretsModule.js +100 -0
- package/public/orm/models/spatialRelation.d.ts +56 -0
- package/public/orm/models/spatialRelation.js +100 -0
- package/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/public/orm/models/userConnectedAccount.js +76 -0
- package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/public/orm/models/webauthnCredentialsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +72 -20
- package/public/orm/mutation/index.js +96 -24
- package/public/orm/query/index.d.ts +24 -2
- package/public/orm/query/index.js +36 -4
- package/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
- package/public/orm/models/connectedAccount.d.ts +0 -56
- package/public/orm/models/tableTemplateModule.d.ts +0 -56
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OrgMemberProfileModel = void 0;
|
|
4
4
|
const query_builder_1 = require("../query-builder");
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
|
-
class
|
|
6
|
+
class OrgMemberProfileModel {
|
|
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)('OrgMemberProfile', 'orgMemberProfiles', args.select, {
|
|
13
13
|
where: args?.where,
|
|
14
14
|
orderBy: args?.orderBy,
|
|
15
15
|
first: args?.first,
|
|
@@ -17,84 +17,84 @@ class ConnectedAccountModel {
|
|
|
17
17
|
after: args?.after,
|
|
18
18
|
before: args?.before,
|
|
19
19
|
offset: args?.offset,
|
|
20
|
-
}, '
|
|
20
|
+
}, 'OrgMemberProfileFilter', 'OrgMemberProfileOrderBy', 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: 'OrgMemberProfile',
|
|
25
|
+
fieldName: 'orgMemberProfiles',
|
|
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)('OrgMemberProfile', 'orgMemberProfiles', args.select, {
|
|
32
32
|
where: args?.where,
|
|
33
|
-
}, '
|
|
33
|
+
}, 'OrgMemberProfileFilter', input_types_1.connectionFieldsMap);
|
|
34
34
|
return new query_builder_1.QueryBuilder({
|
|
35
35
|
client: this.client,
|
|
36
36
|
operation: 'query',
|
|
37
|
-
operationName: '
|
|
38
|
-
fieldName: '
|
|
37
|
+
operationName: 'OrgMemberProfile',
|
|
38
|
+
fieldName: 'orgMemberProfiles',
|
|
39
39
|
document,
|
|
40
40
|
variables,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
findOne(args) {
|
|
44
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgMemberProfile', 'orgMemberProfiles', args.select, {
|
|
45
45
|
where: {
|
|
46
46
|
id: {
|
|
47
47
|
equalTo: args.id,
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
first: 1,
|
|
51
|
-
}, '
|
|
51
|
+
}, 'OrgMemberProfileFilter', 'OrgMemberProfileOrderBy', input_types_1.connectionFieldsMap);
|
|
52
52
|
return new query_builder_1.QueryBuilder({
|
|
53
53
|
client: this.client,
|
|
54
54
|
operation: 'query',
|
|
55
|
-
operationName: '
|
|
56
|
-
fieldName: '
|
|
55
|
+
operationName: 'OrgMemberProfile',
|
|
56
|
+
fieldName: 'orgMemberProfile',
|
|
57
57
|
document,
|
|
58
58
|
variables,
|
|
59
59
|
transform: (data) => ({
|
|
60
|
-
|
|
60
|
+
orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null,
|
|
61
61
|
}),
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
create(args) {
|
|
65
|
-
const { document, variables } = (0, query_builder_1.buildCreateDocument)('
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgMemberProfile', 'createOrgMemberProfile', 'orgMemberProfile', args.select, args.data, 'CreateOrgMemberProfileInput', input_types_1.connectionFieldsMap);
|
|
66
66
|
return new query_builder_1.QueryBuilder({
|
|
67
67
|
client: this.client,
|
|
68
68
|
operation: 'mutation',
|
|
69
|
-
operationName: '
|
|
70
|
-
fieldName: '
|
|
69
|
+
operationName: 'OrgMemberProfile',
|
|
70
|
+
fieldName: 'createOrgMemberProfile',
|
|
71
71
|
document,
|
|
72
72
|
variables,
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
update(args) {
|
|
76
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgMemberProfile', 'updateOrgMemberProfile', 'orgMemberProfile', args.select, args.where.id, args.data, 'UpdateOrgMemberProfileInput', 'id', 'orgMemberProfilePatch', input_types_1.connectionFieldsMap);
|
|
77
77
|
return new query_builder_1.QueryBuilder({
|
|
78
78
|
client: this.client,
|
|
79
79
|
operation: 'mutation',
|
|
80
|
-
operationName: '
|
|
81
|
-
fieldName: '
|
|
80
|
+
operationName: 'OrgMemberProfile',
|
|
81
|
+
fieldName: 'updateOrgMemberProfile',
|
|
82
82
|
document,
|
|
83
83
|
variables,
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
delete(args) {
|
|
87
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgMemberProfile', 'deleteOrgMemberProfile', 'orgMemberProfile', {
|
|
88
88
|
id: args.where.id,
|
|
89
|
-
}, '
|
|
89
|
+
}, 'DeleteOrgMemberProfileInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
90
|
return new query_builder_1.QueryBuilder({
|
|
91
91
|
client: this.client,
|
|
92
92
|
operation: 'mutation',
|
|
93
|
-
operationName: '
|
|
94
|
-
fieldName: '
|
|
93
|
+
operationName: 'OrgMemberProfile',
|
|
94
|
+
fieldName: 'deleteOrgMemberProfile',
|
|
95
95
|
document,
|
|
96
96
|
variables,
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
exports.
|
|
100
|
+
exports.OrgMemberProfileModel = OrgMemberProfileModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SessionSecretsModule 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 { SessionSecretsModuleWithRelations, SessionSecretsModuleSelect, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy, CreateSessionSecretsModuleInput, SessionSecretsModulePatch } from '../input-types';
|
|
10
|
+
export declare class SessionSecretsModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends SessionSecretsModuleSelect>(args: FindManyArgs<S, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
|
|
16
|
+
sessionSecretsModules: ConnectionResult<InferSelectResult<SessionSecretsModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends SessionSecretsModuleSelect>(args: FindFirstArgs<S, SessionSecretsModuleFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
|
|
21
|
+
sessionSecretsModules: {
|
|
22
|
+
nodes: InferSelectResult<SessionSecretsModuleWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends SessionSecretsModuleSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
|
|
29
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends SessionSecretsModuleSelect>(args: CreateArgs<S, CreateSessionSecretsModuleInput['sessionSecretsModule']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
|
|
34
|
+
createSessionSecretsModule: {
|
|
35
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends SessionSecretsModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, SessionSecretsModulePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
|
|
43
|
+
updateSessionSecretsModule: {
|
|
44
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends SessionSecretsModuleSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
|
|
52
|
+
deleteSessionSecretsModule: {
|
|
53
|
+
sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SessionSecretsModuleModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class SessionSecretsModuleModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SessionSecretsModule', 'sessionSecretsModules', 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
|
+
}, 'SessionSecretsModuleFilter', 'SessionSecretsModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'SessionSecretsModule',
|
|
25
|
+
fieldName: 'sessionSecretsModules',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('SessionSecretsModule', 'sessionSecretsModules', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'SessionSecretsModuleFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'SessionSecretsModule',
|
|
38
|
+
fieldName: 'sessionSecretsModules',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SessionSecretsModule', 'sessionSecretsModules', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'SessionSecretsModuleFilter', 'SessionSecretsModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'SessionSecretsModule',
|
|
56
|
+
fieldName: 'sessionSecretsModule',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
sessionSecretsModule: data.sessionSecretsModules?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('SessionSecretsModule', 'createSessionSecretsModule', 'sessionSecretsModule', args.select, args.data, 'CreateSessionSecretsModuleInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'SessionSecretsModule',
|
|
70
|
+
fieldName: 'createSessionSecretsModule',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('SessionSecretsModule', 'updateSessionSecretsModule', 'sessionSecretsModule', args.select, args.where.id, args.data, 'UpdateSessionSecretsModuleInput', 'id', 'sessionSecretsModulePatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'SessionSecretsModule',
|
|
81
|
+
fieldName: 'updateSessionSecretsModule',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('SessionSecretsModule', 'deleteSessionSecretsModule', 'sessionSecretsModule', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteSessionSecretsModuleInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'SessionSecretsModule',
|
|
94
|
+
fieldName: 'deleteSessionSecretsModule',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.SessionSecretsModuleModel = SessionSecretsModuleModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SpatialRelation 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 { SpatialRelationWithRelations, SpatialRelationSelect, SpatialRelationFilter, SpatialRelationOrderBy, CreateSpatialRelationInput, SpatialRelationPatch } from '../input-types';
|
|
10
|
+
export declare class SpatialRelationModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends SpatialRelationSelect>(args: FindManyArgs<S, SpatialRelationFilter, SpatialRelationOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
|
|
16
|
+
spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends SpatialRelationSelect>(args: FindFirstArgs<S, SpatialRelationFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
|
|
21
|
+
spatialRelations: {
|
|
22
|
+
nodes: InferSelectResult<SpatialRelationWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends SpatialRelationSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
|
|
29
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends SpatialRelationSelect>(args: CreateArgs<S, CreateSpatialRelationInput['spatialRelation']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
|
|
34
|
+
createSpatialRelation: {
|
|
35
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends SpatialRelationSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, SpatialRelationPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
|
|
43
|
+
updateSpatialRelation: {
|
|
44
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends SpatialRelationSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
|
|
52
|
+
deleteSpatialRelation: {
|
|
53
|
+
spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpatialRelationModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class SpatialRelationModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SpatialRelation', 'spatialRelations', 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
|
+
}, 'SpatialRelationFilter', 'SpatialRelationOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'SpatialRelation',
|
|
25
|
+
fieldName: 'spatialRelations',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('SpatialRelation', 'spatialRelations', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'SpatialRelationFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'SpatialRelation',
|
|
38
|
+
fieldName: 'spatialRelations',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SpatialRelation', 'spatialRelations', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'SpatialRelationFilter', 'SpatialRelationOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'SpatialRelation',
|
|
56
|
+
fieldName: 'spatialRelation',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
spatialRelation: data.spatialRelations?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('SpatialRelation', 'createSpatialRelation', 'spatialRelation', args.select, args.data, 'CreateSpatialRelationInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'SpatialRelation',
|
|
70
|
+
fieldName: 'createSpatialRelation',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('SpatialRelation', 'updateSpatialRelation', 'spatialRelation', args.select, args.where.id, args.data, 'UpdateSpatialRelationInput', 'id', 'spatialRelationPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'SpatialRelation',
|
|
81
|
+
fieldName: 'updateSpatialRelation',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('SpatialRelation', 'deleteSpatialRelation', 'spatialRelation', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteSpatialRelationInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'SpatialRelation',
|
|
94
|
+
fieldName: 'deleteSpatialRelation',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.SpatialRelationModel = SpatialRelationModel;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UserConnectedAccount 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, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { UserConnectedAccountWithRelations, UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, CreateUserConnectedAccountInput } from '../input-types';
|
|
10
|
+
export declare class UserConnectedAccountModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends UserConnectedAccountSelect>(args: FindManyArgs<S, UserConnectedAccountFilter, UserConnectedAccountOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
16
|
+
userConnectedAccounts: ConnectionResult<InferSelectResult<UserConnectedAccountWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends UserConnectedAccountSelect>(args: FindFirstArgs<S, UserConnectedAccountFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
21
|
+
userConnectedAccounts: {
|
|
22
|
+
nodes: InferSelectResult<UserConnectedAccountWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends UserConnectedAccountSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
29
|
+
userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends UserConnectedAccountSelect>(args: CreateArgs<S, CreateUserConnectedAccountInput['userConnectedAccount']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
34
|
+
createUserConnectedAccount: {
|
|
35
|
+
userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserConnectedAccountModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class UserConnectedAccountModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('UserConnectedAccount', 'userConnectedAccounts', 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
|
+
}, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'UserConnectedAccount',
|
|
25
|
+
fieldName: 'userConnectedAccounts',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('UserConnectedAccount', 'userConnectedAccounts', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'UserConnectedAccountFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'UserConnectedAccount',
|
|
38
|
+
fieldName: 'userConnectedAccounts',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('UserConnectedAccount', 'userConnectedAccounts', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'UserConnectedAccount',
|
|
56
|
+
fieldName: 'userConnectedAccount',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('UserConnectedAccount', 'createUserConnectedAccount', 'userConnectedAccount', args.select, args.data, 'CreateUserConnectedAccountInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'UserConnectedAccount',
|
|
70
|
+
fieldName: 'createUserConnectedAccount',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.UserConnectedAccountModel = UserConnectedAccountModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebauthnCredentialsModule 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 { WebauthnCredentialsModuleWithRelations, WebauthnCredentialsModuleSelect, WebauthnCredentialsModuleFilter, WebauthnCredentialsModuleOrderBy, CreateWebauthnCredentialsModuleInput, WebauthnCredentialsModulePatch } from '../input-types';
|
|
10
|
+
export declare class WebauthnCredentialsModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends WebauthnCredentialsModuleSelect>(args: FindManyArgs<S, WebauthnCredentialsModuleFilter, WebauthnCredentialsModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
|
|
16
|
+
webauthnCredentialsModules: ConnectionResult<InferSelectResult<WebauthnCredentialsModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends WebauthnCredentialsModuleSelect>(args: FindFirstArgs<S, WebauthnCredentialsModuleFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
|
|
21
|
+
webauthnCredentialsModules: {
|
|
22
|
+
nodes: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends WebauthnCredentialsModuleSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
|
|
29
|
+
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends WebauthnCredentialsModuleSelect>(args: CreateArgs<S, CreateWebauthnCredentialsModuleInput['webauthnCredentialsModule']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
|
|
34
|
+
createWebauthnCredentialsModule: {
|
|
35
|
+
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends WebauthnCredentialsModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, WebauthnCredentialsModulePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
|
|
43
|
+
updateWebauthnCredentialsModule: {
|
|
44
|
+
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends WebauthnCredentialsModuleSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
|
|
52
|
+
deleteWebauthnCredentialsModule: {
|
|
53
|
+
webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|