wcz-test 7.1.1 → 7.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/components/core/AppTitle.d.ts +2 -0
  2. package/dist/components/core/Fullscreen.d.ts +3 -0
  3. package/dist/components/core/Layout.d.ts +8 -0
  4. package/dist/components/core/ToolbarAccount.d.ts +2 -0
  5. package/dist/components/core/TypographyWithIcon.d.ts +7 -0
  6. package/dist/components/core/navigation/NavigationList.d.ts +22 -0
  7. package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
  8. package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
  9. package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
  10. package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
  11. package/dist/components/file/Dropzone.d.ts +8 -0
  12. package/dist/components/file/FileViewer.d.ts +20 -0
  13. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
  14. package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
  15. package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
  16. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
  17. package/dist/components/form/FormAutocomplete.d.ts +7 -0
  18. package/dist/components/form/FormCheckbox.d.ts +7 -0
  19. package/dist/components/form/FormDatePicker.d.ts +8 -0
  20. package/dist/components/form/FormDateRangePicker.d.ts +8 -0
  21. package/dist/components/form/FormDateTimePicker.d.ts +8 -0
  22. package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
  23. package/dist/components/form/FormNumberField.d.ts +9 -0
  24. package/dist/components/form/FormRadioGroup.d.ts +13 -0
  25. package/dist/components/form/FormSlider.d.ts +7 -0
  26. package/dist/components/form/FormSubmitButton.d.ts +4 -0
  27. package/dist/components/form/FormSwitch.d.ts +7 -0
  28. package/dist/components/form/FormTextField.d.ts +7 -0
  29. package/dist/components/form/FormTimePicker.d.ts +8 -0
  30. package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
  31. package/dist/components/router/RouterButton.d.ts +6 -0
  32. package/dist/components/router/RouterError.d.ts +7 -0
  33. package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
  34. package/dist/components/router/RouterIconButton.d.ts +6 -0
  35. package/dist/components/router/RouterLink.d.ts +6 -0
  36. package/dist/components/router/RouterListItemButton.d.ts +6 -0
  37. package/dist/components/router/RouterNotFound.d.ts +1 -0
  38. package/dist/components/router/RouterTab.d.ts +6 -0
  39. package/dist/contexts/DialogsContext.d.ts +6 -0
  40. package/dist/contexts/FileContext.d.ts +13 -0
  41. package/dist/hooks/DialogsHooks.d.ts +42 -0
  42. package/dist/hooks/FormHooks.d.ts +52 -0
  43. package/dist/hooks/User.d.ts +8 -0
  44. package/dist/index.js +533 -534
  45. package/dist/index.js.map +1 -1
  46. package/dist/lib/auth/permissions.d.ts +3 -0
  47. package/dist/lib/auth/scopes.d.ts +3 -0
  48. package/dist/lib/queryClient.d.ts +2 -0
  49. package/dist/lib/utils.d.ts +61 -0
  50. package/dist/lib/vite-plugin.d.ts +2 -0
  51. package/dist/models/Navigation.d.ts +18 -0
  52. package/dist/models/User.d.ts +13 -0
  53. package/dist/models/approval/Approval.d.ts +177 -0
  54. package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
  55. package/dist/models/approval/ApprovalFlow.d.ts +49 -0
  56. package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
  57. package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
  58. package/dist/models/approval/ApprovalStatus.d.ts +9 -0
  59. package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
  60. package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
  61. package/dist/models/email/Email.d.ts +13 -0
  62. package/dist/models/email/EmailAttachment.d.ts +6 -0
  63. package/dist/models/file/FileActions.d.ts +6 -0
  64. package/dist/models/file/FileMeta.d.ts +15 -0
  65. package/dist/models/peoplesoft/Department.d.ts +58 -0
  66. package/dist/models/peoplesoft/Employee.d.ts +46 -0
  67. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
  68. package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
  69. package/dist/providers/AuthProvider.d.ts +8 -0
  70. package/dist/providers/DialogsProvider.d.ts +5 -0
  71. package/dist/providers/LayoutProvider.d.ts +10 -0
  72. package/dist/queries/ApprovalHooks.d.ts +661 -0
  73. package/dist/queries/FileHooks.d.ts +205 -0
  74. package/dist/queries/GraphQueries.d.ts +31 -0
  75. package/dist/queries/PeopleSoftHooks.d.ts +2173 -0
  76. package/dist/queries/index.d.ts +2958 -0
  77. package/package.json +8 -8
