wcz-test 4.9.0 → 5.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.
package/dist/index.d.ts CHANGED
@@ -1,12 +1,15 @@
1
- import { TypographyProps, BoxProps, SxProps, Theme, ChipProps, ButtonProps, IconButtonProps, LinkProps, TabProps, ListItemButtonProps, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
1
+ import { TypographyProps, BoxProps, SxProps, Theme, ChipProps, ButtonProps, IconButtonProps, LinkProps, TabProps, ListItemButtonProps, PaletteOptions, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
2
2
  import * as react from 'react';
3
3
  import react__default, { FC, ComponentType, ReactNode } from 'react';
4
4
  import { DropzoneOptions } from 'react-dropzone';
5
+ import * as z from 'zod';
6
+ import z__default, { z as z$1 } from 'zod';
5
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
8
  import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams, GridActionsCellItemProps } from '@mui/x-data-grid-premium';
7
9
  import { LinkComponent, ErrorComponentProps, LinkOptions } from '@tanstack/react-router';
8
10
  export { uuidv7 } from 'uuidv7';
9
11
  import * as axios from 'axios';
12
+ import * as _tanstack_start_client_core from '@tanstack/start-client-core';
10
13
  import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
11
14
  import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
12
15
  import * as _tanstack_react_form from '@tanstack/react-form';
@@ -31,17 +34,20 @@ interface DropzoneProps extends DropzoneOptions {
31
34
  }
32
35
  declare const Dropzone: FC<DropzoneProps>;
33
36
 
34
- interface FileMeta {
35
- id: string;
36
- subId: string;
37
- appName: string;
38
- fileName: string;
39
- fileExtension: string;
40
- fileSize: number;
41
- mediaSubType: string;
42
- mediaType: string;
43
- mimeType: string;
44
- }
37
+ declare const FileMetaSchema: z.ZodObject<{
38
+ id: z.ZodDefault<z.ZodUUID>;
39
+ subId: z.ZodDefault<z.ZodUUID>;
40
+ appName: z.ZodString;
41
+ fileName: z.ZodString;
42
+ fileExtension: z.ZodString;
43
+ fileSize: z.ZodNumber;
44
+ mediaSubType: z.ZodString;
45
+ mediaType: z.ZodString;
46
+ mimeType: z.ZodString;
47
+ createdBy: z.ZodString;
48
+ createdDate: z.ZodDate;
49
+ }, z.core.$strip>;
50
+ type FileMeta = z.infer<typeof FileMetaSchema>;
45
51
 
46
52
  type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
47
53
  interface FileViewerGridProps {
@@ -50,10 +56,11 @@ interface FileViewerGridProps {
50
56
  sx?: SxProps<Theme>;
51
57
  }
52
58
 
53
- type FileActions = {
54
- download?: boolean;
55
- delete?: boolean;
56
- };
59
+ declare const FileActionsSchema: z.ZodObject<{
60
+ download: z.ZodOptional<z.ZodBoolean>;
61
+ delete: z.ZodOptional<z.ZodBoolean>;
62
+ }, z.core.$strip>;
63
+ type FileActions = z.infer<typeof FileActionsSchema>;
57
64
 
58
65
  interface FileViewerListProps {
59
66
  sx?: SxProps<Theme>;
@@ -129,7 +136,9 @@ type Navigation = Array<NavigationItem>;
129
136
 
130
137
  interface ProvidersProps {
131
138
  navigation?: Navigation;
132
- theme?: Pick<CssVarsThemeOptions, "colorSchemes" | "components">;
139
+ theme?: {
140
+ palette: PaletteOptions;
141
+ } & Pick<CssVarsThemeOptions, "components">;
133
142
  children: ReactNode;
134
143
  }
135
144
  declare const LayoutProvider: FC<ProvidersProps>;
@@ -179,10 +188,11 @@ declare const rootRouteHead: ({ title }: RootRouteHeadProps) => () => {
179
188
  })[];
180
189
  };
181
190
  declare const wczApiClient: axios.AxiosInstance;
191
+ type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
182
192
 
183
- type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
193
+ declare const getThemeMode: _tanstack_start_client_core.OptionalFetcher<undefined, undefined, "dark" | "light" | "system">;
184
194
 
185
- type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
195
+ type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
186
196
 
187
197
  interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
188
198
  textFieldProps?: TextFieldProps;
@@ -267,7 +277,7 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
267
277
  }, {
268
278
  readonly SubmitButton: react.FC<FormSubmitButtonProps>;
269
279
  }>;
270
- }>) => react.JSX.Element;
280
+ }>) => react.ReactNode;
271
281
 
