@edsis/angular 0.0.2 → 21.0.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.
Files changed (46) hide show
  1. package/README.md +74 -178
  2. package/fesm2022/edsis-angular-sdk-access.mjs +1365 -0
  3. package/fesm2022/edsis-angular-sdk-access.mjs.map +1 -0
  4. package/fesm2022/edsis-angular-sdk-approval.mjs +1259 -0
  5. package/fesm2022/edsis-angular-sdk-approval.mjs.map +1 -0
  6. package/fesm2022/edsis-angular-sdk-auth.mjs +254 -0
  7. package/fesm2022/edsis-angular-sdk-auth.mjs.map +1 -0
  8. package/fesm2022/edsis-angular-sdk-employee.mjs +284 -0
  9. package/fesm2022/edsis-angular-sdk-employee.mjs.map +1 -0
  10. package/fesm2022/edsis-angular-sdk-health.mjs +96 -0
  11. package/fesm2022/edsis-angular-sdk-health.mjs.map +1 -0
  12. package/fesm2022/edsis-angular-sdk-shared.mjs +2740 -0
  13. package/fesm2022/edsis-angular-sdk-shared.mjs.map +1 -0
  14. package/fesm2022/edsis-angular-sdk-storage.mjs +288 -0
  15. package/fesm2022/edsis-angular-sdk-storage.mjs.map +1 -0
  16. package/fesm2022/edsis-angular-sdk-user.mjs +489 -0
  17. package/fesm2022/edsis-angular-sdk-user.mjs.map +1 -0
  18. package/fesm2022/edsis-angular-sdk.mjs +75 -0
  19. package/fesm2022/edsis-angular-sdk.mjs.map +1 -0
  20. package/fesm2022/edsis-angular.mjs +0 -5707
  21. package/fesm2022/edsis-angular.mjs.map +1 -1
  22. package/package.json +47 -46
  23. package/types/edsis-angular-sdk-access.d.ts +547 -0
  24. package/types/edsis-angular-sdk-approval.d.ts +638 -0
  25. package/types/edsis-angular-sdk-auth.d.ts +128 -0
  26. package/types/edsis-angular-sdk-employee.d.ts +159 -0
  27. package/types/edsis-angular-sdk-health.d.ts +35 -0
  28. package/types/edsis-angular-sdk-shared.d.ts +176 -0
  29. package/types/edsis-angular-sdk-storage.d.ts +102 -0
  30. package/types/edsis-angular-sdk-user.d.ts +189 -0
  31. package/types/edsis-angular-sdk.d.ts +26 -0
  32. package/types/edsis-angular.d.ts +1 -824
  33. package/src/lib/styles/USAGE.md +0 -238
  34. package/src/lib/styles/container.css +0 -38
  35. package/src/lib/styles/fonts/commit-mono/CommitMonoVariable.woff2 +0 -0
  36. package/src/lib/styles/fonts/commit-mono/commit-mono.css +0 -2
  37. package/src/lib/styles/fonts/inter/InterVariable-Italic.woff2 +0 -0
  38. package/src/lib/styles/fonts/inter/InterVariable.woff2 +0 -0
  39. package/src/lib/styles/fonts/inter/inter.css +0 -2
  40. package/src/lib/styles/icons/README.md +0 -313
  41. package/src/lib/styles/icons/lucide.svg +0 -9768
  42. package/src/lib/styles/icons/material-symbols.css +0 -48
  43. package/src/lib/styles/main.css +0 -24
  44. package/src/lib/styles/tailwind/component/card.css +0 -7
  45. package/src/lib/styles/tailwind/tailwind.css +0 -144
  46. package/src/lib/styles/theme.css +0 -406
