@constructive-io/sdk 0.2.4 → 0.3.0
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 +19 -6
- package/admin/orm/index.js +14 -6
- package/admin/orm/input-types.d.ts +879 -363
- package/admin/orm/models/index.d.ts +7 -3
- package/admin/orm/models/index.js +15 -7
- package/admin/orm/models/orgChartEdge.d.ts +56 -0
- package/{public/orm/models/limitFunction.js → admin/orm/models/orgChartEdge.js} +25 -25
- package/admin/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/admin/orm/models/orgChartEdgeGrant.js +98 -0
- package/admin/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/admin/orm/models/orgGetManagersRecord.js +55 -0
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/admin/orm/query/index.d.ts +11 -0
- package/admin/orm/query/index.js +24 -0
- package/auth/orm/index.d.ts +2 -2
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +163 -128
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/esm/admin/orm/index.d.ts +19 -6
- package/esm/admin/orm/index.js +14 -6
- package/esm/admin/orm/input-types.d.ts +879 -363
- package/esm/admin/orm/models/index.d.ts +7 -3
- package/esm/admin/orm/models/index.js +7 -3
- package/esm/admin/orm/models/orgChartEdge.d.ts +56 -0
- package/esm/{public/orm/models/procedure.js → admin/orm/models/orgChartEdge.js} +23 -23
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/esm/admin/orm/models/orgChartEdgeGrant.js +94 -0
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/esm/admin/orm/models/orgGetManagersRecord.js +51 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +51 -0
- package/esm/admin/orm/query/index.d.ts +11 -0
- package/esm/admin/orm/query/index.js +24 -0
- package/esm/auth/orm/index.d.ts +2 -2
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +163 -128
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/public/orm/index.d.ts +31 -16
- package/esm/public/orm/index.js +26 -16
- package/esm/public/orm/input-types.d.ts +2255 -1110
- package/esm/public/orm/input-types.js +14 -3
- package/esm/public/orm/models/defaultPrivilege.d.ts +56 -0
- package/esm/public/orm/models/defaultPrivilege.js +94 -0
- package/esm/public/orm/models/index.d.ts +13 -8
- package/esm/public/orm/models/index.js +13 -8
- package/esm/public/orm/models/orgChartEdge.d.ts +56 -0
- package/esm/public/orm/models/{limitFunction.js → orgChartEdge.js} +23 -23
- package/esm/public/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/esm/public/orm/models/orgChartEdgeGrant.js +94 -0
- package/esm/public/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/esm/public/orm/models/orgGetManagersRecord.js +51 -0
- package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/esm/public/orm/models/orgGetSubordinatesRecord.js +51 -0
- package/esm/public/orm/models/relationProvision.d.ts +56 -0
- package/esm/public/orm/models/relationProvision.js +94 -0
- package/esm/public/orm/models/secureTableProvision.d.ts +56 -0
- package/esm/public/orm/models/secureTableProvision.js +94 -0
- package/esm/public/orm/query/index.d.ts +11 -0
- package/esm/public/orm/query/index.js +24 -0
- package/package.json +6 -6
- package/public/orm/index.d.ts +31 -16
- package/public/orm/index.js +26 -16
- package/public/orm/input-types.d.ts +2255 -1110
- package/public/orm/input-types.js +14 -3
- package/public/orm/models/defaultPrivilege.d.ts +56 -0
- package/public/orm/models/defaultPrivilege.js +98 -0
- package/public/orm/models/index.d.ts +13 -8
- package/public/orm/models/index.js +29 -18
- package/public/orm/models/orgChartEdge.d.ts +56 -0
- package/public/orm/models/{procedure.js → orgChartEdge.js} +25 -25
- package/public/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/public/orm/models/orgChartEdgeGrant.js +98 -0
- package/public/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/public/orm/models/orgGetManagersRecord.js +55 -0
- package/public/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/public/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/public/orm/models/relationProvision.d.ts +56 -0
- package/public/orm/models/relationProvision.js +98 -0
- package/public/orm/models/secureTableProvision.d.ts +56 -0
- package/public/orm/models/secureTableProvision.js +98 -0
- package/public/orm/query/index.d.ts +11 -0
- package/public/orm/query/index.js +24 -0
- package/esm/public/orm/models/limitFunction.d.ts +0 -56
- package/esm/public/orm/models/procedure.d.ts +0 -56
- package/public/orm/models/limitFunction.d.ts +0 -56
- package/public/orm/models/procedure.d.ts +0 -56
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
7
|
+
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
6
8
|
export { AppPermissionModel } from './appPermission';
|
|
7
9
|
export { OrgPermissionModel } from './orgPermission';
|
|
8
10
|
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
@@ -11,11 +13,12 @@ export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
|
11
13
|
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
12
14
|
export { AppAdminGrantModel } from './appAdminGrant';
|
|
13
15
|
export { AppOwnerGrantModel } from './appOwnerGrant';
|
|
14
|
-
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
15
|
-
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
16
16
|
export { OrgAdminGrantModel } from './orgAdminGrant';
|
|
17
17
|
export { OrgOwnerGrantModel } from './orgOwnerGrant';
|
|
18
|
+
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
19
|
+
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
18
20
|
export { MembershipTypeModel } from './membershipType';
|
|
21
|
+
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
19
22
|
export { AppLimitModel } from './appLimit';
|
|
20
23
|
export { AppAchievementModel } from './appAchievement';
|
|
21
24
|
export { AppStepModel } from './appStep';
|
|
@@ -25,9 +28,10 @@ export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
|
25
28
|
export { OrgLimitModel } from './orgLimit';
|
|
26
29
|
export { OrgClaimedInviteModel } from './orgClaimedInvite';
|
|
27
30
|
export { OrgGrantModel } from './orgGrant';
|
|
31
|
+
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
28
32
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
29
|
-
export { AppLevelModel } from './appLevel';
|
|
30
33
|
export { InviteModel } from './invite';
|
|
34
|
+
export { AppLevelModel } from './appLevel';
|
|
31
35
|
export { AppMembershipModel } from './appMembership';
|
|
32
36
|
export { OrgMembershipModel } from './orgMembership';
|
|
33
37
|
export { OrgInviteModel } from './orgInvite';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrgInviteModel = exports.OrgMembershipModel = exports.AppMembershipModel = exports.
|
|
3
|
+
exports.OrgInviteModel = exports.OrgMembershipModel = exports.AppMembershipModel = exports.AppLevelModel = exports.InviteModel = exports.OrgMembershipDefaultModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgClaimedInviteModel = exports.OrgLimitModel = exports.AppMembershipDefaultModel = exports.AppGrantModel = exports.ClaimedInviteModel = exports.AppStepModel = exports.AppAchievementModel = exports.AppLimitModel = exports.OrgChartEdgeGrantModel = exports.MembershipTypeModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.OrgPermissionDefaultModel = exports.AppPermissionDefaultModel = exports.OrgMemberModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
7
7
|
* DO NOT EDIT - changes will be overwritten
|
|
8
8
|
*/
|
|
9
|
+
var orgGetManagersRecord_1 = require("./orgGetManagersRecord");
|
|
10
|
+
Object.defineProperty(exports, "OrgGetManagersRecordModel", { enumerable: true, get: function () { return orgGetManagersRecord_1.OrgGetManagersRecordModel; } });
|
|
11
|
+
var orgGetSubordinatesRecord_1 = require("./orgGetSubordinatesRecord");
|
|
12
|
+
Object.defineProperty(exports, "OrgGetSubordinatesRecordModel", { enumerable: true, get: function () { return orgGetSubordinatesRecord_1.OrgGetSubordinatesRecordModel; } });
|
|
9
13
|
var appPermission_1 = require("./appPermission");
|
|
10
14
|
Object.defineProperty(exports, "AppPermissionModel", { enumerable: true, get: function () { return appPermission_1.AppPermissionModel; } });
|
|
11
15
|
var orgPermission_1 = require("./orgPermission");
|
|
@@ -22,16 +26,18 @@ var appAdminGrant_1 = require("./appAdminGrant");
|
|
|
22
26
|
Object.defineProperty(exports, "AppAdminGrantModel", { enumerable: true, get: function () { return appAdminGrant_1.AppAdminGrantModel; } });
|
|
23
27
|
var appOwnerGrant_1 = require("./appOwnerGrant");
|
|
24
28
|
Object.defineProperty(exports, "AppOwnerGrantModel", { enumerable: true, get: function () { return appOwnerGrant_1.AppOwnerGrantModel; } });
|
|
25
|
-
var appLimitDefault_1 = require("./appLimitDefault");
|
|
26
|
-
Object.defineProperty(exports, "AppLimitDefaultModel", { enumerable: true, get: function () { return appLimitDefault_1.AppLimitDefaultModel; } });
|
|
27
|
-
var orgLimitDefault_1 = require("./orgLimitDefault");
|
|
28
|
-
Object.defineProperty(exports, "OrgLimitDefaultModel", { enumerable: true, get: function () { return orgLimitDefault_1.OrgLimitDefaultModel; } });
|
|
29
29
|
var orgAdminGrant_1 = require("./orgAdminGrant");
|
|
30
30
|
Object.defineProperty(exports, "OrgAdminGrantModel", { enumerable: true, get: function () { return orgAdminGrant_1.OrgAdminGrantModel; } });
|
|
31
31
|
var orgOwnerGrant_1 = require("./orgOwnerGrant");
|
|
32
32
|
Object.defineProperty(exports, "OrgOwnerGrantModel", { enumerable: true, get: function () { return orgOwnerGrant_1.OrgOwnerGrantModel; } });
|
|
33
|
+
var appLimitDefault_1 = require("./appLimitDefault");
|
|
34
|
+
Object.defineProperty(exports, "AppLimitDefaultModel", { enumerable: true, get: function () { return appLimitDefault_1.AppLimitDefaultModel; } });
|
|
35
|
+
var orgLimitDefault_1 = require("./orgLimitDefault");
|
|
36
|
+
Object.defineProperty(exports, "OrgLimitDefaultModel", { enumerable: true, get: function () { return orgLimitDefault_1.OrgLimitDefaultModel; } });
|
|
33
37
|
var membershipType_1 = require("./membershipType");
|
|
34
38
|
Object.defineProperty(exports, "MembershipTypeModel", { enumerable: true, get: function () { return membershipType_1.MembershipTypeModel; } });
|
|
39
|
+
var orgChartEdgeGrant_1 = require("./orgChartEdgeGrant");
|
|
40
|
+
Object.defineProperty(exports, "OrgChartEdgeGrantModel", { enumerable: true, get: function () { return orgChartEdgeGrant_1.OrgChartEdgeGrantModel; } });
|
|
35
41
|
var appLimit_1 = require("./appLimit");
|
|
36
42
|
Object.defineProperty(exports, "AppLimitModel", { enumerable: true, get: function () { return appLimit_1.AppLimitModel; } });
|
|
37
43
|
var appAchievement_1 = require("./appAchievement");
|
|
@@ -50,12 +56,14 @@ var orgClaimedInvite_1 = require("./orgClaimedInvite");
|
|
|
50
56
|
Object.defineProperty(exports, "OrgClaimedInviteModel", { enumerable: true, get: function () { return orgClaimedInvite_1.OrgClaimedInviteModel; } });
|
|
51
57
|
var orgGrant_1 = require("./orgGrant");
|
|
52
58
|
Object.defineProperty(exports, "OrgGrantModel", { enumerable: true, get: function () { return orgGrant_1.OrgGrantModel; } });
|
|
59
|
+
var orgChartEdge_1 = require("./orgChartEdge");
|
|
60
|
+
Object.defineProperty(exports, "OrgChartEdgeModel", { enumerable: true, get: function () { return orgChartEdge_1.OrgChartEdgeModel; } });
|
|
53
61
|
var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
54
62
|
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
55
|
-
var appLevel_1 = require("./appLevel");
|
|
56
|
-
Object.defineProperty(exports, "AppLevelModel", { enumerable: true, get: function () { return appLevel_1.AppLevelModel; } });
|
|
57
63
|
var invite_1 = require("./invite");
|
|
58
64
|
Object.defineProperty(exports, "InviteModel", { enumerable: true, get: function () { return invite_1.InviteModel; } });
|
|
65
|
+
var appLevel_1 = require("./appLevel");
|
|
66
|
+
Object.defineProperty(exports, "AppLevelModel", { enumerable: true, get: function () { return appLevel_1.AppLevelModel; } });
|
|
59
67
|
var appMembership_1 = require("./appMembership");
|
|
60
68
|
Object.defineProperty(exports, "AppMembershipModel", { enumerable: true, get: function () { return appMembership_1.AppMembershipModel; } });
|
|
61
69
|
var orgMembership_1 = require("./orgMembership");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgChartEdge 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 { OrgChartEdgeWithRelations, OrgChartEdgeSelect, OrgChartEdgeFilter, OrgChartEdgeOrderBy, CreateOrgChartEdgeInput, OrgChartEdgePatch } from '../input-types';
|
|
10
|
+
export declare class OrgChartEdgeModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgChartEdgeSelect>(args: FindManyArgs<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
16
|
+
orgChartEdges: ConnectionResult<InferSelectResult<OrgChartEdgeWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgChartEdgeSelect>(args: FindFirstArgs<S, OrgChartEdgeFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
21
|
+
orgChartEdges: {
|
|
22
|
+
nodes: InferSelectResult<OrgChartEdgeWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends OrgChartEdgeSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
29
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends OrgChartEdgeSelect>(args: CreateArgs<S, CreateOrgChartEdgeInput['orgChartEdge']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
34
|
+
createOrgChartEdge: {
|
|
35
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends OrgChartEdgeSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, OrgChartEdgePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
43
|
+
updateOrgChartEdge: {
|
|
44
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends OrgChartEdgeSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
52
|
+
deleteOrgChartEdge: {
|
|
53
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OrgChartEdgeModel = void 0;
|
|
4
4
|
const query_builder_1 = require("../query-builder");
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
|
-
class
|
|
6
|
+
class OrgChartEdgeModel {
|
|
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)('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
13
13
|
where: args?.where,
|
|
14
14
|
orderBy: args?.orderBy,
|
|
15
15
|
first: args?.first,
|
|
@@ -17,82 +17,82 @@ class LimitFunctionModel {
|
|
|
17
17
|
after: args?.after,
|
|
18
18
|
before: args?.before,
|
|
19
19
|
offset: args?.offset,
|
|
20
|
-
}, '
|
|
20
|
+
}, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', 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: 'OrgChartEdge',
|
|
25
|
+
fieldName: 'orgChartEdges',
|
|
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)('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
32
32
|
where: args?.where,
|
|
33
|
-
}, '
|
|
33
|
+
}, 'OrgChartEdgeFilter', 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: 'OrgChartEdge',
|
|
38
|
+
fieldName: 'orgChartEdges',
|
|
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)('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
45
45
|
where: {
|
|
46
46
|
id: {
|
|
47
47
|
equalTo: args.id,
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
first: 1,
|
|
51
|
-
}, '
|
|
51
|
+
}, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', 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: 'OrgChartEdge',
|
|
56
|
+
fieldName: 'orgChartEdge',
|
|
57
57
|
document,
|
|
58
58
|
variables,
|
|
59
59
|
transform: (data) => ({
|
|
60
|
-
|
|
60
|
+
orgChartEdge: data.orgChartEdges?.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)('OrgChartEdge', 'createOrgChartEdge', 'orgChartEdge', args.select, args.data, 'CreateOrgChartEdgeInput', 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: 'OrgChartEdge',
|
|
70
|
+
fieldName: 'createOrgChartEdge',
|
|
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)('OrgChartEdge', 'updateOrgChartEdge', 'orgChartEdge', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeInput', 'id', 'orgChartEdgePatch', 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: 'OrgChartEdge',
|
|
81
|
+
fieldName: 'updateOrgChartEdge',
|
|
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)('OrgChartEdge', 'deleteOrgChartEdge', 'orgChartEdge', args.where.id, 'DeleteOrgChartEdgeInput', 'id', args.select, input_types_1.connectionFieldsMap);
|
|
88
88
|
return new query_builder_1.QueryBuilder({
|
|
89
89
|
client: this.client,
|
|
90
90
|
operation: 'mutation',
|
|
91
|
-
operationName: '
|
|
92
|
-
fieldName: '
|
|
91
|
+
operationName: 'OrgChartEdge',
|
|
92
|
+
fieldName: 'deleteOrgChartEdge',
|
|
93
93
|
document,
|
|
94
94
|
variables,
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
exports.
|
|
98
|
+
exports.OrgChartEdgeModel = OrgChartEdgeModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
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> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
21
|
+
orgChartEdgeGrants: {
|
|
22
|
+
nodes: InferSelectResult<OrgChartEdgeGrantWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends OrgChartEdgeGrantSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
29
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends OrgChartEdgeGrantSelect>(args: CreateArgs<S, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
34
|
+
createOrgChartEdgeGrant: {
|
|
35
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends OrgChartEdgeGrantSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, OrgChartEdgeGrantPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
43
|
+
updateOrgChartEdgeGrant: {
|
|
44
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends OrgChartEdgeGrantSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
52
|
+
deleteOrgChartEdgeGrant: {
|
|
53
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgChartEdgeGrantModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgChartEdgeGrantModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgChartEdgeGrant', 'orgChartEdgeGrants', 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
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgChartEdgeGrant',
|
|
25
|
+
fieldName: 'orgChartEdgeGrants',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'OrgChartEdgeGrantFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'OrgChartEdgeGrant',
|
|
38
|
+
fieldName: 'orgChartEdgeGrants',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'OrgChartEdgeGrant',
|
|
56
|
+
fieldName: 'orgChartEdgeGrant',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'OrgChartEdgeGrant',
|
|
70
|
+
fieldName: 'createOrgChartEdgeGrant',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
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);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'OrgChartEdgeGrant',
|
|
81
|
+
fieldName: 'updateOrgChartEdgeGrant',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', args.where.id, 'DeleteOrgChartEdgeGrantInput', 'id', args.select, input_types_1.connectionFieldsMap);
|
|
88
|
+
return new query_builder_1.QueryBuilder({
|
|
89
|
+
client: this.client,
|
|
90
|
+
operation: 'mutation',
|
|
91
|
+
operationName: 'OrgChartEdgeGrant',
|
|
92
|
+
fieldName: 'deleteOrgChartEdgeGrant',
|
|
93
|
+
document,
|
|
94
|
+
variables,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.OrgChartEdgeGrantModel = OrgChartEdgeGrantModel;
|
|
@@ -0,0 +1,32 @@
|
|
|
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> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetManagers: {
|
|
22
|
+
nodes: InferSelectResult<OrgGetManagersRecordWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
create<S extends OrgGetManagersRecordSelect>(args: CreateArgs<S, CreateOrgGetManagersRecordInput['orgGetManagersRecord']> & {
|
|
26
|
+
select: S;
|
|
27
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
28
|
+
createOrgGetManagersRecord: {
|
|
29
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}, 'OrgGetManagersRecordFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'OrgGetManagersRecord',
|
|
38
|
+
fieldName: 'orgGetManagers',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
create(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', input_types_1.connectionFieldsMap);
|
|
45
|
+
return new query_builder_1.QueryBuilder({
|
|
46
|
+
client: this.client,
|
|
47
|
+
operation: 'mutation',
|
|
48
|
+
operationName: 'OrgGetManagersRecord',
|
|
49
|
+
fieldName: 'createOrgGetManagersRecord',
|
|
50
|
+
document,
|
|
51
|
+
variables,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.OrgGetManagersRecordModel = OrgGetManagersRecordModel;
|
|
@@ -0,0 +1,32 @@
|
|
|
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> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetSubordinates: {
|
|
22
|
+
nodes: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
create<S extends OrgGetSubordinatesRecordSelect>(args: CreateArgs<S, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']> & {
|
|
26
|
+
select: S;
|
|
27
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
28
|
+
createOrgGetSubordinatesRecord: {
|
|
29
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}, 'OrgGetSubordinatesRecordFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
38
|
+
fieldName: 'orgGetSubordinates',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
create(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', input_types_1.connectionFieldsMap);
|
|
45
|
+
return new query_builder_1.QueryBuilder({
|
|
46
|
+
client: this.client,
|
|
47
|
+
operation: 'mutation',
|
|
48
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
49
|
+
fieldName: 'createOrgGetSubordinatesRecord',
|
|
50
|
+
document,
|
|
51
|
+
variables,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.OrgGetSubordinatesRecordModel = OrgGetSubordinatesRecordModel;
|
|
@@ -12,6 +12,12 @@ export interface AppPermissionsGetPaddedMaskVariables {
|
|
|
12
12
|
export interface OrgPermissionsGetPaddedMaskVariables {
|
|
13
13
|
mask?: string;
|
|
14
14
|
}
|
|
15
|
+
export interface OrgIsManagerOfVariables {
|
|
16
|
+
pEntityId?: string;
|
|
17
|
+
pManagerId?: string;
|
|
18
|
+
pUserId?: string;
|
|
19
|
+
pMaxDepth?: number;
|
|
20
|
+
}
|
|
15
21
|
export interface StepsAchievedVariables {
|
|
16
22
|
vlevel?: string;
|
|
17
23
|
vroleId?: string;
|
|
@@ -76,6 +82,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
76
82
|
}) => QueryBuilder<{
|
|
77
83
|
orgPermissionsGetPaddedMask: string | null;
|
|
78
84
|
}>;
|
|
85
|
+
orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
|
|
86
|
+
select?: Record<string, unknown>;
|
|
87
|
+
}) => QueryBuilder<{
|
|
88
|
+
orgIsManagerOf: boolean | null;
|
|
89
|
+
}>;
|
|
79
90
|
stepsAchieved: (args: StepsAchievedVariables, options?: {
|
|
80
91
|
select?: Record<string, unknown>;
|
|
81
92
|
}) => QueryBuilder<{
|