272
282
  interface OpenDialogOptions<TResult> {
273
283
  onClose?: (result: TResult) => Promise<void>;
@@ -300,22 +310,106 @@ interface DialogHook {
300
310
  }
301
311
  declare function useDialogs(): DialogHook;
302
312
 
303
- type OptionalId = string | undefined | null;
313
+ type OptionalId$1 = string | undefined | null;
304
314
  type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<FileMeta>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
305
315
  type BaseBlobQueryOptions = Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
306
316
  type BaseFileMetaMutationOptions = Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">;
307
317
  type BaseBlobMutationOptions = Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">;
308
318
  type BaseStringMutationOptions = Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">;
309
- declare const useGetFileMetas: (subId: OptionalId, options?: BaseFileMetaArrayQueryOptions) => _tanstack_react_query.UseQueryResult<FileMeta[], Error>;
319
+ declare const useGetFileMetas: (subId: OptionalId$1, options?: BaseFileMetaArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
320
+ id: string;
321
+ subId: string;
322
+ appName: string;
323
+ fileName: string;
324
+ fileExtension: string;
325
+ fileSize: number;
326
+ mediaSubType: string;
327
+ mediaType: string;
328
+ mimeType: string;
329
+ createdBy: string;
330
+ createdDate: Date;
331
+ }[], Error>;
310
332
  declare const useGetFileThumbnail: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
311
333
  declare const useGetFile: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
312
- declare const useDownloadFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
313
- declare const useOpenFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
314
- declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
315
- declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
334
+ declare const useDownloadFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, {
335
+ id: string;
336
+ subId: string;
337
+ appName: string;
338
+ fileName: string;
339
+ fileExtension: string;
340
+ fileSize: number;
341
+ mediaSubType: string;
342
+ mediaType: string;
343
+ mimeType: string;
344
+ createdBy: string;
345
+ createdDate: Date;
346
+ }, unknown>;
347
+ declare const useOpenFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, {
348
+ id: string;
349
+ subId: string;
350
+ appName: string;
351
+ fileName: string;
352
+ fileExtension: string;
353
+ fileSize: number;
354
+ mediaSubType: string;
355
+ mediaType: string;
356
+ mimeType: string;
357
+ createdBy: string;
358
+ createdDate: Date;
359
+ }, unknown>;
360
+ declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<{
361
+ id: string;
362
+ subId: string;
363
+ appName: string;
364
+ fileName: string;
365
+ fileExtension: string;
366
+ fileSize: number;
367
+ mediaSubType: string;
368
+ mediaType: string;
369
+ mimeType: string;
370
+ createdBy: string;
371
+ createdDate: Date;
372
+ }, Error, {
373
+ id: string;
374
+ subId: string;
375
+ appName: string;
376
+ fileName: string;
377
+ fileExtension: string;
378
+ fileSize: number;
379
+ mediaSubType: string;
380
+ mediaType: string;
381
+ mimeType: string;
382
+ createdBy: string;
383
+ createdDate: Date;
384
+ }, unknown>;
385
+ declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<{
386
+ id: string;
387
+ subId: string;
388
+ appName: string;
389
+ fileName: string;
390
+ fileExtension: string;
391
+ fileSize: number;
392
+ mediaSubType: string;
393
+ mediaType: string;
394
+ mimeType: string;
395
+ createdBy: string;
396
+ createdDate: Date;
397
+ }, Error, {
398
+ id: string;
399
+ subId: string;
400
+ appName: string;
401
+ fileName: string;
402
+ fileExtension: string;
403
+ fileSize: number;
404
+ mediaSubType: string;
405
+ mediaType: string;
406
+ mimeType: string;
407
+ createdBy: string;
408
+ createdDate: Date;
409
+ }, unknown>;
316
410
  declare const useDeleteFiles: (options?: BaseStringMutationOptions) => _tanstack_react_query.UseMutationResult<string, Error, string, unknown>;
317
411
  interface UseUploadFileProps {
318
- subId: OptionalId;
412
+ subId: OptionalId$1;
319
413
  onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
320
414
  onError?: (error: Error | DetailedError) => void;
321
415
  }
@@ -324,45 +418,191 @@ declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps)
324
418
  progress: number;
325
419
  };
326
420
 
