@constructive-io/sdk 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/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/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/compute/orm/input-types.d.ts +42 -3
- 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/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/compute/orm/input-types.d.ts +42 -3
- package/esm/modules/orm/input-types.d.ts +9 -16
- package/modules/orm/input-types.d.ts +9 -16
- package/package.json +5 -5
- package/api/orm/models/apiModule.d.ts +0 -54
- package/api/orm/models/platformApiModule.d.ts +0 -54
- package/esm/api/orm/models/apiModule.d.ts +0 -54
- package/esm/api/orm/models/platformApiModule.d.ts +0 -54
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgChartEdgeModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgChartEdgeModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgChartEdge', 'orgChartEdges', 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
|
+
}, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgChartEdge',
|
|
25
|
+
fieldName: 'orgChartEdges',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'OrgChartEdge',
|
|
39
|
+
fieldName: 'orgChartEdge',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'OrgChartEdge',
|
|
60
|
+
fieldName: 'orgChartEdge',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgChartEdge', 'createOrgChartEdge', 'orgChartEdge', args.select, args.data, 'CreateOrgChartEdgeInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'OrgChartEdge',
|
|
74
|
+
fieldName: 'createOrgChartEdge',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgChartEdge', 'updateOrgChartEdge', 'orgChartEdge', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeInput', 'id', 'orgChartEdgePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'OrgChartEdge',
|
|
85
|
+
fieldName: 'updateOrgChartEdge',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgChartEdge', 'deleteOrgChartEdge', 'orgChartEdge', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteOrgChartEdgeInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'OrgChartEdge',
|
|
98
|
+
fieldName: 'deleteOrgChartEdge',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.OrgChartEdgeModel = OrgChartEdgeModel;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgChartEdgeGrant 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 { OrgChartEdgeGrantWithRelations, OrgChartEdgeGrantSelect, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy, CreateOrgChartEdgeGrantInput, OrgChartEdgeGrantPatch } from '../input-types';
|
|
10
|
+
export declare class OrgChartEdgeGrantModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgChartEdgeGrantSelect>(args: FindManyArgs<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
16
|
+
orgChartEdgeGrants: ConnectionResult<InferSelectResult<OrgChartEdgeGrantWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgChartEdgeGrantSelect>(args: FindFirstArgs<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
21
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends OrgChartEdgeGrantSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
27
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends OrgChartEdgeGrantSelect>(args: CreateArgs<S, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
32
|
+
createOrgChartEdgeGrant: {
|
|
33
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends OrgChartEdgeGrantSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, OrgChartEdgeGrantPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
41
|
+
updateOrgChartEdgeGrant: {
|
|
42
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends OrgChartEdgeGrantSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
50
|
+
deleteOrgChartEdgeGrant: {
|
|
51
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OrgChartEdgeGrantModel = void 0;
|
|
4
4
|
const query_builder_1 = require("../query-builder");
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
|
-
class
|
|
6
|
+
class OrgChartEdgeGrantModel {
|
|
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)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
13
13
|
where: args?.where,
|
|
14
14
|
orderBy: args?.orderBy,
|
|
15
15
|
first: args?.first,
|
|
@@ -17,88 +17,88 @@ class PlatformApiModuleModel {
|
|
|
17
17
|
after: args?.after,
|
|
18
18
|
before: args?.before,
|
|
19
19
|
offset: args?.offset,
|
|
20
|
-
}, '
|
|
20
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', 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: 'OrgChartEdgeGrant',
|
|
25
|
+
fieldName: 'orgChartEdgeGrants',
|
|
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)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
32
32
|
where: args?.where,
|
|
33
33
|
orderBy: args?.orderBy,
|
|
34
|
-
}, '
|
|
34
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', 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: 'OrgChartEdgeGrant',
|
|
39
|
+
fieldName: 'orgChartEdgeGrant',
|
|
40
40
|
document,
|
|
41
41
|
variables,
|
|
42
42
|
transform: (data) => ({
|
|
43
|
-
|
|
43
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.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)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
49
49
|
where: {
|
|
50
50
|
id: {
|
|
51
51
|
equalTo: args.id,
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
first: 1,
|
|
55
|
-
}, '
|
|
55
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', 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: 'OrgChartEdgeGrant',
|
|
60
|
+
fieldName: 'orgChartEdgeGrant',
|
|
61
61
|
document,
|
|
62
62
|
variables,
|
|
63
63
|
transform: (data) => ({
|
|
64
|
-
|
|
64
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.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)('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', 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: 'OrgChartEdgeGrant',
|
|
74
|
+
fieldName: 'createOrgChartEdgeGrant',
|
|
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)('OrgChartEdgeGrant', 'updateOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeGrantInput', 'id', 'orgChartEdgeGrantPatch', 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: 'OrgChartEdgeGrant',
|
|
85
|
+
fieldName: 'updateOrgChartEdgeGrant',
|
|
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)('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', {
|
|
92
92
|
id: args.where.id,
|
|
93
|
-
}, '
|
|
93
|
+
}, 'DeleteOrgChartEdgeGrantInput', 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: 'OrgChartEdgeGrant',
|
|
98
|
+
fieldName: 'deleteOrgChartEdgeGrant',
|
|
99
99
|
document,
|
|
100
100
|
variables,
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
exports.
|
|
104
|
+
exports.OrgChartEdgeGrantModel = OrgChartEdgeGrantModel;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgGetManagersRecord 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 { OrgGetManagersRecordWithRelations, OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, CreateOrgGetManagersRecordInput } from '../input-types';
|
|
10
|
+
export declare class OrgGetManagersRecordModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgGetManagersRecordSelect>(args: FindManyArgs<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
16
|
+
orgGetManagers: ConnectionResult<InferSelectResult<OrgGetManagersRecordWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgGetManagersRecordSelect>(args: FindFirstArgs<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
create<S extends OrgGetManagersRecordSelect>(args: CreateArgs<S, CreateOrgGetManagersRecordInput['orgGetManagersRecord']> & {
|
|
24
|
+
select: S;
|
|
25
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
26
|
+
createOrgGetManagersRecord: {
|
|
27
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgGetManagersRecordModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgGetManagersRecordModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgGetManagersRecord', 'orgGetManagers', 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
|
+
}, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgGetManagersRecord',
|
|
25
|
+
fieldName: 'orgGetManagers',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgGetManagersRecord', 'orgGetManagers', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'OrgGetManagersRecord',
|
|
39
|
+
fieldName: 'orgGetManagersRecord',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
orgGetManagersRecord: data.orgGetManagers?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
create(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', input_types_1.connectionFieldsMap);
|
|
49
|
+
return new query_builder_1.QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'mutation',
|
|
52
|
+
operationName: 'OrgGetManagersRecord',
|
|
53
|
+
fieldName: 'createOrgGetManagersRecord',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.OrgGetManagersRecordModel = OrgGetManagersRecordModel;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgGetSubordinatesRecord 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 { OrgGetSubordinatesRecordWithRelations, OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, CreateOrgGetSubordinatesRecordInput } from '../input-types';
|
|
10
|
+
export declare class OrgGetSubordinatesRecordModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgGetSubordinatesRecordSelect>(args: FindManyArgs<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
16
|
+
orgGetSubordinates: ConnectionResult<InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgGetSubordinatesRecordSelect>(args: FindFirstArgs<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
create<S extends OrgGetSubordinatesRecordSelect>(args: CreateArgs<S, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']> & {
|
|
24
|
+
select: S;
|
|
25
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
26
|
+
createOrgGetSubordinatesRecord: {
|
|
27
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgGetSubordinatesRecordModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgGetSubordinatesRecordModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgGetSubordinatesRecord', 'orgGetSubordinates', 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
|
+
}, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
25
|
+
fieldName: 'orgGetSubordinates',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgGetSubordinatesRecord', 'orgGetSubordinates', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
39
|
+
fieldName: 'orgGetSubordinatesRecord',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
orgGetSubordinatesRecord: data.orgGetSubordinates?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
create(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', input_types_1.connectionFieldsMap);
|
|
49
|
+
return new query_builder_1.QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'mutation',
|
|
52
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
53
|
+
fieldName: 'createOrgGetSubordinatesRecord',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.OrgGetSubordinatesRecordModel = OrgGetSubordinatesRecordModel;
|
|
@@ -27,6 +27,12 @@ export interface AppPermissionsGetMaskByNamesVariables {
|
|
|
27
27
|
export interface AppPermissionsGetPaddedMaskVariables {
|
|
28
28
|
mask?: string;
|
|
29
29
|
}
|
|
30
|
+
export interface OrgIsManagerOfVariables {
|
|
31
|
+
managerId?: string;
|
|
32
|
+
maxDepth?: number;
|
|
33
|
+
targetEntityId?: string;
|
|
34
|
+
userId?: string;
|
|
35
|
+
}
|
|
30
36
|
export interface OrgPermissionsGetByMaskVariables {
|
|
31
37
|
/** Read all values in the set after (below) this cursor. */
|
|
32
38
|
after?: string;
|
|
@@ -69,6 +75,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
69
75
|
}) => QueryBuilder<{
|
|
70
76
|
appPermissionsGetPaddedMask: string | null;
|
|
71
77
|
}>;
|
|
78
|
+
orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
|
|
79
|
+
select?: Record<string, unknown>;
|
|
80
|
+
}) => QueryBuilder<{
|
|
81
|
+
orgIsManagerOf: boolean | null;
|
|
82
|
+
}>;
|
|
72
83
|
orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
|
|
73
84
|
select?: Record<string, unknown>;
|
|
74
85
|
}) => QueryBuilder<{
|
package/admin/orm/query/index.js
CHANGED
|
@@ -65,6 +65,30 @@ function createQueryOperations(client) {
|
|
|
65
65
|
},
|
|
66
66
|
], input_types_1.connectionFieldsMap, undefined),
|
|
67
67
|
}),
|
|
68
|
+
orgIsManagerOf: (args, options) => new query_builder_1.QueryBuilder({
|
|
69
|
+
client,
|
|
70
|
+
operation: 'query',
|
|
71
|
+
operationName: 'OrgIsManagerOf',
|
|
72
|
+
fieldName: 'orgIsManagerOf',
|
|
73
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
|
|
74
|
+
{
|
|
75
|
+
name: 'managerId',
|
|
76
|
+
type: 'UUID',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'maxDepth',
|
|
80
|
+
type: 'Int',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'targetEntityId',
|
|
84
|
+
type: 'UUID',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'userId',
|
|
88
|
+
type: 'UUID',
|
|
89
|
+
},
|
|
90
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
91
|
+
}),
|
|
68
92
|
orgPermissionsGetByMask: (args, options) => new query_builder_1.QueryBuilder({
|
|
69
93
|
client,
|
|
70
94
|
operation: 'query',
|
package/api/orm/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { OrmClientConfig } from './client';
|
|
2
2
|
import { ApiModel } from './models/api';
|
|
3
|
-
import { ApiModuleModel } from './models/apiModule';
|
|
4
3
|
import { ApiSchemaModel } from './models/apiSchema';
|
|
5
4
|
import { ApiSettingModel } from './models/apiSetting';
|
|
6
5
|
import { AstMigrationModel } from './models/astMigration';
|
|
@@ -13,6 +12,7 @@ import { DatabaseTransferModel } from './models/databaseTransfer';
|
|
|
13
12
|
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
|
|
14
13
|
import { DomainModel } from './models/domain';
|
|
15
14
|
import { DomainEventModel } from './models/domainEvent';
|
|
15
|
+
import { DomainTypeModel } from './models/domainType';
|
|
16
16
|
import { DomainVerificationModel } from './models/domainVerification';
|
|
17
17
|
import { EmbeddingChunkModel } from './models/embeddingChunk';
|
|
18
18
|
import { EnumModel } from './models/enum';
|
|
@@ -28,7 +28,6 @@ import { ManagedDomainModel } from './models/managedDomain';
|
|
|
28
28
|
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
|
|
29
29
|
import { PartitionModel } from './models/partition';
|
|
30
30
|
import { PlatformApiModel } from './models/platformApi';
|
|
31
|
-
import { PlatformApiModuleModel } from './models/platformApiModule';
|
|
32
31
|
import { PlatformApiSchemaModel } from './models/platformApiSchema';
|
|
33
32
|
import { PlatformApiSettingModel } from './models/platformApiSetting';
|
|
34
33
|
import { PlatformCorsSettingModel } from './models/platformCorsSetting';
|
|
@@ -96,7 +95,6 @@ export { createMutationOperations } from './mutation';
|
|
|
96
95
|
*/
|
|
97
96
|
export declare function createClient(config: OrmClientConfig): {
|
|
98
97
|
api: ApiModel;
|
|
99
|
-
apiModule: ApiModuleModel;
|
|
100
98
|
apiSchema: ApiSchemaModel;
|
|
101
99
|
apiSetting: ApiSettingModel;
|
|
102
100
|
astMigration: AstMigrationModel;
|
|
@@ -109,6 +107,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
109
107
|
defaultPrivilege: DefaultPrivilegeModel;
|
|
110
108
|
domain: DomainModel;
|
|
111
109
|
domainEvent: DomainEventModel;
|
|
110
|
+
domainType: DomainTypeModel;
|
|
112
111
|
domainVerification: DomainVerificationModel;
|
|
113
112
|
embeddingChunk: EmbeddingChunkModel;
|
|
114
113
|
enum: EnumModel;
|
|
@@ -124,7 +123,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
124
123
|
nodeTypeRegistry: NodeTypeRegistryModel;
|
|
125
124
|
partition: PartitionModel;
|
|
126
125
|
platformApi: PlatformApiModel;
|
|
127
|
-
platformApiModule: PlatformApiModuleModel;
|
|
128
126
|
platformApiSchema: PlatformApiSchemaModel;
|
|
129
127
|
platformApiSetting: PlatformApiSettingModel;
|
|
130
128
|
platformCorsSetting: PlatformCorsSettingModel;
|
package/api/orm/index.js
CHANGED
|
@@ -23,7 +23,6 @@ exports.createClient = createClient;
|
|
|
23
23
|
*/
|
|
24
24
|
const client_1 = require("./client");
|
|
25
25
|
const api_1 = require("./models/api");
|
|
26
|
-
const apiModule_1 = require("./models/apiModule");
|
|
27
26
|
const apiSchema_1 = require("./models/apiSchema");
|
|
28
27
|
const apiSetting_1 = require("./models/apiSetting");
|
|
29
28
|
const astMigration_1 = require("./models/astMigration");
|
|
@@ -36,6 +35,7 @@ const databaseTransfer_1 = require("./models/databaseTransfer");
|
|
|
36
35
|
const defaultPrivilege_1 = require("./models/defaultPrivilege");
|
|
37
36
|
const domain_1 = require("./models/domain");
|
|
38
37
|
const domainEvent_1 = require("./models/domainEvent");
|
|
38
|
+
const domainType_1 = require("./models/domainType");
|
|
39
39
|
const domainVerification_1 = require("./models/domainVerification");
|
|
40
40
|
const embeddingChunk_1 = require("./models/embeddingChunk");
|
|
41
41
|
const enum_1 = require("./models/enum");
|
|
@@ -51,7 +51,6 @@ const managedDomain_1 = require("./models/managedDomain");
|
|
|
51
51
|
const nodeTypeRegistry_1 = require("./models/nodeTypeRegistry");
|
|
52
52
|
const partition_1 = require("./models/partition");
|
|
53
53
|
const platformApi_1 = require("./models/platformApi");
|
|
54
|
-
const platformApiModule_1 = require("./models/platformApiModule");
|
|
55
54
|
const platformApiSchema_1 = require("./models/platformApiSchema");
|
|
56
55
|
const platformApiSetting_1 = require("./models/platformApiSetting");
|
|
57
56
|
const platformCorsSetting_1 = require("./models/platformCorsSetting");
|
|
@@ -127,7 +126,6 @@ function createClient(config) {
|
|
|
127
126
|
const client = new client_1.OrmClient(config);
|
|
128
127
|
return {
|
|
129
128
|
api: new api_1.ApiModel(client),
|
|
130
|
-
apiModule: new apiModule_1.ApiModuleModel(client),
|
|
131
129
|
apiSchema: new apiSchema_1.ApiSchemaModel(client),
|
|
132
130
|
apiSetting: new apiSetting_1.ApiSettingModel(client),
|
|
133
131
|
astMigration: new astMigration_1.AstMigrationModel(client),
|
|
@@ -140,6 +138,7 @@ function createClient(config) {
|
|
|
140
138
|
defaultPrivilege: new defaultPrivilege_1.DefaultPrivilegeModel(client),
|
|
141
139
|
domain: new domain_1.DomainModel(client),
|
|
142
140
|
domainEvent: new domainEvent_1.DomainEventModel(client),
|
|
141
|
+
domainType: new domainType_1.DomainTypeModel(client),
|
|
143
142
|
domainVerification: new domainVerification_1.DomainVerificationModel(client),
|
|
144
143
|
embeddingChunk: new embeddingChunk_1.EmbeddingChunkModel(client),
|
|
145
144
|
enum: new enum_1.EnumModel(client),
|
|
@@ -155,7 +154,6 @@ function createClient(config) {
|
|
|
155
154
|
nodeTypeRegistry: new nodeTypeRegistry_1.NodeTypeRegistryModel(client),
|
|
156
155
|
partition: new partition_1.PartitionModel(client),
|
|
157
156
|
platformApi: new platformApi_1.PlatformApiModel(client),
|
|
158
|
-
platformApiModule: new platformApiModule_1.PlatformApiModuleModel(client),
|
|
159
157
|
platformApiSchema: new platformApiSchema_1.PlatformApiSchemaModel(client),
|
|
160
158
|
platformApiSetting: new platformApiSetting_1.PlatformApiSettingModel(client),
|
|
161
159
|
platformCorsSetting: new platformCorsSetting_1.PlatformCorsSettingModel(client),
|