wcz-test 6.9.1 → 6.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +725 -0
- package/dist/components.d.ts +134 -0
- package/dist/hooks.d.ts +192 -0
- package/dist/index.d.ts +74 -0
- package/dist/models.d.ts +476 -0
- package/dist/queries.d.ts +1956 -0
- package/dist/server.d.ts +41 -0
- package/dist/utils.d.ts +11 -0
- package/dist/vite.d.ts +5 -0
- package/package.json +4 -3
- package/dist/components/core/AppTitle.d.ts +0 -2
- package/dist/components/core/Fullscreen.d.ts +0 -3
- package/dist/components/core/Layout.d.ts +0 -8
- package/dist/components/core/ToolbarAccount.d.ts +0 -2
- package/dist/components/core/TypographyWithIcon.d.ts +0 -7
- package/dist/components/core/navigation/NavigationList.d.ts +0 -22
- package/dist/components/core/navigation/NavigationListItem.d.ts +0 -16
- package/dist/components/core/navigation/NavigationRail.d.ts +0 -12
- package/dist/components/data-grid/ChipInputCell.d.ts +0 -9
- package/dist/components/data-grid/EditableColumnHeader.d.ts +0 -2
- package/dist/components/file/Dropzone.d.ts +0 -8
- package/dist/components/file/FileViewer.d.ts +0 -20
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +0 -17
- package/dist/components/file/fileViewer/FileViewerList.d.ts +0 -12
- package/dist/components/file/fileViewer/ImageViewer.d.ts +0 -6
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +0 -15
- package/dist/components/form/FormAutocomplete.d.ts +0 -7
- package/dist/components/form/FormCheckbox.d.ts +0 -7
- package/dist/components/form/FormDatePicker.d.ts +0 -8
- package/dist/components/form/FormDateRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormNumberField.d.ts +0 -9
- package/dist/components/form/FormRadioGroup.d.ts +0 -13
- package/dist/components/form/FormSlider.d.ts +0 -7
- package/dist/components/form/FormSubmitButton.d.ts +0 -4
- package/dist/components/form/FormSwitch.d.ts +0 -7
- package/dist/components/form/FormTextField.d.ts +0 -7
- package/dist/components/form/FormTimePicker.d.ts +0 -8
- package/dist/components/form/FormTimeRangePicker.d.ts +0 -8
- package/dist/components/router/RouterButton.d.ts +0 -6
- package/dist/components/router/RouterError.d.ts +0 -7
- package/dist/components/router/RouterGridActionsCellItem.d.ts +0 -6
- package/dist/components/router/RouterIconButton.d.ts +0 -6
- package/dist/components/router/RouterLink.d.ts +0 -6
- package/dist/components/router/RouterListItemButton.d.ts +0 -6
- package/dist/components/router/RouterNotFound.d.ts +0 -1
- package/dist/components/router/RouterTab.d.ts +0 -6
- package/dist/contexts/DialogsContext.d.ts +0 -6
- package/dist/contexts/FileContext.d.ts +0 -13
- package/dist/env.d.ts +0 -10
- package/dist/exports/client.d.ts +0 -5
- package/dist/exports/components.d.ts +0 -14
- package/dist/exports/hooks.d.ts +0 -4
- package/dist/exports/index.d.ts +0 -3
- package/dist/exports/models.d.ts +0 -25
- package/dist/exports/queries.d.ts +0 -4
- package/dist/exports/server.d.ts +0 -3
- package/dist/exports/utils.d.ts +0 -3
- package/dist/exports/vite.d.ts +0 -1
- package/dist/hooks/DialogsHooks.d.ts +0 -42
- package/dist/hooks/FormHooks.d.ts +0 -52
- package/dist/hooks/ThemeHook.d.ts +0 -4
- package/dist/lib/auth/auth-client.d.ts +0 -688
- package/dist/lib/auth/auth.d.ts +0 -24
- package/dist/lib/db/index.d.ts +0 -4
- package/dist/lib/db/schemas/auth.d.ts +0 -606
- package/dist/lib/utils.d.ts +0 -50
- package/dist/lib/vite-plugin.d.ts +0 -2
- package/dist/models/Navigation.d.ts +0 -18
- package/dist/models/User.d.ts +0 -8
- package/dist/models/approval/Approval.d.ts +0 -177
- package/dist/models/approval/ApprovalEmployee.d.ts +0 -7
- package/dist/models/approval/ApprovalFlow.d.ts +0 -49
- package/dist/models/approval/ApprovalFlowStep.d.ts +0 -29
- package/dist/models/approval/ApprovalRequestType.d.ts +0 -5
- package/dist/models/approval/ApprovalStatus.d.ts +0 -9
- package/dist/models/approval/ApprovalStepResult.d.ts +0 -11
- package/dist/models/approval/StepApprovalOrder.d.ts +0 -6
- package/dist/models/email/Email.d.ts +0 -13
- package/dist/models/email/EmailAttachment.d.ts +0 -6
- package/dist/models/file/FileActions.d.ts +0 -6
- package/dist/models/file/FileMeta.d.ts +0 -15
- package/dist/models/peoplesoft/Department.d.ts +0 -58
- package/dist/models/peoplesoft/Employee.d.ts +0 -46
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +0 -6
- package/dist/providers/DialogsProvider.d.ts +0 -6
- package/dist/providers/LayoutProvider.d.ts +0 -11
- package/dist/queries/Approval.d.ts +0 -585
- package/dist/queries/ApprovalHooks.d.ts +0 -315
- package/dist/queries/FileHooks.d.ts +0 -151
- package/dist/queries/PeopleSoftHooks.d.ts +0 -537
|
@@ -1,315 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,151 +0,0 @@
|
|
|
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 {};
|