327
- interface User {
421
+ declare const DepartmentSchema: z__default.ZodObject<{
422
+ departmentId: z__default.ZodString;
423
+ description: z__default.ZodString;
424
+ managerId: z__default.ZodString;
425
+ managerRecordNumber: z__default.ZodString;
426
+ treeLevel: z__default.ZodNumber;
427
+ upperDepartmentId: z__default.ZodString;
428
+ companyCode: z__default.ZodString;
429
+ location: z__default.ZodString;
430
+ salLocation: z__default.ZodString;
431
+ plantId: z__default.ZodString;
432
+ manager: z__default.ZodObject<{
433
+ badgeId: z__default.ZodString;
434
+ category: z__default.ZodString;
435
+ categoryGroup: z__default.ZodEnum<{
436
+ IDL: "IDL";
437
+ FD: "FD";
438
+ FI: "FI";
439
+ }>;
440
+ companyCode: z__default.ZodString;
441
+ contactPhone: z__default.ZodString;
442
+ departmentId: z__default.ZodString;
443
+ departmentDescription: z__default.ZodString;
444
+ emailString: z__default.ZodString;
445
+ employeeId: z__default.ZodString;
446
+ extensionNumber: z__default.ZodString;
447
+ firstName: z__default.ZodString;
448
+ gender: z__default.ZodString;
449
+ hiredDate: z__default.ZodDate;
450
+ lastName: z__default.ZodString;
451
+ managerId: z__default.ZodString;
452
+ middleName: z__default.ZodString;
453
+ name: z__default.ZodString;
454
+ nameTitleCase: z__default.ZodString;
455
+ nfcSn: z__default.ZodString;
456
+ plantId: z__default.ZodString;
457
+ position: z__default.ZodString;
458
+ previousEmployeeIds: z__default.ZodNullable<z__default.ZodString>;
459
+ reHiredDate: z__default.ZodNullable<z__default.ZodDate>;
460
+ recordNumber: z__default.ZodNumber;
461
+ status: z__default.ZodEnum<{
462
+ Active: "Active";
463
+ Terminated: "Terminated";
464
+ "Leave of Absence": "Leave of Absence";
465
+ }>;
466
+ supervisorId: z__default.ZodString;
467
+ terminationDate: z__default.ZodNullable<z__default.ZodDate>;
468
+ terminationFutureDate: z__default.ZodNullable<z__default.ZodDate>;
469
+ type: z__default.ZodString;
470
+ upperDepartmentId: z__default.ZodString;
471
+ jobCode: z__default.ZodString;
472
+ jobDescription: z__default.ZodString;
473
+ terminationReason: z__default.ZodNullable<z__default.ZodString>;
474
+ supervisorRecordNumber: z__default.ZodNumber;
475
+ }, z__default.core.$strip>;
476
+ }, z__default.core.$strip>;
477
+ type Department = z__default.infer<typeof DepartmentSchema>;
478
+
479
+ declare const EmployeeSchema: z__default.ZodObject<{
480
+ badgeId: z__default.ZodString;
481
+ category: z__default.ZodString;
482
+ categoryGroup: z__default.ZodEnum<{
483
+ IDL: "IDL";
484
+ FD: "FD";
485
+ FI: "FI";
486
+ }>;
487
+ companyCode: z__default.ZodString;
488
+ contactPhone: z__default.ZodString;
489
+ departmentId: z__default.ZodString;
490
+ departmentDescription: z__default.ZodString;
491
+ emailString: z__default.ZodString;
492
+ employeeId: z__default.ZodString;
493
+ extensionNumber: z__default.ZodString;
494
+ firstName: z__default.ZodString;
495
+ gender: z__default.ZodString;
496
+ hiredDate: z__default.ZodDate;
497
+ lastName: z__default.ZodString;
498
+ managerId: z__default.ZodString;
499
+ middleName: z__default.ZodString;
500
+ name: z__default.ZodString;
501
+ nameTitleCase: z__default.ZodString;
502
+ nfcSn: z__default.ZodString;
503
+ plantId: z__default.ZodString;
504
+ position: z__default.ZodString;
505
+ previousEmployeeIds: z__default.ZodNullable<z__default.ZodString>;
506
+ reHiredDate: z__default.ZodNullable<z__default.ZodDate>;
507
+ recordNumber: z__default.ZodNumber;
508
+ status: z__default.ZodEnum<{
509
+ Active: "Active";
510
+ Terminated: "Terminated";
511
+ "Leave of Absence": "Leave of Absence";
512
+ }>;
513
+ supervisorId: z__default.ZodString;
514
+ terminationDate: z__default.ZodNullable<z__default.ZodDate>;
515
+ terminationFutureDate: z__default.ZodNullable<z__default.ZodDate>;
516
+ type: z__default.ZodString;
517
+ upperDepartmentId: z__default.ZodString;
518
+ jobCode: z__default.ZodString;
519
+ jobDescription: z__default.ZodString;
520
+ terminationReason: z__default.ZodNullable<z__default.ZodString>;
521
+ supervisorRecordNumber: z__default.ZodNumber;
522
+ }, z__default.core.$strip>;
523
+ type Employee = z__default.infer<typeof EmployeeSchema>;
524
+
525
+ type OptionalId = string | undefined | null;
526
+ type BaseEmployeeArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<Employee>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
527
+ type BaseEmployeeQueryOptions = Omit<DefinedInitialDataOptions<Employee>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
528
+ type BaseDepartmentArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<Department>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
529
+ type BaseDepartmentQueryOptions = Omit<DefinedInitialDataOptions<Department>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
530
+ declare const useGetPeopleSoftEmployeesSearch: (searchTerm: string, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
531
+ badgeId: string;
532
+ category: string;
533
+ categoryGroup: "IDL" | "FD" | "FI";
534
+ companyCode: string;
535
+ contactPhone: string;
536
+ departmentId: string;
537
+ departmentDescription: string;
538
+ emailString: string;
328
539
  employeeId: string;
540
+ extensionNumber: string;
541
+ firstName: string;
542
+ gender: string;
543
+ hiredDate: Date;
544
+ lastName: string;
545
+ managerId: string;
546
+ middleName: string;
329
547
  name: string;
330
- department: string;
331
- email?: string;
332
- company: string;
548
+ nameTitleCase: string;
549
+ nfcSn: string;
550
+ plantId: string;
551
+ position: string;
552
+ previousEmployeeIds: string | null;
553
+ reHiredDate: Date | null;
554
+ recordNumber: number;
555
+ status: "Active" | "Terminated" | "Leave of Absence";
556
+ supervisorId: string;
557
+ terminationDate: Date | null;
558
+ terminationFutureDate: Date | null;
559
+ type: string;
560
+ upperDepartmentId: string;
561
+ jobCode: string;
562
+ jobDescription: string;
563
+ terminationReason: string | null;
564
+ supervisorRecordNumber: number;
565
+ }[], Error>;
566
+ declare const useGetPeopleSoftEmployees: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
567
+ badgeId: string;
333
568
  category: string;
334
- }
335
-
336
- interface EmailAttachment {
337
- appName: string;
338
- subId: string;
339
- }
340
-
341
- interface Email {
342
- subject: string;
343
- body: string;
344
- to: Array<string>;
345
- bcc?: Array<string>;
346
- cc?: Array<string>;
347
- attachments?: Array<EmailAttachment>;
348
- }
349
-
350
- declare enum EmployeeCategoryGroup {
351
- IDL = "IDL",
352
- FD = "FD",
353
- FI = "FI"
354
- }
355
-
356
- declare enum EmployeeStatus {
357
- Active = "Active",
358
- Terminated = "Terminated",
359
- LeaveOfAbsence = "Leave of Absence"
360
- }
361
-
362
- interface Employee {
569
+ categoryGroup: "IDL" | "FD" | "FI";
570
+ companyCode: string;
571
+ contactPhone: string;
572
+ departmentId: string;
573
+ departmentDescription: string;
574
+ emailString: string;
575
+ employeeId: string;
576
+ extensionNumber: string;
577
+ firstName: string;
578
+ gender: string;
579
+ hiredDate: Date;
580
+ lastName: string;
581
+ managerId: string;
582
+ middleName: string;
583
+ name: string;
584
+ nameTitleCase: string;
585
+ nfcSn: string;
586
+ plantId: string;
587
+ position: string;
588
+ previousEmployeeIds: string | null;
589
+ reHiredDate: Date | null;
590
+ recordNumber: number;
591
+ status: "Active" | "Terminated" | "Leave of Absence";
592
+ supervisorId: string;
593
+ terminationDate: Date | null;
594
+ terminationFutureDate: Date | null;
595
+ type: string;
596
+ upperDepartmentId: string;
597
+ jobCode: string;
598
+ jobDescription: string;
599
+ terminationReason: string | null;
600
+ supervisorRecordNumber: number;
601
+ }[], Error>;
602
+ declare const useGetPeopleSoftActiveEmployees: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
363
603
  badgeId: string;
364
604
  category: string;
365
- categoryGroup: EmployeeCategoryGroup;
605
+ categoryGroup: "IDL" | "FD" | "FI";
366
606
  companyCode: string;
367
607
  contactPhone: string;
368
608
  departmentId: string;
