@constructive-io/sdk 1.9.1 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/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,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,12 +1,12 @@
|
|
|
1
1
|
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
|
-
export class
|
|
3
|
+
export class OrgChartEdgeGrantModel {
|
|
4
4
|
client;
|
|
5
5
|
constructor(client) {
|
|
6
6
|
this.client = client;
|
|
7
7
|
}
|
|
8
8
|
findMany(args) {
|
|
9
|
-
const { document, variables } = buildFindManyDocument('
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,85 +14,85 @@ export class PlatformApiModuleModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'OrgChartEdgeGrant',
|
|
22
|
+
fieldName: 'orgChartEdgeGrants',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
30
|
orderBy: args?.orderBy,
|
|
31
|
-
}, '
|
|
31
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
32
32
|
return new QueryBuilder({
|
|
33
33
|
client: this.client,
|
|
34
34
|
operation: 'query',
|
|
35
|
-
operationName: '
|
|
36
|
-
fieldName: '
|
|
35
|
+
operationName: 'OrgChartEdgeGrant',
|
|
36
|
+
fieldName: 'orgChartEdgeGrant',
|
|
37
37
|
document,
|
|
38
38
|
variables,
|
|
39
39
|
transform: (data) => ({
|
|
40
|
-
|
|
40
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
findOne(args) {
|
|
45
|
-
const { document, variables } = buildFindManyDocument('
|
|
45
|
+
const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
46
46
|
where: {
|
|
47
47
|
id: {
|
|
48
48
|
equalTo: args.id,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
first: 1,
|
|
52
|
-
}, '
|
|
52
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
53
53
|
return new QueryBuilder({
|
|
54
54
|
client: this.client,
|
|
55
55
|
operation: 'query',
|
|
56
|
-
operationName: '
|
|
57
|
-
fieldName: '
|
|
56
|
+
operationName: 'OrgChartEdgeGrant',
|
|
57
|
+
fieldName: 'orgChartEdgeGrant',
|
|
58
58
|
document,
|
|
59
59
|
variables,
|
|
60
60
|
transform: (data) => ({
|
|
61
|
-
|
|
61
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
|
|
62
62
|
}),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
create(args) {
|
|
66
|
-
const { document, variables } = buildCreateDocument('
|
|
66
|
+
const { document, variables } = buildCreateDocument('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', connectionFieldsMap);
|
|
67
67
|
return new QueryBuilder({
|
|
68
68
|
client: this.client,
|
|
69
69
|
operation: 'mutation',
|
|
70
|
-
operationName: '
|
|
71
|
-
fieldName: '
|
|
70
|
+
operationName: 'OrgChartEdgeGrant',
|
|
71
|
+
fieldName: 'createOrgChartEdgeGrant',
|
|
72
72
|
document,
|
|
73
73
|
variables,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
|
-
const { document, variables } = buildUpdateByPkDocument('
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('OrgChartEdgeGrant', 'updateOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeGrantInput', 'id', 'orgChartEdgeGrantPatch', connectionFieldsMap, undefined);
|
|
78
78
|
return new QueryBuilder({
|
|
79
79
|
client: this.client,
|
|
80
80
|
operation: 'mutation',
|
|
81
|
-
operationName: '
|
|
82
|
-
fieldName: '
|
|
81
|
+
operationName: 'OrgChartEdgeGrant',
|
|
82
|
+
fieldName: 'updateOrgChartEdgeGrant',
|
|
83
83
|
document,
|
|
84
84
|
variables,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
delete(args) {
|
|
88
|
-
const { document, variables } = buildDeleteByPkDocument('
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', {
|
|
89
89
|
id: args.where.id,
|
|
90
|
-
}, '
|
|
90
|
+
}, 'DeleteOrgChartEdgeGrantInput', args.select, connectionFieldsMap);
|
|
91
91
|
return new QueryBuilder({
|
|
92
92
|
client: this.client,
|
|
93
93
|
operation: 'mutation',
|
|
94
|
-
operationName: '
|
|
95
|
-
fieldName: '
|
|
94
|
+
operationName: 'OrgChartEdgeGrant',
|
|
95
|
+
fieldName: 'deleteOrgChartEdgeGrant',
|
|
96
96
|
document,
|
|
97
97
|
variables,
|
|
98
98
|
});
|
|
@@ -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,55 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgGetManagersRecordModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgGetManagersRecord', 'orgGetManagers', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgGetManagersRecord',
|
|
22
|
+
fieldName: 'orgGetManagers',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgGetManagersRecord', 'orgGetManagers', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'OrgGetManagersRecord',
|
|
36
|
+
fieldName: 'orgGetManagersRecord',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
orgGetManagersRecord: data.orgGetManagers?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
create(args) {
|
|
45
|
+
const { document, variables } = buildCreateDocument('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', connectionFieldsMap);
|
|
46
|
+
return new QueryBuilder({
|
|
47
|
+
client: this.client,
|
|
48
|
+
operation: 'mutation',
|
|
49
|
+
operationName: 'OrgGetManagersRecord',
|
|
50
|
+
fieldName: 'createOrgGetManagersRecord',
|
|
51
|
+
document,
|
|
52
|
+
variables,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -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,55 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgGetSubordinatesRecordModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgGetSubordinatesRecord', 'orgGetSubordinates', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
22
|
+
fieldName: 'orgGetSubordinates',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgGetSubordinatesRecord', 'orgGetSubordinates', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
36
|
+
fieldName: 'orgGetSubordinatesRecord',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
orgGetSubordinatesRecord: data.orgGetSubordinates?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
create(args) {
|
|
45
|
+
const { document, variables } = buildCreateDocument('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', connectionFieldsMap);
|
|
46
|
+
return new QueryBuilder({
|
|
47
|
+
client: this.client,
|
|
48
|
+
operation: 'mutation',
|
|
49
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
50
|
+
fieldName: 'createOrgGetSubordinatesRecord',
|
|
51
|
+
document,
|
|
52
|
+
variables,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -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<{
|
|
@@ -62,6 +62,30 @@ export function createQueryOperations(client) {
|
|
|
62
62
|
},
|
|
63
63
|
], connectionFieldsMap, undefined),
|
|
64
64
|
}),
|
|
65
|
+
orgIsManagerOf: (args, options) => new QueryBuilder({
|
|
66
|
+
client,
|
|
67
|
+
operation: 'query',
|
|
68
|
+
operationName: 'OrgIsManagerOf',
|
|
69
|
+
fieldName: 'orgIsManagerOf',
|
|
70
|
+
...buildCustomDocument('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
|
|
71
|
+
{
|
|
72
|
+
name: 'managerId',
|
|
73
|
+
type: 'UUID',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'maxDepth',
|
|
77
|
+
type: 'Int',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'targetEntityId',
|
|
81
|
+
type: 'UUID',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'userId',
|
|
85
|
+
type: 'UUID',
|
|
86
|
+
},
|
|
87
|
+
], connectionFieldsMap, undefined),
|
|
88
|
+
}),
|
|
65
89
|
orgPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
66
90
|
client,
|
|
67
91
|
operation: 'query',
|
package/esm/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/esm/api/orm/index.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from './client';
|
|
7
7
|
import { ApiModel } from './models/api';
|
|
8
|
-
import { ApiModuleModel } from './models/apiModule';
|
|
9
8
|
import { ApiSchemaModel } from './models/apiSchema';
|
|
10
9
|
import { ApiSettingModel } from './models/apiSetting';
|
|
11
10
|
import { AstMigrationModel } from './models/astMigration';
|
|
@@ -18,6 +17,7 @@ import { DatabaseTransferModel } from './models/databaseTransfer';
|
|
|
18
17
|
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
|
|
19
18
|
import { DomainModel } from './models/domain';
|
|
20
19
|
import { DomainEventModel } from './models/domainEvent';
|
|
20
|
+
import { DomainTypeModel } from './models/domainType';
|
|
21
21
|
import { DomainVerificationModel } from './models/domainVerification';
|
|
22
22
|
import { EmbeddingChunkModel } from './models/embeddingChunk';
|
|
23
23
|
import { EnumModel } from './models/enum';
|
|
@@ -33,7 +33,6 @@ import { ManagedDomainModel } from './models/managedDomain';
|
|
|
33
33
|
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
|
|
34
34
|
import { PartitionModel } from './models/partition';
|
|
35
35
|
import { PlatformApiModel } from './models/platformApi';
|
|
36
|
-
import { PlatformApiModuleModel } from './models/platformApiModule';
|
|
37
36
|
import { PlatformApiSchemaModel } from './models/platformApiSchema';
|
|
38
37
|
import { PlatformApiSettingModel } from './models/platformApiSetting';
|
|
39
38
|
import { PlatformCorsSettingModel } from './models/platformCorsSetting';
|
|
@@ -104,7 +103,6 @@ export function createClient(config) {
|
|
|
104
103
|
const client = new OrmClient(config);
|
|
105
104
|
return {
|
|
106
105
|
api: new ApiModel(client),
|
|
107
|
-
apiModule: new ApiModuleModel(client),
|
|
108
106
|
apiSchema: new ApiSchemaModel(client),
|
|
109
107
|
apiSetting: new ApiSettingModel(client),
|
|
110
108
|
astMigration: new AstMigrationModel(client),
|
|
@@ -117,6 +115,7 @@ export function createClient(config) {
|
|
|
117
115
|
defaultPrivilege: new DefaultPrivilegeModel(client),
|
|
118
116
|
domain: new DomainModel(client),
|
|
119
117
|
domainEvent: new DomainEventModel(client),
|
|
118
|
+
domainType: new DomainTypeModel(client),
|
|
120
119
|
domainVerification: new DomainVerificationModel(client),
|
|
121
120
|
embeddingChunk: new EmbeddingChunkModel(client),
|
|
122
121
|
enum: new EnumModel(client),
|
|
@@ -132,7 +131,6 @@ export function createClient(config) {
|
|
|
132
131
|
nodeTypeRegistry: new NodeTypeRegistryModel(client),
|
|
133
132
|
partition: new PartitionModel(client),
|
|
134
133
|
platformApi: new PlatformApiModel(client),
|
|
135
|
-
platformApiModule: new PlatformApiModuleModel(client),
|
|
136
134
|
platformApiSchema: new PlatformApiSchemaModel(client),
|
|
137
135
|
platformApiSetting: new PlatformApiSettingModel(client),
|
|
138
136
|
platformCorsSetting: new PlatformCorsSettingModel(client),
|