@@ -0,0 +1,2740 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, makeEnvironmentProviders, inject } from '@angular/core';
3
+ import { HttpClient, HttpParams, HttpHeaders, HttpRequest, HttpResponse } from '@angular/common/http';
4
+ import { map, filter } from 'rxjs/operators';
5
+
6
+ /* eslint-disable */
7
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
8
+ class ApiConfiguration {
9
+ rootUrl = '';
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApiConfiguration, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApiConfiguration, providedIn: 'root' });
12
+ }
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ApiConfiguration, decorators: [{
14
+ type: Injectable,
15
+ args: [{ providedIn: 'root' }]
16
+ }] });
17
+ function provideApiConfiguration(rootUrl) {
18
+ return makeEnvironmentProviders([
19
+ {
20
+ provide: ApiConfiguration,
21
+ useFactory: () => {
22
+ const c = new ApiConfiguration();
23
+ c.rootUrl = rootUrl;
24
+ return c;
25
+ },
26
+ },
27
+ ]);
28
+ }
29
+
30
+ /* eslint-disable */
31
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
32
+ class BaseService {
33
+ config = inject(ApiConfiguration);
34
+ http = inject(HttpClient);
35
+ _rootUrl;
36
+ get rootUrl() {
37
+ return this._rootUrl ?? this.config.rootUrl;
38
+ }
39
+ set rootUrl(url) {
40
+ this._rootUrl = url;
41
+ }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
43
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseService });
44
+ }
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseService, decorators: [{
46
+ type: Injectable
47
+ }] });
48
+
49
+ /* eslint-disable */
50
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
51
+ class RequestBuilder {
52
+ rootUrl;
53
+ operationPath;
54
+ method;
55
+ _pathParams = new Map();
56
+ _queryParams = new Map();
57
+ _headerParams = new Map();
58
+ _body = undefined;
59
+ _bodyContentType;
60
+ constructor(rootUrl, operationPath, method) {
61
+ this.rootUrl = rootUrl;
62
+ this.operationPath = operationPath;
63
+ this.method = method;
64
+ }
65
+ path(name, value) {
66
+ this._pathParams.set(name, value);
67
+ }
68
+ query(name, value) {
69
+ this._queryParams.set(name, value);
70
+ }
71
+ header(name, value) {
72
+ this._headerParams.set(name, value);
73
+ }
74
+ body(value, contentType = 'application/json') {
75
+ if (value instanceof Blob) {
76
+ this._bodyContentType = value.type;
77
+ }
78
+ else if (value instanceof FormData) {
79
+ // FormData sets its own Content-Type (with boundary) — leave it alone.
80
+ this._bodyContentType = undefined;
81
+ }
82
+ else {
83
+ this._bodyContentType = contentType;
84
+ }
85
+ this._body = value;
86
+ }
87
+ build(options = {}) {
88
+ let path = this.operationPath;
89
+ for (const [name, value] of this._pathParams) {
90
+ path = path.replace('{' + name + '}', encodeURIComponent(value == null ? '' : String(value)));
91
+ }
92
+ let params = new HttpParams();
93
+ for (const [name, value] of this._queryParams) {
94
+ if (value === undefined || value === null)
95
+ continue;
96
+ if (Array.isArray(value)) {
97
+ for (const v of value) {
98
+ if (v !== undefined && v !== null)
99
+ params = params.append(name, String(v));
100
+ }
101
+ }
102
+ else {
103
+ params = params.append(name, String(value));
104
+ }
105
+ }
106
+ let headers = new HttpHeaders();
107
+ if (options.accept)
108
+ headers = headers.set('Accept', options.accept);
109
+ for (const [name, value] of this._headerParams) {
110
+ if (value === undefined || value === null)
111
+ continue;
112
+ if (Array.isArray(value)) {
113
+ for (const v of value)
114
+ headers = headers.append(name, String(v));
115
+ }
116
+ else {
117
+ headers = headers.set(name, String(value));
118
+ }
119
+ }
120
+ if (this._bodyContentType) {
121
+ headers = headers.set('Content-Type', this._bodyContentType);
122
+ }
123
+ return new HttpRequest(this.method.toUpperCase(), this.rootUrl + path, this._body, {
124
+ params,
125
+ headers,
126
+ responseType: options.responseType,
127
+ reportProgress: options.reportProgress,
128
+ context: options.context,
129
+ });
130
+ }
131
+ }
132
+
133
+ /* eslint-disable */
134
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
135
+ /**
136
+ * Helper to invoke any tree-shakeable operation function directly.
137
+ */
138
+ class Api {
139
+ config = inject(ApiConfiguration);
140
+ http = inject(HttpClient);
141
+ _rootUrl;
142
+ get rootUrl() {
143
+ return this._rootUrl ?? this.config.rootUrl;
144
+ }
145
+ set rootUrl(url) {
146
+ this._rootUrl = url;
147
+ }
148
+ /** Invoke an operation function and stream the response body. */
149
+ invoke(fn, params, context) {
150
+ return this.invoke$Response(fn, params, context).pipe(map((r) => r.body));
151
+ }
152
+ /** Invoke an operation function and stream the full HTTP response. */
153
+ invoke$Response(fn, params, context) {
154
+ return fn(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
155
+ }
156
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Api, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
157
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Api, providedIn: 'root' });
158
+ }
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Api, decorators: [{
160
+ type: Injectable,
161
+ args: [{ providedIn: 'root' }]
162
+ }] });
163
+
164
+ /* eslint-disable */
165
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
166
+
167
+ /* eslint-disable */
168
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
169
+ const accessValidationSchemas = {
170
+ AccessMutationAckResponse: {
171
+ required: [],
172
+ properties: {
173
+ status: {
174
+ required: false,
175
+ type: 'string',
176
+ },
177
+ message: {
178
+ required: false,
179
+ type: 'string',
180
+ },
181
+ data: {
182
+ required: false,
183
+ type: 'object',
184
+ },
185
+ },
186
+ },
187
+ };
188
+
189
+ /* eslint-disable */
190
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
191
+ const actorValidationSchemas = {
192
+ Actor: {
193
+ required: [],
194
+ properties: {
195
+ id: {
196
+ required: false,
197
+ type: 'string',
198
+ format: 'uuid',
199
+ },
200
+ stage_id: {
201
+ required: false,
202
+ type: 'string',
203
+ format: 'uuid',
204
+ },
205
+ type: {
206
+ required: false,
207
+ type: 'string',
208
+ enumValues: ['USER', 'ROLE', 'DEPARTMENT', 'POSITION'],
209
+ },
210
+ ref_id: {
211
+ required: false,
212
+ type: 'string',
213
+ },
214
+ created_at: {
215
+ required: false,
216
+ type: 'string',
217
+ format: 'date-time',
218
+ },
219
+ updated_at: {
220
+ required: false,
221
+ type: 'string',
222
+ format: 'date-time',
223
+ },
224
+ },
225
+ },
226
+ ActorListResponse: {
227
+ required: [],
228
+ properties: {
229
+ status: {
230
+ required: false,
231
+ type: 'string',
232
+ },
233
+ message: {
234
+ required: false,
235
+ type: 'string',
236
+ },
237
+ data: {
238
+ required: false,
239
+ type: 'array',
240
+ itemsRef: 'Actor',
241
+ },
242
+ meta: {
243
+ required: false,
244
+ ref: 'PaginationMeta',
245
+ },
246
+ },
247
+ },
248
+ ActorResponse: {
249
+ required: [],
250
+ properties: {
251
+ status: {
252
+ required: false,
253
+ type: 'string',
254
+ },
255
+ message: {
256
+ required: false,
257
+ type: 'string',
258
+ },
259
+ data: {
260
+ required: false,
261
+ ref: 'Actor',
262
+ },
263
+ },
264
+ },
265
+ };
266
+
267
+ /* eslint-disable */
268
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
269
+ const approvalValidationSchemas = {
270
+ ApprovalMutationAckResponse: {
271
+ required: [],
272
+ properties: {
273
+ status: {
274
+ required: false,
275
+ type: 'string',
276
+ },
277
+ message: {
278
+ required: false,
279
+ type: 'string',
280
+ },
281
+ data: {
282
+ required: false,
283
+ type: 'object',
284
+ },
285
+ },
286
+ },
287
+ };
288
+
289
+ /* eslint-disable */
290
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
291
+ const approveValidationSchemas = {
292
+ ApproveRequest: {
293
+ required: ['instance_id', 'step_id'],
294
+ properties: {
295
+ instance_id: {
296
+ required: true,
297
+ type: 'string',
298
+ format: 'uuid',
299
+ },
300
+ step_id: {
301
+ required: true,
302
+ type: 'string',
303
+ format: 'uuid',
304
+ },
305
+ comment: {
306
+ required: false,
307
+ type: 'string',
308
+ maxLength: 1000,
309
+ },
310
+ },
311
+ },
312
+ };
313
+
314
+ /* eslint-disable */
315
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
316
+ const authValidationSchemas = {
317
+ AuthLoginRequest: {
318
+ required: ['email'],
319
+ properties: {
320
+ email: {
321
+ required: true,
322
+ type: 'string',
323
+ format: 'email',
324
+ description: 'Registered email address.',
325
+ maxLength: 255,
326
+ },
327
+ },
328
+ },
329
+ AuthRegisterRequest: {
330
+ required: ['name', 'email'],
331
+ properties: {
332
+ name: {
333
+ required: true,
334
+ type: 'string',
335
+ description: 'Full name with 2 to 100 characters.',
336
+ minLength: 2,
337
+ maxLength: 100,
338
+ },
339
+ email: {
340
+ required: true,
341
+ type: 'string',
342
+ format: 'email',
343
+ description: 'Unique email address.',
344
+ maxLength: 255,
345
+ },
346
+ },
347
+ },
348
+ AuthResendRequest: {
349
+ required: ['email'],
350
+ properties: {
351
+ email: {
352
+ required: true,
353
+ type: 'string',
354
+ format: 'email',
355
+ description: 'Registered email address.',
356
+ maxLength: 255,
357
+ },
358
+ frontend_url: {
359
+ required: false,
360
+ type: 'string',
361
+ format: 'uri',
362
+ description: 'Optional absolute frontend URL that will receive the magic-link token fragment.',
363
+ nullable: true,
364
+ maxLength: 2048,
365
+ },
366
+ },
367
+ },
368
+ AuthTokenResponse: {
369
+ required: [],
370
+ properties: {
371
+ status: {
372
+ required: false,
373
+ type: 'string',
374
+ },
375
+ message: {
376
+ required: false,
377
+ type: 'string',
378
+ },
379
+ data: {
380
+ required: false,
381
+ type: 'object',
382
+ },
383
+ },
384
+ },
385
+ AuthUser: {
386
+ required: [],
387
+ properties: {
388
+ user_id: {
389
+ required: false,
390
+ type: 'string',
391
+ format: 'uuid',
392
+ },
393
+ email: {
394
+ required: false,
395
+ type: 'string',
396
+ format: 'email',
397
+ },
398
+ role: {
399
+ required: false,
400
+ type: 'string',
401
+ },
402
+ status: {
403
+ required: false,
404
+ type: 'string',
405
+ },
406
+ name: {
407
+ required: false,
408
+ type: 'string',
409
+ },
410
+ },
411
+ },
412
+ AuthUserResponse: {
413
+ required: [],
414
+ properties: {
415
+ status: {
416
+ required: false,
417
+ type: 'string',
418
+ },
419
+ message: {
420
+ required: false,
421
+ type: 'string',
422
+ },
423
+ data: {
424
+ required: false,
425
+ ref: 'AuthUser',
426
+ },
427
+ },
428
+ },
429
+ AuthVerifyRequest: {
430
+ required: ['token', 'device_type'],
431
+ properties: {
432
+ token: {
433
+ required: true,
434
+ type: 'string',
435
+ description: 'Single-use magic link token.',
436
+ minLength: 1,
437
+ },
438
+ device_type: {
439
+ required: true,
440
+ type: 'string',
441
+ description: 'Client device type for this session. Only ONE active refresh-token\nfamily is allowed per (user, device_type); verifying a new session\nwith a device_type that already has an active session automatically\nrevokes the previous one (the old device is logged out).\n',
442
+ enumValues: ['web', 'mobile', 'desktop', 'tablet'],
443
+ },
444
+ },
445
+ },
446
+ };
447
+
448
+ /* eslint-disable */
449
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
450
+ const createValidationSchemas = {
451
+ CreateActorRequest: {
452
+ required: ['stage_id', 'type', 'ref_id'],
453
+ properties: {
454
+ stage_id: {
455
+ required: true,
456
+ type: 'string',
457
+ format: 'uuid',
458
+ },
459
+ type: {
460
+ required: true,
461
+ type: 'string',
462
+ enumValues: ['USER', 'ROLE', 'DEPARTMENT', 'POSITION'],
463
+ },
464
+ ref_id: {
465
+ required: true,
466
+ type: 'string',
467
+ maxLength: 100,
468
+ },
469
+ },
470
+ },
471
+ CreateDefinitionActorRequest: {
472
+ required: ['type', 'ref_id'],
473
+ properties: {
474
+ type: {
475
+ required: true,
476
+ type: 'string',
477
+ enumValues: ['USER', 'ROLE', 'DEPARTMENT', 'POSITION'],
478
+ },
479
+ ref_id: {
480
+ required: true,
481
+ type: 'string',
482
+ maxLength: 100,
483
+ },
484
+ },
485
+ },
486
+ CreateDefinitionRequest: {
487
+ required: ['code', 'table_name'],
488
+ properties: {
489
+ code: {
490
+ required: true,
491
+ type: 'string',
492
+ maxLength: 100,
493
+ },
494
+ table_name: {
495
+ required: true,
496
+ type: 'string',
497
+ maxLength: 100,
498
+ },
499
+ is_active: {
500
+ required: false,
501
+ type: 'boolean',
502
+ },
503
+ transitions: {
504
+ required: false,
505
+ type: 'array',
506
+ itemsRef: 'CreateDefinitionTransitionRequest',
507
+ },
508
+ stages: {
509
+ required: false,
510
+ type: 'array',
511
+ itemsRef: 'CreateDefinitionStageRequest',
512
+ },
513
+ },
514
+ },
515
+ CreateDefinitionStageRequest: {
516
+ required: ['level', 'name'],
517
+ properties: {
518
+ level: {
519
+ required: true,
520
+ type: 'integer',
521
+ minimum: 1,
522
+ },
523
+ name: {
524
+ required: true,
525
+ type: 'string',
526
+ maxLength: 100,
527
+ },
528
+ is_parallel: {
529
+ required: false,
530
+ type: 'boolean',
531
+ },
532
+ actors: {
533
+ required: false,
534
+ type: 'array',
535
+ itemsRef: 'CreateDefinitionActorRequest',
536
+ },
537
+ },
538
+ },
539
+ CreateDefinitionTransitionRequest: {
540
+ required: ['from_status', 'to_status'],
541
+ properties: {
542
+ from_status: {
543
+ required: true,
544
+ type: 'string',
545
+ maxLength: 50,
546
+ },
547
+ to_status: {
548
+ required: true,
549
+ type: 'string',
550
+ maxLength: 50,
551
+ },
552
+ },
553
+ },
554
+ CreateEmployeeRequest: {
555
+ required: ['employee_number', 'full_name', 'email', 'hire_date'],
556
+ properties: {
557
+ employee_number: {
558
+ required: true,
559
+ type: 'string',
560
+ maxLength: 100,
561
+ },
562
+ full_name: {
563
+ required: true,
564
+ type: 'string',
565
+ minLength: 2,
566
+ maxLength: 200,
567
+ },
568
+ nationality: {
569
+ required: false,
570
+ type: 'string',
571
+ maxLength: 50,
572
+ },
573
+ phone_number: {
574
+ required: false,
575
+ type: 'string',
576
+ maxLength: 50,
577
+ },
578
+ marital_status: {
579
+ required: false,
580
+ type: 'string',
581
+ enumValues: ['TK', 'TK/1', 'TK/2', 'TK/3', 'K', 'K/1', 'K/2', 'K/3'],
582
+ },
583
+ dependents: {
584
+ required: false,
585
+ type: 'integer',
586
+ minimum: 0,
587
+ },
588
+ place_of_birth: {
589
+ required: false,
590
+ type: 'string',
591
+ maxLength: 100,
592
+ },
593
+ date_of_birth: {
594
+ required: false,
595
+ type: 'string',
596
+ format: 'date',
597
+ },
598
+ gender: {
599
+ required: false,
600
+ type: 'string',
601
+ enumValues: ['male', 'female'],
602
+ },
603
+ religion: {
604
+ required: false,
605
+ type: 'string',
606
+ maxLength: 50,
607
+ },
608
+ email: {
609
+ required: true,
610
+ type: 'string',
611
+ format: 'email',
612
+ maxLength: 200,
613
+ },
614
+ hire_date: {
615
+ required: true,
616
+ type: 'string',
617
+ format: 'date',
618
+ },
619
+ termination_date: {
620
+ required: false,
621
+ type: 'string',
622
+ format: 'date',
623
+ },
624
+ payroll_date: {
625
+ required: false,
626
+ type: 'string',
627
+ format: 'date',
628
+ },
629
+ employment_status: {
630
+ required: false,
631
+ type: 'string',
632
+ enumValues: ['contract', 'permanent', 'probation', 'intern', 'terminated'],
633
+ },
634
+ photo_id: {
635
+ required: false,
636
+ type: 'string',
637
+ format: 'uuid',
638
+ description: 'Optional file identifier reference for the employee photo.',
639
+ },
640
+ },
641
+ },
642
+ CreatePermissionRequest: {
643
+ required: ['namespace', 'resource', 'action'],
644
+ properties: {
645
+ namespace: {
646
+ required: true,
647
+ type: 'string',
648
+ minLength: 2,
649
+ maxLength: 100,
650
+ },
651
+ resource: {
652
+ required: true,
653
+ type: 'string',
654
+ minLength: 2,
655
+ maxLength: 100,
656
+ },
657
+ action: {
658
+ required: true,
659
+ type: 'string',
660
+ minLength: 2,
661
+ maxLength: 100,
662
+ },
663
+ scope: {
664
+ required: false,
665
+ type: 'string',
666
+ minLength: 2,
667
+ maxLength: 100,
668
+ },
669
+ description: {
670
+ required: false,
671
+ type: 'string',
672
+ maxLength: 500,
673
+ },
674
+ },
675
+ },
676
+ CreatePermissionUserRequest: {
677
+ required: ['permission_id', 'user_id'],
678
+ properties: {
679
+ permission_id: {
680
+ required: true,
681
+ type: 'string',
682
+ format: 'uuid',
683
+ },
684
+ user_id: {
685
+ required: true,
686
+ type: 'string',
687
+ format: 'uuid',
688
+ },
689
+ },
690
+ },
691
+ CreateRolePermissionRequest: {
692
+ required: ['role_id', 'permission_id'],
693
+ properties: {
694
+ role_id: {
695
+ required: true,
696
+ type: 'string',
697
+ format: 'uuid',
698
+ },
699
+ permission_id: {
700
+ required: true,
701
+ type: 'string',
702
+ format: 'uuid',
703
+ },
704
+ },
705
+ },
706
+ CreateRoleRequest: {
707
+ required: ['name', 'code'],
708
+ properties: {
709
+ name: {
710
+ required: true,
711
+ type: 'string',
712
+ minLength: 2,
713
+ maxLength: 100,
714
+ },
715
+ code: {
716
+ required: true,
717
+ type: 'string',
718
+ minLength: 2,
719
+ maxLength: 100,
720
+ },
721
+ description: {
722
+ required: false,
723
+ type: 'string',
724
+ maxLength: 500,
725
+ },
726
+ },
727
+ },
728
+ CreateRoleUserRequest: {
729
+ required: ['role_id', 'user_id'],
730
+ properties: {
731
+ role_id: {
732
+ required: true,
733
+ type: 'string',
734
+ format: 'uuid',
735
+ },
736
+ user_id: {
737
+ required: true,
738
+ type: 'string',
739
+ format: 'uuid',
740
+ },
741
+ },
742
+ },
743
+ CreateStageRequest: {
744
+ required: ['definition_id', 'level', 'name'],
745
+ properties: {
746
+ definition_id: {
747
+ required: true,
748
+ type: 'string',
749
+ format: 'uuid',
750
+ },
751
+ level: {
752
+ required: true,
753
+ type: 'integer',
754
+ minimum: 1,
755
+ },
756
+ name: {
757
+ required: true,
758
+ type: 'string',
759
+ maxLength: 100,
760
+ },
761
+ is_parallel: {
762
+ required: false,
763
+ type: 'boolean',
764
+ },
765
+ },
766
+ },
767
+ CreateTransitionRequest: {
768
+ required: ['definition_id', 'from_status', 'to_status'],
769
+ properties: {
770
+ definition_id: {
771
+ required: true,
772
+ type: 'string',
773
+ format: 'uuid',
774
+ },
775
+ from_status: {
776
+ required: true,
777
+ type: 'string',
778
+ maxLength: 50,
779
+ },
780
+ to_status: {
781
+ required: true,
782
+ type: 'string',
783
+ maxLength: 50,
784
+ },
785
+ },
786
+ },
787
+ };
788
+
789
+ /* eslint-disable */
790
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
791
+ const definitionValidationSchemas = {
792
+ Definition: {
793
+ required: [],
794
+ properties: {
795
+ id: {
796
+ required: false,
797
+ type: 'string',
798
+ format: 'uuid',
799
+ },
800
+ code: {
801
+ required: false,
802
+ type: 'string',
803
+ },
804
+ table_name: {
805
+ required: false,
806
+ type: 'string',
807
+ },
808
+ is_active: {
809
+ required: false,
810
+ type: 'boolean',
811
+ },
812
+ created_at: {
813
+ required: false,
814
+ type: 'string',
815
+ format: 'date-time',
816
+ },
817
+ updated_at: {
818
+ required: false,
819
+ type: 'string',
820
+ format: 'date-time',
821
+ },
822
+ },
823
+ },
824
+ DefinitionDetail: {
825
+ required: [],
826
+ properties: {
827
+ transitions: {
828
+ required: false,
829
+ type: 'array',
830
+ itemsRef: 'Transition',
831
+ },
832
+ stages: {
833
+ required: false,
834
+ type: 'array',
835
+ itemsRef: 'StageDetail',
836
+ },
837
+ },
838
+ },
839
+ DefinitionListResponse: {
840
+ required: [],
841
+ properties: {
842
+ status: {
843
+ required: false,
844
+ type: 'string',
845
+ },
846
+ message: {
847
+ required: false,
848
+ type: 'string',
849
+ },
850
+ data: {
851
+ required: false,
852
+ type: 'array',
853
+ itemsRef: 'Definition',
854
+ },
855
+ meta: {
856
+ required: false,
857
+ ref: 'PaginationMeta',
858
+ },
859
+ },
860
+ },
861
+ DefinitionResponse: {
862
+ required: [],
863
+ properties: {
864
+ status: {
865
+ required: false,
866
+ type: 'string',
867
+ },
868
+ message: {
869
+ required: false,
870
+ type: 'string',
871
+ },
872
+ data: {
873
+ required: false,
874
+ ref: 'DefinitionDetail',
875
+ },
876
+ },
877
+ },
878
+ };
879
+
880
+ /* eslint-disable */
881
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
882
+ const employeeValidationSchemas = {
883
+ Employee: {
884
+ required: [
885
+ 'id',
886
+ 'employee_number',
887
+ 'full_name',
888
+ 'nationality',
889
+ 'email',
890
+ 'hire_date',
891
+ 'employment_status',
892
+ 'created_at',
893
+ 'updated_at',
894
+ ],
895
+ properties: {
896
+ id: {
897
+ required: true,
898
+ type: 'string',
899
+ format: 'uuid',
900
+ },
901
+ employee_number: {
902
+ required: true,
903
+ type: 'string',
904
+ maxLength: 100,
905
+ },
906
+ full_name: {
907
+ required: true,
908
+ type: 'string',
909
+ maxLength: 200,
910
+ },
911
+ nationality: {
912
+ required: true,
913
+ type: 'string',
914
+ maxLength: 50,
915
+ },
916
+ phone_number: {
917
+ required: false,
918
+ type: 'string',
919
+ nullable: true,
920
+ maxLength: 50,
921
+ },
922
+ marital_status: {
923
+ required: false,
924
+ type: 'string',
925
+ description: 'One of TK, TK/1, TK/2, TK/3, K, K/1, K/2, or K/3.',
926
+ nullable: true,
927
+ },
928
+ dependents: {
929
+ required: false,
930
+ type: 'integer',
931
+ nullable: true,
932
+ minimum: 0,
933
+ },
934
+ place_of_birth: {
935
+ required: false,
936
+ type: 'string',
937
+ nullable: true,
938
+ maxLength: 100,
939
+ },
940
+ date_of_birth: {
941
+ required: false,
942
+ type: 'string',
943
+ format: 'date',
944
+ nullable: true,
945
+ },
946
+ gender: {
947
+ required: false,
948
+ type: 'string',
949
+ description: 'One of male or female.',
950
+ nullable: true,
951
+ },
952
+ religion: {
953
+ required: false,
954
+ type: 'string',
955
+ nullable: true,
956
+ maxLength: 50,
957
+ },
958
+ email: {
959
+ required: true,
960
+ type: 'string',
961
+ format: 'email',
962
+ maxLength: 200,
963
+ },
964
+ hire_date: {
965
+ required: true,
966
+ type: 'string',
967
+ format: 'date',
968
+ },
969
+ termination_date: {
970
+ required: false,
971
+ type: 'string',
972
+ format: 'date',
973
+ nullable: true,
974
+ },
975
+ payroll_date: {
976
+ required: false,
977
+ type: 'string',
978
+ format: 'date',
979
+ nullable: true,
980
+ },
981
+ employment_status: {
982
+ required: true,
983
+ type: 'string',
984
+ enumValues: ['contract', 'permanent', 'probation', 'intern', 'terminated'],
985
+ },
986
+ photo_id: {
987
+ required: false,
988
+ type: 'string',
989
+ format: 'uuid',
990
+ nullable: true,
991
+ },
992
+ created_at: {
993
+ required: true,
994
+ type: 'string',
995
+ format: 'date-time',
996
+ },
997
+ updated_at: {
998
+ required: true,
999
+ type: 'string',
1000
+ format: 'date-time',
1001
+ },
1002
+ },
1003
+ },
1004
+ EmployeeListResponse: {
1005
+ required: ['status', 'message', 'data', 'meta'],
1006
+ properties: {
1007
+ status: {
1008
+ required: true,
1009
+ type: 'string',
1010
+ },
1011
+ message: {
1012
+ required: true,
1013
+ type: 'string',
1014
+ },
1015
+ data: {
1016
+ required: true,
1017
+ type: 'array',
1018
+ itemsRef: 'Employee',
1019
+ },
1020
+ meta: {
1021
+ required: true,
1022
+ ref: 'PaginationMeta',
1023
+ },
1024
+ },
1025
+ },
1026
+ EmployeeMutationAckResponse: {
1027
+ required: ['status', 'message', 'data'],
1028
+ properties: {
1029
+ status: {
1030
+ required: true,
1031
+ type: 'string',
1032
+ },
1033
+ message: {
1034
+ required: true,
1035
+ type: 'string',
1036
+ },
1037
+ data: {
1038
+ required: true,
1039
+ type: 'object',
1040
+ },
1041
+ },
1042
+ },
1043
+ EmployeeResponse: {
1044
+ required: ['status', 'message', 'data'],
1045
+ properties: {
1046
+ status: {
1047
+ required: true,
1048
+ type: 'string',
1049
+ },
1050
+ message: {
1051
+ required: true,
1052
+ type: 'string',
1053
+ },
1054
+ data: {
1055
+ required: true,
1056
+ ref: 'Employee',
1057
+ },
1058
+ },
1059
+ },
1060
+ };
1061
+
1062
+ /* eslint-disable */
1063
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1064
+ const errorValidationSchemas = {
1065
+ ErrorResponse: {
1066
+ required: [],
1067
+ properties: {
1068
+ status: {
1069
+ required: false,
1070
+ type: 'string',
1071
+ },
1072
+ message: {
1073
+ required: false,
1074
+ type: 'string',
1075
+ },
1076
+ error_code: {
1077
+ required: false,
1078
+ type: 'string',
1079
+ },
1080
+ details: {
1081
+ required: false,
1082
+ type: 'array',
1083
+ description: 'Present for validation errors and safe for frontend field-level error mapping.',
1084
+ itemsRef: 'ValidationErrorDetail',
1085
+ },
1086
+ },
1087
+ },
1088
+ };
1089
+
1090
+ /* eslint-disable */
1091
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1092
+ const instanceValidationSchemas = {
1093
+ InstanceDetail: {
1094
+ required: [],
1095
+ properties: {
1096
+ id: {
1097
+ required: false,
1098
+ type: 'string',
1099
+ format: 'uuid',
1100
+ },
1101
+ definition_id: {
1102
+ required: false,
1103
+ type: 'string',
1104
+ format: 'uuid',
1105
+ },
1106
+ definition_code: {
1107
+ required: false,
1108
+ type: 'string',
1109
+ },
1110
+ table_name: {
1111
+ required: false,
1112
+ type: 'string',
1113
+ },
1114
+ record_id: {
1115
+ required: false,
1116
+ type: 'string',
1117
+ },
1118
+ current_stage: {
1119
+ required: false,
1120
+ type: 'integer',
1121
+ },
1122
+ status: {
1123
+ required: false,
1124
+ type: 'string',
1125
+ enumValues: ['pending', 'approved', 'rejected'],
1126
+ },
1127
+ target_status: {
1128
+ required: false,
1129
+ type: 'string',
1130
+ },
1131
+ created_by: {
1132
+ required: false,
1133
+ type: 'string',
1134
+ },
1135
+ created_at: {
1136
+ required: false,
1137
+ type: 'string',
1138
+ format: 'date-time',
1139
+ },
1140
+ updated_at: {
1141
+ required: false,
1142
+ type: 'string',
1143
+ format: 'date-time',
1144
+ },
1145
+ steps: {
1146
+ required: false,
1147
+ type: 'array',
1148
+ itemsRef: 'InstanceStepDetail',
1149
+ },
1150
+ },
1151
+ },
1152
+ InstanceDetailResponse: {
1153
+ required: [],
1154
+ properties: {
1155
+ status: {
1156
+ required: false,
1157
+ type: 'string',
1158
+ },
1159
+ message: {
1160
+ required: false,
1161
+ type: 'string',
1162
+ },
1163
+ data: {
1164
+ required: false,
1165
+ ref: 'InstanceDetail',
1166
+ },
1167
+ },
1168
+ },
1169
+ InstanceStepDetail: {
1170
+ required: [],
1171
+ properties: {
1172
+ id: {
1173
+ required: false,
1174
+ type: 'string',
1175
+ format: 'uuid',
1176
+ },
1177
+ stage_id: {
1178
+ required: false,
1179
+ type: 'string',
1180
+ format: 'uuid',
1181
+ },
1182
+ stage_level: {
1183
+ required: false,
1184
+ type: 'integer',
1185
+ },
1186
+ stage_name: {
1187
+ required: false,
1188
+ type: 'string',
1189
+ },
1190
+ is_parallel: {
1191
+ required: false,
1192
+ type: 'boolean',
1193
+ },
1194
+ sequence: {
1195
+ required: false,
1196
+ type: 'integer',
1197
+ },
1198
+ approver_id: {
1199
+ required: false,
1200
+ type: 'string',
1201
+ },
1202
+ actor_type: {
1203
+ required: false,
1204
+ type: 'string',
1205
+ nullable: true,
1206
+ },
1207
+ status: {
1208
+ required: false,
1209
+ type: 'string',
1210
+ enumValues: ['pending', 'approved', 'rejected'],
1211
+ },
1212
+ action_at: {
1213
+ required: false,
1214
+ type: 'string',
1215
+ format: 'date-time',
1216
+ nullable: true,
1217
+ },
1218
+ comment: {
1219
+ required: false,
1220
+ type: 'string',
1221
+ nullable: true,
1222
+ },
1223
+ updated_at: {
1224
+ required: false,
1225
+ type: 'string',
1226
+ format: 'date-time',
1227
+ },
1228
+ },
1229
+ },
1230
+ };
1231
+
1232
+ /* eslint-disable */
1233
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1234
+ const magicValidationSchemas = {
1235
+ MagicLinkDispatchResponse: {
1236
+ required: [],
1237
+ properties: {
1238
+ status: {
1239
+ required: false,
1240
+ type: 'string',
1241
+ },
1242
+ message: {
1243
+ required: false,
1244
+ type: 'string',
1245
+ },
1246
+ data: {
1247
+ required: false,
1248
+ type: 'object',
1249
+ },
1250
+ },
1251
+ },
1252
+ };
1253
+
1254
+ /* eslint-disable */
1255
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1256
+ const paginationValidationSchemas = {
1257
+ PaginationMeta: {
1258
+ required: [],
1259
+ properties: {
1260
+ current_page: {
1261
+ required: false,
1262
+ type: 'integer',
1263
+ },
1264
+ per_page: {
1265
+ required: false,
1266
+ type: 'integer',
1267
+ },
1268
+ total: {
1269
+ required: false,
1270
+ type: 'integer',
1271
+ },
1272
+ last_page: {
1273
+ required: false,
1274
+ type: 'integer',
1275
+ },
1276
+ },
1277
+ },
1278
+ };
1279
+
1280
+ /* eslint-disable */
1281
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1282
+ const pendingValidationSchemas = {
1283
+ PendingItem: {
1284
+ required: [],
1285
+ properties: {
1286
+ instance_id: {
1287
+ required: false,
1288
+ type: 'string',
1289
+ format: 'uuid',
1290
+ },
1291
+ definition_id: {
1292
+ required: false,
1293
+ type: 'string',
1294
+ format: 'uuid',
1295
+ },
1296
+ definition_code: {
1297
+ required: false,
1298
+ type: 'string',
1299
+ },
1300
+ table_name: {
1301
+ required: false,
1302
+ type: 'string',
1303
+ },
1304
+ record_id: {
1305
+ required: false,
1306
+ type: 'string',
1307
+ },
1308
+ current_stage: {
1309
+ required: false,
1310
+ type: 'integer',
1311
+ },
1312
+ status: {
1313
+ required: false,
1314
+ type: 'string',
1315
+ },
1316
+ target_status: {
1317
+ required: false,
1318
+ type: 'string',
1319
+ },
1320
+ created_by: {
1321
+ required: false,
1322
+ type: 'string',
1323
+ },
1324
+ created_at: {
1325
+ required: false,
1326
+ type: 'string',
1327
+ format: 'date-time',
1328
+ },
1329
+ updated_at: {
1330
+ required: false,
1331
+ type: 'string',
1332
+ format: 'date-time',
1333
+ },
1334
+ step_id: {
1335
+ required: false,
1336
+ type: 'string',
1337
+ format: 'uuid',
1338
+ },
1339
+ stage_id: {
1340
+ required: false,
1341
+ type: 'string',
1342
+ format: 'uuid',
1343
+ },
1344
+ stage_level: {
1345
+ required: false,
1346
+ type: 'integer',
1347
+ },
1348
+ stage_name: {
1349
+ required: false,
1350
+ type: 'string',
1351
+ },
1352
+ approver_id: {
1353
+ required: false,
1354
+ type: 'string',
1355
+ },
1356
+ },
1357
+ },
1358
+ PendingListResponse: {
1359
+ required: [],
1360
+ properties: {
1361
+ status: {
1362
+ required: false,
1363
+ type: 'string',
1364
+ },
1365
+ message: {
1366
+ required: false,
1367
+ type: 'string',
1368
+ },
1369
+ data: {
1370
+ required: false,
1371
+ type: 'array',
1372
+ itemsRef: 'PendingItem',
1373
+ },
1374
+ meta: {
1375
+ required: false,
1376
+ ref: 'PaginationMeta',
1377
+ },
1378
+ },
1379
+ },
1380
+ };
1381
+
1382
+ /* eslint-disable */
1383
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1384
+ const permissionValidationSchemas = {
1385
+ Permission: {
1386
+ required: [],
1387
+ properties: {
1388
+ id: {
1389
+ required: false,
1390
+ type: 'string',
1391
+ format: 'uuid',
1392
+ },
1393
+ name: {
1394
+ required: false,
1395
+ type: 'string',
1396
+ },
1397
+ code: {
1398
+ required: false,
1399
+ type: 'string',
1400
+ },
1401
+ namespace: {
1402
+ required: false,
1403
+ type: 'string',
1404
+ },
1405
+ resource: {
1406
+ required: false,
1407
+ type: 'string',
1408
+ },
1409
+ action: {
1410
+ required: false,
1411
+ type: 'string',
1412
+ },
1413
+ scope: {
1414
+ required: false,
1415
+ type: 'string',
1416
+ nullable: true,
1417
+ },
1418
+ description: {
1419
+ required: false,
1420
+ type: 'string',
1421
+ nullable: true,
1422
+ },
1423
+ created_at: {
1424
+ required: false,
1425
+ type: 'string',
1426
+ format: 'date-time',
1427
+ },
1428
+ updated_at: {
1429
+ required: false,
1430
+ type: 'string',
1431
+ format: 'date-time',
1432
+ },
1433
+ },
1434
+ },
1435
+ PermissionListResponse: {
1436
+ required: [],
1437
+ properties: {
1438
+ status: {
1439
+ required: false,
1440
+ type: 'string',
1441
+ },
1442
+ message: {
1443
+ required: false,
1444
+ type: 'string',
1445
+ },
1446
+ data: {
1447
+ required: false,
1448
+ type: 'array',
1449
+ itemsRef: 'Permission',
1450
+ },
1451
+ meta: {
1452
+ required: false,
1453
+ ref: 'PaginationMeta',
1454
+ },
1455
+ },
1456
+ },
1457
+ PermissionResponse: {
1458
+ required: [],
1459
+ properties: {
1460
+ status: {
1461
+ required: false,
1462
+ type: 'string',
1463
+ },
1464
+ message: {
1465
+ required: false,
1466
+ type: 'string',
1467
+ },
1468
+ data: {
1469
+ required: false,
1470
+ ref: 'Permission',
1471
+ },
1472
+ },
1473
+ },
1474
+ PermissionUser: {
1475
+ required: [],
1476
+ properties: {
1477
+ id: {
1478
+ required: false,
1479
+ type: 'string',
1480
+ format: 'uuid',
1481
+ },
1482
+ permission_id: {
1483
+ required: false,
1484
+ type: 'string',
1485
+ format: 'uuid',
1486
+ },
1487
+ user_id: {
1488
+ required: false,
1489
+ type: 'string',
1490
+ format: 'uuid',
1491
+ },
1492
+ created_at: {
1493
+ required: false,
1494
+ type: 'string',
1495
+ format: 'date-time',
1496
+ },
1497
+ },
1498
+ },
1499
+ PermissionUserListResponse: {
1500
+ required: [],
1501
+ properties: {
1502
+ status: {
1503
+ required: false,
1504
+ type: 'string',
1505
+ },
1506
+ message: {
1507
+ required: false,
1508
+ type: 'string',
1509
+ },
1510
+ data: {
1511
+ required: false,
1512
+ type: 'array',
1513
+ itemsRef: 'PermissionUser',
1514
+ },
1515
+ meta: {
1516
+ required: false,
1517
+ ref: 'PaginationMeta',
1518
+ },
1519
+ },
1520
+ },
1521
+ PermissionUserResponse: {
1522
+ required: [],
1523
+ properties: {
1524
+ status: {
1525
+ required: false,
1526
+ type: 'string',
1527
+ },
1528
+ message: {
1529
+ required: false,
1530
+ type: 'string',
1531
+ },
1532
+ data: {
1533
+ required: false,
1534
+ ref: 'PermissionUser',
1535
+ },
1536
+ },
1537
+ },
1538
+ };
1539
+
1540
+ /* eslint-disable */
1541
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1542
+ const rejectValidationSchemas = {
1543
+ RejectRequest: {
1544
+ required: ['instance_id', 'step_id'],
1545
+ properties: {
1546
+ instance_id: {
1547
+ required: true,
1548
+ type: 'string',
1549
+ format: 'uuid',
1550
+ },
1551
+ step_id: {
1552
+ required: true,
1553
+ type: 'string',
1554
+ format: 'uuid',
1555
+ },
1556
+ comment: {
1557
+ required: false,
1558
+ type: 'string',
1559
+ maxLength: 1000,
1560
+ },
1561
+ },
1562
+ },
1563
+ };
1564
+
1565
+ /* eslint-disable */
1566
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1567
+ const roleValidationSchemas = {
1568
+ Role: {
1569
+ required: [],
1570
+ properties: {
1571
+ id: {
1572
+ required: false,
1573
+ type: 'string',
1574
+ format: 'uuid',
1575
+ },
1576
+ name: {
1577
+ required: false,
1578
+ type: 'string',
1579
+ },
1580
+ code: {
1581
+ required: false,
1582
+ type: 'string',
1583
+ },
1584
+ description: {
1585
+ required: false,
1586
+ type: 'string',
1587
+ nullable: true,
1588
+ },
1589
+ created_at: {
1590
+ required: false,
1591
+ type: 'string',
1592
+ format: 'date-time',
1593
+ },
1594
+ updated_at: {
1595
+ required: false,
1596
+ type: 'string',
1597
+ format: 'date-time',
1598
+ },
1599
+ },
1600
+ },
1601
+ RoleListResponse: {
1602
+ required: [],
1603
+ properties: {
1604
+ status: {
1605
+ required: false,
1606
+ type: 'string',
1607
+ },
1608
+ message: {
1609
+ required: false,
1610
+ type: 'string',
1611
+ },
1612
+ data: {
1613
+ required: false,
1614
+ type: 'array',
1615
+ itemsRef: 'Role',
1616
+ },
1617
+ meta: {
1618
+ required: false,
1619
+ ref: 'PaginationMeta',
1620
+ },
1621
+ },
1622
+ },
1623
+ RolePermission: {
1624
+ required: [],
1625
+ properties: {
1626
+ id: {
1627
+ required: false,
1628
+ type: 'string',
1629
+ format: 'uuid',
1630
+ },
1631
+ role_id: {
1632
+ required: false,
1633
+ type: 'string',
1634
+ format: 'uuid',
1635
+ },
1636
+ permission_id: {
1637
+ required: false,
1638
+ type: 'string',
1639
+ format: 'uuid',
1640
+ },
1641
+ created_at: {
1642
+ required: false,
1643
+ type: 'string',
1644
+ format: 'date-time',
1645
+ },
1646
+ },
1647
+ },
1648
+ RolePermissionListResponse: {
1649
+ required: [],
1650
+ properties: {
1651
+ status: {
1652
+ required: false,
1653
+ type: 'string',
1654
+ },
1655
+ message: {
1656
+ required: false,
1657
+ type: 'string',
1658
+ },
1659
+ data: {
1660
+ required: false,
1661
+ type: 'array',
1662
+ itemsRef: 'RolePermission',
1663
+ },
1664
+ meta: {
1665
+ required: false,
1666
+ ref: 'PaginationMeta',
1667
+ },
1668
+ },
1669
+ },
1670
+ RolePermissionResponse: {
1671
+ required: [],
1672
+ properties: {
1673
+ status: {
1674
+ required: false,
1675
+ type: 'string',
1676
+ },
1677
+ message: {
1678
+ required: false,
1679
+ type: 'string',
1680
+ },
1681
+ data: {
1682
+ required: false,
1683
+ ref: 'RolePermission',
1684
+ },
1685
+ },
1686
+ },
1687
+ RoleResponse: {
1688
+ required: [],
1689
+ properties: {
1690
+ status: {
1691
+ required: false,
1692
+ type: 'string',
1693
+ },
1694
+ message: {
1695
+ required: false,
1696
+ type: 'string',
1697
+ },
1698
+ data: {
1699
+ required: false,
1700
+ ref: 'Role',
1701
+ },
1702
+ },
1703
+ },
1704
+ RoleUser: {
1705
+ required: [],
1706
+ properties: {
1707
+ id: {
1708
+ required: false,
1709
+ type: 'string',
1710
+ format: 'uuid',
1711
+ },
1712
+ role_id: {
1713
+ required: false,
1714
+ type: 'string',
1715
+ format: 'uuid',
1716
+ },
1717
+ user_id: {
1718
+ required: false,
1719
+ type: 'string',
1720
+ format: 'uuid',
1721
+ },
1722
+ created_at: {
1723
+ required: false,
1724
+ type: 'string',
1725
+ format: 'date-time',
1726
+ },
1727
+ },
1728
+ },
1729
+ RoleUserListResponse: {
1730
+ required: [],
1731
+ properties: {
1732
+ status: {
1733
+ required: false,
1734
+ type: 'string',
1735
+ },
1736
+ message: {
1737
+ required: false,
1738
+ type: 'string',
1739
+ },
1740
+ data: {
1741
+ required: false,
1742
+ type: 'array',
1743
+ itemsRef: 'RoleUser',
1744
+ },
1745
+ meta: {
1746
+ required: false,
1747
+ ref: 'PaginationMeta',
1748
+ },
1749
+ },
1750
+ },
1751
+ RoleUserResponse: {
1752
+ required: [],
1753
+ properties: {
1754
+ status: {
1755
+ required: false,
1756
+ type: 'string',
1757
+ },
1758
+ message: {
1759
+ required: false,
1760
+ type: 'string',
1761
+ },
1762
+ data: {
1763
+ required: false,
1764
+ ref: 'RoleUser',
1765
+ },
1766
+ },
1767
+ },
1768
+ };
1769
+
1770
+ /* eslint-disable */
1771
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1772
+ const stageValidationSchemas = {
1773
+ Stage: {
1774
+ required: [],
1775
+ properties: {
1776
+ id: {
1777
+ required: false,
1778
+ type: 'string',
1779
+ format: 'uuid',
1780
+ },
1781
+ definition_id: {
1782
+ required: false,
1783
+ type: 'string',
1784
+ format: 'uuid',
1785
+ },
1786
+ level: {
1787
+ required: false,
1788
+ type: 'integer',
1789
+ },
1790
+ name: {
1791
+ required: false,
1792
+ type: 'string',
1793
+ },
1794
+ is_parallel: {
1795
+ required: false,
1796
+ type: 'boolean',
1797
+ },
1798
+ created_at: {
1799
+ required: false,
1800
+ type: 'string',
1801
+ format: 'date-time',
1802
+ },
1803
+ updated_at: {
1804
+ required: false,
1805
+ type: 'string',
1806
+ format: 'date-time',
1807
+ },
1808
+ },
1809
+ },
1810
+ StageDetail: {
1811
+ required: [],
1812
+ properties: {
1813
+ actors: {
1814
+ required: false,
1815
+ type: 'array',
1816
+ itemsRef: 'Actor',
1817
+ },
1818
+ },
1819
+ },
1820
+ StageDetailResponse: {
1821
+ required: [],
1822
+ properties: {
1823
+ status: {
1824
+ required: false,
1825
+ type: 'string',
1826
+ },
1827
+ message: {
1828
+ required: false,
1829
+ type: 'string',
1830
+ },
1831
+ data: {
1832
+ required: false,
1833
+ ref: 'StageDetail',
1834
+ },
1835
+ },
1836
+ },
1837
+ StageListResponse: {
1838
+ required: [],
1839
+ properties: {
1840
+ status: {
1841
+ required: false,
1842
+ type: 'string',
1843
+ },
1844
+ message: {
1845
+ required: false,
1846
+ type: 'string',
1847
+ },
1848
+ data: {
1849
+ required: false,
1850
+ type: 'array',
1851
+ itemsRef: 'Stage',
1852
+ },
1853
+ meta: {
1854
+ required: false,
1855
+ ref: 'PaginationMeta',
1856
+ },
1857
+ },
1858
+ },
1859
+ StageResponse: {
1860
+ required: [],
1861
+ properties: {
1862
+ status: {
1863
+ required: false,
1864
+ type: 'string',
1865
+ },
1866
+ message: {
1867
+ required: false,
1868
+ type: 'string',
1869
+ },
1870
+ data: {
1871
+ required: false,
1872
+ ref: 'Stage',
1873
+ },
1874
+ },
1875
+ },
1876
+ };
1877
+
1878
+ /* eslint-disable */
1879
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1880
+ const storageValidationSchemas = {
1881
+ StorageObjectResponse: {
1882
+ required: [],
1883
+ properties: {
1884
+ status: {
1885
+ required: false,
1886
+ type: 'string',
1887
+ },
1888
+ message: {
1889
+ required: false,
1890
+ type: 'string',
1891
+ },
1892
+ data: {
1893
+ required: false,
1894
+ type: 'object',
1895
+ },
1896
+ },
1897
+ },
1898
+ StorageUploadResponse: {
1899
+ required: [],
1900
+ properties: {
1901
+ status: {
1902
+ required: false,
1903
+ type: 'string',
1904
+ },
1905
+ message: {
1906
+ required: false,
1907
+ type: 'string',
1908
+ },
1909
+ data: {
1910
+ required: false,
1911
+ type: 'object',
1912
+ },
1913
+ },
1914
+ },
1915
+ };
1916
+
1917
+ /* eslint-disable */
1918
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1919
+ const submitValidationSchemas = {
1920
+ SubmitRequest: {
1921
+ required: ['record_id', 'current_status'],
1922
+ properties: {
1923
+ code: {
1924
+ required: false,
1925
+ type: 'string',
1926
+ maxLength: 100,
1927
+ },
1928
+ table_name: {
1929
+ required: false,
1930
+ type: 'string',
1931
+ maxLength: 100,
1932
+ },
1933
+ record_id: {
1934
+ required: true,
1935
+ type: 'string',
1936
+ maxLength: 100,
1937
+ },
1938
+ current_status: {
1939
+ required: true,
1940
+ type: 'string',
1941
+ maxLength: 50,
1942
+ },
1943
+ },
1944
+ },
1945
+ };
1946
+
1947
+ /* eslint-disable */
1948
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
1949
+ const transitionValidationSchemas = {
1950
+ Transition: {
1951
+ required: [],
1952
+ properties: {
1953
+ id: {
1954
+ required: false,
1955
+ type: 'string',
1956
+ format: 'uuid',
1957
+ },
1958
+ definition_id: {
1959
+ required: false,
1960
+ type: 'string',
1961
+ format: 'uuid',
1962
+ },
1963
+ from_status: {
1964
+ required: false,
1965
+ type: 'string',
1966
+ },
1967
+ to_status: {
1968
+ required: false,
1969
+ type: 'string',
1970
+ },
1971
+ created_at: {
1972
+ required: false,
1973
+ type: 'string',
1974
+ format: 'date-time',
1975
+ },
1976
+ updated_at: {
1977
+ required: false,
1978
+ type: 'string',
1979
+ format: 'date-time',
1980
+ },
1981
+ },
1982
+ },
1983
+ TransitionListResponse: {
1984
+ required: [],
1985
+ properties: {
1986
+ status: {
1987
+ required: false,
1988
+ type: 'string',
1989
+ },
1990
+ message: {
1991
+ required: false,
1992
+ type: 'string',
1993
+ },
1994
+ data: {
1995
+ required: false,
1996
+ type: 'array',
1997
+ itemsRef: 'Transition',
1998
+ },
1999
+ meta: {
2000
+ required: false,
2001
+ ref: 'PaginationMeta',
2002
+ },
2003
+ },
2004
+ },
2005
+ TransitionResponse: {
2006
+ required: [],
2007
+ properties: {
2008
+ status: {
2009
+ required: false,
2010
+ type: 'string',
2011
+ },
2012
+ message: {
2013
+ required: false,
2014
+ type: 'string',
2015
+ },
2016
+ data: {
2017
+ required: false,
2018
+ ref: 'Transition',
2019
+ },
2020
+ },
2021
+ },
2022
+ };
2023
+
2024
+ /* eslint-disable */
2025
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
2026
+ const updateValidationSchemas = {
2027
+ UpdateActorRequest: {
2028
+ required: [],
2029
+ properties: {
2030
+ type: {
2031
+ required: false,
2032
+ type: 'string',
2033
+ enumValues: ['USER', 'ROLE', 'DEPARTMENT', 'POSITION'],
2034
+ },
2035
+ ref_id: {
2036
+ required: false,
2037
+ type: 'string',
2038
+ maxLength: 100,
2039
+ },
2040
+ },
2041
+ },
2042
+ UpdateDefinitionRequest: {
2043
+ required: [],
2044
+ properties: {
2045
+ code: {
2046
+ required: false,
2047
+ type: 'string',
2048
+ maxLength: 100,
2049
+ },
2050
+ table_name: {
2051
+ required: false,
2052
+ type: 'string',
2053
+ maxLength: 100,
2054
+ },
2055
+ is_active: {
2056
+ required: false,
2057
+ type: 'boolean',
2058
+ },
2059
+ },
2060
+ },
2061
+ UpdateEmployeeRequest: {
2062
+ required: [],
2063
+ properties: {
2064
+ employee_number: {
2065
+ required: false,
2066
+ type: 'string',
2067
+ maxLength: 100,
2068
+ },
2069
+ full_name: {
2070
+ required: false,
2071
+ type: 'string',
2072
+ minLength: 2,
2073
+ maxLength: 200,
2074
+ },
2075
+ nationality: {
2076
+ required: false,
2077
+ type: 'string',
2078
+ maxLength: 50,
2079
+ },
2080
+ phone_number: {
2081
+ required: false,
2082
+ type: 'string',
2083
+ maxLength: 50,
2084
+ },
2085
+ marital_status: {
2086
+ required: false,
2087
+ type: 'string',
2088
+ enumValues: ['TK', 'TK/1', 'TK/2', 'TK/3', 'K', 'K/1', 'K/2', 'K/3'],
2089
+ },
2090
+ dependents: {
2091
+ required: false,
2092
+ type: 'integer',
2093
+ minimum: 0,
2094
+ },
2095
+ place_of_birth: {
2096
+ required: false,
2097
+ type: 'string',
2098
+ maxLength: 100,
2099
+ },
2100
+ date_of_birth: {
2101
+ required: false,
2102
+ type: 'string',
2103
+ format: 'date',
2104
+ description: 'Send an empty string to clear the stored value.',
2105
+ },
2106
+ gender: {
2107
+ required: false,
2108
+ type: 'string',
2109
+ enumValues: ['male', 'female'],
2110
+ },
2111
+ religion: {
2112
+ required: false,
2113
+ type: 'string',
2114
+ maxLength: 50,
2115
+ },
2116
+ email: {
2117
+ required: false,
2118
+ type: 'string',
2119
+ format: 'email',
2120
+ maxLength: 200,
2121
+ },
2122
+ hire_date: {
2123
+ required: false,
2124
+ type: 'string',
2125
+ format: 'date',
2126
+ },
2127
+ termination_date: {
2128
+ required: false,
2129
+ type: 'string',
2130
+ format: 'date',
2131
+ description: 'Send an empty string to clear the stored value.',
2132
+ },
2133
+ payroll_date: {
2134
+ required: false,
2135
+ type: 'string',
2136
+ format: 'date',
2137
+ description: 'Send an empty string to clear the stored value.',
2138
+ },
2139
+ employment_status: {
2140
+ required: false,
2141
+ type: 'string',
2142
+ enumValues: ['contract', 'permanent', 'probation', 'intern', 'terminated'],
2143
+ },
2144
+ photo_id: {
2145
+ required: false,
2146
+ type: 'string',
2147
+ format: 'uuid',
2148
+ description: 'Send an empty string to clear the stored UUID reference.',
2149
+ },
2150
+ },
2151
+ },
2152
+ UpdatePermissionRequest: {
2153
+ required: [],
2154
+ properties: {
2155
+ namespace: {
2156
+ required: false,
2157
+ type: 'string',
2158
+ minLength: 2,
2159
+ maxLength: 100,
2160
+ },
2161
+ resource: {
2162
+ required: false,
2163
+ type: 'string',
2164
+ minLength: 2,
2165
+ maxLength: 100,
2166
+ },
2167
+ action: {
2168
+ required: false,
2169
+ type: 'string',
2170
+ minLength: 2,
2171
+ maxLength: 100,
2172
+ },
2173
+ scope: {
2174
+ required: false,
2175
+ type: 'string',
2176
+ minLength: 2,
2177
+ maxLength: 100,
2178
+ },
2179
+ description: {
2180
+ required: false,
2181
+ type: 'string',
2182
+ maxLength: 500,
2183
+ },
2184
+ },
2185
+ },
2186
+ UpdatePermissionUserRequest: {
2187
+ required: [],
2188
+ properties: {
2189
+ permission_id: {
2190
+ required: false,
2191
+ type: 'string',
2192
+ format: 'uuid',
2193
+ },
2194
+ user_id: {
2195
+ required: false,
2196
+ type: 'string',
2197
+ format: 'uuid',
2198
+ },
2199
+ },
2200
+ },
2201
+ UpdateRolePermissionRequest: {
2202
+ required: [],
2203
+ properties: {
2204
+ role_id: {
2205
+ required: false,
2206
+ type: 'string',
2207
+ format: 'uuid',
2208
+ },
2209
+ permission_id: {
2210
+ required: false,
2211
+ type: 'string',
2212
+ format: 'uuid',
2213
+ },
2214
+ },
2215
+ },
2216
+ UpdateRoleRequest: {
2217
+ required: [],
2218
+ properties: {
2219
+ name: {
2220
+ required: false,
2221
+ type: 'string',
2222
+ minLength: 2,
2223
+ maxLength: 100,
2224
+ },
2225
+ code: {
2226
+ required: false,
2227
+ type: 'string',
2228
+ minLength: 2,
2229
+ maxLength: 100,
2230
+ },
2231
+ description: {
2232
+ required: false,
2233
+ type: 'string',
2234
+ maxLength: 500,
2235
+ },
2236
+ },
2237
+ },
2238
+ UpdateRoleUserRequest: {
2239
+ required: [],
2240
+ properties: {
2241
+ role_id: {
2242
+ required: false,
2243
+ type: 'string',
2244
+ format: 'uuid',
2245
+ },
2246
+ user_id: {
2247
+ required: false,
2248
+ type: 'string',
2249
+ format: 'uuid',
2250
+ },
2251
+ },
2252
+ },
2253
+ UpdateStageRequest: {
2254
+ required: [],
2255
+ properties: {
2256
+ level: {
2257
+ required: false,
2258
+ type: 'integer',
2259
+ minimum: 1,
2260
+ },
2261
+ name: {
2262
+ required: false,
2263
+ type: 'string',
2264
+ maxLength: 100,
2265
+ },
2266
+ is_parallel: {
2267
+ required: false,
2268
+ type: 'boolean',
2269
+ },
2270
+ },
2271
+ },
2272
+ UpdateTransitionRequest: {
2273
+ required: [],
2274
+ properties: {
2275
+ from_status: {
2276
+ required: false,
2277
+ type: 'string',
2278
+ maxLength: 50,
2279
+ },
2280
+ to_status: {
2281
+ required: false,
2282
+ type: 'string',
2283
+ maxLength: 50,
2284
+ },
2285
+ },
2286
+ },
2287
+ };
2288
+
2289
+ /* eslint-disable */
2290
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
2291
+ const userValidationSchemas = {
2292
+ User: {
2293
+ required: [],
2294
+ properties: {
2295
+ id: {
2296
+ required: false,
2297
+ type: 'string',
2298
+ format: 'uuid',
2299
+ },
2300
+ employee_id: {
2301
+ required: false,
2302
+ type: 'string',
2303
+ nullable: true,
2304
+ },
2305
+ role: {
2306
+ required: false,
2307
+ type: 'string',
2308
+ },
2309
+ status: {
2310
+ required: false,
2311
+ type: 'string',
2312
+ enumValues: ['pending', 'active', 'suspend', 'reset', 'inactive', 'blocked'],
2313
+ },
2314
+ name: {
2315
+ required: false,
2316
+ type: 'string',
2317
+ },
2318
+ email: {
2319
+ required: false,
2320
+ type: 'string',
2321
+ format: 'email',
2322
+ },
2323
+ email_verified_at: {
2324
+ required: false,
2325
+ type: 'string',
2326
+ format: 'date-time',
2327
+ nullable: true,
2328
+ },
2329
+ created_at: {
2330
+ required: false,
2331
+ type: 'string',
2332
+ format: 'date-time',
2333
+ },
2334
+ updated_at: {
2335
+ required: false,
2336
+ type: 'string',
2337
+ format: 'date-time',
2338
+ },
2339
+ },
2340
+ },
2341
+ UserCreateRequest: {
2342
+ required: ['name', 'email', 'role'],
2343
+ properties: {
2344
+ employee_id: {
2345
+ required: false,
2346
+ type: 'string',
2347
+ description: 'Optional employee identifier with a maximum of 100 characters.',
2348
+ nullable: true,
2349
+ maxLength: 100,
2350
+ },
2351
+ name: {
2352
+ required: true,
2353
+ type: 'string',
2354
+ description: 'Display name with 2 to 100 characters.',
2355
+ minLength: 2,
2356
+ maxLength: 100,
2357
+ },
2358
+ email: {
2359
+ required: true,
2360
+ type: 'string',
2361
+ format: 'email',
2362
+ description: 'Unique email address.',
2363
+ maxLength: 255,
2364
+ },
2365
+ role: {
2366
+ required: true,
2367
+ type: 'string',
2368
+ description: 'Initial role code assigned to the user. The role must exist in access.role.',
2369
+ maxLength: 100,
2370
+ },
2371
+ },
2372
+ },
2373
+ UserListResponse: {
2374
+ required: [],
2375
+ properties: {
2376
+ status: {
2377
+ required: false,
2378
+ type: 'string',
2379
+ },
2380
+ message: {
2381
+ required: false,
2382
+ type: 'string',
2383
+ },
2384
+ data: {
2385
+ required: false,
2386
+ type: 'array',
2387
+ itemsRef: 'User',
2388
+ },
2389
+ meta: {
2390
+ required: false,
2391
+ ref: 'PaginationMeta',
2392
+ },
2393
+ },
2394
+ },
2395
+ UserMutationResponse: {
2396
+ required: [],
2397
+ properties: {
2398
+ status: {
2399
+ required: false,
2400
+ type: 'string',
2401
+ },
2402
+ message: {
2403
+ required: false,
2404
+ type: 'string',
2405
+ },
2406
+ data: {
2407
+ required: false,
2408
+ ref: 'User',
2409
+ },
2410
+ },
2411
+ },
2412
+ UserSelfUpdateRequest: {
2413
+ required: [],
2414
+ properties: {
2415
+ employee_id: {
2416
+ required: false,
2417
+ type: 'string',
2418
+ description: 'Optional employee identifier with a maximum of 100 characters.',
2419
+ nullable: true,
2420
+ maxLength: 100,
2421
+ },
2422
+ name: {
2423
+ required: false,
2424
+ type: 'string',
2425
+ description: 'Display name with 2 to 100 characters.',
2426
+ minLength: 2,
2427
+ maxLength: 100,
2428
+ },
2429
+ email: {
2430
+ required: false,
2431
+ type: 'string',
2432
+ format: 'email',
2433
+ description: 'Unique email address.',
2434
+ maxLength: 255,
2435
+ },
2436
+ },
2437
+ },
2438
+ UserUpdateRequest: {
2439
+ required: [],
2440
+ properties: {
2441
+ employee_id: {
2442
+ required: false,
2443
+ type: 'string',
2444
+ description: 'Optional employee identifier with a maximum of 100 characters.',
2445
+ nullable: true,
2446
+ maxLength: 100,
2447
+ },
2448
+ name: {
2449
+ required: false,
2450
+ type: 'string',
2451
+ description: 'Display name with 2 to 100 characters.',
2452
+ minLength: 2,
2453
+ maxLength: 100,
2454
+ },
2455
+ email: {
2456
+ required: false,
2457
+ type: 'string',
2458
+ format: 'email',
2459
+ description: 'Unique email address.',
2460
+ maxLength: 255,
2461
+ },
2462
+ role: {
2463
+ required: false,
2464
+ type: 'string',
2465
+ description: 'Role code to assign to the user. The role must exist in access.role.',
2466
+ maxLength: 100,
2467
+ },
2468
+ },
2469
+ },
2470
+ UserUpdateResponse: {
2471
+ required: [],
2472
+ properties: {
2473
+ status: {
2474
+ required: false,
2475
+ type: 'string',
2476
+ },
2477
+ message: {
2478
+ required: false,
2479
+ type: 'string',
2480
+ },
2481
+ data: {
2482
+ required: false,
2483
+ ref: 'User',
2484
+ },
2485
+ },
2486
+ },
2487
+ };
2488
+
2489
+ /* eslint-disable */
2490
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
2491
+ const validationValidationSchemas = {
2492
+ ValidationErrorDetail: {
2493
+ required: [],
2494
+ properties: {
2495
+ field: {
2496
+ required: false,
2497
+ type: 'string',
2498
+ },
2499
+ message: {
2500
+ required: false,
2501
+ type: 'string',
2502
+ },
2503
+ },
2504
+ },
2505
+ };
2506
+
2507
+ /* eslint-disable */
2508
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
2509
+ const workflowValidationSchemas = {
2510
+ WorkflowAction: {
2511
+ required: [],
2512
+ properties: {
2513
+ instance_id: {
2514
+ required: false,
2515
+ type: 'string',
2516
+ format: 'uuid',
2517
+ },
2518
+ status: {
2519
+ required: false,
2520
+ type: 'string',
2521
+ },
2522
+ next_status: {
2523
+ required: false,
2524
+ type: 'string',
2525
+ },
2526
+ current_stage: {
2527
+ required: false,
2528
+ type: 'integer',
2529
+ },
2530
+ table_name: {
2531
+ required: false,
2532
+ type: 'string',
2533
+ },
2534
+ record_id: {
2535
+ required: false,
2536
+ type: 'string',
2537
+ },
2538
+ },
2539
+ },
2540
+ WorkflowActionResponse: {
2541
+ required: [],
2542
+ properties: {
2543
+ status: {
2544
+ required: false,
2545
+ type: 'string',
2546
+ },
2547
+ message: {
2548
+ required: false,
2549
+ type: 'string',
2550
+ },
2551
+ data: {
2552
+ required: false,
2553
+ ref: 'WorkflowAction',
2554
+ },
2555
+ },
2556
+ },
2557
+ };
2558
+
2559
+ /* eslint-disable */
2560
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
2561
+ const apiValidationSchemas = {
2562
+ ...accessValidationSchemas,
2563
+ ...actorValidationSchemas,
2564
+ ...approvalValidationSchemas,
2565
+ ...approveValidationSchemas,
2566
+ ...authValidationSchemas,
2567
+ ...createValidationSchemas,
2568
+ ...definitionValidationSchemas,
2569
+ ...employeeValidationSchemas,
2570
+ ...errorValidationSchemas,
2571
+ ...instanceValidationSchemas,
2572
+ ...magicValidationSchemas,
2573
+ ...paginationValidationSchemas,
2574
+ ...pendingValidationSchemas,
2575
+ ...permissionValidationSchemas,
2576
+ ...rejectValidationSchemas,
2577
+ ...roleValidationSchemas,
2578
+ ...stageValidationSchemas,
2579
+ ...storageValidationSchemas,
2580
+ ...submitValidationSchemas,
2581
+ ...transitionValidationSchemas,
2582
+ ...updateValidationSchemas,
2583
+ ...userValidationSchemas,
2584
+ ...validationValidationSchemas,
2585
+ ...workflowValidationSchemas,
2586
+ };
2587
+
2588
+ /* eslint-disable */
2589
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
2590
+ const ApiNavigation = [
2591
+ {
2592
+ id: 'health',
2593
+ title: 'Health',
2594
+ type: 'basic',
2595
+ subtitle: 'Gateway monitoring and liveness endpoints.',
2596
+ icon: 'heart-pulse',
2597
+ },
2598
+ {
2599
+ id: 'auth',
2600
+ title: 'Auth',
2601
+ type: 'basic',
2602
+ subtitle: 'Registration, magic-link authentication, session rotation, and logout endpoints.',
2603
+ icon: 'shield-check',
2604
+ },
2605
+ {
2606
+ id: 'user',
2607
+ title: 'User',
2608
+ type: 'basic',
2609
+ subtitle: 'User directory and self-service profile endpoints.',
2610
+ icon: 'users',
2611
+ },
2612
+ {
2613
+ id: 'employee',
2614
+ title: 'Employee',
2615
+ type: 'basic',
2616
+ subtitle: 'Gateway-published employee CRUD endpoints exposed under /v1/employee/*.',
2617
+ icon: 'briefcase',
2618
+ },
2619
+ {
2620
+ id: 'access',
2621
+ title: 'Access',
2622
+ type: 'group',
2623
+ subtitle: 'Gateway-published ACL endpoints exposed under /v1/access/*.',
2624
+ icon: 'key-round',
2625
+ children: [
2626
+ {
2627
+ id: 'access-role',
2628
+ title: 'Role',
2629
+ type: 'basic',
2630
+ subtitle: 'Role master data management endpoints.',
2631
+ icon: 'badge-check',
2632
+ },
2633
+ {
2634
+ id: 'access-permission',
2635
+ title: 'Permission',
2636
+ type: 'basic',
2637
+ subtitle: 'Permission master data and lookup endpoints.',
2638
+ icon: 'key',
2639
+ },
2640
+ {
2641
+ id: 'access-role-permission',
2642
+ title: 'Role Permission',
2643
+ type: 'basic',
2644
+ subtitle: 'Role-to-permission assignment endpoints.',
2645
+ icon: 'shield-plus',
2646
+ },
2647
+ {
2648
+ id: 'access-role-user',
2649
+ title: 'Role User',
2650
+ type: 'basic',
2651
+ subtitle: 'Role-to-user assignment endpoints.',
2652
+ icon: 'user-cog',
2653
+ },
2654
+ {
2655
+ id: 'access-permission-user',
2656
+ title: 'Permission User',
2657
+ type: 'basic',
2658
+ subtitle: 'User-specific permission assignment endpoints.',
2659
+ icon: 'user-check',
2660
+ },
2661
+ ],
2662
+ },
2663
+ {
2664
+ id: 'approval',
2665
+ title: 'Approval',
2666
+ type: 'group',
2667
+ subtitle: 'Gateway-published approval definition and workflow endpoints exposed under /v1/approval/*.',
2668
+ icon: 'stamp',
2669
+ children: [
2670
+ {
2671
+ id: 'approval-approval-definition',
2672
+ title: 'Approval Definition',
2673
+ type: 'basic',
2674
+ subtitle: 'Approval definition master data endpoints.',
2675
+ icon: 'boxes',
2676
+ },
2677
+ {
2678
+ id: 'approval-approval-transition',
2679
+ title: 'Approval Transition',
2680
+ type: 'basic',
2681
+ subtitle: 'Approval transition master data endpoints.',
2682
+ icon: 'arrow-right-left',
2683
+ },
2684
+ {
2685
+ id: 'approval-approval-stage',
2686
+ title: 'Approval Stage',
2687
+ type: 'basic',
2688
+ subtitle: 'Approval stage master data endpoints.',
2689
+ icon: 'list-todo',
2690
+ },
2691
+ {
2692
+ id: 'approval-approval-actor',
2693
+ title: 'Approval Actor',
2694
+ type: 'basic',
2695
+ subtitle: 'Approval actor master data endpoints.',
2696
+ icon: 'users',
2697
+ },
2698
+ {
2699
+ id: 'approval-approval-instance',
2700
+ title: 'Approval Instance',
2701
+ type: 'basic',
2702
+ subtitle: 'Approval workflow submit, decision, detail, and pending endpoints.',
2703
+ icon: 'clipboard-check',
2704
+ },
2705
+ ],
2706
+ },
2707
+ {
2708
+ id: 'storage',
2709
+ title: 'Storage',
2710
+ type: 'group',
2711
+ subtitle: 'File upload, metadata, and signed URL endpoints for GCS and S3.',
2712
+ icon: 'hard-drive',
2713
+ children: [
2714
+ {
2715
+ id: 'storage-gcs',
2716
+ title: 'GCS',
2717
+ type: 'basic',
2718
+ subtitle: 'Google Cloud Storage upload and object access endpoints.',
2719
+ icon: 'cloud',
2720
+ },
2721
+ {
2722
+ id: 'storage-s3',
2723
+ title: 'S3',
2724
+ type: 'basic',
2725
+ subtitle: 'AWS S3 (and S3-compatible) upload and object access endpoints.',
2726
+ icon: 'database-backup',
2727
+ },
2728
+ ],
2729
+ },
2730
+ ];
2731
+
2732
+ /* eslint-disable */
2733
+ /* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
2734
+
2735
+ /**
2736
+ * Generated bundle index. Do not edit.
2737
+ */
2738
+
2739
+ export { Api, ApiConfiguration, ApiNavigation, BaseService, RequestBuilder, accessValidationSchemas, actorValidationSchemas, apiValidationSchemas, approvalValidationSchemas, approveValidationSchemas, authValidationSchemas, createValidationSchemas, definitionValidationSchemas, employeeValidationSchemas, errorValidationSchemas, instanceValidationSchemas, magicValidationSchemas, paginationValidationSchemas, pendingValidationSchemas, permissionValidationSchemas, provideApiConfiguration, rejectValidationSchemas, roleValidationSchemas, stageValidationSchemas, storageValidationSchemas, submitValidationSchemas, transitionValidationSchemas, updateValidationSchemas, userValidationSchemas, validationValidationSchemas, workflowValidationSchemas };
2740
+ //# sourceMappingURL=edsis-angular-sdk-shared.mjs.map