@rytass/bpm-core-client 0.1.1 → 0.1.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/CHANGELOG.md +6 -0
- package/README.md +113 -3
- package/eslint.config.mjs +19 -0
- package/jest.config.cts +10 -0
- package/package.json +4 -5
- package/project.json +66 -0
- package/src/lib/api-auth-client.ts +169 -0
- package/src/lib/form/form-api.spec.ts +81 -0
- package/src/lib/form/form-api.ts +388 -0
- package/src/lib/form/form-rendering.ts +580 -0
- package/src/lib/graphql-client.spec.ts +65 -0
- package/src/lib/graphql-client.ts +114 -0
- package/src/lib/member-api.ts +129 -0
- package/src/lib/organization/organization-api.spec.ts +90 -0
- package/src/lib/organization/organization-api.ts +710 -0
- package/src/lib/template/template-api.spec.ts +88 -0
- package/src/lib/template/template-api.ts +772 -0
- package/src/lib/workflow/workflow-api.spec.ts +132 -0
- package/src/lib/workflow/workflow-api.ts +1749 -0
- package/tsconfig.json +27 -0
- package/tsconfig.lib.json +16 -0
- package/tsconfig.spec.json +16 -0
- package/LICENSE +0 -21
- package/src/index.js +0 -7
- package/src/index.js.map +0 -1
- package/src/lib/api-auth-client.d.ts +0 -73
- package/src/lib/api-auth-client.js +0 -121
- package/src/lib/api-auth-client.js.map +0 -1
- package/src/lib/form/form-api.d.ts +0 -48
- package/src/lib/form/form-api.js +0 -228
- package/src/lib/form/form-api.js.map +0 -1
- package/src/lib/form/form-rendering.d.ts +0 -52
- package/src/lib/form/form-rendering.js +0 -341
- package/src/lib/form/form-rendering.js.map +0 -1
- package/src/lib/form/index.js +0 -6
- package/src/lib/form/index.js.map +0 -1
- package/src/lib/graphql-client.d.ts +0 -45
- package/src/lib/graphql-client.js +0 -92
- package/src/lib/graphql-client.js.map +0 -1
- package/src/lib/member-api.d.ts +0 -49
- package/src/lib/member-api.js +0 -72
- package/src/lib/member-api.js.map +0 -1
- package/src/lib/organization/index.js +0 -5
- package/src/lib/organization/index.js.map +0 -1
- package/src/lib/organization/organization-api.d.ts +0 -168
- package/src/lib/organization/organization-api.js +0 -394
- package/src/lib/organization/organization-api.js.map +0 -1
- package/src/lib/template/index.js +0 -5
- package/src/lib/template/index.js.map +0 -1
- package/src/lib/template/template-api.d.ts +0 -150
- package/src/lib/template/template-api.js +0 -407
- package/src/lib/template/template-api.js.map +0 -1
- package/src/lib/workflow/index.js +0 -5
- package/src/lib/workflow/index.js.map +0 -1
- package/src/lib/workflow/workflow-api.d.ts +0 -376
- package/src/lib/workflow/workflow-api.js +0 -867
- package/src/lib/workflow/workflow-api.js.map +0 -1
- /package/src/{index.d.ts → index.ts} +0 -0
- /package/src/lib/form/{index.d.ts → index.ts} +0 -0
- /package/src/lib/organization/{index.d.ts → index.ts} +0 -0
- /package/src/lib/template/{index.d.ts → index.ts} +0 -0
- /package/src/lib/workflow/{index.d.ts → index.ts} +0 -0
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
export type OrgUnitType = 'COMPANY' | 'DEPARTMENT' | 'DIVISION' | 'TEAM' | 'company' | 'department' | 'division' | 'team';
|
|
2
|
-
export type ManagerResolutionScopeType = 'MEMBER' | 'ORG_UNIT' | 'POSITION';
|
|
3
|
-
export interface OrgUnitRecord {
|
|
4
|
-
readonly code: string;
|
|
5
|
-
readonly createdAt: string;
|
|
6
|
-
readonly deletedAt: string | null;
|
|
7
|
-
readonly id: string;
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly parentId: string | null;
|
|
10
|
-
readonly path: string;
|
|
11
|
-
readonly type: OrgUnitType;
|
|
12
|
-
readonly updatedAt: string;
|
|
13
|
-
}
|
|
14
|
-
export interface PositionRecord {
|
|
15
|
-
readonly code: string;
|
|
16
|
-
readonly createdAt: string;
|
|
17
|
-
readonly id: string;
|
|
18
|
-
readonly level: number;
|
|
19
|
-
readonly name: string;
|
|
20
|
-
readonly updatedAt: string;
|
|
21
|
-
}
|
|
22
|
-
export interface MembershipRecord {
|
|
23
|
-
readonly createdAt: string;
|
|
24
|
-
readonly effectiveFrom: string;
|
|
25
|
-
readonly effectiveTo: string | null;
|
|
26
|
-
readonly id: string;
|
|
27
|
-
readonly isPrimary: boolean;
|
|
28
|
-
readonly memberId: string;
|
|
29
|
-
readonly orgUnitId: string;
|
|
30
|
-
readonly positionId: string | null;
|
|
31
|
-
readonly updatedAt: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ManagerResolutionRecord {
|
|
34
|
-
readonly createdAt: string;
|
|
35
|
-
readonly effectiveFrom: string;
|
|
36
|
-
readonly effectiveTo: string | null;
|
|
37
|
-
readonly id: string;
|
|
38
|
-
readonly managerMemberId: string;
|
|
39
|
-
readonly priority: number;
|
|
40
|
-
readonly scopeId: string;
|
|
41
|
-
readonly scopeType: ManagerResolutionScopeType;
|
|
42
|
-
}
|
|
43
|
-
export interface OrganizationSummaryRecord {
|
|
44
|
-
readonly managerResolutionCount: number;
|
|
45
|
-
readonly membershipCount: number;
|
|
46
|
-
readonly orgUnitCount: number;
|
|
47
|
-
readonly positionCount: number;
|
|
48
|
-
}
|
|
49
|
-
export interface ResolvedManagerRecord {
|
|
50
|
-
readonly managerMemberId: string | null;
|
|
51
|
-
readonly memberId: string;
|
|
52
|
-
}
|
|
53
|
-
interface OrganizationDashboardQueryData {
|
|
54
|
-
readonly filteredManagerResolutions: readonly ManagerResolutionRecord[];
|
|
55
|
-
readonly filteredMemberships: readonly MembershipRecord[];
|
|
56
|
-
readonly filteredOrgUnits: readonly OrgUnitRecord[];
|
|
57
|
-
readonly filteredPositions: readonly PositionRecord[];
|
|
58
|
-
readonly managerResolutionCount: number;
|
|
59
|
-
readonly managerResolutions: readonly ManagerResolutionRecord[];
|
|
60
|
-
readonly membershipCount: number;
|
|
61
|
-
readonly memberships: readonly MembershipRecord[];
|
|
62
|
-
readonly organizationSummary: OrganizationSummaryRecord;
|
|
63
|
-
readonly orgUnitCount: number;
|
|
64
|
-
readonly orgUnits: readonly OrgUnitRecord[];
|
|
65
|
-
readonly positionCount: number;
|
|
66
|
-
readonly positions: readonly PositionRecord[];
|
|
67
|
-
}
|
|
68
|
-
export declare function readOrganizationDashboard({ managerActiveOnly, managerPage, managerPageSize, managerScopeType, membershipActiveOnly, membershipOrgUnitId, membershipPage, membershipPageSize, membershipPositionId, orgUnitPage, orgUnitPageSize, orgUnitSearchText, orgUnitType, positionPage, positionPageSize, positionSearchText, }?: {
|
|
69
|
-
readonly managerActiveOnly?: boolean;
|
|
70
|
-
readonly managerPage?: number;
|
|
71
|
-
readonly managerPageSize?: number | null;
|
|
72
|
-
readonly managerScopeType?: ManagerResolutionScopeType | null;
|
|
73
|
-
readonly membershipActiveOnly?: boolean;
|
|
74
|
-
readonly membershipOrgUnitId?: string | null;
|
|
75
|
-
readonly membershipPage?: number;
|
|
76
|
-
readonly membershipPageSize?: number | null;
|
|
77
|
-
readonly membershipPositionId?: string | null;
|
|
78
|
-
readonly orgUnitPage?: number;
|
|
79
|
-
readonly orgUnitPageSize?: number | null;
|
|
80
|
-
readonly orgUnitSearchText?: string | null;
|
|
81
|
-
readonly orgUnitType?: OrgUnitType | null;
|
|
82
|
-
readonly positionPage?: number;
|
|
83
|
-
readonly positionPageSize?: number | null;
|
|
84
|
-
readonly positionSearchText?: string | null;
|
|
85
|
-
}): Promise<OrganizationDashboardQueryData>;
|
|
86
|
-
export declare function listMemberships({ activeOnly, memberId, orgUnitId, }?: {
|
|
87
|
-
readonly activeOnly?: boolean;
|
|
88
|
-
readonly memberId?: string | null;
|
|
89
|
-
readonly orgUnitId?: string | null;
|
|
90
|
-
}): Promise<readonly MembershipRecord[]>;
|
|
91
|
-
export declare function listManagerResolutions({ activeOnly, scopeId, scopeType, }?: {
|
|
92
|
-
readonly activeOnly?: boolean;
|
|
93
|
-
readonly scopeId?: string | null;
|
|
94
|
-
readonly scopeType?: ManagerResolutionScopeType | null;
|
|
95
|
-
}): Promise<readonly ManagerResolutionRecord[]>;
|
|
96
|
-
export declare function readResolvedManager(memberId: string): Promise<ResolvedManagerRecord>;
|
|
97
|
-
export declare function createOrgUnit(input: {
|
|
98
|
-
readonly code: string;
|
|
99
|
-
readonly metadataJson: string;
|
|
100
|
-
readonly name: string;
|
|
101
|
-
readonly parentId: string | null;
|
|
102
|
-
readonly type: OrgUnitType;
|
|
103
|
-
}): Promise<OrgUnitRecord>;
|
|
104
|
-
export declare function updateOrgUnit(input: {
|
|
105
|
-
readonly code: string | null;
|
|
106
|
-
readonly id: string;
|
|
107
|
-
readonly metadataJson: string | null;
|
|
108
|
-
readonly name: string | null;
|
|
109
|
-
readonly parentId: string | null;
|
|
110
|
-
readonly type: OrgUnitType | null;
|
|
111
|
-
}): Promise<OrgUnitRecord>;
|
|
112
|
-
export declare function deleteOrgUnit(id: string): Promise<boolean>;
|
|
113
|
-
export declare function commitOrgUnitTreeDraft(input: {
|
|
114
|
-
readonly moves: readonly {
|
|
115
|
-
readonly baseUpdatedAt: string;
|
|
116
|
-
readonly id: string;
|
|
117
|
-
readonly parentId: string | null;
|
|
118
|
-
}[];
|
|
119
|
-
}): Promise<readonly OrgUnitRecord[]>;
|
|
120
|
-
export declare function createPosition(input: {
|
|
121
|
-
readonly code: string;
|
|
122
|
-
readonly level: number;
|
|
123
|
-
readonly metadataJson: string;
|
|
124
|
-
readonly name: string;
|
|
125
|
-
}): Promise<PositionRecord>;
|
|
126
|
-
export declare function updatePosition(input: {
|
|
127
|
-
readonly code: string | null;
|
|
128
|
-
readonly id: string;
|
|
129
|
-
readonly level: number | null;
|
|
130
|
-
readonly metadataJson: string | null;
|
|
131
|
-
readonly name: string | null;
|
|
132
|
-
}): Promise<PositionRecord>;
|
|
133
|
-
export declare function createMembership(input: {
|
|
134
|
-
readonly effectiveFrom: string;
|
|
135
|
-
readonly effectiveTo: string | null;
|
|
136
|
-
readonly isPrimary: boolean;
|
|
137
|
-
readonly memberId: string;
|
|
138
|
-
readonly orgUnitId: string;
|
|
139
|
-
readonly positionId: string | null;
|
|
140
|
-
}): Promise<MembershipRecord>;
|
|
141
|
-
export declare function updateMembership(input: {
|
|
142
|
-
readonly effectiveFrom: string | null;
|
|
143
|
-
readonly effectiveTo: string | null;
|
|
144
|
-
readonly id: string;
|
|
145
|
-
readonly isPrimary: boolean | null;
|
|
146
|
-
readonly orgUnitId: string | null;
|
|
147
|
-
readonly positionId: string | null;
|
|
148
|
-
}): Promise<MembershipRecord>;
|
|
149
|
-
export declare function deleteMembership(id: string): Promise<boolean>;
|
|
150
|
-
export declare function createManagerResolution(input: {
|
|
151
|
-
readonly effectiveFrom: string;
|
|
152
|
-
readonly effectiveTo: string | null;
|
|
153
|
-
readonly managerMemberId: string;
|
|
154
|
-
readonly priority: number;
|
|
155
|
-
readonly scopeId: string;
|
|
156
|
-
readonly scopeType: ManagerResolutionScopeType;
|
|
157
|
-
}): Promise<ManagerResolutionRecord>;
|
|
158
|
-
export declare function updateManagerResolution(input: {
|
|
159
|
-
readonly effectiveFrom: string | null;
|
|
160
|
-
readonly effectiveTo: string | null;
|
|
161
|
-
readonly id: string;
|
|
162
|
-
readonly managerMemberId: string | null;
|
|
163
|
-
readonly priority: number | null;
|
|
164
|
-
readonly scopeId: string | null;
|
|
165
|
-
readonly scopeType: ManagerResolutionScopeType | null;
|
|
166
|
-
}): Promise<ManagerResolutionRecord>;
|
|
167
|
-
export declare function deleteManagerResolution(id: string): Promise<boolean>;
|
|
168
|
-
export {};
|
|
@@ -1,394 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readOrganizationDashboard = readOrganizationDashboard;
|
|
4
|
-
exports.listMemberships = listMemberships;
|
|
5
|
-
exports.listManagerResolutions = listManagerResolutions;
|
|
6
|
-
exports.readResolvedManager = readResolvedManager;
|
|
7
|
-
exports.createOrgUnit = createOrgUnit;
|
|
8
|
-
exports.updateOrgUnit = updateOrgUnit;
|
|
9
|
-
exports.deleteOrgUnit = deleteOrgUnit;
|
|
10
|
-
exports.commitOrgUnitTreeDraft = commitOrgUnitTreeDraft;
|
|
11
|
-
exports.createPosition = createPosition;
|
|
12
|
-
exports.updatePosition = updatePosition;
|
|
13
|
-
exports.createMembership = createMembership;
|
|
14
|
-
exports.updateMembership = updateMembership;
|
|
15
|
-
exports.deleteMembership = deleteMembership;
|
|
16
|
-
exports.createManagerResolution = createManagerResolution;
|
|
17
|
-
exports.updateManagerResolution = updateManagerResolution;
|
|
18
|
-
exports.deleteManagerResolution = deleteManagerResolution;
|
|
19
|
-
const graphql_client_1 = require("../graphql-client");
|
|
20
|
-
async function readOrganizationDashboard({ managerActiveOnly = false, managerPage = 1, managerPageSize = null, managerScopeType = null, membershipActiveOnly = false, membershipOrgUnitId = null, membershipPage = 1, membershipPageSize = null, membershipPositionId = null, orgUnitPage = 1, orgUnitPageSize = null, orgUnitSearchText = null, orgUnitType = null, positionPage = 1, positionPageSize = null, positionSearchText = null, } = {}) {
|
|
21
|
-
return (0, graphql_client_1.requestGraphQl)(`query AdminOrganizationDashboard(
|
|
22
|
-
$managerActiveOnly: Boolean
|
|
23
|
-
$managerPage: Int
|
|
24
|
-
$managerPageSize: Int
|
|
25
|
-
$managerScopeType: ManagerResolutionScopeType
|
|
26
|
-
$membershipActiveOnly: Boolean
|
|
27
|
-
$membershipOrgUnitId: String
|
|
28
|
-
$membershipPage: Int
|
|
29
|
-
$membershipPageSize: Int
|
|
30
|
-
$membershipPositionId: String
|
|
31
|
-
$orgUnitPage: Int
|
|
32
|
-
$orgUnitPageSize: Int
|
|
33
|
-
$orgUnitSearchText: String
|
|
34
|
-
$orgUnitType: OrgUnitType
|
|
35
|
-
$positionPage: Int
|
|
36
|
-
$positionPageSize: Int
|
|
37
|
-
$positionSearchText: String
|
|
38
|
-
) {
|
|
39
|
-
organizationSummary {
|
|
40
|
-
managerResolutionCount
|
|
41
|
-
membershipCount
|
|
42
|
-
orgUnitCount
|
|
43
|
-
positionCount
|
|
44
|
-
}
|
|
45
|
-
filteredOrgUnits: orgUnits(
|
|
46
|
-
page: $orgUnitPage
|
|
47
|
-
pageSize: $orgUnitPageSize
|
|
48
|
-
searchText: $orgUnitSearchText
|
|
49
|
-
type: $orgUnitType
|
|
50
|
-
) {
|
|
51
|
-
code
|
|
52
|
-
createdAt
|
|
53
|
-
deletedAt
|
|
54
|
-
id
|
|
55
|
-
name
|
|
56
|
-
parentId
|
|
57
|
-
path
|
|
58
|
-
type
|
|
59
|
-
updatedAt
|
|
60
|
-
}
|
|
61
|
-
orgUnitCount(
|
|
62
|
-
searchText: $orgUnitSearchText
|
|
63
|
-
type: $orgUnitType
|
|
64
|
-
)
|
|
65
|
-
orgUnits {
|
|
66
|
-
code
|
|
67
|
-
createdAt
|
|
68
|
-
deletedAt
|
|
69
|
-
id
|
|
70
|
-
name
|
|
71
|
-
parentId
|
|
72
|
-
path
|
|
73
|
-
type
|
|
74
|
-
updatedAt
|
|
75
|
-
}
|
|
76
|
-
filteredPositions: positions(
|
|
77
|
-
page: $positionPage
|
|
78
|
-
pageSize: $positionPageSize
|
|
79
|
-
searchText: $positionSearchText
|
|
80
|
-
) {
|
|
81
|
-
code
|
|
82
|
-
createdAt
|
|
83
|
-
id
|
|
84
|
-
level
|
|
85
|
-
name
|
|
86
|
-
updatedAt
|
|
87
|
-
}
|
|
88
|
-
positionCount(searchText: $positionSearchText)
|
|
89
|
-
positions {
|
|
90
|
-
code
|
|
91
|
-
createdAt
|
|
92
|
-
id
|
|
93
|
-
level
|
|
94
|
-
name
|
|
95
|
-
updatedAt
|
|
96
|
-
}
|
|
97
|
-
filteredMemberships: memberships(
|
|
98
|
-
activeOnly: $membershipActiveOnly
|
|
99
|
-
orgUnitId: $membershipOrgUnitId
|
|
100
|
-
page: $membershipPage
|
|
101
|
-
pageSize: $membershipPageSize
|
|
102
|
-
positionId: $membershipPositionId
|
|
103
|
-
) {
|
|
104
|
-
createdAt
|
|
105
|
-
effectiveFrom
|
|
106
|
-
effectiveTo
|
|
107
|
-
id
|
|
108
|
-
isPrimary
|
|
109
|
-
memberId
|
|
110
|
-
orgUnitId
|
|
111
|
-
positionId
|
|
112
|
-
updatedAt
|
|
113
|
-
}
|
|
114
|
-
membershipCount(
|
|
115
|
-
activeOnly: $membershipActiveOnly
|
|
116
|
-
orgUnitId: $membershipOrgUnitId
|
|
117
|
-
positionId: $membershipPositionId
|
|
118
|
-
)
|
|
119
|
-
memberships {
|
|
120
|
-
createdAt
|
|
121
|
-
effectiveFrom
|
|
122
|
-
effectiveTo
|
|
123
|
-
id
|
|
124
|
-
isPrimary
|
|
125
|
-
memberId
|
|
126
|
-
orgUnitId
|
|
127
|
-
positionId
|
|
128
|
-
updatedAt
|
|
129
|
-
}
|
|
130
|
-
filteredManagerResolutions: managerResolutions(
|
|
131
|
-
activeOnly: $managerActiveOnly
|
|
132
|
-
page: $managerPage
|
|
133
|
-
pageSize: $managerPageSize
|
|
134
|
-
scopeType: $managerScopeType
|
|
135
|
-
) {
|
|
136
|
-
createdAt
|
|
137
|
-
effectiveFrom
|
|
138
|
-
effectiveTo
|
|
139
|
-
id
|
|
140
|
-
managerMemberId
|
|
141
|
-
priority
|
|
142
|
-
scopeId
|
|
143
|
-
scopeType
|
|
144
|
-
}
|
|
145
|
-
managerResolutionCount(
|
|
146
|
-
activeOnly: $managerActiveOnly
|
|
147
|
-
scopeType: $managerScopeType
|
|
148
|
-
)
|
|
149
|
-
managerResolutions {
|
|
150
|
-
createdAt
|
|
151
|
-
effectiveFrom
|
|
152
|
-
effectiveTo
|
|
153
|
-
id
|
|
154
|
-
managerMemberId
|
|
155
|
-
priority
|
|
156
|
-
scopeId
|
|
157
|
-
scopeType
|
|
158
|
-
}
|
|
159
|
-
}`, {
|
|
160
|
-
managerActiveOnly,
|
|
161
|
-
managerPage,
|
|
162
|
-
managerPageSize,
|
|
163
|
-
managerScopeType,
|
|
164
|
-
membershipActiveOnly,
|
|
165
|
-
membershipOrgUnitId,
|
|
166
|
-
membershipPage,
|
|
167
|
-
membershipPageSize,
|
|
168
|
-
membershipPositionId,
|
|
169
|
-
orgUnitPage,
|
|
170
|
-
orgUnitPageSize,
|
|
171
|
-
orgUnitSearchText,
|
|
172
|
-
orgUnitType,
|
|
173
|
-
positionPage,
|
|
174
|
-
positionPageSize,
|
|
175
|
-
positionSearchText,
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
async function listMemberships({ activeOnly = false, memberId = null, orgUnitId = null, } = {}) {
|
|
179
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`query AdminMemberships(
|
|
180
|
-
$activeOnly: Boolean
|
|
181
|
-
$memberId: String
|
|
182
|
-
$orgUnitId: String
|
|
183
|
-
) {
|
|
184
|
-
memberships(
|
|
185
|
-
activeOnly: $activeOnly
|
|
186
|
-
memberId: $memberId
|
|
187
|
-
orgUnitId: $orgUnitId
|
|
188
|
-
) {
|
|
189
|
-
createdAt
|
|
190
|
-
effectiveFrom
|
|
191
|
-
effectiveTo
|
|
192
|
-
id
|
|
193
|
-
isPrimary
|
|
194
|
-
memberId
|
|
195
|
-
orgUnitId
|
|
196
|
-
positionId
|
|
197
|
-
updatedAt
|
|
198
|
-
}
|
|
199
|
-
}`, { activeOnly, memberId, orgUnitId });
|
|
200
|
-
return data.memberships;
|
|
201
|
-
}
|
|
202
|
-
async function listManagerResolutions({ activeOnly = false, scopeId = null, scopeType = null, } = {}) {
|
|
203
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`query AdminManagerResolutions(
|
|
204
|
-
$activeOnly: Boolean
|
|
205
|
-
$scopeId: String
|
|
206
|
-
$scopeType: ManagerResolutionScopeType
|
|
207
|
-
) {
|
|
208
|
-
managerResolutions(
|
|
209
|
-
activeOnly: $activeOnly
|
|
210
|
-
scopeId: $scopeId
|
|
211
|
-
scopeType: $scopeType
|
|
212
|
-
) {
|
|
213
|
-
createdAt
|
|
214
|
-
effectiveFrom
|
|
215
|
-
effectiveTo
|
|
216
|
-
id
|
|
217
|
-
managerMemberId
|
|
218
|
-
priority
|
|
219
|
-
scopeId
|
|
220
|
-
scopeType
|
|
221
|
-
}
|
|
222
|
-
}`, { activeOnly, scopeId, scopeType });
|
|
223
|
-
return data.managerResolutions;
|
|
224
|
-
}
|
|
225
|
-
async function readResolvedManager(memberId) {
|
|
226
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`query AdminResolvedManager($memberId: String!) {
|
|
227
|
-
resolvedManager(memberId: $memberId) {
|
|
228
|
-
managerMemberId
|
|
229
|
-
memberId
|
|
230
|
-
}
|
|
231
|
-
}`, { memberId });
|
|
232
|
-
return data.resolvedManager;
|
|
233
|
-
}
|
|
234
|
-
async function createOrgUnit(input) {
|
|
235
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminCreateOrgUnit($input: CreateOrgUnitInput!) {
|
|
236
|
-
createOrgUnit(input: $input) {
|
|
237
|
-
code
|
|
238
|
-
createdAt
|
|
239
|
-
deletedAt
|
|
240
|
-
id
|
|
241
|
-
name
|
|
242
|
-
parentId
|
|
243
|
-
path
|
|
244
|
-
type
|
|
245
|
-
updatedAt
|
|
246
|
-
}
|
|
247
|
-
}`, { input });
|
|
248
|
-
return data.createOrgUnit;
|
|
249
|
-
}
|
|
250
|
-
async function updateOrgUnit(input) {
|
|
251
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminUpdateOrgUnit($input: UpdateOrgUnitInput!) {
|
|
252
|
-
updateOrgUnit(input: $input) {
|
|
253
|
-
code
|
|
254
|
-
createdAt
|
|
255
|
-
deletedAt
|
|
256
|
-
id
|
|
257
|
-
name
|
|
258
|
-
parentId
|
|
259
|
-
path
|
|
260
|
-
type
|
|
261
|
-
updatedAt
|
|
262
|
-
}
|
|
263
|
-
}`, { input });
|
|
264
|
-
return data.updateOrgUnit;
|
|
265
|
-
}
|
|
266
|
-
async function deleteOrgUnit(id) {
|
|
267
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminDeleteOrgUnit($id: String!) {
|
|
268
|
-
deleteOrgUnit(id: $id)
|
|
269
|
-
}`, { id });
|
|
270
|
-
return data.deleteOrgUnit;
|
|
271
|
-
}
|
|
272
|
-
async function commitOrgUnitTreeDraft(input) {
|
|
273
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminCommitOrgUnitTreeDraft($input: CommitOrgUnitTreeDraftInput!) {
|
|
274
|
-
commitOrgUnitTreeDraft(input: $input) {
|
|
275
|
-
orgUnits {
|
|
276
|
-
code
|
|
277
|
-
createdAt
|
|
278
|
-
deletedAt
|
|
279
|
-
id
|
|
280
|
-
name
|
|
281
|
-
parentId
|
|
282
|
-
path
|
|
283
|
-
type
|
|
284
|
-
updatedAt
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}`, { input });
|
|
288
|
-
return data.commitOrgUnitTreeDraft.orgUnits;
|
|
289
|
-
}
|
|
290
|
-
async function createPosition(input) {
|
|
291
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminCreatePosition($input: CreatePositionInput!) {
|
|
292
|
-
createPosition(input: $input) {
|
|
293
|
-
code
|
|
294
|
-
createdAt
|
|
295
|
-
id
|
|
296
|
-
level
|
|
297
|
-
name
|
|
298
|
-
updatedAt
|
|
299
|
-
}
|
|
300
|
-
}`, { input });
|
|
301
|
-
return data.createPosition;
|
|
302
|
-
}
|
|
303
|
-
async function updatePosition(input) {
|
|
304
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminUpdatePosition($input: UpdatePositionInput!) {
|
|
305
|
-
updatePosition(input: $input) {
|
|
306
|
-
code
|
|
307
|
-
createdAt
|
|
308
|
-
id
|
|
309
|
-
level
|
|
310
|
-
name
|
|
311
|
-
updatedAt
|
|
312
|
-
}
|
|
313
|
-
}`, { input });
|
|
314
|
-
return data.updatePosition;
|
|
315
|
-
}
|
|
316
|
-
async function createMembership(input) {
|
|
317
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminCreateMembership($input: CreateMembershipInput!) {
|
|
318
|
-
createMembership(input: $input) {
|
|
319
|
-
createdAt
|
|
320
|
-
effectiveFrom
|
|
321
|
-
effectiveTo
|
|
322
|
-
id
|
|
323
|
-
isPrimary
|
|
324
|
-
memberId
|
|
325
|
-
orgUnitId
|
|
326
|
-
positionId
|
|
327
|
-
updatedAt
|
|
328
|
-
}
|
|
329
|
-
}`, { input });
|
|
330
|
-
return data.createMembership;
|
|
331
|
-
}
|
|
332
|
-
async function updateMembership(input) {
|
|
333
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminUpdateMembership($input: UpdateMembershipInput!) {
|
|
334
|
-
updateMembership(input: $input) {
|
|
335
|
-
createdAt
|
|
336
|
-
effectiveFrom
|
|
337
|
-
effectiveTo
|
|
338
|
-
id
|
|
339
|
-
isPrimary
|
|
340
|
-
memberId
|
|
341
|
-
orgUnitId
|
|
342
|
-
positionId
|
|
343
|
-
updatedAt
|
|
344
|
-
}
|
|
345
|
-
}`, { input });
|
|
346
|
-
return data.updateMembership;
|
|
347
|
-
}
|
|
348
|
-
async function deleteMembership(id) {
|
|
349
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminDeleteMembership($id: String!) {
|
|
350
|
-
deleteMembership(id: $id)
|
|
351
|
-
}`, { id });
|
|
352
|
-
return data.deleteMembership;
|
|
353
|
-
}
|
|
354
|
-
async function createManagerResolution(input) {
|
|
355
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminCreateManagerResolution(
|
|
356
|
-
$input: CreateManagerResolutionInput!
|
|
357
|
-
) {
|
|
358
|
-
createManagerResolution(input: $input) {
|
|
359
|
-
createdAt
|
|
360
|
-
effectiveFrom
|
|
361
|
-
effectiveTo
|
|
362
|
-
id
|
|
363
|
-
managerMemberId
|
|
364
|
-
priority
|
|
365
|
-
scopeId
|
|
366
|
-
scopeType
|
|
367
|
-
}
|
|
368
|
-
}`, { input });
|
|
369
|
-
return data.createManagerResolution;
|
|
370
|
-
}
|
|
371
|
-
async function updateManagerResolution(input) {
|
|
372
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminUpdateManagerResolution(
|
|
373
|
-
$input: UpdateManagerResolutionInput!
|
|
374
|
-
) {
|
|
375
|
-
updateManagerResolution(input: $input) {
|
|
376
|
-
createdAt
|
|
377
|
-
effectiveFrom
|
|
378
|
-
effectiveTo
|
|
379
|
-
id
|
|
380
|
-
managerMemberId
|
|
381
|
-
priority
|
|
382
|
-
scopeId
|
|
383
|
-
scopeType
|
|
384
|
-
}
|
|
385
|
-
}`, { input });
|
|
386
|
-
return data.updateManagerResolution;
|
|
387
|
-
}
|
|
388
|
-
async function deleteManagerResolution(id) {
|
|
389
|
-
const data = await (0, graphql_client_1.requestGraphQl)(`mutation AdminDeleteManagerResolution($id: String!) {
|
|
390
|
-
deleteManagerResolution(id: $id)
|
|
391
|
-
}`, { id });
|
|
392
|
-
return data.deleteManagerResolution;
|
|
393
|
-
}
|
|
394
|
-
//# sourceMappingURL=organization-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization-api.js","sourceRoot":"","sources":["../../../../../../libs/bpm-core-client/src/lib/organization/organization-api.ts"],"names":[],"mappings":";;AAmJA,8DAkMC;AAED,0CAmCC;AAED,wDAkCC;AAED,kDAcC;AAED,sCAyBC;AAED,sCA0BC;AAED,sCASC;AAED,wDA2BC;AAED,wCAqBC;AAED,wCAsBC;AAED,4CA0BC;AAED,4CA0BC;AAED,4CASC;AAED,0DA2BC;AAED,0DA4BC;AAED,0DASC;AArsBD,sDAAmD;AAmJ5C,KAAK,UAAU,yBAAyB,CAAC,EAC9C,iBAAiB,GAAG,KAAK,EACzB,WAAW,GAAG,CAAC,EACf,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,IAAI,EACvB,oBAAoB,GAAG,KAAK,EAC5B,mBAAmB,GAAG,IAAI,EAC1B,cAAc,GAAG,CAAC,EAClB,kBAAkB,GAAG,IAAI,EACzB,oBAAoB,GAAG,IAAI,EAC3B,WAAW,GAAG,CAAC,EACf,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,WAAW,GA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