@@ -0,0 +1,661 @@
1
+ import { default as z } from 'zod';
2
+ export declare const api: import('axios').AxiosInstance;
3
+ declare const GetApprovalsParamsSchema: z.ZodObject<{
4
+ appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
5
+ status: z.ZodOptional<z.ZodEnum<{
6
+ WaitingForApproval: "WaitingForApproval";
7
+ Approved: "Approved";
8
+ Rejected: "Rejected";
9
+ Withdrawn: "Withdrawn";
10
+ Cancelled: "Cancelled";
11
+ PartiallyApproved: "PartiallyApproved";
12
+ }>>;
13
+ approverEmployeeId: z.ZodOptional<z.ZodString>;
14
+ stepResult: z.ZodOptional<z.ZodEnum<{
15
+ NotAvailable: "NotAvailable";
16
+ FutureApproval: "FutureApproval";
17
+ WaitingForApproval: "WaitingForApproval";
18
+ Approved: "Approved";
19
+ Rejected: "Rejected";
20
+ Skipped: "Skipped";
21
+ Withdrawn: "Withdrawn";
22
+ Cancelled: "Cancelled";
23
+ }>>;
24
+ }, z.core.$strip>;
25
+ export type GetApprovalsParams = z.infer<typeof GetApprovalsParamsSchema>;
26
+ export declare const approval: {
27
+ approvals: (params?: GetApprovalsParams) => import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
28
+ id: string;
29
+ applicationName: string;
30
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
31
+ emailBody: string;
32
+ created: Date;
33
+ createdBy: {
34
+ employeeId: string;
35
+ name: string;
36
+ email: string;
37
+ };
38
+ updated: Date;
39
+ updatedBy: {
40
+ employeeId: string;
41
+ name: string;
42
+ email: string;
43
+ };
44
+ approvalFlows: {
45
+ id: string;
46
+ approvalStage: number;
47
+ approvalSequence: number;
48
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
49
+ steps: {
50
+ id: string;
51
+ order: number;
52
+ approver: {
53
+ employeeId: string;
54
+ name: string;
55
+ email: string;
56
+ };
57
+ approverRole?: string | undefined;
58
+ actualApprover?: {
59
+ employeeId: string;
60
+ name: string;
61
+ email: string;
62
+ } | undefined;
63
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
64
+ resultDate?: Date | undefined;
65
+ resultComment?: string | undefined;
66
+ }[];
67
+ batchSequence?: number | undefined;
68
+ isActive?: boolean | undefined;
69
+ }[];
70
+ currentApprovers: {
71
+ employeeId: string;
72
+ name: string;
73
+ email: string;
74
+ }[];
75
+ number?: string | undefined;
76
+ type?: "Single" | "Batch" | undefined;
77
+ }[], Error, {
78
+ id: string;
79
+ applicationName: string;
80
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
81
+ emailBody: string;
82
+ created: Date;
83
+ createdBy: {
84
+ employeeId: string;
85
+ name: string;
86
+ email: string;
87
+ };
88
+ updated: Date;
89
+ updatedBy: {
90
+ employeeId: string;
91
+ name: string;
92
+ email: string;
93
+ };
94
+ approvalFlows: {
95
+ id: string;
96
+ approvalStage: number;
97
+ approvalSequence: number;
98
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
99
+ steps: {
100
+ id: string;
101
+ order: number;
102
+ approver: {
103
+ employeeId: string;
104
+ name: string;
105
+ email: string;
106
+ };
107
+ approverRole?: string | undefined;
108
+ actualApprover?: {
109
+ employeeId: string;
110
+ name: string;
111
+ email: string;
112
+ } | undefined;
113
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
114
+ resultDate?: Date | undefined;
115
+ resultComment?: string | undefined;
116
+ }[];
117
+ batchSequence?: number | undefined;
118
+ isActive?: boolean | undefined;
119
+ }[];
120
+ currentApprovers: {
121
+ employeeId: string;
122
+ name: string;
123
+ email: string;
124
+ }[];
125
+ number?: string | undefined;
126
+ type?: "Single" | "Batch" | undefined;
127
+ }[], (string | {
128
+ appName?: string | undefined;
129
+ status?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved" | undefined;
130
+ approverEmployeeId?: string | undefined;
131
+ stepResult?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
132
+ } | undefined)[]>, "queryFn"> & {
133
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
134
+ id: string;
135
+ applicationName: string;
136
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
137
+ emailBody: string;
138
+ created: Date;
139
+ createdBy: {
140
+ employeeId: string;
141
+ name: string;
142
+ email: string;
143
+ };
144
+ updated: Date;
145
+ updatedBy: {
146
+ employeeId: string;
147
+ name: string;
148
+ email: string;
149
+ };
150
+ approvalFlows: {
151
+ id: string;
152
+ approvalStage: number;
153
+ approvalSequence: number;
154
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
155
+ steps: {
156
+ id: string;
157
+ order: number;
158
+ approver: {
159
+ employeeId: string;
160
+ name: string;
161
+ email: string;
162
+ };
163
+ approverRole?: string | undefined;
164
+ actualApprover?: {
165
+ employeeId: string;
166
+ name: string;
167
+ email: string;
168
+ } | undefined;
169
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
170
+ resultDate?: Date | undefined;
171
+ resultComment?: string | undefined;
172
+ }[];
173
+ batchSequence?: number | undefined;
174
+ isActive?: boolean | undefined;
175
+ }[];
176
+ currentApprovers: {
177
+ employeeId: string;
178
+ name: string;
179
+ email: string;
180
+ }[];
181
+ number?: string | undefined;
182
+ type?: "Single" | "Batch" | undefined;
183
+ }[], (string | {
184
+ appName?: string | undefined;
185
+ status?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved" | undefined;
186
+ approverEmployeeId?: string | undefined;
187
+ stepResult?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
188
+ } | undefined)[], never> | undefined;
189
+ } & {
190
+ queryKey: (string | {
191
+ appName?: string | undefined;
192
+ status?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved" | undefined;
193
+ approverEmployeeId?: string | undefined;
194
+ stepResult?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
195
+ } | undefined)[] & {
196
+ [dataTagSymbol]: {
197
+ id: string;
198
+ applicationName: string;
199
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
200
+ emailBody: string;
201
+ created: Date;
202
+ createdBy: {
203
+ employeeId: string;
204
+ name: string;
205
+ email: string;
206
+ };
207
+ updated: Date;
208
+ updatedBy: {
209
+ employeeId: string;
210
+ name: string;
211
+ email: string;
212
+ };
213
+ approvalFlows: {
214
+ id: string;
215
+ approvalStage: number;
216
+ approvalSequence: number;
217
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
218
+ steps: {
219
+ id: string;
220
+ order: number;
221
+ approver: {
222
+ employeeId: string;
223
+ name: string;
224
+ email: string;
225
+ };
226
+ approverRole?: string | undefined;
227
+ actualApprover?: {
228
+ employeeId: string;
229
+ name: string;
230
+ email: string;
231
+ } | undefined;
232
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
233
+ resultDate?: Date | undefined;
234
+ resultComment?: string | undefined;
235
+ }[];
236
+ batchSequence?: number | undefined;
237
+ isActive?: boolean | undefined;
238
+ }[];
239
+ currentApprovers: {
240
+ employeeId: string;
241
+ name: string;
242
+ email: string;
243
+ }[];
244
+ number?: string | undefined;
245
+ type?: "Single" | "Batch" | undefined;
246
+ }[];
247
+ [dataTagErrorSymbol]: Error;
248
+ };
249
+ };
250
+ approval: (id: string) => import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
251
+ id: string;
252
+ applicationName: string;
253
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
254
+ emailBody: string;
255
+ created: Date;
256
+ createdBy: {
257
+ employeeId: string;
258
+ name: string;
259
+ email: string;
260
+ };
261
+ updated: Date;
262
+ updatedBy: {
263
+ employeeId: string;
264
+ name: string;
265
+ email: string;
266
+ };
267
+ approvalFlows: {
268
+ id: string;
269
+ approvalStage: number;
270
+ approvalSequence: number;
271
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
272
+ steps: {
273
+ id: string;
274
+ order: number;
275
+ approver: {
276
+ employeeId: string;
277
+ name: string;
278
+ email: string;
279
+ };
280
+ approverRole?: string | undefined;
281
+ actualApprover?: {
282
+ employeeId: string;
283
+ name: string;
284
+ email: string;
285
+ } | undefined;
286
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
287
+ resultDate?: Date | undefined;
288
+ resultComment?: string | undefined;
289
+ }[];
290
+ batchSequence?: number | undefined;
291
+ isActive?: boolean | undefined;
292
+ }[];
293
+ currentApprovers: {
294
+ employeeId: string;
295
+ name: string;
296
+ email: string;
297
+ }[];
298
+ number?: string | undefined;
299
+ type?: "Single" | "Batch" | undefined;
300
+ }, Error, {
301
+ id: string;
302
+ applicationName: string;
303
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
304
+ emailBody: string;
305
+ created: Date;
306
+ createdBy: {
307
+ employeeId: string;
308
+ name: string;
309
+ email: string;
310
+ };
311
+ updated: Date;
312
+ updatedBy: {
313
+ employeeId: string;
314
+ name: string;
315
+ email: string;
316
+ };
317
+ approvalFlows: {
318
+ id: string;
319
+ approvalStage: number;
320
+ approvalSequence: number;
321
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
322
+ steps: {
323
+ id: string;
324
+ order: number;
325
+ approver: {
326
+ employeeId: string;
327
+ name: string;
328
+ email: string;
329
+ };
330
+ approverRole?: string | undefined;
331
+ actualApprover?: {
332
+ employeeId: string;
333
+ name: string;
334
+ email: string;
335
+ } | undefined;
336
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
337
+ resultDate?: Date | undefined;
338
+ resultComment?: string | undefined;
339
+ }[];
340
+ batchSequence?: number | undefined;
341
+ isActive?: boolean | undefined;
342
+ }[];
343
+ currentApprovers: {
344
+ employeeId: string;
345
+ name: string;
346
+ email: string;
347
+ }[];
348
+ number?: string | undefined;
349
+ type?: "Single" | "Batch" | undefined;
350
+ }, string[]>, "queryFn"> & {
351
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
352
+ id: string;
353
+ applicationName: string;
354
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
355
+ emailBody: string;
356
+ created: Date;
357
+ createdBy: {
358
+ employeeId: string;
359
+ name: string;
360
+ email: string;
361
+ };
362
+ updated: Date;
363
+ updatedBy: {
364
+ employeeId: string;
365
+ name: string;
366
+ email: string;
367
+ };
368
+ approvalFlows: {
369
+ id: string;
370
+ approvalStage: number;
371
+ approvalSequence: number;
372
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
373
+ steps: {
374
+ id: string;
375
+ order: number;
376
+ approver: {
377
+ employeeId: string;
378
+ name: string;
379
+ email: string;
380
+ };
381
+ approverRole?: string | undefined;
382
+ actualApprover?: {
383
+ employeeId: string;
384
+ name: string;
385
+ email: string;
386
+ } | undefined;
387
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
388
+ resultDate?: Date | undefined;
389
+ resultComment?: string | undefined;
390
+ }[];
391
+ batchSequence?: number | undefined;
392
+ isActive?: boolean | undefined;
393
+ }[];
394
+ currentApprovers: {
395
+ employeeId: string;
396
+ name: string;
397
+ email: string;
398
+ }[];
399
+ number?: string | undefined;
400
+ type?: "Single" | "Batch" | undefined;
401
+ }, string[], never> | undefined;
402
+ } & {
403
+ queryKey: string[] & {
404
+ [dataTagSymbol]: {
405
+ id: string;
406
+ applicationName: string;
407
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
408
+ emailBody: string;
409
+ created: Date;
410
+ createdBy: {
411
+ employeeId: string;
412
+ name: string;
413
+ email: string;
414
+ };
415
+ updated: Date;
416
+ updatedBy: {
417
+ employeeId: string;
418
+ name: string;
419
+ email: string;
420
+ };
421
+ approvalFlows: {
422
+ id: string;
423
+ approvalStage: number;
424
+ approvalSequence: number;
425
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
426
+ steps: {
427
+ id: string;
428
+ order: number;
429
+ approver: {
430
+ employeeId: string;
431
+ name: string;
432
+ email: string;
433
+ };
434
+ approverRole?: string | undefined;
435
+ actualApprover?: {
436
+ employeeId: string;
437
+ name: string;
438
+ email: string;
439
+ } | undefined;
440
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
441
+ resultDate?: Date | undefined;
442
+ resultComment?: string | undefined;
443
+ }[];
444
+ batchSequence?: number | undefined;
445
+ isActive?: boolean | undefined;
446
+ }[];
447
+ currentApprovers: {
448
+ employeeId: string;
449
+ name: string;
450
+ email: string;
451
+ }[];
452
+ number?: string | undefined;
453
+ type?: "Single" | "Batch" | undefined;
454
+ };
455
+ [dataTagErrorSymbol]: Error;
456
+ };
457
+ };
458
+ create: () => Omit<import('@tanstack/react-query').UseMutationOptions<{
459
+ id: string;
460
+ applicationName: string;
461
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
462
+ emailBody: string;
463
+ created: Date;
464
+ createdBy: {
465
+ employeeId: string;
466
+ name: string;
467
+ email: string;
468
+ };
469
+ updated: Date;
470
+ updatedBy: {
471
+ employeeId: string;
472
+ name: string;
473
+ email: string;
474
+ };
475
+ approvalFlows: {
476
+ id: string;
477
+ approvalStage: number;
478
+ approvalSequence: number;
479
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
480
+ steps: {
481
+ id: string;
482
+ order: number;
483
+ approver: {
484
+ employeeId: string;
485
+ name: string;
486
+ email: string;
487
+ };
488
+ approverRole?: string | undefined;
489
+ actualApprover?: {
490
+ employeeId: string;
491
+ name: string;
492
+ email: string;
493
+ } | undefined;
494
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
495
+ resultDate?: Date | undefined;
496
+ resultComment?: string | undefined;
497
+ }[];
498
+ batchSequence?: number | undefined;
499
+ isActive?: boolean | undefined;
500
+ }[];
501
+ currentApprovers: {
502
+ employeeId: string;
503
+ name: string;
504
+ email: string;
505
+ }[];
506
+ number?: string | undefined;
507
+ type?: "Single" | "Batch" | undefined;
508
+ }, Error, {
509
+ id: string;
510
+ applicationName: string;
511
+ emailBody: string;
512
+ approvalFlows: {
513
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
514
+ approvalStage: number;
515
+ steps: {
516
+ approver: {
517
+ employeeId: string;
518
+ name: string;
519
+ email: string;
520
+ };
521
+ approverRole?: string | undefined;
522
+ }[];
523
+ batchSequence?: number | undefined;
524
+ }[];
525
+ number?: string | undefined;
526
+ type?: "Single" | "Batch" | undefined;
527
+ }, unknown>, "mutationKey">;
528
+ approve: () => Omit<import('@tanstack/react-query').UseMutationOptions<{
529
+ id: string;
530
+ applicationName: string;
531
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
532
+ emailBody: string;
533
+ created: Date;
534
+ createdBy: {
535
+ employeeId: string;
536
+ name: string;
537
+ email: string;
538
+ };
539
+ updated: Date;
540
+ updatedBy: {
541
+ employeeId: string;
542
+ name: string;
543
+ email: string;
544
+ };
545
+ approvalFlows: {
546
+ id: string;
547
+ approvalStage: number;
548
+ approvalSequence: number;
549
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
550
+ steps: {
551
+ id: string;
552
+ order: number;
553
+ approver: {
554
+ employeeId: string;
555
+ name: string;
556
+ email: string;
557
+ };
558
+ approverRole?: string | undefined;
559
+ actualApprover?: {
560
+ employeeId: string;
561
+ name: string;
562
+ email: string;
563
+ } | undefined;
564
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
565
+ resultDate?: Date | undefined;
566
+ resultComment?: string | undefined;
567
+ }[];
568
+ batchSequence?: number | undefined;
569
+ isActive?: boolean | undefined;
570
+ }[];
571
+ currentApprovers: {
572
+ employeeId: string;
573
+ name: string;
574
+ email: string;
575
+ }[];
576
+ number?: string | undefined;
577
+ type?: "Single" | "Batch" | undefined;
578
+ }, Error, {
579
+ id: string;
580
+ result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
581
+ emailBody: string;
582
+ resultComment?: string | undefined;
583
+ }, unknown>, "mutationKey">;
584
+ resubmit: () => Omit<import('@tanstack/react-query').UseMutationOptions<{
585
+ id: string;
586
+ applicationName: string;
587
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
588
+ emailBody: string;
589
+ created: Date;
590
+ createdBy: {
591
+ employeeId: string;
592
+ name: string;
593
+ email: string;
594
+ };
595
+ updated: Date;
596
+ updatedBy: {
597
+ employeeId: string;
598
+ name: string;
599
+ email: string;
600
+ };
601
+ approvalFlows: {
602
+ id: string;
603
+ approvalStage: number;
604
+ approvalSequence: number;
605
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
606
+ steps: {
607
+ id: string;
608
+ order: number;
609
+ approver: {
610
+ employeeId: string;
611
+ name: string;
612
+ email: string;
613
+ };
614
+ approverRole?: string | undefined;
615
+ actualApprover?: {
616
+ employeeId: string;
617
+ name: string;
618
+ email: string;
619
+ } | undefined;
620
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
621
+ resultDate?: Date | undefined;
622
+ resultComment?: string | undefined;
623
+ }[];
624
+ batchSequence?: number | undefined;
625
+ isActive?: boolean | undefined;
626
+ }[];
627
+ currentApprovers: {
628
+ employeeId: string;
629
+ name: string;
630
+ email: string;
631
+ }[];
632
+ number?: string | undefined;
633
+ type?: "Single" | "Batch" | undefined;
634
+ }, Error, {
635
+ id: string;
636
+ approvalFlows: {
637
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
638
+ approvalStage: number;
639
+ steps: {
640
+ approver: {
641
+ employeeId: string;
642
+ name: string;
643
+ email: string;
644
+ };
645
+ approverRole?: string | undefined;
646
+ }[];
647
+ batchSequence?: number | undefined;
648
+ }[];
649
+ }, unknown>, "mutationKey">;
650
+ withdraw: () => Omit<import('@tanstack/react-query').UseMutationOptions<void, Error, {
651
+ id: string;
652
+ comment: string;
653
+ emailBody: string;
654
+ }, unknown>, "mutationKey">;
655
+ cancel: () => Omit<import('@tanstack/react-query').UseMutationOptions<void, Error, {
656
+ id: string;
657
+ comment: string;
658
+ emailBody: string;
659
+ }, unknown>, "mutationKey">;
660
+ };
661
+ export {};