@edsis/angular 0.0.2 → 21.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +77 -178
  2. package/fesm2022/edsis-angular-auth.mjs +992 -0
  3. package/fesm2022/edsis-angular-auth.mjs.map +1 -0
  4. package/fesm2022/edsis-angular-sdk-access.mjs +1365 -0
  5. package/fesm2022/edsis-angular-sdk-access.mjs.map +1 -0
  6. package/fesm2022/edsis-angular-sdk-approval.mjs +1259 -0
  7. package/fesm2022/edsis-angular-sdk-approval.mjs.map +1 -0
  8. package/fesm2022/edsis-angular-sdk-auth.mjs +254 -0
  9. package/fesm2022/edsis-angular-sdk-auth.mjs.map +1 -0
  10. package/fesm2022/edsis-angular-sdk-employee.mjs +284 -0
  11. package/fesm2022/edsis-angular-sdk-employee.mjs.map +1 -0
  12. package/fesm2022/edsis-angular-sdk-health.mjs +96 -0
  13. package/fesm2022/edsis-angular-sdk-health.mjs.map +1 -0
  14. package/fesm2022/edsis-angular-sdk-shared.mjs +2740 -0
  15. package/fesm2022/edsis-angular-sdk-shared.mjs.map +1 -0
  16. package/fesm2022/edsis-angular-sdk-storage.mjs +288 -0
  17. package/fesm2022/edsis-angular-sdk-storage.mjs.map +1 -0
  18. package/fesm2022/edsis-angular-sdk-user.mjs +489 -0
  19. package/fesm2022/edsis-angular-sdk-user.mjs.map +1 -0
  20. package/fesm2022/edsis-angular-sdk.mjs +75 -0
  21. package/fesm2022/edsis-angular-sdk.mjs.map +1 -0
  22. package/fesm2022/edsis-angular.mjs +0 -5707
  23. package/fesm2022/edsis-angular.mjs.map +1 -1
  24. package/package.json +51 -46
  25. package/types/edsis-angular-auth.d.ts +117 -0
  26. package/types/edsis-angular-sdk-access.d.ts +547 -0
  27. package/types/edsis-angular-sdk-approval.d.ts +638 -0
  28. package/types/edsis-angular-sdk-auth.d.ts +128 -0
  29. package/types/edsis-angular-sdk-employee.d.ts +159 -0
  30. package/types/edsis-angular-sdk-health.d.ts +35 -0
  31. package/types/edsis-angular-sdk-shared.d.ts +176 -0
  32. package/types/edsis-angular-sdk-storage.d.ts +102 -0
  33. package/types/edsis-angular-sdk-user.d.ts +189 -0
  34. package/types/edsis-angular-sdk.d.ts +26 -0
  35. package/types/edsis-angular.d.ts +1 -824
  36. package/src/lib/styles/USAGE.md +0 -238
  37. package/src/lib/styles/container.css +0 -38
  38. package/src/lib/styles/fonts/commit-mono/CommitMonoVariable.woff2 +0 -0
  39. package/src/lib/styles/fonts/commit-mono/commit-mono.css +0 -2
  40. package/src/lib/styles/fonts/inter/InterVariable-Italic.woff2 +0 -0
  41. package/src/lib/styles/fonts/inter/InterVariable.woff2 +0 -0
  42. package/src/lib/styles/fonts/inter/inter.css +0 -2
  43. package/src/lib/styles/icons/README.md +0 -313
  44. package/src/lib/styles/icons/lucide.svg +0 -9768
  45. package/src/lib/styles/icons/material-symbols.css +0 -48
  46. package/src/lib/styles/main.css +0 -24
  47. package/src/lib/styles/tailwind/component/card.css +0 -7
  48. package/src/lib/styles/tailwind/tailwind.css +0 -144
  49. package/src/lib/styles/theme.css +0 -406