@@ -384,7 +624,7 @@ interface Employee {
384
624
  previousEmployeeIds: string | null;
385
625
  reHiredDate: Date | null;
386
626
  recordNumber: number;
387
- status: EmployeeStatus;
627
+ status: "Active" | "Terminated" | "Leave of Absence";
388
628
  supervisorId: string;
389
629
  terminationDate: Date | null;
390
630
  terminationFutureDate: Date | null;
@@ -394,9 +634,224 @@ interface Employee {
394
634
  jobDescription: string;
395
635
  terminationReason: string | null;
396
636
  supervisorRecordNumber: number;
397
- }
398
-
399
- interface Department {
637
+ }[], Error>;
638
+ declare const useGetPeopleSoftEmployeeById: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
639
+ badgeId: string;
640
+ category: string;
641
+ categoryGroup: "IDL" | "FD" | "FI";
642
+ companyCode: string;
643
+ contactPhone: string;
644
+ departmentId: string;
645
+ departmentDescription: string;
646
+ emailString: string;
647
+ employeeId: string;
648
+ extensionNumber: string;
649
+ firstName: string;
650
+ gender: string;
651
+ hiredDate: Date;
652
+ lastName: string;
653
+ managerId: string;
654
+ middleName: string;
655
+ name: string;
656
+ nameTitleCase: string;
657
+ nfcSn: string;
658
+ plantId: string;
659
+ position: string;
660
+ previousEmployeeIds: string | null;
661
+ reHiredDate: Date | null;
662
+ recordNumber: number;
663
+ status: "Active" | "Terminated" | "Leave of Absence";
664
+ supervisorId: string;
665
+ terminationDate: Date | null;
666
+ terminationFutureDate: Date | null;
667
+ type: string;
668
+ upperDepartmentId: string;
669
+ jobCode: string;
670
+ jobDescription: string;
671
+ terminationReason: string | null;
672
+ supervisorRecordNumber: number;
673
+ }, Error>;
674
+ declare const useGetPeopleSoftPreviousEmployeeIds: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
675
+ badgeId: string;
676
+ category: string;
677
+ categoryGroup: "IDL" | "FD" | "FI";
678
+ companyCode: string;
679
+ contactPhone: string;
680
+ departmentId: string;
681
+ departmentDescription: string;
682
+ emailString: string;
683
+ employeeId: string;
684
+ extensionNumber: string;
685
+ firstName: string;
686
+ gender: string;
687
+ hiredDate: Date;
688
+ lastName: string;
689
+ managerId: string;
690
+ middleName: string;
691
+ name: string;
692
+ nameTitleCase: string;
693
+ nfcSn: string;
694
+ plantId: string;
695
+ position: string;
696
+ previousEmployeeIds: string | null;
697
+ reHiredDate: Date | null;
698
+ recordNumber: number;
699
+ status: "Active" | "Terminated" | "Leave of Absence";
700
+ supervisorId: string;
701
+ terminationDate: Date | null;
702
+ terminationFutureDate: Date | null;
703
+ type: string;
704
+ upperDepartmentId: string;
705
+ jobCode: string;
706
+ jobDescription: string;
707
+ terminationReason: string | null;
708
+ supervisorRecordNumber: number;
709
+ }[], Error>;
710
+ declare const useGetPeopleSoftEmployeeSupervisor: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
711
+ badgeId: string;
712
+ category: string;
713
+ categoryGroup: "IDL" | "FD" | "FI";
714
+ companyCode: string;
715
+ contactPhone: string;
716
+ departmentId: string;
717
+ departmentDescription: string;
718
+ emailString: string;
719
+ employeeId: string;
720
+ extensionNumber: string;
721
+ firstName: string;
722
+ gender: string;
723
+ hiredDate: Date;
724
+ lastName: string;
725
+ managerId: string;
726
+ middleName: string;
727
+ name: string;
728
+ nameTitleCase: string;
729
+ nfcSn: string;
730
+ plantId: string;
731
+ position: string;
732
+ previousEmployeeIds: string | null;
733
+ reHiredDate: Date | null;
734
+ recordNumber: number;
735
+ status: "Active" | "Terminated" | "Leave of Absence";
736
+ supervisorId: string;
737
+ terminationDate: Date | null;
738
+ terminationFutureDate: Date | null;
739
+ type: string;
740
+ upperDepartmentId: string;
741
+ jobCode: string;
742
+ jobDescription: string;
743
+ terminationReason: string | null;
744
+ supervisorRecordNumber: number;
745
+ }, Error>;
746
+ declare const useGetPeopleSoftEmployeeSubordinates: (employeeId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
747
+ badgeId: string;
748
+ category: string;
749
+ categoryGroup: "IDL" | "FD" | "FI";
750
+ companyCode: string;
751
+ contactPhone: string;
752
+ departmentId: string;
753
+ departmentDescription: string;
754
+ emailString: string;
755
+ employeeId: string;
756
+ extensionNumber: string;
757
+ firstName: string;
758
+ gender: string;
759
+ hiredDate: Date;
760
+ lastName: string;
761
+ managerId: string;
762
+ middleName: string;
763
+ name: string;
764
+ nameTitleCase: string;
765
+ nfcSn: string;
766
+ plantId: string;
767
+ position: string;
768
+ previousEmployeeIds: string | null;
769
+ reHiredDate: Date | null;
770
+ recordNumber: number;
771
+ status: "Active" | "Terminated" | "Leave of Absence";
772
+ supervisorId: string;
773
+ terminationDate: Date | null;
774
+ terminationFutureDate: Date | null;
775
+ type: string;
776
+ upperDepartmentId: string;
777
+ jobCode: string;
778
+ jobDescription: string;
779
+ terminationReason: string | null;
780
+ supervisorRecordNumber: number;
781
+ }[], Error>;
782
+ declare const useGetPeopleSoftEmployeeManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
783
+ badgeId: string;
784
+ category: string;
785
+ categoryGroup: "IDL" | "FD" | "FI";
786
+ companyCode: string;
787
+ contactPhone: string;
788
+ departmentId: string;
789
+ departmentDescription: string;
790
+ emailString: string;
791
+ employeeId: string;
792
+ extensionNumber: string;
793
+ firstName: string;
794
+ gender: string;
795
+ hiredDate: Date;
796
+ lastName: string;
797
+ managerId: string;
798
+ middleName: string;
799
+ name: string;
800
+ nameTitleCase: string;
801
+ nfcSn: string;
802
+ plantId: string;
803
+ position: string;
804
+ previousEmployeeIds: string | null;
805
+ reHiredDate: Date | null;
806
+ recordNumber: number;
807
+ status: "Active" | "Terminated" | "Leave of Absence";
808
+ supervisorId: string;
809
+ terminationDate: Date | null;
810
+ terminationFutureDate: Date | null;
811
+ type: string;
812
+ upperDepartmentId: string;
813
+ jobCode: string;
814
+ jobDescription: string;
815
+ terminationReason: string | null;
816
+ supervisorRecordNumber: number;
817
+ }, Error>;
818
+ declare const useGetPeopleSoftEmployeeGeneralManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
819
+ badgeId: string;
820
+ category: string;
821
+ categoryGroup: "IDL" | "FD" | "FI";
822
+ companyCode: string;
823
+ contactPhone: string;
824
+ departmentId: string;
825
+ departmentDescription: string;
826
+ emailString: string;
827
+ employeeId: string;
828
+ extensionNumber: string;
829
+ firstName: string;
830
+ gender: string;
831
+ hiredDate: Date;
832
+ lastName: string;
833
+ managerId: string;
834
+ middleName: string;
835
+ name: string;
836
+ nameTitleCase: string;
837
+ nfcSn: string;
838
+ plantId: string;
839
+ position: string;
840
+ previousEmployeeIds: string | null;
841
+ reHiredDate: Date | null;
842
+ recordNumber: number;
843
+ status: "Active" | "Terminated" | "Leave of Absence";
844
+ supervisorId: string;
845
+ terminationDate: Date | null;
846
+ terminationFutureDate: Date | null;
847
+ type: string;
848
+ upperDepartmentId: string;
849
+ jobCode: string;
850
+ jobDescription: string;
851
+ terminationReason: string | null;
852
+ supervisorRecordNumber: number;
853
+ }, Error>;
854
+ declare const useGetPeopleSoftDepartments: (options?: BaseDepartmentArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
400
855
  departmentId: string;
401
856
  description: string;
402
857
  managerId: string;
@@ -407,7 +862,531 @@ interface Department {
407
862
  location: string;
408
863
  salLocation: string;
409
864
  plantId: string;
410
- manager: Employee;
865
+ manager: {
866
+ badgeId: string;
867
+ category: string;
868
+ categoryGroup: "IDL" | "FD" | "FI";
869
+ companyCode: string;
870
+ contactPhone: string;
871
+ departmentId: string;
872
+ departmentDescription: string;
873
+ emailString: string;
874
+ employeeId: string;
875
+ extensionNumber: string;
876
+ firstName: string;
877
+ gender: string;
878
+ hiredDate: Date;
879
+ lastName: string;
880
+ managerId: string;
881
+ middleName: string;
882
+ name: string;
883
+ nameTitleCase: string;
884
+ nfcSn: string;
885
+ plantId: string;
886
+ position: string;
887
+ previousEmployeeIds: string | null;
888
+ reHiredDate: Date | null;
889
+ recordNumber: number;
890
+ status: "Active" | "Terminated" | "Leave of Absence";
891
+ supervisorId: string;
892
+ terminationDate: Date | null;
893
+ terminationFutureDate: Date | null;
894
+ type: string;
895
+ upperDepartmentId: string;
896
+ jobCode: string;
897
+ jobDescription: string;
898
+ terminationReason: string | null;
899
+ supervisorRecordNumber: number;
900
+ };
901
+ }[], Error>;
902
+ declare const useGetPeopleSoftDepartmentById: (departmentId: OptionalId, options?: BaseDepartmentQueryOptions) => _tanstack_react_query.UseQueryResult<{
903
+ departmentId: string;
904
+ description: string;
905
+ managerId: string;
906
+ managerRecordNumber: string;
907
+ treeLevel: number;
908
+ upperDepartmentId: string;
909
+ companyCode: string;
910
+ location: string;
911
+ salLocation: string;
912
+ plantId: string;
913
+ manager: {
914
+ badgeId: string;
915
+ category: string;
916
+ categoryGroup: "IDL" | "FD" | "FI";
917
+ companyCode: string;
918
+ contactPhone: string;
919
+ departmentId: string;
920
+ departmentDescription: string;
921
+ emailString: string;
922
+ employeeId: string;
923
+ extensionNumber: string;
924
+ firstName: string;
925
+ gender: string;
926
+ hiredDate: Date;
927
+ lastName: string;
928
+ managerId: string;
929
+ middleName: string;
930
+ name: string;
931
+ nameTitleCase: string;
932
+ nfcSn: string;
933
+ plantId: string;
934
+ position: string;
935
+ previousEmployeeIds: string | null;
936
+ reHiredDate: Date | null;
937
+ recordNumber: number;
938
+ status: "Active" | "Terminated" | "Leave of Absence";
939
+ supervisorId: string;
940
+ terminationDate: Date | null;
941
+ terminationFutureDate: Date | null;
942
+ type: string;
943
+ upperDepartmentId: string;
944
+ jobCode: string;
945
+ jobDescription: string;
946
+ terminationReason: string | null;
947
+ supervisorRecordNumber: number;
948
+ };
949
+ }, Error>;
950
+ declare const useGetPeopleSoftDepartmentManager: (departmentId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
951
+ badgeId: string;
952
+ category: string;
953
+ categoryGroup: "IDL" | "FD" | "FI";
954
+ companyCode: string;
955
+ contactPhone: string;
956
+ departmentId: string;
957
+ departmentDescription: string;
958
+ emailString: string;
959
+ employeeId: string;
960
+ extensionNumber: string;
961
+ firstName: string;
962
+ gender: string;
963
+ hiredDate: Date;
964
+ lastName: string;
965
+ managerId: string;
966
+ middleName: string;
967
+ name: string;
968
+ nameTitleCase: string;
969
+ nfcSn: string;
970
+ plantId: string;
971
+ position: string;
972
+ previousEmployeeIds: string | null;
973
+ reHiredDate: Date | null;
974
+ recordNumber: number;
975
+ status: "Active" | "Terminated" | "Leave of Absence";
976
+ supervisorId: string;
977
+ terminationDate: Date | null;
978
+ terminationFutureDate: Date | null;
979
+ type: string;
980
+ upperDepartmentId: string;
981
+ jobCode: string;
982
+ jobDescription: string;
983
+ terminationReason: string | null;
984
+ supervisorRecordNumber: number;
985
+ }, Error>;
986
+ declare const useGetPeopleSoftDepartmentEmployees: (departmentId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
987
+ badgeId: string;
988
+ category: string;
989
+ categoryGroup: "IDL" | "FD" | "FI";
990
+ companyCode: string;
991
+ contactPhone: string;
992
+ departmentId: string;
993
+ departmentDescription: string;
994
+ emailString: string;
995
+ employeeId: string;
996
+ extensionNumber: string;
997
+ firstName: string;
998
+ gender: string;
999
+ hiredDate: Date;
1000
+ lastName: string;
1001
+ managerId: string;
1002
+ middleName: string;
1003
+ name: string;
1004
+ nameTitleCase: string;
1005
+ nfcSn: string;
1006
+ plantId: string;
1007
+ position: string;
1008
+ previousEmployeeIds: string | null;
1009
+ reHiredDate: Date | null;
1010
+ recordNumber: number;
1011
+ status: "Active" | "Terminated" | "Leave of Absence";
1012
+ supervisorId: string;
1013
+ terminationDate: Date | null;
1014
+ terminationFutureDate: Date | null;
1015
+ type: string;
1016
+ upperDepartmentId: string;
1017
+ jobCode: string;
1018
+ jobDescription: string;
1019
+ terminationReason: string | null;
1020
+ supervisorRecordNumber: number;
1021
+ }[], Error>;
1022
+ declare const useGetPeopleSoftCompanyGeneralManager: (companyCode: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
1023
+ badgeId: string;
1024
+ category: string;
1025
+ categoryGroup: "IDL" | "FD" | "FI";
1026
+ companyCode: string;
1027
+ contactPhone: string;
1028
+ departmentId: string;
1029
+ departmentDescription: string;
1030
+ emailString: string;
1031
+ employeeId: string;
1032
+ extensionNumber: string;
1033
+ firstName: string;
1034
+ gender: string;
1035
+ hiredDate: Date;
1036
+ lastName: string;
1037
+ managerId: string;
1038
+ middleName: string;
1039
+ name: string;
1040
+ nameTitleCase: string;
1041
+ nfcSn: string;
1042
+ plantId: string;
1043
+ position: string;
1044
+ previousEmployeeIds: string | null;
1045
+ reHiredDate: Date | null;
1046
+ recordNumber: number;
1047
+ status: "Active" | "Terminated" | "Leave of Absence";
1048
+ supervisorId: string;
1049
+ terminationDate: Date | null;
1050
+ terminationFutureDate: Date | null;
1051
+ type: string;
1052
+ upperDepartmentId: string;
1053
+ jobCode: string;
1054
+ jobDescription: string;
1055
+ terminationReason: string | null;
1056
+ supervisorRecordNumber: number;
1057
+ }, Error>;
1058
+
1059
+ interface User {
1060
+ employeeId: string;
1061
+ name: string;
1062
+ department: string;
1063
+ email?: string;
1064
+ company: string;
1065
+ category: string;
411
1066
  }
412
1067
 
413
- export { ChipInputCell, type Department, type DialogProps, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, type Employee, EmployeeCategoryGroup, EmployeeStatus, type FileMeta, FileViewer, Fullscreen, LayoutProvider, type Navigation, Platform, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TypographyWithIcon, type User, rootRouteHead, useDeleteFile, useDeleteFiles, useDialogs, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, wczApiClient, withLayoutForm };
1068
+ declare const EmailSchema: z__default.ZodObject<{
1069
+ subject: z__default.ZodString;
1070
+ body: z__default.ZodString;
1071
+ to: z__default.ZodArray<z__default.ZodEmail>;
1072
+ bcc: z__default.ZodOptional<z__default.ZodArray<z__default.ZodEmail>>;
1073
+ cc: z__default.ZodOptional<z__default.ZodArray<z__default.ZodEmail>>;
1074
+ attachments: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
1075
+ appName: z__default.ZodString;
1076
+ subId: z__default.ZodUUID;
1077
+ }, z__default.core.$strip>>>;
1078
+ }, z__default.core.$strip>;
1079
+ type Email = z__default.infer<typeof EmailSchema>;
1080
+
1081
+ declare const EmailAttachmentSchema: z__default.ZodObject<{
1082
+ appName: z__default.ZodString;
1083
+ subId: z__default.ZodUUID;
1084
+ }, z__default.core.$strip>;
1085
+ type EmailAttachment = z__default.infer<typeof EmailAttachmentSchema>;
1086
+
1087
+ declare const EmployeeCategoryGroup: z__default.ZodEnum<{
1088
+ IDL: "IDL";
1089
+ FD: "FD";
1090
+ FI: "FI";
1091
+ }>;
1092
+
1093
+ declare const EmployeeStatus: z__default.ZodEnum<{
1094
+ Active: "Active";
1095
+ Terminated: "Terminated";
1096
+ "Leave of Absence": "Leave of Absence";
1097
+ }>;
1098
+
1099
+ declare const ApprovalSchema: z__default.ZodObject<{
1100
+ id: z__default.ZodDefault<z__default.ZodUUID>;
1101
+ number: z__default.ZodOptional<z__default.ZodString>;
1102
+ applicationName: z__default.ZodString;
1103
+ type: z__default.ZodDefault<z__default.ZodEnum<{
1104
+ Single: "Single";
1105
+ Batch: "Batch";
1106
+ }>>;
1107
+ status: z__default.ZodEnum<{
1108
+ WaitingForApproval: "WaitingForApproval";
1109
+ Approved: "Approved";
1110
+ Rejected: "Rejected";
1111
+ Withdrawn: "Withdrawn";
1112
+ Cancelled: "Cancelled";
1113
+ PartiallyApproved: "PartiallyApproved";
1114
+ }>;
1115
+ emailBody: z__default.ZodString;
1116
+ created: z__default.ZodDate;
1117
+ createdBy: z__default.ZodCustom<{
1118
+ employeeId: string;
1119
+ name: string;
1120
+ email: string;
1121
+ }, {
1122
+ employeeId: string;
1123
+ name: string;
1124
+ email: string;
1125
+ }>;
1126
+ updated: z__default.ZodDate;
1127
+ updatedBy: z__default.ZodCustom<{
1128
+ employeeId: string;
1129
+ name: string;
1130
+ email: string;
1131
+ }, {
1132
+ employeeId: string;
1133
+ name: string;
1134
+ email: string;
1135
+ }>;
1136
+ approvalFlows: z__default.ZodArray<z__default.ZodCustom<{
1137
+ id: string;
1138
+ approvalStage: number;
1139
+ approvalSequence: number;
1140
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
1141
+ steps: {
1142
+ id: string;
1143
+ order: number;
1144
+ approverRole: string;
1145
+ approver: {
1146
+ employeeId: string;
1147
+ name: string;
1148
+ email: string;
1149
+ };
1150
+ result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
1151
+ actualApprover?: {
1152
+ employeeId: string;
1153
+ name: string;
1154
+ email: string;
1155
+ } | undefined;
1156
+ resultDate?: Date | undefined;
1157
+ resultComment?: string | undefined;
1158
+ }[];
1159
+ isActive: boolean;
1160
+ batchSequence?: number | undefined;
1161
+ }, {
1162
+ id: string;
1163
+ approvalStage: number;
1164
+ approvalSequence: number;
1165
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
1166
+ steps: {
1167
+ id: string;
1168
+ order: number;
1169
+ approverRole: string;
1170
+ approver: {
1171
+ employeeId: string;
1172
+ name: string;
1173
+ email: string;
1174
+ };
1175
+ result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
1176
+ actualApprover?: {
1177
+ employeeId: string;
1178
+ name: string;
1179
+ email: string;
1180
+ } | undefined;
1181
+ resultDate?: Date | undefined;
1182
+ resultComment?: string | undefined;
1183
+ }[];
1184
+ isActive: boolean;
1185
+ batchSequence?: number | undefined;
1186
+ }>>;
1187
+ currentApprovers: z__default.ZodArray<z__default.ZodCustom<{
1188
+ employeeId: string;
1189
+ name: string;
1190
+ email: string;
1191
+ }, {
1192
+ employeeId: string;
1193
+ name: string;
1194
+ email: string;
1195
+ }>>;
1196
+ }, z__default.core.$strip>;
1197
+ type Approval = z__default.infer<typeof ApprovalSchema>;
1198
+ declare const CreateApprovalSchema: z__default.ZodObject<{
1199
+ number: z__default.ZodOptional<z__default.ZodString>;
1200
+ id: z__default.ZodDefault<z__default.ZodUUID>;
1201
+ type: z__default.ZodDefault<z__default.ZodEnum<{
1202
+ Single: "Single";
1203
+ Batch: "Batch";
1204
+ }>>;
1205
+ applicationName: z__default.ZodString;
1206
+ emailBody: z__default.ZodString;
1207
+ approvalFlows: z__default.ZodArray<z__default.ZodObject<{
1208
+ stepApprovalOrder: z__default.ZodEnum<{
1209
+ Serial: "Serial";
1210
+ Parallel: "Parallel";
1211
+ OneOfThem: "OneOfThem";
1212
+ }>;
1213
+ approvalStage: z__default.ZodNumber;
1214
+ batchSequence: z__default.ZodOptional<z__default.ZodNumber>;
1215
+ steps: z__default.ZodArray<z__default.ZodObject<{
1216
+ approver: z__default.ZodObject<{
1217
+ employeeId: z__default.ZodString;
1218
+ name: z__default.ZodString;
1219
+ email: z__default.ZodEmail;
1220
+ }, z__default.core.$strip>;
1221
+ approverRole: z__default.ZodDefault<z__default.ZodString>;
1222
+ }, z__default.core.$strip>>;
1223
+ }, z__default.core.$strip>>;
1224
+ }, z__default.core.$strip>;
1225
+ type CreateApproval = z__default.infer<typeof CreateApprovalSchema>;
1226
+ declare const ApproveApprovalSchema: z__default.ZodObject<{
1227
+ id: z__default.ZodUUID;
1228
+ result: z__default.ZodEnum<{
1229
+ NotAvailable: "NotAvailable";
1230
+ FutureApproval: "FutureApproval";
1231
+ WaitingForApproval: "WaitingForApproval";
1232
+ Approved: "Approved";
1233
+ Rejected: "Rejected";
1234
+ Skipped: "Skipped";
1235
+ Withdrawn: "Withdrawn";
1236
+ Cancelled: "Cancelled";
1237
+ }>;
1238
+ resultComment: z__default.ZodOptional<z__default.ZodString>;
1239
+ emailBody: z__default.ZodString;
1240
+ }, z__default.core.$strip>;
1241
+ type ApproveApproval = z__default.infer<typeof ApproveApprovalSchema>;
1242
+ declare const ResubmitApprovalSchema: z__default.ZodObject<{
1243
+ id: z__default.ZodDefault<z__default.ZodUUID>;
1244
+ approvalFlows: z__default.ZodArray<z__default.ZodObject<{
1245
+ stepApprovalOrder: z__default.ZodEnum<{
1246
+ Serial: "Serial";
1247
+ Parallel: "Parallel";
1248
+ OneOfThem: "OneOfThem";
1249
+ }>;
1250
+ approvalStage: z__default.ZodNumber;
1251
+ batchSequence: z__default.ZodOptional<z__default.ZodNumber>;
1252
+ steps: z__default.ZodArray<z__default.ZodObject<{
1253
+ approver: z__default.ZodObject<{
1254
+ employeeId: z__default.ZodString;
1255
+ name: z__default.ZodString;
1256
+ email: z__default.ZodEmail;
1257
+ }, z__default.core.$strip>;
1258
+ approverRole: z__default.ZodDefault<z__default.ZodString>;
1259
+ }, z__default.core.$strip>>;
1260
+ }, z__default.core.$strip>>;
1261
+ }, z__default.core.$strip>;
1262
+ type ResubmitApproval = z__default.infer<typeof ResubmitApprovalSchema>;
1263
+ declare const CancelApprovalSchema: z__default.ZodObject<{
1264
+ id: z__default.ZodUUID;
1265
+ comment: z__default.ZodString;
1266
+ emailBody: z__default.ZodString;
1267
+ }, z__default.core.$strip>;
1268
+ type CancelApproval = z__default.infer<typeof CancelApprovalSchema>;
1269
+ declare const WithdrawApprovalSchema: z__default.ZodObject<{
1270
+ id: z__default.ZodUUID;
1271
+ comment: z__default.ZodString;
1272
+ emailBody: z__default.ZodString;
1273
+ }, z__default.core.$strip>;
1274
+ type WithdrawApproval = z__default.infer<typeof WithdrawApprovalSchema>;
1275
+
1276
+ declare const ApprovalEmployeeSchema: z$1.ZodObject<{
1277
+ employeeId: z$1.ZodString;
1278
+ name: z$1.ZodString;
1279
+ email: z$1.ZodEmail;
1280
+ }, z$1.core.$strip>;
1281
+ type ApprovalEmployee = z$1.infer<typeof ApprovalEmployeeSchema>;
1282
+
1283
+ declare const ApprovalFlowSchema: z$1.ZodObject<{
1284
+ id: z$1.ZodDefault<z$1.ZodUUID>;
1285
+ approvalStage: z$1.ZodNumber;
1286
+ batchSequence: z$1.ZodOptional<z$1.ZodNumber>;
1287
+ approvalSequence: z$1.ZodNumber;
1288
+ stepApprovalOrder: z$1.ZodEnum<{
1289
+ Serial: "Serial";
1290
+ Parallel: "Parallel";
1291
+ OneOfThem: "OneOfThem";
1292
+ }>;
1293
+ steps: z$1.ZodArray<z$1.ZodCustom<{
1294
+ id: string;
1295
+ order: number;
1296
+ approverRole: string;
1297
+ approver: {
1298
+ employeeId: string;
1299
+ name: string;
1300
+ email: string;
1301
+ };
1302
+ result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
1303
+ actualApprover?: {
1304
+ employeeId: string;
1305
+ name: string;
1306
+ email: string;
1307
+ } | undefined;
1308
+ resultDate?: Date | undefined;
1309
+ resultComment?: string | undefined;
1310
+ }, {
1311
+ id: string;
1312
+ order: number;
1313
+ approverRole: string;
1314
+ approver: {
1315
+ employeeId: string;
1316
+ name: string;
1317
+ email: string;
1318
+ };
1319
+ result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
1320
+ actualApprover?: {
1321
+ employeeId: string;
1322
+ name: string;
1323
+ email: string;
1324
+ } | undefined;
1325
+ resultDate?: Date | undefined;
1326
+ resultComment?: string | undefined;
1327
+ }>>;
1328
+ isActive: z$1.ZodDefault<z$1.ZodBoolean>;
1329
+ }, z$1.core.$strip>;
1330
+ type ApprovalFlow = z$1.infer<typeof ApprovalFlowSchema>;
1331
+
1332
+ declare const ApprovalFlowStepSchema: z$1.ZodObject<{
1333
+ id: z$1.ZodDefault<z$1.ZodUUID>;
1334
+ order: z$1.ZodNumber;
1335
+ approverRole: z$1.ZodDefault<z$1.ZodString>;
1336
+ approver: z$1.ZodObject<{
1337
+ employeeId: z$1.ZodString;
1338
+ name: z$1.ZodString;
1339
+ email: z$1.ZodEmail;
1340
+ }, z$1.core.$strip>;
1341
+ actualApprover: z$1.ZodOptional<z$1.ZodObject<{
1342
+ employeeId: z$1.ZodString;
1343
+ name: z$1.ZodString;
1344
+ email: z$1.ZodEmail;
1345
+ }, z$1.core.$strip>>;
1346
+ result: z$1.ZodDefault<z$1.ZodEnum<{
1347
+ NotAvailable: "NotAvailable";
1348
+ FutureApproval: "FutureApproval";
1349
+ WaitingForApproval: "WaitingForApproval";
1350
+ Approved: "Approved";
1351
+ Rejected: "Rejected";
1352
+ Skipped: "Skipped";
1353
+ Withdrawn: "Withdrawn";
1354
+ Cancelled: "Cancelled";
1355
+ }>>;
1356
+ resultDate: z$1.ZodOptional<z$1.ZodDate>;
1357
+ resultComment: z$1.ZodOptional<z$1.ZodString>;
1358
+ }, z$1.core.$strip>;
1359
+ type ApprovalFlowStep = z$1.infer<typeof ApprovalFlowStepSchema>;
1360
+
1361
+ declare const ApprovalRequestType: z__default.ZodEnum<{
1362
+ Single: "Single";
1363
+ Batch: "Batch";
1364
+ }>;
1365
+
1366
+ declare const ApprovalStatus: z__default.ZodEnum<{
1367
+ WaitingForApproval: "WaitingForApproval";
1368
+ Approved: "Approved";
1369
+ Rejected: "Rejected";
1370
+ Withdrawn: "Withdrawn";
1371
+ Cancelled: "Cancelled";
1372
+ PartiallyApproved: "PartiallyApproved";
1373
+ }>;
1374
+
1375
+ declare const ApprovalStepResult: z__default.ZodEnum<{
1376
+ NotAvailable: "NotAvailable";
1377
+ FutureApproval: "FutureApproval";
1378
+ WaitingForApproval: "WaitingForApproval";
1379
+ Approved: "Approved";
1380
+ Rejected: "Rejected";
1381
+ Skipped: "Skipped";
1382
+ Withdrawn: "Withdrawn";
1383
+ Cancelled: "Cancelled";
1384
+ }>;
1385
+
1386
+ declare const StepApprovalOrder: z__default.ZodEnum<{
1387
+ Serial: "Serial";
1388
+ Parallel: "Parallel";
1389
+ OneOfThem: "OneOfThem";
1390
+ }>;
1391
+
1392
+ export { type Approval, type ApprovalEmployee, ApprovalEmployeeSchema, type ApprovalFlow, ApprovalFlowSchema, type ApprovalFlowStep, ApprovalFlowStepSchema, ApprovalRequestType, ApprovalSchema, ApprovalStatus, ApprovalStepResult, type ApproveApproval, ApproveApprovalSchema, type CancelApproval, CancelApprovalSchema, ChipInputCell, type CreateApproval, CreateApprovalSchema, type Department, DepartmentSchema, type DialogProps, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, EmailAttachmentSchema, EmailSchema, type Employee, EmployeeCategoryGroup, EmployeeSchema, EmployeeStatus, type FileMeta, FileMetaSchema, FileViewer, Fullscreen, LayoutProvider, type Navigation, Platform, type ResubmitApproval, ResubmitApprovalSchema, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, StepApprovalOrder, TypographyWithIcon, type User, type WithdrawApproval, WithdrawApprovalSchema, getThemeMode, rootRouteHead, useDeleteFile, useDeleteFiles, useDialogs, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useGetPeopleSoftActiveEmployees, useGetPeopleSoftCompanyGeneralManager, useGetPeopleSoftDepartmentById, useGetPeopleSoftDepartmentEmployees, useGetPeopleSoftDepartmentManager, useGetPeopleSoftDepartments, useGetPeopleSoftEmployeeById, useGetPeopleSoftEmployeeGeneralManager, useGetPeopleSoftEmployeeManager, useGetPeopleSoftEmployeeSubordinates, useGetPeopleSoftEmployeeSupervisor, useGetPeopleSoftEmployees, useGetPeopleSoftEmployeesSearch, useGetPeopleSoftPreviousEmployeeIds, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, wczApiClient, withLayoutForm };