wcz-test 6.4.2 → 6.4.4

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/dist/Approval-gLhUz6rw.d.ts +284 -0
  2. package/dist/FileMeta-CC014fnB.d.ts +18 -0
  3. package/dist/chunk-4FRZRIAO.js +29 -0
  4. package/dist/chunk-4FRZRIAO.js.map +1 -0
  5. package/dist/chunk-4UULRYGW.js +46 -0
  6. package/dist/chunk-4UULRYGW.js.map +1 -0
  7. package/dist/chunk-5WRI5ZAA.js +31 -0
  8. package/dist/chunk-5WRI5ZAA.js.map +1 -0
  9. package/dist/chunk-BZEEKZFG.js +206 -0
  10. package/dist/chunk-BZEEKZFG.js.map +1 -0
  11. package/dist/chunk-GBRG7C6R.js +61 -0
  12. package/dist/chunk-GBRG7C6R.js.map +1 -0
  13. package/dist/chunk-TME53DAF.js +20 -0
  14. package/dist/chunk-TME53DAF.js.map +1 -0
  15. package/dist/chunk-TVEJZEZT.js +883 -0
  16. package/dist/chunk-TVEJZEZT.js.map +1 -0
  17. package/dist/chunk-YHTLF4NN.js +27 -0
  18. package/dist/chunk-YHTLF4NN.js.map +1 -0
  19. package/dist/chunk-ZMWQQXZT.js +17 -0
  20. package/dist/chunk-ZMWQQXZT.js.map +1 -0
  21. package/dist/components.d.ts +89 -0
  22. package/dist/components.js +546 -0
  23. package/dist/components.js.map +1 -0
  24. package/dist/hooks.d.ts +129 -0
  25. package/dist/hooks.js +304 -0
  26. package/dist/hooks.js.map +1 -0
  27. package/dist/i18next-browser-languagedetector.d.ts +4 -0
  28. package/dist/i18next-browser-languagedetector.js +8 -0
  29. package/dist/i18next-browser-languagedetector.js.map +1 -0
  30. package/dist/i18next.d.ts +2 -0
  31. package/dist/i18next.js +9 -0
  32. package/dist/i18next.js.map +1 -0
  33. package/dist/index.d.ts +4 -3542
  34. package/dist/index.js +228 -2752
  35. package/dist/index.js.map +1 -1
  36. package/dist/models.d.ts +161 -0
  37. package/dist/models.js +249 -0
  38. package/dist/models.js.map +1 -0
  39. package/dist/queries.d.ts +1024 -0
  40. package/dist/queries.js +364 -0
  41. package/dist/queries.js.map +1 -0
  42. package/dist/react-i18next.d.ts +1 -0
  43. package/dist/react-i18next.js +3 -0
  44. package/dist/react-i18next.js.map +1 -0
  45. package/dist/utils-DLRiZ02r.d.ts +47 -0
  46. package/dist/utils.d.ts +2154 -0
  47. package/dist/utils.js +27 -0
  48. package/dist/utils.js.map +1 -0
  49. package/package.json +37 -5
