wcz-test 7.1.1 → 7.1.2

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 (75) 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/lib/auth/permissions.d.ts +3 -0
  45. package/dist/lib/auth/scopes.d.ts +3 -0
  46. package/dist/lib/queryClient.d.ts +2 -0
  47. package/dist/lib/utils.d.ts +61 -0
  48. package/dist/lib/vite-plugin.d.ts +2 -0
  49. package/dist/models/Navigation.d.ts +18 -0
  50. package/dist/models/User.d.ts +13 -0
  51. package/dist/models/approval/Approval.d.ts +177 -0
  52. package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
  53. package/dist/models/approval/ApprovalFlow.d.ts +49 -0
  54. package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
  55. package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
  56. package/dist/models/approval/ApprovalStatus.d.ts +9 -0
  57. package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
  58. package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
  59. package/dist/models/email/Email.d.ts +13 -0
  60. package/dist/models/email/EmailAttachment.d.ts +6 -0
  61. package/dist/models/file/FileActions.d.ts +6 -0
  62. package/dist/models/file/FileMeta.d.ts +15 -0
  63. package/dist/models/peoplesoft/Department.d.ts +58 -0
  64. package/dist/models/peoplesoft/Employee.d.ts +46 -0
  65. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
  66. package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
  67. package/dist/providers/AuthProvider.d.ts +8 -0
  68. package/dist/providers/DialogsProvider.d.ts +5 -0
  69. package/dist/providers/LayoutProvider.d.ts +10 -0
  70. package/dist/queries/ApprovalHooks.d.ts +661 -0
  71. package/dist/queries/FileHooks.d.ts +205 -0
  72. package/dist/queries/GraphQueries.d.ts +31 -0
  73. package/dist/queries/PeopleSoftHooks.d.ts +2173 -0
  74. package/dist/queries/index.d.ts +2958 -0
  75. package/package.json +8 -8
