wcz-test 6.7.7 → 6.8.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/ApprovalStatus-C9HPyMiS.js +24 -0
- package/dist/ApprovalStatus-C9HPyMiS.js.map +1 -0
- package/dist/{chunk-4UULRYGW.js → DialogsHooks-BlUsVlfv.js} +7 -14
- package/dist/DialogsHooks-BlUsVlfv.js.map +1 -0
- package/dist/{chunk-MIVD2XWB.js → FileHooks-hWKTwLCr.js} +36 -46
- package/dist/FileHooks-hWKTwLCr.js.map +1 -0
- package/dist/{chunk-TME53DAF.js → FileMeta-G1oT3mYK.js} +3 -5
- package/dist/FileMeta-G1oT3mYK.js.map +1 -0
- package/dist/{chunk-ZMWQQXZT.js → RouterListItemButton-Cx7rXEfm.js} +6 -8
- package/dist/RouterListItemButton-Cx7rXEfm.js.map +1 -0
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/auth-client-D9snEe6B.js +79 -0
- package/dist/auth-client-D9snEe6B.js.map +1 -0
- package/dist/client-utils.d.ts +3 -702
- package/dist/client-utils.js +7 -17
- package/dist/client-utils.js.map +1 -1
- package/dist/components/core/AppTitle.d.ts +2 -0
- package/dist/components/core/Fullscreen.d.ts +3 -0
- package/dist/components/core/Layout.d.ts +8 -0
- package/dist/components/core/ToolbarAccount.d.ts +2 -0
- package/dist/components/core/TypographyWithIcon.d.ts +7 -0
- package/dist/components/core/navigation/NavigationList.d.ts +22 -0
- package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
- package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
- package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
- package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
- package/dist/components/file/Dropzone.d.ts +8 -0
- package/dist/components/file/FileViewer.d.ts +20 -0
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
- package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
- package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
- package/dist/components/form/FormAutocomplete.d.ts +7 -0
- package/dist/components/form/FormCheckbox.d.ts +7 -0
- package/dist/components/form/FormDatePicker.d.ts +8 -0
- package/dist/components/form/FormDateRangePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
- package/dist/components/form/FormNumberField.d.ts +9 -0
- package/dist/components/form/FormRadioGroup.d.ts +13 -0
- package/dist/components/form/FormSlider.d.ts +7 -0
- package/dist/components/form/FormSubmitButton.d.ts +4 -0
- package/dist/components/form/FormSwitch.d.ts +7 -0
- package/dist/components/form/FormTextField.d.ts +7 -0
- package/dist/components/form/FormTimePicker.d.ts +8 -0
- package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
- package/dist/components/router/RouterButton.d.ts +6 -0
- package/dist/components/router/RouterError.d.ts +7 -0
- package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
- package/dist/components/router/RouterIconButton.d.ts +6 -0
- package/dist/components/router/RouterLink.d.ts +6 -0
- package/dist/components/router/RouterListItemButton.d.ts +6 -0
- package/dist/components/router/RouterNotFound.d.ts +1 -0
- package/dist/components/router/RouterTab.d.ts +6 -0
- package/dist/components.d.ts +14 -89
- package/dist/components.js +124 -227
- package/dist/components.js.map +1 -1
- package/dist/contexts/DialogsContext.d.ts +6 -0
- package/dist/contexts/FileContext.d.ts +13 -0
- package/dist/env-CoxTjaDr.js +27 -0
- package/dist/env-CoxTjaDr.js.map +1 -0
- package/dist/env.d.ts +10 -0
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.png +0 -0
- package/dist/hooks/DialogsHooks.d.ts +42 -0
- package/dist/hooks/FormHooks.d.ts +52 -0
- package/dist/hooks/ThemeHook.d.ts +4 -0
- package/dist/hooks.d.ts +3 -159
- package/dist/hooks.js +56 -121
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +3 -36
- package/dist/index.js +173 -1882
- package/dist/index.js.map +1 -1
- package/dist/{client-utils.d.cts → lib/auth/auth-client.d.ts} +110 -126
- package/dist/lib/auth/auth.d.ts +24 -0
- package/dist/lib/db/index.d.ts +4 -0
- package/dist/lib/db/schemas/auth.d.ts +606 -0
- package/dist/{utils-ChipkRJ9.d.ts → lib/utils.d.ts} +11 -10
- package/dist/lib/vite-plugin.d.ts +2 -0
- package/dist/manifest.webmanifest +18 -0
- package/dist/models/Navigation.d.ts +18 -0
- package/dist/models/User.d.ts +8 -0
- package/dist/models/approval/Approval.d.ts +177 -0
- package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
- package/dist/models/approval/ApprovalFlow.d.ts +49 -0
- package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
- package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
- package/dist/models/approval/ApprovalStatus.d.ts +9 -0
- package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
- package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
- package/dist/models/email/Email.d.ts +13 -0
- package/dist/models/email/EmailAttachment.d.ts +6 -0
- package/dist/models/file/FileActions.d.ts +6 -0
- package/dist/{FileMeta-CC014fnB.d.cts → models/file/FileMeta.d.ts} +3 -6
- package/dist/models/peoplesoft/Department.d.ts +58 -0
- package/dist/models/peoplesoft/Employee.d.ts +46 -0
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
- package/dist/models.d.ts +25 -161
- package/dist/models.js +109 -160
- package/dist/models.js.map +1 -1
- package/dist/providers/DialogsProvider.d.ts +6 -0
- package/dist/providers/LayoutProvider.d.ts +11 -0
- package/dist/queries/Approval.d.ts +585 -0
- package/dist/queries/ApprovalHooks.d.ts +315 -0
- package/dist/queries/FileHooks.d.ts +151 -0
- package/dist/queries/PeopleSoftHooks.d.ts +537 -0
- package/dist/queries.d.ts +4 -1585
- package/dist/queries.js +59 -86
- package/dist/queries.js.map +1 -1
- package/dist/robots.txt +3 -0
- package/dist/server-utils.d.ts +2 -35
- package/dist/server-utils.js +13 -26
- package/dist/server-utils.js.map +1 -1
- package/dist/{chunk-2ROTNT7W.js → utils-DKyKGba7.js} +13 -18
- package/dist/utils-DKyKGba7.js.map +1 -0
- package/dist/utils.d.ts +1 -2
- package/dist/utils.js +3 -9
- package/dist/utils.js.map +1 -1
- package/dist/vite.d.ts +1 -5
- package/dist/vite.js +3 -6
- package/dist/vite.js.map +1 -1
- package/package.json +15 -23
- package/dist/Approval-CWQn-kah.d.cts +0 -284
- package/dist/Approval-CWQn-kah.d.ts +0 -284
- package/dist/FileMeta-CC014fnB.d.ts +0 -18
- package/dist/chunk-2ROTNT7W.js.map +0 -1
- package/dist/chunk-4FRZRIAO.js +0 -29
- package/dist/chunk-4FRZRIAO.js.map +0 -1
- package/dist/chunk-4UULRYGW.js.map +0 -1
- package/dist/chunk-5WRI5ZAA.js +0 -31
- package/dist/chunk-5WRI5ZAA.js.map +0 -1
- package/dist/chunk-CNDRHYQK.js +0 -883
- package/dist/chunk-CNDRHYQK.js.map +0 -1
- package/dist/chunk-DXXZZHAK.js +0 -28
- package/dist/chunk-DXXZZHAK.js.map +0 -1
- package/dist/chunk-MIVD2XWB.js.map +0 -1
- package/dist/chunk-TME53DAF.js.map +0 -1
- package/dist/chunk-ZMWQQXZT.js.map +0 -1
- package/dist/client-utils.cjs +0 -118
- package/dist/client-utils.cjs.map +0 -1
- package/dist/components.cjs +0 -802
- package/dist/components.cjs.map +0 -1
- package/dist/components.d.cts +0 -89
- package/dist/hooks.cjs +0 -534
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.d.cts +0 -160
- package/dist/index.cjs +0 -3373
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -36
- package/dist/models.cjs +0 -330
- package/dist/models.cjs.map +0 -1
- package/dist/models.d.cts +0 -161
- package/dist/queries.cjs +0 -706
- package/dist/queries.cjs.map +0 -1
- package/dist/queries.d.cts +0 -1585
- package/dist/server-utils.cjs +0 -145
- package/dist/server-utils.cjs.map +0 -1
- package/dist/server-utils.d.cts +0 -36
- package/dist/utils-ChipkRJ9.d.cts +0 -49
- package/dist/utils.cjs +0 -81
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.cts +0 -4
- package/dist/vite.cjs +0 -94
- package/dist/vite.cjs.map +0 -1
- package/dist/vite.d.cts +0 -5
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { GetApprovalsParams } from './Approval';
|
|
2
|
+
import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
+
import { Approval, ApproveApproval, CancelApproval, CreateApproval, ResubmitApproval, WithdrawApproval } from '../models/approval/Approval';
|
|
4
|
+
type UseGetApprovalsOptions = Omit<DefinedInitialDataOptions<Array<Approval>>, "queryKey" | "queryFn" | "initialData">;
|
|
5
|
+
type UseGetApprovalOptions = Omit<DefinedInitialDataOptions<Approval>, "queryKey" | "queryFn" | "initialData">;
|
|
6
|
+
type UseCreateApprovalOptions = Omit<UseMutationOptions<Approval, Error, CreateApproval>, "mutationFn" | "onSettled">;
|
|
7
|
+
type UseApproveApprovalOptions = Omit<UseMutationOptions<Approval, Error, ApproveApproval>, "mutationFn" | "onSettled">;
|
|
8
|
+
type UseResubmitApprovalOptions = Omit<UseMutationOptions<Approval, Error, ResubmitApproval>, "mutationFn" | "onSettled">;
|
|
9
|
+
type UseWithdrawApprovalOptions = Omit<UseMutationOptions<void, Error, WithdrawApproval>, "mutationFn" | "onSettled">;
|
|
10
|
+
type UseCancelApprovalOptions = Omit<UseMutationOptions<void, Error, CancelApproval>, "mutationFn" | "onSettled">;
|
|
11
|
+
export declare const useGetApprovals: (params?: GetApprovalsParams, options?: UseGetApprovalsOptions) => import('@tanstack/react-query').UseQueryResult<{
|
|
12
|
+
id: string;
|
|
13
|
+
applicationName: string;
|
|
14
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
15
|
+
emailBody: string;
|
|
16
|
+
created: Date;
|
|
17
|
+
createdBy: {
|
|
18
|
+
employeeId: string;
|
|
19
|
+
name: string;
|
|
20
|
+
email: string;
|
|
21
|
+
};
|
|
22
|
+
updated: Date;
|
|
23
|
+
updatedBy: {
|
|
24
|
+
employeeId: string;
|
|
25
|
+
name: string;
|
|
26
|
+
email: string;
|
|
27
|
+
};
|
|
28
|
+
approvalFlows: {
|
|
29
|
+
id: string;
|
|
30
|
+
approvalStage: number;
|
|
31
|
+
approvalSequence: number;
|
|
32
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
33
|
+
steps: {
|
|
34
|
+
id: string;
|
|
35
|
+
order: number;
|
|
36
|
+
approver: {
|
|
37
|
+
employeeId: string;
|
|
38
|
+
name: string;
|
|
39
|
+
email: string;
|
|
40
|
+
};
|
|
41
|
+
approverRole?: string | undefined;
|
|
42
|
+
actualApprover?: {
|
|
43
|
+
employeeId: string;
|
|
44
|
+
name: string;
|
|
45
|
+
email: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
48
|
+
resultDate?: Date | undefined;
|
|
49
|
+
resultComment?: string | undefined;
|
|
50
|
+
}[];
|
|
51
|
+
batchSequence?: number | undefined;
|
|
52
|
+
isActive?: boolean | undefined;
|
|
53
|
+
}[];
|
|
54
|
+
currentApprovers: {
|
|
55
|
+
employeeId: string;
|
|
56
|
+
name: string;
|
|
57
|
+
email: string;
|
|
58
|
+
}[];
|
|
59
|
+
number?: string | undefined;
|
|
60
|
+
type?: "Single" | "Batch" | undefined;
|
|
61
|
+
}[], Error>;
|
|
62
|
+
export declare const useGetApproval: (id: string, options?: UseGetApprovalOptions) => import('@tanstack/react-query').UseQueryResult<{
|
|
63
|
+
id: string;
|
|
64
|
+
applicationName: string;
|
|
65
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
66
|
+
emailBody: string;
|
|
67
|
+
created: Date;
|
|
68
|
+
createdBy: {
|
|
69
|
+
employeeId: string;
|
|
70
|
+
name: string;
|
|
71
|
+
email: string;
|
|
72
|
+
};
|
|
73
|
+
updated: Date;
|
|
74
|
+
updatedBy: {
|
|
75
|
+
employeeId: string;
|
|
76
|
+
name: string;
|
|
77
|
+
email: string;
|
|
78
|
+
};
|
|
79
|
+
approvalFlows: {
|
|
80
|
+
id: string;
|
|
81
|
+
approvalStage: number;
|
|
82
|
+
approvalSequence: number;
|
|
83
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
84
|
+
steps: {
|
|
85
|
+
id: string;
|
|
86
|
+
order: number;
|
|
87
|
+
approver: {
|
|
88
|
+
employeeId: string;
|
|
89
|
+
name: string;
|
|
90
|
+
email: string;
|
|
91
|
+
};
|
|
92
|
+
approverRole?: string | undefined;
|
|
93
|
+
actualApprover?: {
|
|
94
|
+
employeeId: string;
|
|
95
|
+
name: string;
|
|
96
|
+
email: string;
|
|
97
|
+
} | undefined;
|
|
98
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
99
|
+
resultDate?: Date | undefined;
|
|
100
|
+
resultComment?: string | undefined;
|
|
101
|
+
}[];
|
|
102
|
+
batchSequence?: number | undefined;
|
|
103
|
+
isActive?: boolean | undefined;
|
|
104
|
+
}[];
|
|
105
|
+
currentApprovers: {
|
|
106
|
+
employeeId: string;
|
|
107
|
+
name: string;
|
|
108
|
+
email: string;
|
|
109
|
+
}[];
|
|
110
|
+
number?: string | undefined;
|
|
111
|
+
type?: "Single" | "Batch" | undefined;
|
|
112
|
+
}, Error>;
|
|
113
|
+
export declare const useCreateApproval: (options?: UseCreateApprovalOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
114
|
+
id: string;
|
|
115
|
+
applicationName: string;
|
|
116
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
117
|
+
emailBody: string;
|
|
118
|
+
created: Date;
|
|
119
|
+
createdBy: {
|
|
120
|
+
employeeId: string;
|
|
121
|
+
name: string;
|
|
122
|
+
email: string;
|
|
123
|
+
};
|
|
124
|
+
updated: Date;
|
|
125
|
+
updatedBy: {
|
|
126
|
+
employeeId: string;
|
|
127
|
+
name: string;
|
|
128
|
+
email: string;
|
|
129
|
+
};
|
|
130
|
+
approvalFlows: {
|
|
131
|
+
id: string;
|
|
132
|
+
approvalStage: number;
|
|
133
|
+
approvalSequence: number;
|
|
134
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
135
|
+
steps: {
|
|
136
|
+
id: string;
|
|
137
|
+
order: number;
|
|
138
|
+
approver: {
|
|
139
|
+
employeeId: string;
|
|
140
|
+
name: string;
|
|
141
|
+
email: string;
|
|
142
|
+
};
|
|
143
|
+
approverRole?: string | undefined;
|
|
144
|
+
actualApprover?: {
|
|
145
|
+
employeeId: string;
|
|
146
|
+
name: string;
|
|
147
|
+
email: string;
|
|
148
|
+
} | undefined;
|
|
149
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
150
|
+
resultDate?: Date | undefined;
|
|
151
|
+
resultComment?: string | undefined;
|
|
152
|
+
}[];
|
|
153
|
+
batchSequence?: number | undefined;
|
|
154
|
+
isActive?: boolean | undefined;
|
|
155
|
+
}[];
|
|
156
|
+
currentApprovers: {
|
|
157
|
+
employeeId: string;
|
|
158
|
+
name: string;
|
|
159
|
+
email: string;
|
|
160
|
+
}[];
|
|
161
|
+
number?: string | undefined;
|
|
162
|
+
type?: "Single" | "Batch" | undefined;
|
|
163
|
+
}, Error, {
|
|
164
|
+
id: string;
|
|
165
|
+
applicationName: string;
|
|
166
|
+
emailBody: string;
|
|
167
|
+
approvalFlows: {
|
|
168
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
169
|
+
approvalStage: number;
|
|
170
|
+
steps: {
|
|
171
|
+
approver: {
|
|
172
|
+
employeeId: string;
|
|
173
|
+
name: string;
|
|
174
|
+
email: string;
|
|
175
|
+
};
|
|
176
|
+
approverRole?: string | undefined;
|
|
177
|
+
}[];
|
|
178
|
+
batchSequence?: number | undefined;
|
|
179
|
+
}[];
|
|
180
|
+
number?: string | undefined;
|
|
181
|
+
type?: "Single" | "Batch" | undefined;
|
|
182
|
+
}, unknown>;
|
|
183
|
+
export declare const useApproveApproval: (options?: UseApproveApprovalOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
184
|
+
id: string;
|
|
185
|
+
applicationName: string;
|
|
186
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
187
|
+
emailBody: string;
|
|
188
|
+
created: Date;
|
|
189
|
+
createdBy: {
|
|
190
|
+
employeeId: string;
|
|
191
|
+
name: string;
|
|
192
|
+
email: string;
|
|
193
|
+
};
|
|
194
|
+
updated: Date;
|
|
195
|
+
updatedBy: {
|
|
196
|
+
employeeId: string;
|
|
197
|
+
name: string;
|
|
198
|
+
email: string;
|
|
199
|
+
};
|
|
200
|
+
approvalFlows: {
|
|
201
|
+
id: string;
|
|
202
|
+
approvalStage: number;
|
|
203
|
+
approvalSequence: number;
|
|
204
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
205
|
+
steps: {
|
|
206
|
+
id: string;
|
|
207
|
+
order: number;
|
|
208
|
+
approver: {
|
|
209
|
+
employeeId: string;
|
|
210
|
+
name: string;
|
|
211
|
+
email: string;
|
|
212
|
+
};
|
|
213
|
+
approverRole?: string | undefined;
|
|
214
|
+
actualApprover?: {
|
|
215
|
+
employeeId: string;
|
|
216
|
+
name: string;
|
|
217
|
+
email: string;
|
|
218
|
+
} | undefined;
|
|
219
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
220
|
+
resultDate?: Date | undefined;
|
|
221
|
+
resultComment?: string | undefined;
|
|
222
|
+
}[];
|
|
223
|
+
batchSequence?: number | undefined;
|
|
224
|
+
isActive?: boolean | undefined;
|
|
225
|
+
}[];
|
|
226
|
+
currentApprovers: {
|
|
227
|
+
employeeId: string;
|
|
228
|
+
name: string;
|
|
229
|
+
email: string;
|
|
230
|
+
}[];
|
|
231
|
+
number?: string | undefined;
|
|
232
|
+
type?: "Single" | "Batch" | undefined;
|
|
233
|
+
}, Error, {
|
|
234
|
+
id: string;
|
|
235
|
+
result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
|
|
236
|
+
emailBody: string;
|
|
237
|
+
resultComment?: string | undefined;
|
|
238
|
+
}, unknown>;
|
|
239
|
+
export declare const useResubmitApproval: (options?: UseResubmitApprovalOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
240
|
+
id: string;
|
|
241
|
+
applicationName: string;
|
|
242
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
243
|
+
emailBody: string;
|
|
244
|
+
created: Date;
|
|
245
|
+
createdBy: {
|
|
246
|
+
employeeId: string;
|
|
247
|
+
name: string;
|
|
248
|
+
email: string;
|
|
249
|
+
};
|
|
250
|
+
updated: Date;
|
|
251
|
+
updatedBy: {
|
|
252
|
+
employeeId: string;
|
|
253
|
+
name: string;
|
|
254
|
+
email: string;
|
|
255
|
+
};
|
|
256
|
+
approvalFlows: {
|
|
257
|
+
id: string;
|
|
258
|
+
approvalStage: number;
|
|
259
|
+
approvalSequence: number;
|
|
260
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
261
|
+
steps: {
|
|
262
|
+
id: string;
|
|
263
|
+
order: number;
|
|
264
|
+
approver: {
|
|
265
|
+
employeeId: string;
|
|
266
|
+
name: string;
|
|
267
|
+
email: string;
|
|
268
|
+
};
|
|
269
|
+
approverRole?: string | undefined;
|
|
270
|
+
actualApprover?: {
|
|
271
|
+
employeeId: string;
|
|
272
|
+
name: string;
|
|
273
|
+
email: string;
|
|
274
|
+
} | undefined;
|
|
275
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
276
|
+
resultDate?: Date | undefined;
|
|
277
|
+
resultComment?: string | undefined;
|
|
278
|
+
}[];
|
|
279
|
+
batchSequence?: number | undefined;
|
|
280
|
+
isActive?: boolean | undefined;
|
|
281
|
+
}[];
|
|
282
|
+
currentApprovers: {
|
|
283
|
+
employeeId: string;
|
|
284
|
+
name: string;
|
|
285
|
+
email: string;
|
|
286
|
+
}[];
|
|
287
|
+
number?: string | undefined;
|
|
288
|
+
type?: "Single" | "Batch" | undefined;
|
|
289
|
+
}, Error, {
|
|
290
|
+
id: string;
|
|
291
|
+
approvalFlows: {
|
|
292
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
293
|
+
approvalStage: number;
|
|
294
|
+
steps: {
|
|
295
|
+
approver: {
|
|
296
|
+
employeeId: string;
|
|
297
|
+
name: string;
|
|
298
|
+
email: string;
|
|
299
|
+
};
|
|
300
|
+
approverRole?: string | undefined;
|
|
301
|
+
}[];
|
|
302
|
+
batchSequence?: number | undefined;
|
|
303
|
+
}[];
|
|
304
|
+
}, unknown>;
|
|
305
|
+
export declare const useWithdrawApproval: (options?: UseWithdrawApprovalOptions) => import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
306
|
+
id: string;
|
|
307
|
+
comment: string;
|
|
308
|
+
emailBody: string;
|
|
309
|
+
}, unknown>;
|
|
310
|
+
export declare const useCancelApproval: (options?: UseCancelApprovalOptions) => import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
311
|
+
id: string;
|
|
312
|
+
comment: string;
|
|
313
|
+
emailBody: string;
|
|
314
|
+
}, unknown>;
|
|
315
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
import { DetailedError } from 'tus-js-client';
|
|
3
|
+
import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
4
|
+
import { FileMeta } from '../models/file/FileMeta';
|
|
5
|
+
type OptionalId = string | undefined | null;
|
|
6
|
+
type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<FileMeta>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
|
|
7
|
+
type BaseBlobQueryOptions = Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
|
|
8
|
+
type BaseFileMetaMutationOptions = Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">;
|
|
9
|
+
type BaseBlobMutationOptions = Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">;
|
|
10
|
+
type BaseStringMutationOptions = Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">;
|
|
11
|
+
export declare const GetFileMetasParamsSchema: z.ZodObject<{
|
|
12
|
+
appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
13
|
+
subId: z.ZodUUID;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type GetFileMetasParams = z.infer<typeof GetFileMetasParamsSchema>;
|
|
16
|
+
export declare const useGetFileMetas: (params: GetFileMetasParams, options?: BaseFileMetaArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<{
|
|
17
|
+
id: string;
|
|
18
|
+
subId: string;
|
|
19
|
+
appName: string;
|
|
20
|
+
fileName: string;
|
|
21
|
+
fileExtension: string;
|
|
22
|
+
fileSize: number;
|
|
23
|
+
mediaSubType: string;
|
|
24
|
+
mediaType: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
createdBy: string;
|
|
27
|
+
createdDate: Date;
|
|
28
|
+
}[], Error>;
|
|
29
|
+
export declare const GetFileThumbnailParamsSchema: z.ZodObject<{
|
|
30
|
+
appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
31
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32
|
+
id: z.ZodUUID;
|
|
33
|
+
subId: z.ZodUUID;
|
|
34
|
+
appName: z.ZodString;
|
|
35
|
+
fileName: z.ZodString;
|
|
36
|
+
fileExtension: z.ZodString;
|
|
37
|
+
fileSize: z.ZodNumber;
|
|
38
|
+
mediaSubType: z.ZodString;
|
|
39
|
+
mediaType: z.ZodString;
|
|
40
|
+
mimeType: z.ZodString;
|
|
41
|
+
createdBy: z.ZodString;
|
|
42
|
+
createdDate: z.ZodDate;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type GetFileThumbnailParams = z.infer<typeof GetFileThumbnailParamsSchema>;
|
|
46
|
+
export declare const useGetFileThumbnail: (params: GetFileThumbnailParams, options?: BaseBlobQueryOptions) => import('@tanstack/react-query').UseQueryResult<string, Error>;
|
|
47
|
+
export declare const GetFileParamsSchema: z.ZodObject<{
|
|
48
|
+
appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
49
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
|
+
id: z.ZodUUID;
|
|
51
|
+
subId: z.ZodUUID;
|
|
52
|
+
appName: z.ZodString;
|
|
53
|
+
fileName: z.ZodString;
|
|
54
|
+
fileExtension: z.ZodString;
|
|
55
|
+
fileSize: z.ZodNumber;
|
|
56
|
+
mediaSubType: z.ZodString;
|
|
57
|
+
mediaType: z.ZodString;
|
|
58
|
+
mimeType: z.ZodString;
|
|
59
|
+
createdBy: z.ZodString;
|
|
60
|
+
createdDate: z.ZodDate;
|
|
61
|
+
}, z.core.$strip>>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type GetFileParams = z.infer<typeof GetFileParamsSchema>;
|
|
64
|
+
export declare const useGetFile: (params: GetFileParams, options?: BaseBlobQueryOptions) => import('@tanstack/react-query').UseQueryResult<string, Error>;
|
|
65
|
+
export declare const useDownloadFile: (options?: BaseBlobMutationOptions) => import('@tanstack/react-query').UseMutationResult<Blob, Error, {
|
|
66
|
+
id: string;
|
|
67
|
+
subId: string;
|
|
68
|
+
appName: string;
|
|
69
|
+
fileName: string;
|
|
70
|
+
fileExtension: string;
|
|
71
|
+
fileSize: number;
|
|
72
|
+
mediaSubType: string;
|
|
73
|
+
mediaType: string;
|
|
74
|
+
mimeType: string;
|
|
75
|
+
createdBy: string;
|
|
76
|
+
createdDate: Date;
|
|
77
|
+
}, unknown>;
|
|
78
|
+
export declare const useOpenFile: (options?: BaseBlobMutationOptions) => import('@tanstack/react-query').UseMutationResult<Blob, Error, {
|
|
79
|
+
id: string;
|
|
80
|
+
subId: string;
|
|
81
|
+
appName: string;
|
|
82
|
+
fileName: string;
|
|
83
|
+
fileExtension: string;
|
|
84
|
+
fileSize: number;
|
|
85
|
+
mediaSubType: string;
|
|
86
|
+
mediaType: string;
|
|
87
|
+
mimeType: string;
|
|
88
|
+
createdBy: string;
|
|
89
|
+
createdDate: Date;
|
|
90
|
+
}, unknown>;
|
|
91
|
+
export declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
92
|
+
id: string;
|
|
93
|
+
subId: string;
|
|
94
|
+
appName: string;
|
|
95
|
+
fileName: string;
|
|
96
|
+
fileExtension: string;
|
|
97
|
+
fileSize: number;
|
|
98
|
+
mediaSubType: string;
|
|
99
|
+
mediaType: string;
|
|
100
|
+
mimeType: string;
|
|
101
|
+
createdBy: string;
|
|
102
|
+
createdDate: Date;
|
|
103
|
+
}, Error, {
|
|
104
|
+
id: string;
|
|
105
|
+
subId: string;
|
|
106
|
+
appName: string;
|
|
107
|
+
fileName: string;
|
|
108
|
+
fileExtension: string;
|
|
109
|
+
fileSize: number;
|
|
110
|
+
mediaSubType: string;
|
|
111
|
+
mediaType: string;
|
|
112
|
+
mimeType: string;
|
|
113
|
+
createdBy: string;
|
|
114
|
+
createdDate: Date;
|
|
115
|
+
}, unknown>;
|
|
116
|
+
export declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
117
|
+
id: string;
|
|
118
|
+
subId: string;
|
|
119
|
+
appName: string;
|
|
120
|
+
fileName: string;
|
|
121
|
+
fileExtension: string;
|
|
122
|
+
fileSize: number;
|
|
123
|
+
mediaSubType: string;
|
|
124
|
+
mediaType: string;
|
|
125
|
+
mimeType: string;
|
|
126
|
+
createdBy: string;
|
|
127
|
+
createdDate: Date;
|
|
128
|
+
}, Error, {
|
|
129
|
+
id: string;
|
|
130
|
+
subId: string;
|
|
131
|
+
appName: string;
|
|
132
|
+
fileName: string;
|
|
133
|
+
fileExtension: string;
|
|
134
|
+
fileSize: number;
|
|
135
|
+
mediaSubType: string;
|
|
136
|
+
mediaType: string;
|
|
137
|
+
mimeType: string;
|
|
138
|
+
createdBy: string;
|
|
139
|
+
createdDate: Date;
|
|
140
|
+
}, unknown>;
|
|
141
|
+
export declare const useDeleteFiles: (options?: BaseStringMutationOptions) => import('@tanstack/react-query').UseMutationResult<string, Error, string, unknown>;
|
|
142
|
+
interface UseUploadFileProps {
|
|
143
|
+
subId: OptionalId;
|
|
144
|
+
onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
|
|
145
|
+
onError?: (error: Error | DetailedError) => void;
|
|
146
|
+
}
|
|
147
|
+
export declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps) => {
|
|
148
|
+
mutate: (file: File) => Promise<void>;
|
|
149
|
+
progress: number;
|
|
150
|
+
};
|
|
151
|
+
export {};
|