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.
- 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/contexts/DialogsContext.d.ts +6 -0
- package/dist/contexts/FileContext.d.ts +13 -0
- package/dist/hooks/DialogsHooks.d.ts +42 -0
- package/dist/hooks/FormHooks.d.ts +52 -0
- package/dist/hooks/User.d.ts +8 -0
- package/dist/lib/auth/permissions.d.ts +3 -0
- package/dist/lib/auth/scopes.d.ts +3 -0
- package/dist/lib/queryClient.d.ts +2 -0
- package/dist/lib/utils.d.ts +61 -0
- package/dist/lib/vite-plugin.d.ts +2 -0
- package/dist/models/Navigation.d.ts +18 -0
- package/dist/models/User.d.ts +13 -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/models/file/FileMeta.d.ts +15 -0
- 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/providers/AuthProvider.d.ts +8 -0
- package/dist/providers/DialogsProvider.d.ts +5 -0
- package/dist/providers/LayoutProvider.d.ts +10 -0
- package/dist/queries/ApprovalHooks.d.ts +661 -0
- package/dist/queries/FileHooks.d.ts +205 -0
- package/dist/queries/GraphQueries.d.ts +31 -0
- package/dist/queries/PeopleSoftHooks.d.ts +2173 -0
- package/dist/queries/index.d.ts +2958 -0
- package/package.json +8 -8
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
import { DetailedError } from 'tus-js-client';
|
|
3
|
+
import { FileMeta } from '../models/file/FileMeta';
|
|
4
|
+
export declare const api: import('axios').AxiosInstance;
|
|
5
|
+
export declare const GetFileMetasParamsSchema: z.ZodObject<{
|
|
6
|
+
appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
subId: z.ZodUUID;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type GetFileMetasParams = z.infer<typeof GetFileMetasParamsSchema>;
|
|
10
|
+
export declare const GetFileThumbnailParamsSchema: z.ZodObject<{
|
|
11
|
+
appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
12
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
id: z.ZodUUID;
|
|
14
|
+
subId: z.ZodUUID;
|
|
15
|
+
appName: z.ZodString;
|
|
16
|
+
fileName: z.ZodString;
|
|
17
|
+
fileExtension: z.ZodString;
|
|
18
|
+
fileSize: z.ZodNumber;
|
|
19
|
+
mediaSubType: z.ZodString;
|
|
20
|
+
mediaType: z.ZodString;
|
|
21
|
+
mimeType: z.ZodString;
|
|
22
|
+
createdBy: z.ZodString;
|
|
23
|
+
createdDate: z.ZodDate;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type GetFileThumbnailParams = z.infer<typeof GetFileThumbnailParamsSchema>;
|
|
27
|
+
export declare const GetFileParamsSchema: z.ZodObject<{
|
|
28
|
+
appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
29
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
30
|
+
id: z.ZodUUID;
|
|
31
|
+
subId: z.ZodUUID;
|
|
32
|
+
appName: z.ZodString;
|
|
33
|
+
fileName: z.ZodString;
|
|
34
|
+
fileExtension: z.ZodString;
|
|
35
|
+
fileSize: z.ZodNumber;
|
|
36
|
+
mediaSubType: z.ZodString;
|
|
37
|
+
mediaType: z.ZodString;
|
|
38
|
+
mimeType: z.ZodString;
|
|
39
|
+
createdBy: z.ZodString;
|
|
40
|
+
createdDate: z.ZodDate;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type GetFileParams = z.infer<typeof GetFileParamsSchema>;
|
|
44
|
+
export declare const file: {
|
|
45
|
+
metas: (params: GetFileMetasParams) => import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
|
46
|
+
id: string;
|
|
47
|
+
subId: string;
|
|
48
|
+
appName: string;
|
|
49
|
+
fileName: string;
|
|
50
|
+
fileExtension: string;
|
|
51
|
+
fileSize: number;
|
|
52
|
+
mediaSubType: string;
|
|
53
|
+
mediaType: string;
|
|
54
|
+
mimeType: string;
|
|
55
|
+
createdBy: string;
|
|
56
|
+
createdDate: Date;
|
|
57
|
+
}[], Error, {
|
|
58
|
+
id: string;
|
|
59
|
+
subId: string;
|
|
60
|
+
appName: string;
|
|
61
|
+
fileName: string;
|
|
62
|
+
fileExtension: string;
|
|
63
|
+
fileSize: number;
|
|
64
|
+
mediaSubType: string;
|
|
65
|
+
mediaType: string;
|
|
66
|
+
mimeType: string;
|
|
67
|
+
createdBy: string;
|
|
68
|
+
createdDate: Date;
|
|
69
|
+
}[], string[]>, "queryFn"> & {
|
|
70
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<{
|
|
71
|
+
id: string;
|
|
72
|
+
subId: string;
|
|
73
|
+
appName: string;
|
|
74
|
+
fileName: string;
|
|
75
|
+
fileExtension: string;
|
|
76
|
+
fileSize: number;
|
|
77
|
+
mediaSubType: string;
|
|
78
|
+
mediaType: string;
|
|
79
|
+
mimeType: string;
|
|
80
|
+
createdBy: string;
|
|
81
|
+
createdDate: Date;
|
|
82
|
+
}[], string[], never> | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
queryKey: string[] & {
|
|
85
|
+
[dataTagSymbol]: {
|
|
86
|
+
id: string;
|
|
87
|
+
subId: string;
|
|
88
|
+
appName: string;
|
|
89
|
+
fileName: string;
|
|
90
|
+
fileExtension: string;
|
|
91
|
+
fileSize: number;
|
|
92
|
+
mediaSubType: string;
|
|
93
|
+
mediaType: string;
|
|
94
|
+
mimeType: string;
|
|
95
|
+
createdBy: string;
|
|
96
|
+
createdDate: Date;
|
|
97
|
+
}[];
|
|
98
|
+
[dataTagErrorSymbol]: Error;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
thumbnail: (params: GetFileThumbnailParams) => import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Blob, Error, string, (string | undefined)[]>, "queryFn"> & {
|
|
102
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<Blob, (string | undefined)[], never> | undefined;
|
|
103
|
+
} & {
|
|
104
|
+
queryKey: (string | undefined)[] & {
|
|
105
|
+
[dataTagSymbol]: Blob;
|
|
106
|
+
[dataTagErrorSymbol]: Error;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
getOne: (params: GetFileParams) => import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Blob, Error, string, (string | undefined)[]>, "queryFn"> & {
|
|
110
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<Blob, (string | undefined)[], never> | undefined;
|
|
111
|
+
} & {
|
|
112
|
+
queryKey: (string | undefined)[] & {
|
|
113
|
+
[dataTagSymbol]: Blob;
|
|
114
|
+
[dataTagErrorSymbol]: Error;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
download: () => Omit<import('@tanstack/react-query').UseMutationOptions<Blob, Error, {
|
|
118
|
+
id: string;
|
|
119
|
+
subId: string;
|
|
120
|
+
appName: string;
|
|
121
|
+
fileName: string;
|
|
122
|
+
fileExtension: string;
|
|
123
|
+
fileSize: number;
|
|
124
|
+
mediaSubType: string;
|
|
125
|
+
mediaType: string;
|
|
126
|
+
mimeType: string;
|
|
127
|
+
createdBy: string;
|
|
128
|
+
createdDate: Date;
|
|
129
|
+
}, unknown>, "mutationKey">;
|
|
130
|
+
open: () => Omit<import('@tanstack/react-query').UseMutationOptions<Blob, Error, {
|
|
131
|
+
id: string;
|
|
132
|
+
subId: string;
|
|
133
|
+
appName: string;
|
|
134
|
+
fileName: string;
|
|
135
|
+
fileExtension: string;
|
|
136
|
+
fileSize: number;
|
|
137
|
+
mediaSubType: string;
|
|
138
|
+
mediaType: string;
|
|
139
|
+
mimeType: string;
|
|
140
|
+
createdBy: string;
|
|
141
|
+
createdDate: Date;
|
|
142
|
+
}, unknown>, "mutationKey">;
|
|
143
|
+
updateMeta: () => Omit<import('@tanstack/react-query').UseMutationOptions<{
|
|
144
|
+
id: string;
|
|
145
|
+
subId: string;
|
|
146
|
+
appName: string;
|
|
147
|
+
fileName: string;
|
|
148
|
+
fileExtension: string;
|
|
149
|
+
fileSize: number;
|
|
150
|
+
mediaSubType: string;
|
|
151
|
+
mediaType: string;
|
|
152
|
+
mimeType: string;
|
|
153
|
+
createdBy: string;
|
|
154
|
+
createdDate: Date;
|
|
155
|
+
}, Error, {
|
|
156
|
+
id: string;
|
|
157
|
+
subId: string;
|
|
158
|
+
appName: string;
|
|
159
|
+
fileName: string;
|
|
160
|
+
fileExtension: string;
|
|
161
|
+
fileSize: number;
|
|
162
|
+
mediaSubType: string;
|
|
163
|
+
mediaType: string;
|
|
164
|
+
mimeType: string;
|
|
165
|
+
createdBy: string;
|
|
166
|
+
createdDate: Date;
|
|
167
|
+
}, unknown>, "mutationKey">;
|
|
168
|
+
delete: () => Omit<import('@tanstack/react-query').UseMutationOptions<{
|
|
169
|
+
id: string;
|
|
170
|
+
subId: string;
|
|
171
|
+
appName: string;
|
|
172
|
+
fileName: string;
|
|
173
|
+
fileExtension: string;
|
|
174
|
+
fileSize: number;
|
|
175
|
+
mediaSubType: string;
|
|
176
|
+
mediaType: string;
|
|
177
|
+
mimeType: string;
|
|
178
|
+
createdBy: string;
|
|
179
|
+
createdDate: Date;
|
|
180
|
+
}, Error, {
|
|
181
|
+
id: string;
|
|
182
|
+
subId: string;
|
|
183
|
+
appName: string;
|
|
184
|
+
fileName: string;
|
|
185
|
+
fileExtension: string;
|
|
186
|
+
fileSize: number;
|
|
187
|
+
mediaSubType: string;
|
|
188
|
+
mediaType: string;
|
|
189
|
+
mimeType: string;
|
|
190
|
+
createdBy: string;
|
|
191
|
+
createdDate: Date;
|
|
192
|
+
}, unknown>, "mutationKey">;
|
|
193
|
+
batchDelete: () => Omit<import('@tanstack/react-query').UseMutationOptions<string, Error, string, unknown>, "mutationKey">;
|
|
194
|
+
};
|
|
195
|
+
type OptionalId = string | undefined | null;
|
|
196
|
+
interface UseUploadFileProps {
|
|
197
|
+
subId: OptionalId;
|
|
198
|
+
onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
|
|
199
|
+
onError?: (error: Error | DetailedError) => void;
|
|
200
|
+
}
|
|
201
|
+
export declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps) => {
|
|
202
|
+
mutate: (file: File) => Promise<void>;
|
|
203
|
+
progress: number;
|
|
204
|
+
};
|
|
205
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const api: import('axios').AxiosInstance;
|
|
2
|
+
export declare const graphQueries: {
|
|
3
|
+
sessionUserDetail: () => import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
|
4
|
+
displayName: string;
|
|
5
|
+
jobTitle: string;
|
|
6
|
+
}, Error, {
|
|
7
|
+
displayName: string;
|
|
8
|
+
jobTitle: string;
|
|
9
|
+
}, string[]>, "queryFn"> & {
|
|
10
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<{
|
|
11
|
+
displayName: string;
|
|
12
|
+
jobTitle: string;
|
|
13
|
+
}, string[], never> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
queryKey: string[] & {
|
|
16
|
+
[dataTagSymbol]: {
|
|
17
|
+
displayName: string;
|
|
18
|
+
jobTitle: string;
|
|
19
|
+
};
|
|
20
|
+
[dataTagErrorSymbol]: Error;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
sessionUserPhoto: () => import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Blob, Error, string, string[]>, "queryFn"> & {
|
|
24
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<Blob, string[], never> | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
queryKey: string[] & {
|
|
27
|
+
[dataTagSymbol]: Blob;
|
|
28
|
+
[dataTagErrorSymbol]: Error;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|