@@ -0,0 +1,18 @@
1
+ import { LinkOptions } from '@tanstack/react-router';
2
+ export interface NavigationPageItem extends Partial<Pick<LinkOptions, "to" | "href" | "params" | "search">> {
3
+ title: string;
4
+ icon: React.ReactNode;
5
+ children?: Array<NavigationItem>;
6
+ hidden?: boolean;
7
+ }
8
+ export interface NavigationDivider {
9
+ kind: "divider";
10
+ hidden?: boolean;
11
+ }
12
+ export interface NavigationHeader {
13
+ kind: "header";
14
+ title: string;
15
+ hidden?: boolean;
16
+ }
17
+ export type NavigationItem = NavigationPageItem | NavigationDivider | NavigationHeader;
18
+ export type Navigation = Array<NavigationItem>;
@@ -0,0 +1,13 @@
1
+ import * as z from "zod";
2
+ export declare const UserSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ email: z.ZodEmail;
6
+ groups: z.ZodArray<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type User = z.infer<typeof UserSchema>;
9
+ export declare const GraphUserSchema: z.ZodObject<{
10
+ displayName: z.ZodString;
11
+ jobTitle: z.ZodString;
12
+ }, z.core.$strip>;
13
+ export type GraphUser = z.infer<typeof GraphUserSchema>;
@@ -0,0 +1,177 @@
1
+ import { default as z } from 'zod';
2
+ export declare const ApprovalSchema: z.ZodObject<{
3
+ id: z.ZodUUID;
4
+ number: z.ZodOptional<z.ZodString>;
5
+ applicationName: z.ZodString;
6
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ Single: "Single";
8
+ Batch: "Batch";
9
+ }>>>;
10
+ status: z.ZodEnum<{
11
+ WaitingForApproval: "WaitingForApproval";
12
+ Approved: "Approved";
13
+ Rejected: "Rejected";
14
+ Withdrawn: "Withdrawn";
15
+ Cancelled: "Cancelled";
16
+ PartiallyApproved: "PartiallyApproved";
17
+ }>;
18
+ emailBody: z.ZodString;
19
+ created: z.ZodDate;
20
+ createdBy: z.ZodCustom<{
21
+ employeeId: string;
22
+ name: string;
23
+ email: string;
24
+ }, {
25
+ employeeId: string;
26
+ name: string;
27
+ email: string;
28
+ }>;
29
+ updated: z.ZodDate;
30
+ updatedBy: z.ZodCustom<{
31
+ employeeId: string;
32
+ name: string;
33
+ email: string;
34
+ }, {
35
+ employeeId: string;
36
+ name: string;
37
+ email: string;
38
+ }>;
39
+ approvalFlows: z.ZodArray<z.ZodCustom<{
40
+ id: string;
41
+ approvalStage: number;
42
+ approvalSequence: number;
43
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
44
+ steps: {
45
+ id: string;
46
+ order: number;
47
+ approver: {
48
+ employeeId: string;
49
+ name: string;
50
+ email: string;
51
+ };
52
+ approverRole?: string | undefined;
53
+ actualApprover?: {
54
+ employeeId: string;
55
+ name: string;
56
+ email: string;
57
+ } | undefined;
58
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
59
+ resultDate?: Date | undefined;
60
+ resultComment?: string | undefined;
61
+ }[];
62
+ batchSequence?: number | undefined;
63
+ isActive?: boolean | undefined;
64
+ }, {
65
+ id: string;
66
+ approvalStage: number;
67
+ approvalSequence: number;
68
+ stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
69
+ steps: {
70
+ id: string;
71
+ order: number;
72
+ approver: {
73
+ employeeId: string;
74
+ name: string;
75
+ email: string;
76
+ };
77
+ approverRole?: string | undefined;
78
+ actualApprover?: {
79
+ employeeId: string;
80
+ name: string;
81
+ email: string;
82
+ } | undefined;
83
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
84
+ resultDate?: Date | undefined;
85
+ resultComment?: string | undefined;
86
+ }[];
87
+ batchSequence?: number | undefined;
88
+ isActive?: boolean | undefined;
89
+ }>>;
90
+ currentApprovers: z.ZodArray<z.ZodCustom<{
91
+ employeeId: string;
92
+ name: string;
93
+ email: string;
94
+ }, {
95
+ employeeId: string;
96
+ name: string;
97
+ email: string;
98
+ }>>;
99
+ }, z.core.$strip>;
100
+ export type Approval = z.infer<typeof ApprovalSchema>;
101
+ export declare const CreateApprovalSchema: z.ZodObject<{
102
+ number: z.ZodOptional<z.ZodString>;
103
+ id: z.ZodUUID;
104
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
105
+ Single: "Single";
106
+ Batch: "Batch";
107
+ }>>>;
108
+ applicationName: z.ZodString;
109
+ emailBody: z.ZodString;
110
+ approvalFlows: z.ZodArray<z.ZodObject<{
111
+ stepApprovalOrder: z.ZodEnum<{
112
+ Serial: "Serial";
113
+ Parallel: "Parallel";
114
+ OneOfThem: "OneOfThem";
115
+ }>;
116
+ approvalStage: z.ZodNumber;
117
+ batchSequence: z.ZodOptional<z.ZodNumber>;
118
+ steps: z.ZodArray<z.ZodObject<{
119
+ approver: z.ZodObject<{
120
+ employeeId: z.ZodString;
121
+ name: z.ZodString;
122
+ email: z.ZodEmail;
123
+ }, z.core.$strip>;
124
+ approverRole: z.ZodOptional<z.ZodDefault<z.ZodString>>;
125
+ }, z.core.$strip>>;
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>;
128
+ export type CreateApproval = z.infer<typeof CreateApprovalSchema>;
129
+ export declare const ApproveApprovalSchema: z.ZodObject<{
130
+ id: z.ZodUUID;
131
+ result: z.ZodEnum<{
132
+ NotAvailable: "NotAvailable";
133
+ FutureApproval: "FutureApproval";
134
+ WaitingForApproval: "WaitingForApproval";
135
+ Approved: "Approved";
136
+ Rejected: "Rejected";
137
+ Skipped: "Skipped";
138
+ Withdrawn: "Withdrawn";
139
+ Cancelled: "Cancelled";
140
+ }>;
141
+ resultComment: z.ZodOptional<z.ZodString>;
142
+ emailBody: z.ZodString;
143
+ }, z.core.$strip>;
144
+ export type ApproveApproval = z.infer<typeof ApproveApprovalSchema>;
145
+ export declare const ResubmitApprovalSchema: z.ZodObject<{
146
+ id: z.ZodUUID;
147
+ approvalFlows: z.ZodArray<z.ZodObject<{
148
+ stepApprovalOrder: z.ZodEnum<{
149
+ Serial: "Serial";
150
+ Parallel: "Parallel";
151
+ OneOfThem: "OneOfThem";
152
+ }>;
153
+ approvalStage: z.ZodNumber;
154
+ batchSequence: z.ZodOptional<z.ZodNumber>;
155
+ steps: z.ZodArray<z.ZodObject<{
156
+ approver: z.ZodObject<{
157
+ employeeId: z.ZodString;
158
+ name: z.ZodString;
159
+ email: z.ZodEmail;
160
+ }, z.core.$strip>;
161
+ approverRole: z.ZodOptional<z.ZodDefault<z.ZodString>>;
162
+ }, z.core.$strip>>;
163
+ }, z.core.$strip>>;
164
+ }, z.core.$strip>;
165
+ export type ResubmitApproval = z.infer<typeof ResubmitApprovalSchema>;
166
+ export declare const CancelApprovalSchema: z.ZodObject<{
167
+ id: z.ZodUUID;
168
+ comment: z.ZodString;
169
+ emailBody: z.ZodString;
170
+ }, z.core.$strip>;
171
+ export type CancelApproval = z.infer<typeof CancelApprovalSchema>;
172
+ export declare const WithdrawApprovalSchema: z.ZodObject<{
173
+ id: z.ZodUUID;
174
+ comment: z.ZodString;
175
+ emailBody: z.ZodString;
176
+ }, z.core.$strip>;
177
+ export type WithdrawApproval = z.infer<typeof WithdrawApprovalSchema>;
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const ApprovalEmployeeSchema: z.ZodObject<{
3
+ employeeId: z.ZodString;
4
+ name: z.ZodString;
5
+ email: z.ZodEmail;
6
+ }, z.core.$strip>;
7
+ export type ApprovalEmployee = z.infer<typeof ApprovalEmployeeSchema>;
@@ -0,0 +1,49 @@
1
+ import { z } from 'zod';
2
+ export declare const ApprovalFlowSchema: z.ZodObject<{
3
+ id: z.ZodUUID;
4
+ approvalStage: z.ZodNumber;
5
+ batchSequence: z.ZodOptional<z.ZodNumber>;
6
+ approvalSequence: z.ZodNumber;
7
+ stepApprovalOrder: z.ZodEnum<{
8
+ Serial: "Serial";
9
+ Parallel: "Parallel";
10
+ OneOfThem: "OneOfThem";
11
+ }>;
12
+ steps: z.ZodArray<z.ZodCustom<{
13
+ id: string;
14
+ order: number;
15
+ approver: {
16
+ employeeId: string;
17
+ name: string;
18
+ email: string;
19
+ };
20
+ approverRole?: string | undefined;
21
+ actualApprover?: {
22
+ employeeId: string;
23
+ name: string;
24
+ email: string;
25
+ } | undefined;
26
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
27
+ resultDate?: Date | undefined;
28
+ resultComment?: string | undefined;
29
+ }, {
30
+ id: string;
31
+ order: number;
32
+ approver: {
33
+ employeeId: string;
34
+ name: string;
35
+ email: string;
36
+ };
37
+ approverRole?: string | undefined;
38
+ actualApprover?: {
39
+ employeeId: string;
40
+ name: string;
41
+ email: string;
42
+ } | undefined;
43
+ result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
44
+ resultDate?: Date | undefined;
45
+ resultComment?: string | undefined;
46
+ }>>;
47
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
48
+ }, z.core.$strip>;
49
+ export type ApprovalFlow = z.infer<typeof ApprovalFlowSchema>;
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const ApprovalFlowStepSchema: z.ZodObject<{
3
+ id: z.ZodUUID;
4
+ order: z.ZodNumber;
5
+ approverRole: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ approver: z.ZodObject<{
7
+ employeeId: z.ZodString;
8
+ name: z.ZodString;
9
+ email: z.ZodEmail;
10
+ }, z.core.$strip>;
11
+ actualApprover: z.ZodOptional<z.ZodObject<{
12
+ employeeId: z.ZodString;
13
+ name: z.ZodString;
14
+ email: z.ZodEmail;
15
+ }, z.core.$strip>>;
16
+ result: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
17
+ NotAvailable: "NotAvailable";
18
+ FutureApproval: "FutureApproval";
19
+ WaitingForApproval: "WaitingForApproval";
20
+ Approved: "Approved";
21
+ Rejected: "Rejected";
22
+ Skipped: "Skipped";
23
+ Withdrawn: "Withdrawn";
24
+ Cancelled: "Cancelled";
25
+ }>>>;
26
+ resultDate: z.ZodOptional<z.ZodDate>;
27
+ resultComment: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ export type ApprovalFlowStep = z.infer<typeof ApprovalFlowStepSchema>;
@@ -0,0 +1,5 @@
1
+ import { default as z } from 'zod';
2
+ export declare const ApprovalRequestType: z.ZodEnum<{
3
+ Single: "Single";
4
+ Batch: "Batch";
5
+ }>;
@@ -0,0 +1,9 @@
1
+ import { default as z } from 'zod';
2
+ export declare const ApprovalStatus: z.ZodEnum<{
3
+ WaitingForApproval: "WaitingForApproval";
4
+ Approved: "Approved";
5
+ Rejected: "Rejected";
6
+ Withdrawn: "Withdrawn";
7
+ Cancelled: "Cancelled";
8
+ PartiallyApproved: "PartiallyApproved";
9
+ }>;
@@ -0,0 +1,11 @@
1
+ import { default as z } from 'zod';
2
+ export declare const ApprovalStepResult: z.ZodEnum<{
3
+ NotAvailable: "NotAvailable";
4
+ FutureApproval: "FutureApproval";
5
+ WaitingForApproval: "WaitingForApproval";
6
+ Approved: "Approved";
7
+ Rejected: "Rejected";
8
+ Skipped: "Skipped";
9
+ Withdrawn: "Withdrawn";
10
+ Cancelled: "Cancelled";
11
+ }>;
@@ -0,0 +1,6 @@
1
+ import { default as z } from 'zod';
2
+ export declare const StepApprovalOrder: z.ZodEnum<{
3
+ Serial: "Serial";
4
+ Parallel: "Parallel";
5
+ OneOfThem: "OneOfThem";
6
+ }>;
@@ -0,0 +1,13 @@
1
+ import { default as z } from 'zod';
2
+ export declare const EmailSchema: z.ZodObject<{
3
+ subject: z.ZodString;
4
+ body: z.ZodString;
5
+ to: z.ZodArray<z.ZodEmail>;
6
+ bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
7
+ cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
8
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
+ appName: z.ZodString;
10
+ subId: z.ZodUUID;
11
+ }, z.core.$strip>>>;
12
+ }, z.core.$strip>;
13
+ export type Email = z.infer<typeof EmailSchema>;
@@ -0,0 +1,6 @@
1
+ import { default as z } from 'zod';
2
+ export declare const EmailAttachmentSchema: z.ZodObject<{
3
+ appName: z.ZodString;
4
+ subId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export type EmailAttachment = z.infer<typeof EmailAttachmentSchema>;
@@ -0,0 +1,6 @@
1
+ import * as z from "zod";
2
+ export declare const FileActionsSchema: z.ZodObject<{
3
+ download: z.ZodOptional<z.ZodBoolean>;
4
+ delete: z.ZodOptional<z.ZodBoolean>;
5
+ }, z.core.$strip>;
6
+ export type FileActions = z.infer<typeof FileActionsSchema>;
@@ -0,0 +1,15 @@
1
+ import * as z from "zod";
2
+ export declare const FileMetaSchema: z.ZodObject<{
3
+ id: z.ZodUUID;
4
+ subId: z.ZodUUID;
5
+ appName: z.ZodString;
6
+ fileName: z.ZodString;
7
+ fileExtension: z.ZodString;
8
+ fileSize: z.ZodNumber;
9
+ mediaSubType: z.ZodString;
10
+ mediaType: z.ZodString;
11
+ mimeType: z.ZodString;
12
+ createdBy: z.ZodString;
13
+ createdDate: z.ZodDate;
14
+ }, z.core.$strip>;
15
+ export type FileMeta = z.infer<typeof FileMetaSchema>;
@@ -0,0 +1,58 @@
1
+ import { default as z } from 'zod';
2
+ export declare const DepartmentSchema: z.ZodObject<{
3
+ departmentId: z.ZodString;
4
+ description: z.ZodString;
5
+ managerId: z.ZodString;
6
+ managerRecordNumber: z.ZodString;
7
+ treeLevel: z.ZodNumber;
8
+ upperDepartmentId: z.ZodString;
9
+ companyCode: z.ZodString;
10
+ location: z.ZodString;
11
+ salLocation: z.ZodString;
12
+ plantId: z.ZodString;
13
+ manager: z.ZodObject<{
14
+ badgeId: z.ZodString;
15
+ category: z.ZodString;
16
+ categoryGroup: z.ZodEnum<{
17
+ IDL: "IDL";
18
+ FD: "FD";
19
+ FI: "FI";
20
+ }>;
21
+ companyCode: z.ZodString;
22
+ contactPhone: z.ZodString;
23
+ departmentId: z.ZodString;
24
+ departmentDescription: z.ZodString;
25
+ emailString: z.ZodString;
26
+ employeeId: z.ZodString;
27
+ extensionNumber: z.ZodString;
28
+ firstName: z.ZodString;
29
+ gender: z.ZodString;
30
+ hiredDate: z.ZodDate;
31
+ lastName: z.ZodString;
32
+ managerId: z.ZodString;
33
+ middleName: z.ZodString;
34
+ name: z.ZodString;
35
+ nameTitleCase: z.ZodString;
36
+ nfcSn: z.ZodString;
37
+ plantId: z.ZodString;
38
+ position: z.ZodString;
39
+ previousEmployeeIds: z.ZodNullable<z.ZodString>;
40
+ reHiredDate: z.ZodNullable<z.ZodDate>;
41
+ recordNumber: z.ZodNumber;
42
+ status: z.ZodEnum<{
43
+ Active: "Active";
44
+ Terminated: "Terminated";
45
+ "Leave of Absence": "Leave of Absence";
46
+ }>;
47
+ supervisorId: z.ZodString;
48
+ terminationDate: z.ZodNullable<z.ZodDate>;
49
+ terminationFutureDate: z.ZodNullable<z.ZodDate>;
50
+ type: z.ZodString;
51
+ upperDepartmentId: z.ZodString;
52
+ jobCode: z.ZodString;
53
+ jobDescription: z.ZodString;
54
+ terminationReason: z.ZodNullable<z.ZodString>;
55
+ supervisorRecordNumber: z.ZodNumber;
56
+ }, z.core.$strip>;
57
+ }, z.core.$strip>;
58
+ export type Department = z.infer<typeof DepartmentSchema>;
@@ -0,0 +1,46 @@
1
+ import { default as z } from 'zod';
2
+ export declare const EmployeeSchema: z.ZodObject<{
3
+ badgeId: z.ZodString;
4
+ category: z.ZodString;
5
+ categoryGroup: z.ZodEnum<{
6
+ IDL: "IDL";
7
+ FD: "FD";
8
+ FI: "FI";
9
+ }>;
10
+ companyCode: z.ZodString;
11
+ contactPhone: z.ZodString;
12
+ departmentId: z.ZodString;
13
+ departmentDescription: z.ZodString;
14
+ emailString: z.ZodString;
15
+ employeeId: z.ZodString;
16
+ extensionNumber: z.ZodString;
17
+ firstName: z.ZodString;
18
+ gender: z.ZodString;
19
+ hiredDate: z.ZodDate;
20
+ lastName: z.ZodString;
21
+ managerId: z.ZodString;
22
+ middleName: z.ZodString;
23
+ name: z.ZodString;
24
+ nameTitleCase: z.ZodString;
25
+ nfcSn: z.ZodString;
26
+ plantId: z.ZodString;
27
+ position: z.ZodString;
28
+ previousEmployeeIds: z.ZodNullable<z.ZodString>;
29
+ reHiredDate: z.ZodNullable<z.ZodDate>;
30
+ recordNumber: z.ZodNumber;
31
+ status: z.ZodEnum<{
32
+ Active: "Active";
33
+ Terminated: "Terminated";
34
+ "Leave of Absence": "Leave of Absence";
35
+ }>;
36
+ supervisorId: z.ZodString;
37
+ terminationDate: z.ZodNullable<z.ZodDate>;
38
+ terminationFutureDate: z.ZodNullable<z.ZodDate>;
39
+ type: z.ZodString;
40
+ upperDepartmentId: z.ZodString;
41
+ jobCode: z.ZodString;
42
+ jobDescription: z.ZodString;
43
+ terminationReason: z.ZodNullable<z.ZodString>;
44
+ supervisorRecordNumber: z.ZodNumber;
45
+ }, z.core.$strip>;
46
+ export type Employee = z.infer<typeof EmployeeSchema>;
@@ -0,0 +1,6 @@
1
+ import { default as z } from 'zod';
2
+ export declare const EmployeeCategoryGroup: z.ZodEnum<{
3
+ IDL: "IDL";
4
+ FD: "FD";
5
+ FI: "FI";
6
+ }>;
@@ -0,0 +1,6 @@
1
+ import { default as z } from 'zod';
2
+ export declare const EmployeeStatus: z.ZodEnum<{
3
+ Active: "Active";
4
+ Terminated: "Terminated";
5
+ "Leave of Absence": "Leave of Absence";
6
+ }>;
@@ -0,0 +1,8 @@
1
+ import { PublicClientApplication } from '@azure/msal-browser';
2
+ import { FC, ReactNode } from 'react';
3
+ export declare const pca: PublicClientApplication;
4
+ interface ProvidersProps {
5
+ children: ReactNode;
6
+ }
7
+ export declare const AuthProvider: FC<ProvidersProps>;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface DialogProviderProps {
2
+ children?: React.ReactNode;
3
+ }
4
+ declare function DialogsProvider({ children }: Readonly<DialogProviderProps>): import("react/jsx-runtime").JSX.Element;
5
+ export { DialogsProvider };
@@ -0,0 +1,10 @@
1
+ import { Navigation } from '../models/Navigation';
2
+ import { FC, ReactNode } from 'react';
3
+ import { Theme } from '@mui/material';
4
+ interface ProvidersProps {
5
+ navigation?: Navigation;
6
+ theme: Theme;
7
+ children: ReactNode;
8
+ }
9
+ export declare const LayoutProvider: FC<ProvidersProps>;
10
+ export {};