@@ -0,0 +1,1024 @@
1
+ import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
3
+ import z__default from 'zod';
4
+ import { DetailedError } from 'tus-js-client';
5
+ import { F as FileMeta } from './FileMeta-CC014fnB.js';
6
+ import { E as Employee, D as Department, A as Approval, C as CreateApproval, a as ApproveApproval, R as ResubmitApproval, W as WithdrawApproval, b as CancelApproval } from './Approval-gLhUz6rw.js';
7
+
8
+ type OptionalId$1 = string | undefined | null;
9
+ type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<FileMeta>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
10
+ type BaseBlobQueryOptions = Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
11
+ type BaseFileMetaMutationOptions = Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">;
12
+ type BaseBlobMutationOptions = Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">;
13
+ type BaseStringMutationOptions = Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">;
14
+ declare const GetFileMetasParamsSchema: z__default.ZodObject<{
15
+ appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
16
+ subId: z__default.ZodUUID;
17
+ }, z__default.core.$strip>;
18
+ type GetFileMetasParams = z__default.infer<typeof GetFileMetasParamsSchema>;
19
+ declare const useGetFileMetas: (params: GetFileMetasParams, options?: BaseFileMetaArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
20
+ id: string;
21
+ subId: string;
22
+ appName: string;
23
+ fileName: string;
24
+ fileExtension: string;
25
+ fileSize: number;
26
+ mediaSubType: string;
27
+ mediaType: string;
28
+ mimeType: string;
29
+ createdBy: string;
30
+ createdDate: Date;
31
+ }[], Error>;
32
+ declare const GetFileThumbnailParamsSchema: z__default.ZodObject<{
33
+ appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
34
+ meta: z__default.ZodObject<{
35
+ id: z__default.ZodUUID;
36
+ subId: z__default.ZodUUID;
37
+ appName: z__default.ZodString;
38
+ fileName: z__default.ZodString;
39
+ fileExtension: z__default.ZodString;
40
+ fileSize: z__default.ZodNumber;
41
+ mediaSubType: z__default.ZodString;
42
+ mediaType: z__default.ZodString;
43
+ mimeType: z__default.ZodString;
44
+ createdBy: z__default.ZodString;
45
+ createdDate: z__default.ZodDate;
46
+ }, z__default.core.$strip>;
47
+ }, z__default.core.$strip>;
48
+ type GetFileThumbnailParams = z__default.infer<typeof GetFileThumbnailParamsSchema>;
49
+ declare const useGetFileThumbnail: (params: GetFileThumbnailParams, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
50
+ declare const GetFileParamsSchema: z__default.ZodObject<{
51
+ appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
52
+ meta: z__default.ZodObject<{
53
+ id: z__default.ZodUUID;
54
+ subId: z__default.ZodUUID;
55
+ appName: z__default.ZodString;
56
+ fileName: z__default.ZodString;
57
+ fileExtension: z__default.ZodString;
58
+ fileSize: z__default.ZodNumber;
59
+ mediaSubType: z__default.ZodString;
60
+ mediaType: z__default.ZodString;
61
+ mimeType: z__default.ZodString;
62
+ createdBy: z__default.ZodString;
63
+ createdDate: z__default.ZodDate;
64
+ }, z__default.core.$strip>;
65
+ }, z__default.core.$strip>;
66
+ type GetFileParams = z__default.infer<typeof GetFileParamsSchema>;
67
+ declare const useGetFile: (params: GetFileParams, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
68
+ declare const useDownloadFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, {
69
+ id: string;
70
+ subId: string;
71
+ appName: string;
72
+ fileName: string;
73
+ fileExtension: string;
74
+ fileSize: number;
75
+ mediaSubType: string;
76
+ mediaType: string;
77
+ mimeType: string;
78
+ createdBy: string;
79
+ createdDate: Date;
80
+ }, unknown>;
81
+ declare const useOpenFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, {
82
+ id: string;
83
+ subId: string;
84
+ appName: string;
85
+ fileName: string;
86
+ fileExtension: string;
87
+ fileSize: number;
88
+ mediaSubType: string;
89
+ mediaType: string;
90
+ mimeType: string;
91
+ createdBy: string;
92
+ createdDate: Date;
93
+ }, unknown>;
94
+ declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<{
95
+ id: string;
96
+ subId: string;
97
+ appName: string;
98
+ fileName: string;
99
+ fileExtension: string;
100
+ fileSize: number;
101
+ mediaSubType: string;
102
+ mediaType: string;
103
+ mimeType: string;
104
+ createdBy: string;
105
+ createdDate: Date;
106
+ }, Error, {
107
+ id: string;
108
+ subId: string;
109
+ appName: string;
110
+ fileName: string;
111
+ fileExtension: string;
112
+ fileSize: number;
113
+ mediaSubType: string;
114
+ mediaType: string;
115
+ mimeType: string;
116
+ createdBy: string;
117
+ createdDate: Date;
118
+ }, unknown>;
119
+ declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<{
120
+ id: string;
121
+ subId: string;
122
+ appName: string;
123
+ fileName: string;
124
+ fileExtension: string;
125
+ fileSize: number;
126
+ mediaSubType: string;
127
+ mediaType: string;
128
+ mimeType: string;
129
+ createdBy: string;
130
+ createdDate: Date;
131
+ }, Error, {
132
+ id: string;
133
+ subId: string;
134
+ appName: string;
135
+ fileName: string;
136
+ fileExtension: string;
137
+ fileSize: number;
138
+ mediaSubType: string;
139
+ mediaType: string;
140
+ mimeType: string;
141
+ createdBy: string;
142
+ createdDate: Date;
143
+ }, unknown>;
144
+ declare const useDeleteFiles: (options?: BaseStringMutationOptions) => _tanstack_react_query.UseMutationResult<string, Error, string, unknown>;
145
+ interface UseUploadFileProps {
146
+ subId: OptionalId$1;
147
+ onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
148
+ onError?: (error: Error | DetailedError) => void;
149
+ }
150
+ declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps) => {
151
+ mutate: (file: File) => Promise<void>;
152
+ progress: number;
153
+ };
154
+
155
+ type OptionalId = string | undefined | null;
156
+ type BaseEmployeeArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<Employee>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
157
+ type BaseEmployeeQueryOptions = Omit<DefinedInitialDataOptions<Employee>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
158
+ type BaseDepartmentArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<Department>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
159
+ type BaseDepartmentQueryOptions = Omit<DefinedInitialDataOptions<Department>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
160
+ declare const useGetPeopleSoftEmployeesSearch: (searchTerm: string, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
161
+ badgeId: string;
162
+ category: string;
163
+ categoryGroup: "IDL" | "FD" | "FI";
164
+ companyCode: string;
165
+ contactPhone: string;
166
+ departmentId: string;
167
+ departmentDescription: string;
168
+ emailString: string;
169
+ employeeId: string;
170
+ extensionNumber: string;
171
+ firstName: string;
172
+ gender: string;
173
+ hiredDate: Date;
174
+ lastName: string;
175
+ managerId: string;
176
+ middleName: string;
177
+ name: string;
178
+ nameTitleCase: string;
179
+ nfcSn: string;
180
+ plantId: string;
181
+ position: string;
182
+ previousEmployeeIds: string | null;
183
+ reHiredDate: Date | null;
184
+ recordNumber: number;
185
+ status: "Active" | "Terminated" | "Leave of Absence";
186
+ supervisorId: string;
187
+ terminationDate: Date | null;
188
+ terminationFutureDate: Date | null;
189
+ type: string;
190
+ upperDepartmentId: string;
191
+ jobCode: string;
192
+ jobDescription: string;
193
+ terminationReason: string | null;
194
+ supervisorRecordNumber: number;
195
+ }[], Error>;
196
+ declare const useGetPeopleSoftEmployees: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
197
+ badgeId: string;
198
+ category: string;
199
+ categoryGroup: "IDL" | "FD" | "FI";
200
+ companyCode: string;
201
+ contactPhone: string;
202
+ departmentId: string;
203
+ departmentDescription: string;
204
+ emailString: string;
205
+ employeeId: string;
206
+ extensionNumber: string;
207
+ firstName: string;
208
+ gender: string;
209
+ hiredDate: Date;
210
+ lastName: string;
211
+ managerId: string;
212
+ middleName: string;
213
+ name: string;
214
+ nameTitleCase: string;
215
+ nfcSn: string;
216
+ plantId: string;
217
+ position: string;
218
+ previousEmployeeIds: string | null;
219
+ reHiredDate: Date | null;
220
+ recordNumber: number;
221
+ status: "Active" | "Terminated" | "Leave of Absence";
222
+ supervisorId: string;
223
+ terminationDate: Date | null;
224
+ terminationFutureDate: Date | null;
225
+ type: string;
226
+ upperDepartmentId: string;
227
+ jobCode: string;
228
+ jobDescription: string;
229
+ terminationReason: string | null;
230
+ supervisorRecordNumber: number;
231
+ }[], Error>;
232
+ declare const useGetPeopleSoftActiveEmployees: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
233
+ badgeId: string;
234
+ category: string;
235
+ categoryGroup: "IDL" | "FD" | "FI";
236
+ companyCode: string;
237
+ contactPhone: string;
238
+ departmentId: string;
239
+ departmentDescription: string;
240
+ emailString: string;
241
+ employeeId: string;
242
+ extensionNumber: string;
243
+ firstName: string;
244
+ gender: string;
245
+ hiredDate: Date;
246
+ lastName: string;
247
+ managerId: string;
248
+ middleName: string;
249
+ name: string;
250
+ nameTitleCase: string;
251
+ nfcSn: string;
252
+ plantId: string;
253
+ position: string;
254
+ previousEmployeeIds: string | null;
255
+ reHiredDate: Date | null;
256
+ recordNumber: number;
257
+ status: "Active" | "Terminated" | "Leave of Absence";
258
+ supervisorId: string;
259
+ terminationDate: Date | null;
260
+ terminationFutureDate: Date | null;
261
+ type: string;
262
+ upperDepartmentId: string;
263
+ jobCode: string;
264
+ jobDescription: string;
265
+ terminationReason: string | null;
266
+ supervisorRecordNumber: number;
267
+ }[], Error>;
268
+ declare const useGetPeopleSoftEmployeeById: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
269
+ badgeId: string;
270
+ category: string;
271
+ categoryGroup: "IDL" | "FD" | "FI";
272
+ companyCode: string;
273
+ contactPhone: string;
274
+ departmentId: string;
275
+ departmentDescription: string;
276
+ emailString: string;
277
+ employeeId: string;
278
+ extensionNumber: string;
279
+ firstName: string;
280
+ gender: string;
281
+ hiredDate: Date;
282
+ lastName: string;
283
+ managerId: string;
284
+ middleName: string;
285
+ name: string;
286
+ nameTitleCase: string;
287
+ nfcSn: string;
288
+ plantId: string;
289
+ position: string;
290
+ previousEmployeeIds: string | null;
291
+ reHiredDate: Date | null;
292
+ recordNumber: number;
293
+ status: "Active" | "Terminated" | "Leave of Absence";
294
+ supervisorId: string;
295
+ terminationDate: Date | null;
296
+ terminationFutureDate: Date | null;
297
+ type: string;
298
+ upperDepartmentId: string;
299
+ jobCode: string;
300
+ jobDescription: string;
301
+ terminationReason: string | null;
302
+ supervisorRecordNumber: number;
303
+ }, Error>;
304
+ declare const useGetPeopleSoftPreviousEmployeeIds: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
305
+ badgeId: string;
306
+ category: string;
307
+ categoryGroup: "IDL" | "FD" | "FI";
308
+ companyCode: string;
309
+ contactPhone: string;
310
+ departmentId: string;
311
+ departmentDescription: string;
312
+ emailString: string;
313
+ employeeId: string;
314
+ extensionNumber: string;
315
+ firstName: string;
316
+ gender: string;
317
+ hiredDate: Date;
318
+ lastName: string;
319
+ managerId: string;
320
+ middleName: string;
321
+ name: string;
322
+ nameTitleCase: string;
323
+ nfcSn: string;
324
+ plantId: string;
325
+ position: string;
326
+ previousEmployeeIds: string | null;
327
+ reHiredDate: Date | null;
328
+ recordNumber: number;
329
+ status: "Active" | "Terminated" | "Leave of Absence";
330
+ supervisorId: string;
331
+ terminationDate: Date | null;
332
+ terminationFutureDate: Date | null;
333
+ type: string;
334
+ upperDepartmentId: string;
335
+ jobCode: string;
336
+ jobDescription: string;
337
+ terminationReason: string | null;
338
+ supervisorRecordNumber: number;
339
+ }[], Error>;
340
+ declare const useGetPeopleSoftEmployeeSupervisor: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
341
+ badgeId: string;
342
+ category: string;
343
+ categoryGroup: "IDL" | "FD" | "FI";
344
+ companyCode: string;
345
+ contactPhone: string;
346
+ departmentId: string;
347
+ departmentDescription: string;
348
+ emailString: string;
349
+ employeeId: string;
350
+ extensionNumber: string;
351
+ firstName: string;
352
+ gender: string;
353
+ hiredDate: Date;
354
+ lastName: string;
355
+ managerId: string;
356
+ middleName: string;
357
+ name: string;
358
+ nameTitleCase: string;
359
+ nfcSn: string;
360
+ plantId: string;
361
+ position: string;
362
+ previousEmployeeIds: string | null;
363
+ reHiredDate: Date | null;
364
+ recordNumber: number;
365
+ status: "Active" | "Terminated" | "Leave of Absence";
366
+ supervisorId: string;
367
+ terminationDate: Date | null;
368
+ terminationFutureDate: Date | null;
369
+ type: string;
370
+ upperDepartmentId: string;
371
+ jobCode: string;
372
+ jobDescription: string;
373
+ terminationReason: string | null;
374
+ supervisorRecordNumber: number;
375
+ }, Error>;
376
+ declare const useGetPeopleSoftEmployeeSubordinates: (employeeId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
377
+ badgeId: string;
378
+ category: string;
379
+ categoryGroup: "IDL" | "FD" | "FI";
380
+ companyCode: string;
381
+ contactPhone: string;
382
+ departmentId: string;
383
+ departmentDescription: string;
384
+ emailString: string;
385
+ employeeId: string;
386
+ extensionNumber: string;
387
+ firstName: string;
388
+ gender: string;
389
+ hiredDate: Date;
390
+ lastName: string;
391
+ managerId: string;
392
+ middleName: string;
393
+ name: string;
394
+ nameTitleCase: string;
395
+ nfcSn: string;
396
+ plantId: string;
397
+ position: string;
398
+ previousEmployeeIds: string | null;
399
+ reHiredDate: Date | null;
400
+ recordNumber: number;
401
+ status: "Active" | "Terminated" | "Leave of Absence";
402
+ supervisorId: string;
403
+ terminationDate: Date | null;
404
+ terminationFutureDate: Date | null;
405
+ type: string;
406
+ upperDepartmentId: string;
407
+ jobCode: string;
408
+ jobDescription: string;
409
+ terminationReason: string | null;
410
+ supervisorRecordNumber: number;
411
+ }[], Error>;
412
+ declare const useGetPeopleSoftEmployeeManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
413
+ badgeId: string;
414
+ category: string;
415
+ categoryGroup: "IDL" | "FD" | "FI";
416
+ companyCode: string;
417
+ contactPhone: string;
418
+ departmentId: string;
419
+ departmentDescription: string;
420
+ emailString: string;
421
+ employeeId: string;
422
+ extensionNumber: string;
423
+ firstName: string;
424
+ gender: string;
425
+ hiredDate: Date;
426
+ lastName: string;
427
+ managerId: string;
428
+ middleName: string;
429
+ name: string;
430
+ nameTitleCase: string;
431
+ nfcSn: string;
432
+ plantId: string;
433
+ position: string;
434
+ previousEmployeeIds: string | null;
435
+ reHiredDate: Date | null;
436
+ recordNumber: number;
437
+ status: "Active" | "Terminated" | "Leave of Absence";
438
+ supervisorId: string;
439
+ terminationDate: Date | null;
440
+ terminationFutureDate: Date | null;
441
+ type: string;
442
+ upperDepartmentId: string;
443
+ jobCode: string;
444
+ jobDescription: string;
445
+ terminationReason: string | null;
446
+ supervisorRecordNumber: number;
447
+ }, Error>;
448
+ declare const useGetPeopleSoftEmployeeGeneralManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
449
+ badgeId: string;
450
+ category: string;
451
+ categoryGroup: "IDL" | "FD" | "FI";
452
+ companyCode: string;
453
+ contactPhone: string;
454
+ departmentId: string;
455
+ departmentDescription: string;
456
+ emailString: string;
457
+ employeeId: string;
458
+ extensionNumber: string;
459
+ firstName: string;
460
+ gender: string;
461
+ hiredDate: Date;
462
+ lastName: string;
463
+ managerId: string;
464
+ middleName: string;
465
+ name: string;
466
+ nameTitleCase: string;
467
+ nfcSn: string;
468
+ plantId: string;
469
+ position: string;
470
+ previousEmployeeIds: string | null;
471
+ reHiredDate: Date | null;
472
+ recordNumber: number;
473
+ status: "Active" | "Terminated" | "Leave of Absence";
474
+ supervisorId: string;
475
+ terminationDate: Date | null;
476
+ terminationFutureDate: Date | null;
477
+ type: string;
478
+ upperDepartmentId: string;
479
+ jobCode: string;
480
+ jobDescription: string;
481
+ terminationReason: string | null;
482
+ supervisorRecordNumber: number;
483
+ }, Error>;
484
+ declare const useGetPeopleSoftDepartments: (options?: BaseDepartmentArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
485
+ departmentId: string;
486
+ description: string;
487
+ managerId: string;
488
+ managerRecordNumber: string;
489
+ treeLevel: number;
490
+ upperDepartmentId: string;
491
+ companyCode: string;
492
+ location: string;
493
+ salLocation: string;
494
+ plantId: string;
495
+ manager: {
496
+ badgeId: string;
497
+ category: string;
498
+ categoryGroup: "IDL" | "FD" | "FI";
499
+ companyCode: string;
500
+ contactPhone: string;
501
+ departmentId: string;
502
+ departmentDescription: string;
503
+ emailString: string;
504
+ employeeId: string;
505
+ extensionNumber: string;
506
+ firstName: string;
507
+ gender: string;
508
+ hiredDate: Date;
509
+ lastName: string;
510
+ managerId: string;
511
+ middleName: string;
512
+ name: string;
513
+ nameTitleCase: string;
514
+ nfcSn: string;
515
+ plantId: string;
516
+ position: string;
517
+ previousEmployeeIds: string | null;
518
+ reHiredDate: Date | null;
519
+ recordNumber: number;
520
+ status: "Active" | "Terminated" | "Leave of Absence";
521
+ supervisorId: string;
522
+ terminationDate: Date | null;
523
+ terminationFutureDate: Date | null;
524
+ type: string;
525
+ upperDepartmentId: string;
526
+ jobCode: string;
527
+ jobDescription: string;
528
+ terminationReason: string | null;
529
+ supervisorRecordNumber: number;
530
+ };
531
+ }[], Error>;
532
+ declare const useGetPeopleSoftDepartmentById: (departmentId: OptionalId, options?: BaseDepartmentQueryOptions) => _tanstack_react_query.UseQueryResult<{
533
+ departmentId: string;
534
+ description: string;
535
+ managerId: string;
536
+ managerRecordNumber: string;
537
+ treeLevel: number;
538
+ upperDepartmentId: string;
539
+ companyCode: string;
540
+ location: string;
541
+ salLocation: string;
542
+ plantId: string;
543
+ manager: {
544
+ badgeId: string;
545
+ category: string;
546
+ categoryGroup: "IDL" | "FD" | "FI";
547
+ companyCode: string;
548
+ contactPhone: string;
549
+ departmentId: string;
550
+ departmentDescription: string;
551
+ emailString: string;
552
+ employeeId: string;
553
+ extensionNumber: string;
554
+ firstName: string;
555
+ gender: string;
556
+ hiredDate: Date;
557
+ lastName: string;
558
+ managerId: string;
559
+ middleName: string;
560
+ name: string;
561
+ nameTitleCase: string;
562
+ nfcSn: string;
563
+ plantId: string;
564
+ position: string;
565
+ previousEmployeeIds: string | null;
566
+ reHiredDate: Date | null;
567
+ recordNumber: number;
568
+ status: "Active" | "Terminated" | "Leave of Absence";
569
+ supervisorId: string;
570
+ terminationDate: Date | null;
571
+ terminationFutureDate: Date | null;
572
+ type: string;
573
+ upperDepartmentId: string;
574
+ jobCode: string;
575
+ jobDescription: string;
576
+ terminationReason: string | null;
577
+ supervisorRecordNumber: number;
578
+ };
579
+ }, Error>;
580
+ declare const useGetPeopleSoftDepartmentManager: (departmentId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
581
+ badgeId: string;
582
+ category: string;
583
+ categoryGroup: "IDL" | "FD" | "FI";
584
+ companyCode: string;
585
+ contactPhone: string;
586
+ departmentId: string;
587
+ departmentDescription: string;
588
+ emailString: string;
589
+ employeeId: string;
590
+ extensionNumber: string;
591
+ firstName: string;
592
+ gender: string;
593
+ hiredDate: Date;
594
+ lastName: string;
595
+ managerId: string;
596
+ middleName: string;
597
+ name: string;
598
+ nameTitleCase: string;
599
+ nfcSn: string;
600
+ plantId: string;
601
+ position: string;
602
+ previousEmployeeIds: string | null;
603
+ reHiredDate: Date | null;
604
+ recordNumber: number;
605
+ status: "Active" | "Terminated" | "Leave of Absence";
606
+ supervisorId: string;
607
+ terminationDate: Date | null;
608
+ terminationFutureDate: Date | null;
609
+ type: string;
610
+ upperDepartmentId: string;
611
+ jobCode: string;
612
+ jobDescription: string;
613
+ terminationReason: string | null;
614
+ supervisorRecordNumber: number;
615
+ }, Error>;
616
+ declare const useGetPeopleSoftDepartmentEmployees: (departmentId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
617
+ badgeId: string;
618
+ category: string;
619
+ categoryGroup: "IDL" | "FD" | "FI";
620
+ companyCode: string;
621
+ contactPhone: string;
622
+ departmentId: string;
623
+ departmentDescription: string;
624
+ emailString: string;
625
+ employeeId: string;
626
+ extensionNumber: string;
627
+ firstName: string;
628
+ gender: string;
629
+ hiredDate: Date;
630
+ lastName: string;
631
+ managerId: string;
632
+ middleName: string;
633
+ name: string;
634
+ nameTitleCase: string;
635
+ nfcSn: string;
636
+ plantId: string;
637
+ position: string;
638
+ previousEmployeeIds: string | null;
639
+ reHiredDate: Date | null;
640
+ recordNumber: number;
641
+ status: "Active" | "Terminated" | "Leave of Absence";
642
+ supervisorId: string;
643
+ terminationDate: Date | null;
644
+ terminationFutureDate: Date | null;
645
+ type: string;
646
+ upperDepartmentId: string;
647
+ jobCode: string;
648
+ jobDescription: string;
649
+ terminationReason: string | null;
650
+ supervisorRecordNumber: number;
651
+ }[], Error>;
652
+ declare const useGetPeopleSoftCompanyGeneralManager: (companyCode: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
653
+ badgeId: string;
654
+ category: string;
655
+ categoryGroup: "IDL" | "FD" | "FI";
656
+ companyCode: string;
657
+ contactPhone: string;
658
+ departmentId: string;
659
+ departmentDescription: string;
660
+ emailString: string;
661
+ employeeId: string;
662
+ extensionNumber: string;
663
+ firstName: string;
664
+ gender: string;
665
+ hiredDate: Date;
666
+ lastName: string;
667
+ managerId: string;
668
+ middleName: string;
669
+ name: string;
670
+ nameTitleCase: string;
671
+ nfcSn: string;
672
+ plantId: string;
673
+ position: string;
674
+ previousEmployeeIds: string | null;
675
+ reHiredDate: Date | null;
676
+ recordNumber: number;
677
+ status: "Active" | "Terminated" | "Leave of Absence";
678
+ supervisorId: string;
679
+ terminationDate: Date | null;
680
+ terminationFutureDate: Date | null;
681
+ type: string;
682
+ upperDepartmentId: string;
683
+ jobCode: string;
684
+ jobDescription: string;
685
+ terminationReason: string | null;
686
+ supervisorRecordNumber: number;
687
+ }, Error>;
688
+
689
+ type UseGetApprovalsOptions = Omit<DefinedInitialDataOptions<Array<Approval>>, "queryKey" | "queryFn" | "initialData">;
690
+ type UseGetApprovalOptions = Omit<DefinedInitialDataOptions<Approval>, "queryKey" | "queryFn" | "initialData">;
691
+ type UseCreateApprovalOptions = Omit<UseMutationOptions<Approval, Error, CreateApproval>, "mutationFn" | "onSettled">;
692
+ type UseApproveApprovalOptions = Omit<UseMutationOptions<Approval, Error, ApproveApproval>, "mutationFn" | "onSettled">;
693
+ type UseResubmitApprovalOptions = Omit<UseMutationOptions<Approval, Error, ResubmitApproval>, "mutationFn" | "onSettled">;
694
+ type UseWithdrawApprovalOptions = Omit<UseMutationOptions<void, Error, WithdrawApproval>, "mutationFn" | "onSettled">;
695
+ type UseCancelApprovalOptions = Omit<UseMutationOptions<void, Error, CancelApproval>, "mutationFn" | "onSettled">;
696
+ declare const GetApprovalsParamsSchema: z__default.ZodObject<{
697
+ appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
698
+ status: z__default.ZodOptional<z__default.ZodEnum<{
699
+ WaitingForApproval: "WaitingForApproval";
700
+ Approved: "Approved";
701
+ Rejected: "Rejected";
702
+ Withdrawn: "Withdrawn";
703
+ Cancelled: "Cancelled";
704
+ PartiallyApproved: "PartiallyApproved";
705
+ }>>;
706
+ approverEmployeeId: z__default.ZodOptional<z__default.ZodString>;
707
+ stepResult: z__default.ZodOptional<z__default.ZodEnum<{
708
+ NotAvailable: "NotAvailable";
709
+ FutureApproval: "FutureApproval";
710
+ WaitingForApproval: "WaitingForApproval";
711
+ Approved: "Approved";
712
+ Rejected: "Rejected";
713
+ Skipped: "Skipped";
714
+ Withdrawn: "Withdrawn";
715
+ Cancelled: "Cancelled";
716
+ }>>;
717
+ }, z__default.core.$strip>;
718
+ type GetApprovalsParams = z__default.infer<typeof GetApprovalsParamsSchema>;
719
+ declare const useGetApprovals: (params?: GetApprovalsParams, options?: UseGetApprovalsOptions) => _tanstack_react_query.UseQueryResult<{
720
+ id: string;
721
+ applicationName: string;
722
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
723
+ emailBody: string;
724
+ created: Date;
725
+ createdBy: {
726
+ employeeId: string;
727
+ name: string;
728
+ email: string;
729
+ };
730
+ updated: Date;
731
+ updatedBy: {
732
+ employeeId: string;
733
+ name: string;
734
+ email: string;
735
+ };
736
+ approvalFlows: {
737
+ id: string;
738
+ approvalStage: number;
739
+ approvalSequence: number;
740
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
741
+ steps: {
742
+ id: string;
743
+ order: number;
744
+ approver: {
745
+ employeeId: string;
746
+ name: string;
747
+ email: string;
748
+ };
749
+ approverRole?: string | undefined;
750
+ actualApprover?: {
751
+ employeeId: string;
752
+ name: string;
753
+ email: string;
754
+ } | undefined;
755
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
756
+ resultDate?: Date | undefined;
757
+ resultComment?: string | undefined;
758
+ }[];
759
+ batchSequence?: number | undefined;
760
+ isActive?: boolean | undefined;
761
+ }[];
762
+ currentApprovers: {
763
+ employeeId: string;
764
+ name: string;
765
+ email: string;
766
+ }[];
767
+ number?: string | undefined;
768
+ type?: "Single" | "Batch" | undefined;
769
+ }[], Error>;
770
+ declare const useGetApproval: (id: string, options?: UseGetApprovalOptions) => _tanstack_react_query.UseQueryResult<{
771
+ id: string;
772
+ applicationName: string;
773
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
774
+ emailBody: string;
775
+ created: Date;
776
+ createdBy: {
777
+ employeeId: string;
778
+ name: string;
779
+ email: string;
780
+ };
781
+ updated: Date;
782
+ updatedBy: {
783
+ employeeId: string;
784
+ name: string;
785
+ email: string;
786
+ };
787
+ approvalFlows: {
788
+ id: string;
789
+ approvalStage: number;
790
+ approvalSequence: number;
791
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
792
+ steps: {
793
+ id: string;
794
+ order: number;
795
+ approver: {
796
+ employeeId: string;
797
+ name: string;
798
+ email: string;
799
+ };
800
+ approverRole?: string | undefined;
801
+ actualApprover?: {
802
+ employeeId: string;
803
+ name: string;
804
+ email: string;
805
+ } | undefined;
806
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
807
+ resultDate?: Date | undefined;
808
+ resultComment?: string | undefined;
809
+ }[];
810
+ batchSequence?: number | undefined;
811
+ isActive?: boolean | undefined;
812
+ }[];
813
+ currentApprovers: {
814
+ employeeId: string;
815
+ name: string;
816
+ email: string;
817
+ }[];
818
+ number?: string | undefined;
819
+ type?: "Single" | "Batch" | undefined;
820
+ }, Error>;
821
+ declare const useCreateApproval: (options?: UseCreateApprovalOptions) => _tanstack_react_query.UseMutationResult<{
822
+ id: string;
823
+ applicationName: string;
824
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
825
+ emailBody: string;
826
+ created: Date;
827
+ createdBy: {
828
+ employeeId: string;
829
+ name: string;
830
+ email: string;
831
+ };
832
+ updated: Date;
833
+ updatedBy: {
834
+ employeeId: string;
835
+ name: string;
836
+ email: string;
837
+ };
838
+ approvalFlows: {
839
+ id: string;
840
+ approvalStage: number;
841
+ approvalSequence: number;
842
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
843
+ steps: {
844
+ id: string;
845
+ order: number;
846
+ approver: {
847
+ employeeId: string;
848
+ name: string;
849
+ email: string;
850
+ };
851
+ approverRole?: string | undefined;
852
+ actualApprover?: {
853
+ employeeId: string;
854
+ name: string;
855
+ email: string;
856
+ } | undefined;
857
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
858
+ resultDate?: Date | undefined;
859
+ resultComment?: string | undefined;
860
+ }[];
861
+ batchSequence?: number | undefined;
862
+ isActive?: boolean | undefined;
863
+ }[];
864
+ currentApprovers: {
865
+ employeeId: string;
866
+ name: string;
867
+ email: string;
868
+ }[];
869
+ number?: string | undefined;
870
+ type?: "Single" | "Batch" | undefined;
871
+ }, Error, {
872
+ id: string;
873
+ applicationName: string;
874
+ emailBody: string;
875
+ approvalFlows: {
876
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
877
+ approvalStage: number;
878
+ steps: {
879
+ approver: {
880
+ employeeId: string;
881
+ name: string;
882
+ email: string;
883
+ };
884
+ approverRole?: string | undefined;
885
+ }[];
886
+ batchSequence?: number | undefined;
887
+ }[];
888
+ number?: string | undefined;
889
+ type?: "Single" | "Batch" | undefined;
890
+ }, unknown>;
891
+ declare const useApproveApproval: (options?: UseApproveApprovalOptions) => _tanstack_react_query.UseMutationResult<{
892
+ id: string;
893
+ applicationName: string;
894
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
895
+ emailBody: string;
896
+ created: Date;
897
+ createdBy: {
898
+ employeeId: string;
899
+ name: string;
900
+ email: string;
901
+ };
902
+ updated: Date;
903
+ updatedBy: {
904
+ employeeId: string;
905
+ name: string;
906
+ email: string;
907
+ };
908
+ approvalFlows: {
909
+ id: string;
910
+ approvalStage: number;
911
+ approvalSequence: number;
912
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
913
+ steps: {
914
+ id: string;
915
+ order: number;
916
+ approver: {
917
+ employeeId: string;
918
+ name: string;
919
+ email: string;
920
+ };
921
+ approverRole?: string | undefined;
922
+ actualApprover?: {
923
+ employeeId: string;
924
+ name: string;
925
+ email: string;
926
+ } | undefined;
927
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
928
+ resultDate?: Date | undefined;
929
+ resultComment?: string | undefined;
930
+ }[];
931
+ batchSequence?: number | undefined;
932
+ isActive?: boolean | undefined;
933
+ }[];
934
+ currentApprovers: {
935
+ employeeId: string;
936
+ name: string;
937
+ email: string;
938
+ }[];
939
+ number?: string | undefined;
940
+ type?: "Single" | "Batch" | undefined;
941
+ }, Error, {
942
+ id: string;
943
+ result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
944
+ emailBody: string;
945
+ resultComment?: string | undefined;
946
+ }, unknown>;
947
+ declare const useResubmitApproval: (options?: UseResubmitApprovalOptions) => _tanstack_react_query.UseMutationResult<{
948
+ id: string;
949
+ applicationName: string;
950
+ status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
951
+ emailBody: string;
952
+ created: Date;
953
+ createdBy: {
954
+ employeeId: string;
955
+ name: string;
956
+ email: string;
957
+ };
958
+ updated: Date;
959
+ updatedBy: {
960
+ employeeId: string;
961
+ name: string;
962
+ email: string;
963
+ };
964
+ approvalFlows: {
965
+ id: string;
966
+ approvalStage: number;
967
+ approvalSequence: number;
968
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
969
+ steps: {
970
+ id: string;
971
+ order: number;
972
+ approver: {
973
+ employeeId: string;
974
+ name: string;
975
+ email: string;
976
+ };
977
+ approverRole?: string | undefined;
978
+ actualApprover?: {
979
+ employeeId: string;
980
+ name: string;
981
+ email: string;
982
+ } | undefined;
983
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
984
+ resultDate?: Date | undefined;
985
+ resultComment?: string | undefined;
986
+ }[];
987
+ batchSequence?: number | undefined;
988
+ isActive?: boolean | undefined;
989
+ }[];
990
+ currentApprovers: {
991
+ employeeId: string;
992
+ name: string;
993
+ email: string;
994
+ }[];
995
+ number?: string | undefined;
996
+ type?: "Single" | "Batch" | undefined;
997
+ }, Error, {
998
+ id: string;
999
+ approvalFlows: {
1000
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
1001
+ approvalStage: number;
1002
+ steps: {
1003
+ approver: {
1004
+ employeeId: string;
1005
+ name: string;
1006
+ email: string;
1007
+ };
1008
+ approverRole?: string | undefined;
1009
+ }[];
1010
+ batchSequence?: number | undefined;
1011
+ }[];
1012
+ }, unknown>;
1013
+ declare const useWithdrawApproval: (options?: UseWithdrawApprovalOptions) => _tanstack_react_query.UseMutationResult<void, Error, {
1014
+ id: string;
1015
+ comment: string;
1016
+ emailBody: string;
1017
+ }, unknown>;
1018
+ declare const useCancelApproval: (options?: UseCancelApprovalOptions) => _tanstack_react_query.UseMutationResult<void, Error, {
1019
+ id: string;
1020
+ comment: string;
1021
+ emailBody: string;
1022
+ }, unknown>;
1023
+
1024
+ export { type GetApprovalsParams, GetApprovalsParamsSchema, type GetFileMetasParams, GetFileMetasParamsSchema, type GetFileParams, GetFileParamsSchema, type GetFileThumbnailParams, GetFileThumbnailParamsSchema, useApproveApproval, useCancelApproval, useCreateApproval, useDeleteFile, useDeleteFiles, useDownloadFile, useGetApproval, useGetApprovals, useGetFile, useGetFileMetas, useGetFileThumbnail, useGetPeopleSoftActiveEmployees, useGetPeopleSoftCompanyGeneralManager, useGetPeopleSoftDepartmentById, useGetPeopleSoftDepartmentEmployees, useGetPeopleSoftDepartmentManager, useGetPeopleSoftDepartments, useGetPeopleSoftEmployeeById, useGetPeopleSoftEmployeeGeneralManager, useGetPeopleSoftEmployeeManager, useGetPeopleSoftEmployeeSubordinates, useGetPeopleSoftEmployeeSupervisor, useGetPeopleSoftEmployees, useGetPeopleSoftEmployeesSearch, useGetPeopleSoftPreviousEmployeeIds, useOpenFile, useResubmitApproval, useUpdateFileMeta, useUploadFile, useWithdrawApproval };