@@ -0,0 +1,1259 @@
1
+ import { RequestBuilder, BaseService } from '@edsis/angular/sdk/shared';
2
+ export * from '@edsis/angular/sdk/shared';
3
+ import { HttpResponse } from '@angular/common/http';
4
+ import * as i0 from '@angular/core';
5
+ import { Injectable } from '@angular/core';
6
+ import { filter, map } from 'rxjs/operators';
7
+
8
+ /* eslint-disable */
9
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
10
+ function createApprovalActor(http, rootUrl, params, context) {
11
+ const rb = new RequestBuilder(rootUrl, createApprovalActor.PATH, 'post');
12
+ if (params) {
13
+ rb.body(params.body, 'application/json');
14
+ }
15
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
16
+ }
17
+ createApprovalActor.PATH = '/v1/approval/actor';
18
+
19
+ /* eslint-disable */
20
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
21
+ function deleteApprovalActorByID(http, rootUrl, params, context) {
22
+ const rb = new RequestBuilder(rootUrl, deleteApprovalActorByID.PATH, 'delete');
23
+ if (params) {
24
+ rb.path('id', params.id);
25
+ }
26
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
27
+ }
28
+ deleteApprovalActorByID.PATH = '/v1/approval/actor/{id}';
29
+
30
+ /* eslint-disable */
31
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
32
+ function getApprovalActorByID(http, rootUrl, params, context) {
33
+ const rb = new RequestBuilder(rootUrl, getApprovalActorByID.PATH, 'get');
34
+ if (params) {
35
+ rb.path('id', params.id);
36
+ }
37
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
38
+ }
39
+ getApprovalActorByID.PATH = '/v1/approval/actor/{id}';
40
+
41
+ /* eslint-disable */
42
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
43
+ function listApprovalActors(http, rootUrl, params, context) {
44
+ const rb = new RequestBuilder(rootUrl, listApprovalActors.PATH, 'get');
45
+ if (params) {
46
+ rb.query('page', params.page);
47
+ rb.query('limit', params.limit);
48
+ rb.query('sort', params.sort);
49
+ rb.query('order', params.order);
50
+ rb.query('stage_id', params.stage_id);
51
+ }
52
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
53
+ }
54
+ listApprovalActors.PATH = '/v1/approval/actor';
55
+
56
+ /* eslint-disable */
57
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
58
+ function patchApprovalActorByID(http, rootUrl, params, context) {
59
+ const rb = new RequestBuilder(rootUrl, patchApprovalActorByID.PATH, 'patch');
60
+ if (params) {
61
+ rb.path('id', params.id);
62
+ rb.body(params.body, 'application/json');
63
+ }
64
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
65
+ }
66
+ patchApprovalActorByID.PATH = '/v1/approval/actor/{id}';
67
+
68
+ /* eslint-disable */
69
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
70
+ class ApprovalActorService extends BaseService {
71
+ /** Create approval actor (POST /v1/approval/actor) */
72
+ createApprovalActor$Response(params, context) {
73
+ return createApprovalActor(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
74
+ }
75
+ /** Create approval actor (POST /v1/approval/actor) */
76
+ createApprovalActor(params, context) {
77
+ return this.createApprovalActor$Response(params, context).pipe(map((r) => r.body));
78
+ }
79
+ /** Delete approval actor (DELETE /v1/approval/actor/{id}) */
80
+ deleteApprovalActorByID$Response(params, context) {
81
+ return deleteApprovalActorByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
82
+ }
83
+ /** Delete approval actor (DELETE /v1/approval/actor/{id}) */
84
+ deleteApprovalActorByID(params, context) {
85
+ return this.deleteApprovalActorByID$Response(params, context).pipe(map((r) => r.body));
86
+ }
87
+ /** Get approval actor detail (GET /v1/approval/actor/{id}) */
88
+ getApprovalActorByID$Response(params, context) {
89
+ return getApprovalActorByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
90
+ }
91
+ /** Get approval actor detail (GET /v1/approval/actor/{id}) */
92
+ getApprovalActorByID(params, context) {
93
+ return this.getApprovalActorByID$Response(params, context).pipe(map((r) => r.body));
94
+ }
95
+ /** List approval actors (GET /v1/approval/actor) */
96
+ listApprovalActors$Response(params, context) {
97
+ return listApprovalActors(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
98
+ }
99
+ /** List approval actors (GET /v1/approval/actor) */
100
+ listApprovalActors(params, context) {
101
+ return this.listApprovalActors$Response(params, context).pipe(map((r) => r.body));
102
+ }
103
+ /** Update approval actor (PATCH /v1/approval/actor/{id}) */
104
+ patchApprovalActorByID$Response(params, context) {
105
+ return patchApprovalActorByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
106
+ }
107
+ /** Update approval actor (PATCH /v1/approval/actor/{id}) */
108
+ patchApprovalActorByID(params, context) {
109
+ return this.patchApprovalActorByID$Response(params, context).pipe(map((r) => r.body));
110
+ }
111
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalActorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
112
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalActorService, providedIn: 'root' });
113
+ }
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalActorService, decorators: [{
115
+ type: Injectable,
116
+ args: [{ providedIn: 'root' }]
117
+ }] });
118
+
119
+ /* eslint-disable */
120
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
121
+ function createApprovalDefinition(http, rootUrl, params, context) {
122
+ const rb = new RequestBuilder(rootUrl, createApprovalDefinition.PATH, 'post');
123
+ if (params) {
124
+ rb.body(params.body, 'application/json');
125
+ }
126
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
127
+ }
128
+ createApprovalDefinition.PATH = '/v1/approval/definition';
129
+
130
+ /* eslint-disable */
131
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
132
+ function deleteApprovalDefinitionByID(http, rootUrl, params, context) {
133
+ const rb = new RequestBuilder(rootUrl, deleteApprovalDefinitionByID.PATH, 'delete');
134
+ if (params) {
135
+ rb.path('id', params.id);
136
+ }
137
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
138
+ }
139
+ deleteApprovalDefinitionByID.PATH = '/v1/approval/definition/{id}';
140
+
141
+ /* eslint-disable */
142
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
143
+ function getApprovalDefinitionByID(http, rootUrl, params, context) {
144
+ const rb = new RequestBuilder(rootUrl, getApprovalDefinitionByID.PATH, 'get');
145
+ if (params) {
146
+ rb.path('id', params.id);
147
+ }
148
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
149
+ }
150
+ getApprovalDefinitionByID.PATH = '/v1/approval/definition/{id}';
151
+
152
+ /* eslint-disable */
153
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
154
+ function listApprovalDefinitions(http, rootUrl, params, context) {
155
+ const rb = new RequestBuilder(rootUrl, listApprovalDefinitions.PATH, 'get');
156
+ if (params) {
157
+ rb.query('page', params.page);
158
+ rb.query('limit', params.limit);
159
+ rb.query('sort', params.sort);
160
+ rb.query('order', params.order);
161
+ rb.query('search', params.search);
162
+ }
163
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
164
+ }
165
+ listApprovalDefinitions.PATH = '/v1/approval/definition';
166
+
167
+ /* eslint-disable */
168
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
169
+ function patchApprovalDefinitionByID(http, rootUrl, params, context) {
170
+ const rb = new RequestBuilder(rootUrl, patchApprovalDefinitionByID.PATH, 'patch');
171
+ if (params) {
172
+ rb.path('id', params.id);
173
+ rb.body(params.body, 'application/json');
174
+ }
175
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
176
+ }
177
+ patchApprovalDefinitionByID.PATH = '/v1/approval/definition/{id}';
178
+
179
+ /* eslint-disable */
180
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
181
+ class ApprovalDefinitionService extends BaseService {
182
+ /** Create approval definition (POST /v1/approval/definition) */
183
+ createApprovalDefinition$Response(params, context) {
184
+ return createApprovalDefinition(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
185
+ }
186
+ /** Create approval definition (POST /v1/approval/definition) */
187
+ createApprovalDefinition(params, context) {
188
+ return this.createApprovalDefinition$Response(params, context).pipe(map((r) => r.body));
189
+ }
190
+ /** Delete approval definition (DELETE /v1/approval/definition/{id}) */
191
+ deleteApprovalDefinitionByID$Response(params, context) {
192
+ return deleteApprovalDefinitionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
193
+ }
194
+ /** Delete approval definition (DELETE /v1/approval/definition/{id}) */
195
+ deleteApprovalDefinitionByID(params, context) {
196
+ return this.deleteApprovalDefinitionByID$Response(params, context).pipe(map((r) => r.body));
197
+ }
198
+ /** Get approval definition detail (GET /v1/approval/definition/{id}) */
199
+ getApprovalDefinitionByID$Response(params, context) {
200
+ return getApprovalDefinitionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
201
+ }
202
+ /** Get approval definition detail (GET /v1/approval/definition/{id}) */
203
+ getApprovalDefinitionByID(params, context) {
204
+ return this.getApprovalDefinitionByID$Response(params, context).pipe(map((r) => r.body));
205
+ }
206
+ /** List approval definitions (GET /v1/approval/definition) */
207
+ listApprovalDefinitions$Response(params, context) {
208
+ return listApprovalDefinitions(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
209
+ }
210
+ /** List approval definitions (GET /v1/approval/definition) */
211
+ listApprovalDefinitions(params, context) {
212
+ return this.listApprovalDefinitions$Response(params, context).pipe(map((r) => r.body));
213
+ }
214
+ /** Update approval definition (PATCH /v1/approval/definition/{id}) */
215
+ patchApprovalDefinitionByID$Response(params, context) {
216
+ return patchApprovalDefinitionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
217
+ }
218
+ /** Update approval definition (PATCH /v1/approval/definition/{id}) */
219
+ patchApprovalDefinitionByID(params, context) {
220
+ return this.patchApprovalDefinitionByID$Response(params, context).pipe(map((r) => r.body));
221
+ }
222
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalDefinitionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
223
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalDefinitionService, providedIn: 'root' });
224
+ }
225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalDefinitionService, decorators: [{
226
+ type: Injectable,
227
+ args: [{ providedIn: 'root' }]
228
+ }] });
229
+
230
+ /* eslint-disable */
231
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
232
+ function approveApprovalStep(http, rootUrl, params, context) {
233
+ const rb = new RequestBuilder(rootUrl, approveApprovalStep.PATH, 'post');
234
+ if (params) {
235
+ rb.body(params.body, 'application/json');
236
+ }
237
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
238
+ }
239
+ approveApprovalStep.PATH = '/v1/approval/approve';
240
+
241
+ /* eslint-disable */
242
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
243
+ function getApprovalInstanceByID(http, rootUrl, params, context) {
244
+ const rb = new RequestBuilder(rootUrl, getApprovalInstanceByID.PATH, 'get');
245
+ if (params) {
246
+ rb.path('id', params.id);
247
+ }
248
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
249
+ }
250
+ getApprovalInstanceByID.PATH = '/v1/approval/instance/{id}';
251
+
252
+ /* eslint-disable */
253
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
254
+ function listPendingApprovalItems(http, rootUrl, params, context) {
255
+ const rb = new RequestBuilder(rootUrl, listPendingApprovalItems.PATH, 'get');
256
+ if (params) {
257
+ rb.query('page', params.page);
258
+ rb.query('limit', params.limit);
259
+ rb.query('sort', params.sort);
260
+ rb.query('order', params.order);
261
+ }
262
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
263
+ }
264
+ listPendingApprovalItems.PATH = '/v1/approval/pending';
265
+
266
+ /* eslint-disable */
267
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
268
+ function rejectApprovalStep(http, rootUrl, params, context) {
269
+ const rb = new RequestBuilder(rootUrl, rejectApprovalStep.PATH, 'post');
270
+ if (params) {
271
+ rb.body(params.body, 'application/json');
272
+ }
273
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
274
+ }
275
+ rejectApprovalStep.PATH = '/v1/approval/reject';
276
+
277
+ /* eslint-disable */
278
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
279
+ function submitApprovalWorkflow(http, rootUrl, params, context) {
280
+ const rb = new RequestBuilder(rootUrl, submitApprovalWorkflow.PATH, 'post');
281
+ if (params) {
282
+ rb.body(params.body, 'application/json');
283
+ }
284
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
285
+ }
286
+ submitApprovalWorkflow.PATH = '/v1/approval/submit';
287
+
288
+ /* eslint-disable */
289
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
290
+ class ApprovalInstanceService extends BaseService {
291
+ /** Approve current approval step (POST /v1/approval/approve) */
292
+ approveApprovalStep$Response(params, context) {
293
+ return approveApprovalStep(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
294
+ }
295
+ /** Approve current approval step (POST /v1/approval/approve) */
296
+ approveApprovalStep(params, context) {
297
+ return this.approveApprovalStep$Response(params, context).pipe(map((r) => r.body));
298
+ }
299
+ /** Get approval instance detail (GET /v1/approval/instance/{id}) */
300
+ getApprovalInstanceByID$Response(params, context) {
301
+ return getApprovalInstanceByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
302
+ }
303
+ /** Get approval instance detail (GET /v1/approval/instance/{id}) */
304
+ getApprovalInstanceByID(params, context) {
305
+ return this.getApprovalInstanceByID$Response(params, context).pipe(map((r) => r.body));
306
+ }
307
+ /** List pending approvals for current actor (GET /v1/approval/pending) */
308
+ listPendingApprovalItems$Response(params, context) {
309
+ return listPendingApprovalItems(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
310
+ }
311
+ /** List pending approvals for current actor (GET /v1/approval/pending) */
312
+ listPendingApprovalItems(params, context) {
313
+ return this.listPendingApprovalItems$Response(params, context).pipe(map((r) => r.body));
314
+ }
315
+ /** Reject current approval step (POST /v1/approval/reject) */
316
+ rejectApprovalStep$Response(params, context) {
317
+ return rejectApprovalStep(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
318
+ }
319
+ /** Reject current approval step (POST /v1/approval/reject) */
320
+ rejectApprovalStep(params, context) {
321
+ return this.rejectApprovalStep$Response(params, context).pipe(map((r) => r.body));
322
+ }
323
+ /** Submit record into approval workflow (POST /v1/approval/submit) */
324
+ submitApprovalWorkflow$Response(params, context) {
325
+ return submitApprovalWorkflow(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
326
+ }
327
+ /** Submit record into approval workflow (POST /v1/approval/submit) */
328
+ submitApprovalWorkflow(params, context) {
329
+ return this.submitApprovalWorkflow$Response(params, context).pipe(map((r) => r.body));
330
+ }
331
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalInstanceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
332
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalInstanceService, providedIn: 'root' });
333
+ }
334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalInstanceService, decorators: [{
335
+ type: Injectable,
336
+ args: [{ providedIn: 'root' }]
337
+ }] });
338
+
339
+ /* eslint-disable */
340
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
341
+ function createApprovalStage(http, rootUrl, params, context) {
342
+ const rb = new RequestBuilder(rootUrl, createApprovalStage.PATH, 'post');
343
+ if (params) {
344
+ rb.body(params.body, 'application/json');
345
+ }
346
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
347
+ }
348
+ createApprovalStage.PATH = '/v1/approval/stage';
349
+
350
+ /* eslint-disable */
351
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
352
+ function deleteApprovalStageByID(http, rootUrl, params, context) {
353
+ const rb = new RequestBuilder(rootUrl, deleteApprovalStageByID.PATH, 'delete');
354
+ if (params) {
355
+ rb.path('id', params.id);
356
+ }
357
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
358
+ }
359
+ deleteApprovalStageByID.PATH = '/v1/approval/stage/{id}';
360
+
361
+ /* eslint-disable */
362
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
363
+ function getApprovalStageByID(http, rootUrl, params, context) {
364
+ const rb = new RequestBuilder(rootUrl, getApprovalStageByID.PATH, 'get');
365
+ if (params) {
366
+ rb.path('id', params.id);
367
+ }
368
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
369
+ }
370
+ getApprovalStageByID.PATH = '/v1/approval/stage/{id}';
371
+
372
+ /* eslint-disable */
373
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
374
+ function listApprovalStages(http, rootUrl, params, context) {
375
+ const rb = new RequestBuilder(rootUrl, listApprovalStages.PATH, 'get');
376
+ if (params) {
377
+ rb.query('page', params.page);
378
+ rb.query('limit', params.limit);
379
+ rb.query('sort', params.sort);
380
+ rb.query('order', params.order);
381
+ rb.query('definition_id', params.definition_id);
382
+ }
383
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
384
+ }
385
+ listApprovalStages.PATH = '/v1/approval/stage';
386
+
387
+ /* eslint-disable */
388
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
389
+ function patchApprovalStageByID(http, rootUrl, params, context) {
390
+ const rb = new RequestBuilder(rootUrl, patchApprovalStageByID.PATH, 'patch');
391
+ if (params) {
392
+ rb.path('id', params.id);
393
+ rb.body(params.body, 'application/json');
394
+ }
395
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
396
+ }
397
+ patchApprovalStageByID.PATH = '/v1/approval/stage/{id}';
398
+
399
+ /* eslint-disable */
400
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
401
+ class ApprovalStageService extends BaseService {
402
+ /** Create approval stage (POST /v1/approval/stage) */
403
+ createApprovalStage$Response(params, context) {
404
+ return createApprovalStage(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
405
+ }
406
+ /** Create approval stage (POST /v1/approval/stage) */
407
+ createApprovalStage(params, context) {
408
+ return this.createApprovalStage$Response(params, context).pipe(map((r) => r.body));
409
+ }
410
+ /** Delete approval stage (DELETE /v1/approval/stage/{id}) */
411
+ deleteApprovalStageByID$Response(params, context) {
412
+ return deleteApprovalStageByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
413
+ }
414
+ /** Delete approval stage (DELETE /v1/approval/stage/{id}) */
415
+ deleteApprovalStageByID(params, context) {
416
+ return this.deleteApprovalStageByID$Response(params, context).pipe(map((r) => r.body));
417
+ }
418
+ /** Get approval stage detail (GET /v1/approval/stage/{id}) */
419
+ getApprovalStageByID$Response(params, context) {
420
+ return getApprovalStageByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
421
+ }
422
+ /** Get approval stage detail (GET /v1/approval/stage/{id}) */
423
+ getApprovalStageByID(params, context) {
424
+ return this.getApprovalStageByID$Response(params, context).pipe(map((r) => r.body));
425
+ }
426
+ /** List approval stages (GET /v1/approval/stage) */
427
+ listApprovalStages$Response(params, context) {
428
+ return listApprovalStages(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
429
+ }
430
+ /** List approval stages (GET /v1/approval/stage) */
431
+ listApprovalStages(params, context) {
432
+ return this.listApprovalStages$Response(params, context).pipe(map((r) => r.body));
433
+ }
434
+ /** Update approval stage (PATCH /v1/approval/stage/{id}) */
435
+ patchApprovalStageByID$Response(params, context) {
436
+ return patchApprovalStageByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
437
+ }
438
+ /** Update approval stage (PATCH /v1/approval/stage/{id}) */
439
+ patchApprovalStageByID(params, context) {
440
+ return this.patchApprovalStageByID$Response(params, context).pipe(map((r) => r.body));
441
+ }
442
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalStageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
443
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalStageService, providedIn: 'root' });
444
+ }
445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalStageService, decorators: [{
446
+ type: Injectable,
447
+ args: [{ providedIn: 'root' }]
448
+ }] });
449
+
450
+ /* eslint-disable */
451
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
452
+ function createApprovalTransition(http, rootUrl, params, context) {
453
+ const rb = new RequestBuilder(rootUrl, createApprovalTransition.PATH, 'post');
454
+ if (params) {
455
+ rb.body(params.body, 'application/json');
456
+ }
457
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
458
+ }
459
+ createApprovalTransition.PATH = '/v1/approval/transition';
460
+
461
+ /* eslint-disable */
462
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
463
+ function deleteApprovalTransitionByID(http, rootUrl, params, context) {
464
+ const rb = new RequestBuilder(rootUrl, deleteApprovalTransitionByID.PATH, 'delete');
465
+ if (params) {
466
+ rb.path('id', params.id);
467
+ }
468
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
469
+ }
470
+ deleteApprovalTransitionByID.PATH = '/v1/approval/transition/{id}';
471
+
472
+ /* eslint-disable */
473
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
474
+ function getApprovalTransitionByID(http, rootUrl, params, context) {
475
+ const rb = new RequestBuilder(rootUrl, getApprovalTransitionByID.PATH, 'get');
476
+ if (params) {
477
+ rb.path('id', params.id);
478
+ }
479
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
480
+ }
481
+ getApprovalTransitionByID.PATH = '/v1/approval/transition/{id}';
482
+
483
+ /* eslint-disable */
484
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
485
+ function listApprovalTransitions(http, rootUrl, params, context) {
486
+ const rb = new RequestBuilder(rootUrl, listApprovalTransitions.PATH, 'get');
487
+ if (params) {
488
+ rb.query('page', params.page);
489
+ rb.query('limit', params.limit);
490
+ rb.query('sort', params.sort);
491
+ rb.query('order', params.order);
492
+ rb.query('definition_id', params.definition_id);
493
+ }
494
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
495
+ }
496
+ listApprovalTransitions.PATH = '/v1/approval/transition';
497
+
498
+ /* eslint-disable */
499
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
500
+ function patchApprovalTransitionByID(http, rootUrl, params, context) {
501
+ const rb = new RequestBuilder(rootUrl, patchApprovalTransitionByID.PATH, 'patch');
502
+ if (params) {
503
+ rb.path('id', params.id);
504
+ rb.body(params.body, 'application/json');
505
+ }
506
+ return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
507
+ }
508
+ patchApprovalTransitionByID.PATH = '/v1/approval/transition/{id}';
509
+
510
+ /* eslint-disable */
511
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
512
+ class ApprovalTransitionService extends BaseService {
513
+ /** Create approval transition (POST /v1/approval/transition) */
514
+ createApprovalTransition$Response(params, context) {
515
+ return createApprovalTransition(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
516
+ }
517
+ /** Create approval transition (POST /v1/approval/transition) */
518
+ createApprovalTransition(params, context) {
519
+ return this.createApprovalTransition$Response(params, context).pipe(map((r) => r.body));
520
+ }
521
+ /** Delete approval transition (DELETE /v1/approval/transition/{id}) */
522
+ deleteApprovalTransitionByID$Response(params, context) {
523
+ return deleteApprovalTransitionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
524
+ }
525
+ /** Delete approval transition (DELETE /v1/approval/transition/{id}) */
526
+ deleteApprovalTransitionByID(params, context) {
527
+ return this.deleteApprovalTransitionByID$Response(params, context).pipe(map((r) => r.body));
528
+ }
529
+ /** Get approval transition detail (GET /v1/approval/transition/{id}) */
530
+ getApprovalTransitionByID$Response(params, context) {
531
+ return getApprovalTransitionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
532
+ }
533
+ /** Get approval transition detail (GET /v1/approval/transition/{id}) */
534
+ getApprovalTransitionByID(params, context) {
535
+ return this.getApprovalTransitionByID$Response(params, context).pipe(map((r) => r.body));
536
+ }
537
+ /** List approval transitions (GET /v1/approval/transition) */
538
+ listApprovalTransitions$Response(params, context) {
539
+ return listApprovalTransitions(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
540
+ }
541
+ /** List approval transitions (GET /v1/approval/transition) */
542
+ listApprovalTransitions(params, context) {
543
+ return this.listApprovalTransitions$Response(params, context).pipe(map((r) => r.body));
544
+ }
545
+ /** Update approval transition (PATCH /v1/approval/transition/{id}) */
546
+ patchApprovalTransitionByID$Response(params, context) {
547
+ return patchApprovalTransitionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
548
+ }
549
+ /** Update approval transition (PATCH /v1/approval/transition/{id}) */
550
+ patchApprovalTransitionByID(params, context) {
551
+ return this.patchApprovalTransitionByID$Response(params, context).pipe(map((r) => r.body));
552
+ }
553
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalTransitionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
554
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalTransitionService, providedIn: 'root' });
555
+ }
556
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApprovalTransitionService, decorators: [{
557
+ type: Injectable,
558
+ args: [{ providedIn: 'root' }]
559
+ }] });
560
+
561
+ /* eslint-disable */
562
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
563
+ const approvalActorOperationRules = {
564
+ createApprovalActor: {
565
+ method: 'POST',
566
+ path: '/v1/approval/actor',
567
+ tags: ['Approval Actor'],
568
+ summary: 'Create approval actor',
569
+ requiredPermissions: ['approval:actor:create'],
570
+ authorizationNotes: [],
571
+ securitySchemes: ['callerAuth'],
572
+ pathParams: {},
573
+ queryParams: {},
574
+ bodySchema: 'CreateActorRequest',
575
+ responseSchemas: {
576
+ '201': 'ActorResponse',
577
+ '401': 'UnauthorizedCaller',
578
+ '422': 'BusinessRuleViolation',
579
+ '429': 'TooManyRequests',
580
+ '500': 'InternalServerError',
581
+ },
582
+ },
583
+ deleteApprovalActorByID: {
584
+ method: 'DELETE',
585
+ path: '/v1/approval/actor/{id}',
586
+ tags: ['Approval Actor'],
587
+ summary: 'Delete approval actor',
588
+ requiredPermissions: ['approval:actor:delete'],
589
+ authorizationNotes: [],
590
+ securitySchemes: ['callerAuth'],
591
+ pathParams: {
592
+ id: {
593
+ required: true,
594
+ type: 'string',
595
+ format: 'uuid',
596
+ },
597
+ },
598
+ queryParams: {},
599
+ responseSchemas: {
600
+ '200': 'ApprovalMutationAckResponse',
601
+ '401': 'UnauthorizedCaller',
602
+ '404': 'ResourceNotFound',
603
+ '429': 'TooManyRequests',
604
+ '500': 'InternalServerError',
605
+ },
606
+ },
607
+ getApprovalActorByID: {
608
+ method: 'GET',
609
+ path: '/v1/approval/actor/{id}',
610
+ tags: ['Approval Actor'],
611
+ summary: 'Get approval actor detail',
612
+ requiredPermissions: ['approval:actor:read'],
613
+ authorizationNotes: [],
614
+ securitySchemes: ['callerAuth'],
615
+ pathParams: {
616
+ id: {
617
+ required: true,
618
+ type: 'string',
619
+ format: 'uuid',
620
+ },
621
+ },
622
+ queryParams: {},
623
+ responseSchemas: {
624
+ '200': 'ActorResponse',
625
+ '401': 'UnauthorizedCaller',
626
+ '404': 'ResourceNotFound',
627
+ '429': 'TooManyRequests',
628
+ '500': 'InternalServerError',
629
+ },
630
+ },
631
+ listApprovalActors: {
632
+ method: 'GET',
633
+ path: '/v1/approval/actor',
634
+ tags: ['Approval Actor'],
635
+ summary: 'List approval actors',
636
+ requiredPermissions: ['approval:actor:list'],
637
+ authorizationNotes: [],
638
+ securitySchemes: ['callerAuth'],
639
+ pathParams: {},
640
+ queryParams: {
641
+ page: {
642
+ required: false,
643
+ type: 'integer',
644
+ minimum: 1,
645
+ },
646
+ limit: {
647
+ required: false,
648
+ type: 'integer',
649
+ minimum: 1,
650
+ maximum: 100,
651
+ },
652
+ sort: {
653
+ required: false,
654
+ type: 'string',
655
+ enumValues: ['created_at', 'type', 'ref_id', 'updated_at'],
656
+ },
657
+ order: {
658
+ required: false,
659
+ type: 'string',
660
+ enumValues: ['asc', 'desc'],
661
+ },
662
+ stage_id: {
663
+ required: false,
664
+ type: 'string',
665
+ format: 'uuid',
666
+ },
667
+ },
668
+ responseSchemas: {
669
+ '200': 'ActorListResponse',
670
+ '401': 'UnauthorizedCaller',
671
+ '429': 'TooManyRequests',
672
+ '500': 'InternalServerError',
673
+ },
674
+ },
675
+ patchApprovalActorByID: {
676
+ method: 'PATCH',
677
+ path: '/v1/approval/actor/{id}',
678
+ tags: ['Approval Actor'],
679
+ summary: 'Update approval actor',
680
+ requiredPermissions: ['approval:actor:update'],
681
+ authorizationNotes: [],
682
+ securitySchemes: ['callerAuth'],
683
+ pathParams: {
684
+ id: {
685
+ required: true,
686
+ type: 'string',
687
+ format: 'uuid',
688
+ },
689
+ },
690
+ queryParams: {},
691
+ bodySchema: 'UpdateActorRequest',
692
+ responseSchemas: {
693
+ '200': 'ActorResponse',
694
+ '401': 'UnauthorizedCaller',
695
+ '404': 'ResourceNotFound',
696
+ '422': 'BusinessRuleViolation',
697
+ '429': 'TooManyRequests',
698
+ '500': 'InternalServerError',
699
+ },
700
+ },
701
+ };
702
+
703
+ /* eslint-disable */
704
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
705
+ const approvalDefinitionOperationRules = {
706
+ createApprovalDefinition: {
707
+ method: 'POST',
708
+ path: '/v1/approval/definition',
709
+ tags: ['Approval Definition'],
710
+ summary: 'Create approval definition',
711
+ description: 'Creates an approval definition with optional nested transitions, stages, and actors.',
712
+ requiredPermissions: ['approval:definition:create'],
713
+ authorizationNotes: [],
714
+ securitySchemes: ['callerAuth'],
715
+ pathParams: {},
716
+ queryParams: {},
717
+ bodySchema: 'CreateDefinitionRequest',
718
+ responseSchemas: {
719
+ '201': 'DefinitionResponse',
720
+ '400': 'ErrorResponse',
721
+ '401': 'UnauthorizedCaller',
722
+ '429': 'TooManyRequests',
723
+ '500': 'InternalServerError',
724
+ },
725
+ },
726
+ deleteApprovalDefinitionByID: {
727
+ method: 'DELETE',
728
+ path: '/v1/approval/definition/{id}',
729
+ tags: ['Approval Definition'],
730
+ summary: 'Delete approval definition',
731
+ requiredPermissions: ['approval:definition:delete'],
732
+ authorizationNotes: [],
733
+ securitySchemes: ['callerAuth'],
734
+ pathParams: {
735
+ id: {
736
+ required: true,
737
+ type: 'string',
738
+ format: 'uuid',
739
+ },
740
+ },
741
+ queryParams: {},
742
+ responseSchemas: {
743
+ '200': 'ApprovalMutationAckResponse',
744
+ '401': 'UnauthorizedCaller',
745
+ '404': 'ResourceNotFound',
746
+ '429': 'TooManyRequests',
747
+ '500': 'InternalServerError',
748
+ },
749
+ },
750
+ getApprovalDefinitionByID: {
751
+ method: 'GET',
752
+ path: '/v1/approval/definition/{id}',
753
+ tags: ['Approval Definition'],
754
+ summary: 'Get approval definition detail',
755
+ requiredPermissions: ['approval:definition:read'],
756
+ authorizationNotes: [],
757
+ securitySchemes: ['callerAuth'],
758
+ pathParams: {
759
+ id: {
760
+ required: true,
761
+ type: 'string',
762
+ format: 'uuid',
763
+ },
764
+ },
765
+ queryParams: {},
766
+ responseSchemas: {
767
+ '200': 'DefinitionResponse',
768
+ '401': 'UnauthorizedCaller',
769
+ '404': 'ResourceNotFound',
770
+ '429': 'TooManyRequests',
771
+ '500': 'InternalServerError',
772
+ },
773
+ },
774
+ listApprovalDefinitions: {
775
+ method: 'GET',
776
+ path: '/v1/approval/definition',
777
+ tags: ['Approval Definition'],
778
+ summary: 'List approval definitions',
779
+ description: 'Returns paginated approval definition master data.',
780
+ requiredPermissions: ['approval:definition:list'],
781
+ authorizationNotes: [],
782
+ securitySchemes: ['callerAuth'],
783
+ pathParams: {},
784
+ queryParams: {
785
+ page: {
786
+ required: false,
787
+ type: 'integer',
788
+ minimum: 1,
789
+ },
790
+ limit: {
791
+ required: false,
792
+ type: 'integer',
793
+ minimum: 1,
794
+ maximum: 100,
795
+ },
796
+ sort: {
797
+ required: false,
798
+ type: 'string',
799
+ enumValues: ['created_at', 'code', 'table_name', 'updated_at'],
800
+ },
801
+ order: {
802
+ required: false,
803
+ type: 'string',
804
+ enumValues: ['asc', 'desc'],
805
+ },
806
+ search: {
807
+ required: false,
808
+ type: 'string',
809
+ },
810
+ },
811
+ responseSchemas: {
812
+ '200': 'DefinitionListResponse',
813
+ '401': 'UnauthorizedCaller',
814
+ '429': 'TooManyRequests',
815
+ '500': 'InternalServerError',
816
+ },
817
+ },
818
+ patchApprovalDefinitionByID: {
819
+ method: 'PATCH',
820
+ path: '/v1/approval/definition/{id}',
821
+ tags: ['Approval Definition'],
822
+ summary: 'Update approval definition',
823
+ requiredPermissions: ['approval:definition:update'],
824
+ authorizationNotes: [],
825
+ securitySchemes: ['callerAuth'],
826
+ pathParams: {
827
+ id: {
828
+ required: true,
829
+ type: 'string',
830
+ format: 'uuid',
831
+ },
832
+ },
833
+ queryParams: {},
834
+ bodySchema: 'UpdateDefinitionRequest',
835
+ responseSchemas: {
836
+ '200': 'DefinitionResponse',
837
+ '401': 'UnauthorizedCaller',
838
+ '404': 'ResourceNotFound',
839
+ '429': 'TooManyRequests',
840
+ '500': 'InternalServerError',
841
+ },
842
+ },
843
+ };
844
+
845
+ /* eslint-disable */
846
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
847
+ const approvalInstanceOperationRules = {
848
+ approveApprovalStep: {
849
+ method: 'POST',
850
+ path: '/v1/approval/approve',
851
+ tags: ['Approval Instance'],
852
+ summary: 'Approve current approval step',
853
+ requiredPermissions: ['approval:instance:approve'],
854
+ authorizationNotes: [],
855
+ securitySchemes: ['callerAuth'],
856
+ pathParams: {},
857
+ queryParams: {},
858
+ bodySchema: 'ApproveRequest',
859
+ responseSchemas: {
860
+ '200': 'WorkflowActionResponse',
861
+ '401': 'UnauthorizedCaller',
862
+ '422': 'BusinessRuleViolation',
863
+ '429': 'TooManyRequests',
864
+ '500': 'InternalServerError',
865
+ },
866
+ },
867
+ getApprovalInstanceByID: {
868
+ method: 'GET',
869
+ path: '/v1/approval/instance/{id}',
870
+ tags: ['Approval Instance'],
871
+ summary: 'Get approval instance detail',
872
+ requiredPermissions: ['approval:instance:read'],
873
+ authorizationNotes: [],
874
+ securitySchemes: ['callerAuth'],
875
+ pathParams: {
876
+ id: {
877
+ required: true,
878
+ type: 'string',
879
+ format: 'uuid',
880
+ },
881
+ },
882
+ queryParams: {},
883
+ responseSchemas: {
884
+ '200': 'InstanceDetailResponse',
885
+ '401': 'UnauthorizedCaller',
886
+ '404': 'ResourceNotFound',
887
+ '429': 'TooManyRequests',
888
+ '500': 'InternalServerError',
889
+ },
890
+ },
891
+ listPendingApprovalItems: {
892
+ method: 'GET',
893
+ path: '/v1/approval/pending',
894
+ tags: ['Approval Instance'],
895
+ summary: 'List pending approvals for current actor',
896
+ requiredPermissions: ['approval:instance:pending'],
897
+ authorizationNotes: [],
898
+ securitySchemes: ['callerAuth'],
899
+ pathParams: {},
900
+ queryParams: {
901
+ page: {
902
+ required: false,
903
+ type: 'integer',
904
+ minimum: 1,
905
+ },
906
+ limit: {
907
+ required: false,
908
+ type: 'integer',
909
+ minimum: 1,
910
+ maximum: 100,
911
+ },
912
+ sort: {
913
+ required: false,
914
+ type: 'string',
915
+ enumValues: ['created_at', 'updated_at', 'table_name', 'record_id', 'current_stage'],
916
+ },
917
+ order: {
918
+ required: false,
919
+ type: 'string',
920
+ enumValues: ['asc', 'desc'],
921
+ },
922
+ },
923
+ responseSchemas: {
924
+ '200': 'PendingListResponse',
925
+ '401': 'UnauthorizedCaller',
926
+ '429': 'TooManyRequests',
927
+ '500': 'InternalServerError',
928
+ },
929
+ },
930
+ rejectApprovalStep: {
931
+ method: 'POST',
932
+ path: '/v1/approval/reject',
933
+ tags: ['Approval Instance'],
934
+ summary: 'Reject current approval step',
935
+ requiredPermissions: ['approval:instance:reject'],
936
+ authorizationNotes: [],
937
+ securitySchemes: ['callerAuth'],
938
+ pathParams: {},
939
+ queryParams: {},
940
+ bodySchema: 'RejectRequest',
941
+ responseSchemas: {
942
+ '200': 'WorkflowActionResponse',
943
+ '401': 'UnauthorizedCaller',
944
+ '422': 'BusinessRuleViolation',
945
+ '429': 'TooManyRequests',
946
+ '500': 'InternalServerError',
947
+ },
948
+ },
949
+ submitApprovalWorkflow: {
950
+ method: 'POST',
951
+ path: '/v1/approval/submit',
952
+ tags: ['Approval Instance'],
953
+ summary: 'Submit record into approval workflow',
954
+ description: 'Resolves one approval definition, chooses the valid transition from current status, and creates a pending approval instance with generated steps.',
955
+ requiredPermissions: ['approval:instance:submit'],
956
+ authorizationNotes: [],
957
+ securitySchemes: ['callerAuth'],
958
+ pathParams: {},
959
+ queryParams: {},
960
+ bodySchema: 'SubmitRequest',
961
+ responseSchemas: {
962
+ '201': 'WorkflowActionResponse',
963
+ '401': 'UnauthorizedCaller',
964
+ '422': 'BusinessRuleViolation',
965
+ '429': 'TooManyRequests',
966
+ '500': 'InternalServerError',
967
+ },
968
+ },
969
+ };
970
+
971
+ /* eslint-disable */
972
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
973
+ const approvalStageOperationRules = {
974
+ createApprovalStage: {
975
+ method: 'POST',
976
+ path: '/v1/approval/stage',
977
+ tags: ['Approval Stage'],
978
+ summary: 'Create approval stage',
979
+ requiredPermissions: ['approval:stage:create'],
980
+ authorizationNotes: [],
981
+ securitySchemes: ['callerAuth'],
982
+ pathParams: {},
983
+ queryParams: {},
984
+ bodySchema: 'CreateStageRequest',
985
+ responseSchemas: {
986
+ '201': 'StageResponse',
987
+ '401': 'UnauthorizedCaller',
988
+ '429': 'TooManyRequests',
989
+ '500': 'InternalServerError',
990
+ },
991
+ },
992
+ deleteApprovalStageByID: {
993
+ method: 'DELETE',
994
+ path: '/v1/approval/stage/{id}',
995
+ tags: ['Approval Stage'],
996
+ summary: 'Delete approval stage',
997
+ requiredPermissions: ['approval:stage:delete'],
998
+ authorizationNotes: [],
999
+ securitySchemes: ['callerAuth'],
1000
+ pathParams: {
1001
+ id: {
1002
+ required: true,
1003
+ type: 'string',
1004
+ format: 'uuid',
1005
+ },
1006
+ },
1007
+ queryParams: {},
1008
+ responseSchemas: {
1009
+ '200': 'ApprovalMutationAckResponse',
1010
+ '401': 'UnauthorizedCaller',
1011
+ '404': 'ResourceNotFound',
1012
+ '429': 'TooManyRequests',
1013
+ '500': 'InternalServerError',
1014
+ },
1015
+ },
1016
+ getApprovalStageByID: {
1017
+ method: 'GET',
1018
+ path: '/v1/approval/stage/{id}',
1019
+ tags: ['Approval Stage'],
1020
+ summary: 'Get approval stage detail',
1021
+ requiredPermissions: ['approval:stage:read'],
1022
+ authorizationNotes: [],
1023
+ securitySchemes: ['callerAuth'],
1024
+ pathParams: {
1025
+ id: {
1026
+ required: true,
1027
+ type: 'string',
1028
+ format: 'uuid',
1029
+ },
1030
+ },
1031
+ queryParams: {},
1032
+ responseSchemas: {
1033
+ '200': 'StageDetailResponse',
1034
+ '401': 'UnauthorizedCaller',
1035
+ '404': 'ResourceNotFound',
1036
+ '429': 'TooManyRequests',
1037
+ '500': 'InternalServerError',
1038
+ },
1039
+ },
1040
+ listApprovalStages: {
1041
+ method: 'GET',
1042
+ path: '/v1/approval/stage',
1043
+ tags: ['Approval Stage'],
1044
+ summary: 'List approval stages',
1045
+ requiredPermissions: ['approval:stage:list'],
1046
+ authorizationNotes: [],
1047
+ securitySchemes: ['callerAuth'],
1048
+ pathParams: {},
1049
+ queryParams: {
1050
+ page: {
1051
+ required: false,
1052
+ type: 'integer',
1053
+ minimum: 1,
1054
+ },
1055
+ limit: {
1056
+ required: false,
1057
+ type: 'integer',
1058
+ minimum: 1,
1059
+ maximum: 100,
1060
+ },
1061
+ sort: {
1062
+ required: false,
1063
+ type: 'string',
1064
+ enumValues: ['created_at', 'level', 'name', 'updated_at'],
1065
+ },
1066
+ order: {
1067
+ required: false,
1068
+ type: 'string',
1069
+ enumValues: ['asc', 'desc'],
1070
+ },
1071
+ definition_id: {
1072
+ required: false,
1073
+ type: 'string',
1074
+ format: 'uuid',
1075
+ },
1076
+ },
1077
+ responseSchemas: {
1078
+ '200': 'StageListResponse',
1079
+ '401': 'UnauthorizedCaller',
1080
+ '429': 'TooManyRequests',
1081
+ '500': 'InternalServerError',
1082
+ },
1083
+ },
1084
+ patchApprovalStageByID: {
1085
+ method: 'PATCH',
1086
+ path: '/v1/approval/stage/{id}',
1087
+ tags: ['Approval Stage'],
1088
+ summary: 'Update approval stage',
1089
+ requiredPermissions: ['approval:stage:update'],
1090
+ authorizationNotes: [],
1091
+ securitySchemes: ['callerAuth'],
1092
+ pathParams: {
1093
+ id: {
1094
+ required: true,
1095
+ type: 'string',
1096
+ format: 'uuid',
1097
+ },
1098
+ },
1099
+ queryParams: {},
1100
+ bodySchema: 'UpdateStageRequest',
1101
+ responseSchemas: {
1102
+ '200': 'StageResponse',
1103
+ '401': 'UnauthorizedCaller',
1104
+ '404': 'ResourceNotFound',
1105
+ '429': 'TooManyRequests',
1106
+ '500': 'InternalServerError',
1107
+ },
1108
+ },
1109
+ };
1110
+
1111
+ /* eslint-disable */
1112
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1113
+ const approvalTransitionOperationRules = {
1114
+ createApprovalTransition: {
1115
+ method: 'POST',
1116
+ path: '/v1/approval/transition',
1117
+ tags: ['Approval Transition'],
1118
+ summary: 'Create approval transition',
1119
+ requiredPermissions: ['approval:transition:create'],
1120
+ authorizationNotes: [],
1121
+ securitySchemes: ['callerAuth'],
1122
+ pathParams: {},
1123
+ queryParams: {},
1124
+ bodySchema: 'CreateTransitionRequest',
1125
+ responseSchemas: {
1126
+ '201': 'TransitionResponse',
1127
+ '401': 'UnauthorizedCaller',
1128
+ '429': 'TooManyRequests',
1129
+ '500': 'InternalServerError',
1130
+ },
1131
+ },
1132
+ deleteApprovalTransitionByID: {
1133
+ method: 'DELETE',
1134
+ path: '/v1/approval/transition/{id}',
1135
+ tags: ['Approval Transition'],
1136
+ summary: 'Delete approval transition',
1137
+ requiredPermissions: ['approval:transition:delete'],
1138
+ authorizationNotes: [],
1139
+ securitySchemes: ['callerAuth'],
1140
+ pathParams: {
1141
+ id: {
1142
+ required: true,
1143
+ type: 'string',
1144
+ format: 'uuid',
1145
+ },
1146
+ },
1147
+ queryParams: {},
1148
+ responseSchemas: {
1149
+ '200': 'ApprovalMutationAckResponse',
1150
+ '401': 'UnauthorizedCaller',
1151
+ '404': 'ResourceNotFound',
1152
+ '429': 'TooManyRequests',
1153
+ '500': 'InternalServerError',
1154
+ },
1155
+ },
1156
+ getApprovalTransitionByID: {
1157
+ method: 'GET',
1158
+ path: '/v1/approval/transition/{id}',
1159
+ tags: ['Approval Transition'],
1160
+ summary: 'Get approval transition detail',
1161
+ requiredPermissions: ['approval:transition:read'],
1162
+ authorizationNotes: [],
1163
+ securitySchemes: ['callerAuth'],
1164
+ pathParams: {
1165
+ id: {
1166
+ required: true,
1167
+ type: 'string',
1168
+ format: 'uuid',
1169
+ },
1170
+ },
1171
+ queryParams: {},
1172
+ responseSchemas: {
1173
+ '200': 'TransitionResponse',
1174
+ '401': 'UnauthorizedCaller',
1175
+ '404': 'ResourceNotFound',
1176
+ '429': 'TooManyRequests',
1177
+ '500': 'InternalServerError',
1178
+ },
1179
+ },
1180
+ listApprovalTransitions: {
1181
+ method: 'GET',
1182
+ path: '/v1/approval/transition',
1183
+ tags: ['Approval Transition'],
1184
+ summary: 'List approval transitions',
1185
+ requiredPermissions: ['approval:transition:list'],
1186
+ authorizationNotes: [],
1187
+ securitySchemes: ['callerAuth'],
1188
+ pathParams: {},
1189
+ queryParams: {
1190
+ page: {
1191
+ required: false,
1192
+ type: 'integer',
1193
+ minimum: 1,
1194
+ },
1195
+ limit: {
1196
+ required: false,
1197
+ type: 'integer',
1198
+ minimum: 1,
1199
+ maximum: 100,
1200
+ },
1201
+ sort: {
1202
+ required: false,
1203
+ type: 'string',
1204
+ enumValues: ['created_at', 'from_status', 'to_status', 'updated_at'],
1205
+ },
1206
+ order: {
1207
+ required: false,
1208
+ type: 'string',
1209
+ enumValues: ['asc', 'desc'],
1210
+ },
1211
+ definition_id: {
1212
+ required: false,
1213
+ type: 'string',
1214
+ format: 'uuid',
1215
+ },
1216
+ },
1217
+ responseSchemas: {
1218
+ '200': 'TransitionListResponse',
1219
+ '401': 'UnauthorizedCaller',
1220
+ '429': 'TooManyRequests',
1221
+ '500': 'InternalServerError',
1222
+ },
1223
+ },
1224
+ patchApprovalTransitionByID: {
1225
+ method: 'PATCH',
1226
+ path: '/v1/approval/transition/{id}',
1227
+ tags: ['Approval Transition'],
1228
+ summary: 'Update approval transition',
1229
+ requiredPermissions: ['approval:transition:update'],
1230
+ authorizationNotes: [],
1231
+ securitySchemes: ['callerAuth'],
1232
+ pathParams: {
1233
+ id: {
1234
+ required: true,
1235
+ type: 'string',
1236
+ format: 'uuid',
1237
+ },
1238
+ },
1239
+ queryParams: {},
1240
+ bodySchema: 'UpdateTransitionRequest',
1241
+ responseSchemas: {
1242
+ '200': 'TransitionResponse',
1243
+ '401': 'UnauthorizedCaller',
1244
+ '404': 'ResourceNotFound',
1245
+ '429': 'TooManyRequests',
1246
+ '500': 'InternalServerError',
1247
+ },
1248
+ },
1249
+ };
1250
+
1251
+ /* eslint-disable */
1252
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1253
+
1254
+ /**
1255
+ * Generated bundle index. Do not edit.
1256
+ */
1257
+
1258
+ export { ApprovalActorService, ApprovalDefinitionService, ApprovalInstanceService, ApprovalStageService, ApprovalTransitionService, approvalActorOperationRules, approvalDefinitionOperationRules, approvalInstanceOperationRules, approvalStageOperationRules, approvalTransitionOperationRules, approveApprovalStep, createApprovalActor, createApprovalDefinition, createApprovalStage, createApprovalTransition, deleteApprovalActorByID, deleteApprovalDefinitionByID, deleteApprovalStageByID, deleteApprovalTransitionByID, getApprovalActorByID, getApprovalDefinitionByID, getApprovalInstanceByID, getApprovalStageByID, getApprovalTransitionByID, listApprovalActors, listApprovalDefinitions, listApprovalStages, listApprovalTransitions, listPendingApprovalItems, patchApprovalActorByID, patchApprovalDefinitionByID, patchApprovalStageByID, patchApprovalTransitionByID, rejectApprovalStep, submitApprovalWorkflow };
1259
+ //# sourceMappingURL=edsis-angular-sdk-approval.mjs.map