wcz-test 4.10.0 → 5.0.1
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 +36 -7
- package/dist/index.js +318 -281
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
@@ -9,6 +9,7 @@ import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams, GridAc
|
|
|
9
9
|
import { LinkComponent, ErrorComponentProps, LinkOptions } from '@tanstack/react-router';
|
|
10
10
|
export { uuidv7 } from 'uuidv7';
|
|
11
11
|
import * as axios from 'axios';
|
|
12
|
+
import * as _tanstack_start_client_core from '@tanstack/start-client-core';
|
|
12
13
|
import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
13
14
|
import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
|
|
14
15
|
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
@@ -135,7 +136,9 @@ type Navigation = Array<NavigationItem>;
|
|
|
135
136
|
|
|
136
137
|
interface ProvidersProps {
|
|
137
138
|
navigation?: Navigation;
|
|
138
|
-
theme?:
|
|
139
|
+
theme?: {
|
|
140
|
+
palette?: PaletteOptions;
|
|
141
|
+
} & Pick<CssVarsThemeOptions, "components">;
|
|
139
142
|
children: ReactNode;
|
|
140
143
|
}
|
|
141
144
|
declare const LayoutProvider: FC<ProvidersProps>;
|
|
@@ -187,6 +190,8 @@ declare const rootRouteHead: ({ title }: RootRouteHeadProps) => () => {
|
|
|
187
190
|
declare const wczApiClient: axios.AxiosInstance;
|
|
188
191
|
type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
189
192
|
|
|
193
|
+
declare const getThemeMode: _tanstack_start_client_core.OptionalFetcher<undefined, undefined, "dark" | "light" | "system">;
|
|
194
|
+
|
|
190
195
|
type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
|
|
191
196
|
|
|
192
197
|
interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
|
|
@@ -1190,7 +1195,7 @@ declare const ApprovalSchema: z__default.ZodObject<{
|
|
|
1190
1195
|
}>>;
|
|
1191
1196
|
}, z__default.core.$strip>;
|
|
1192
1197
|
type Approval = z__default.infer<typeof ApprovalSchema>;
|
|
1193
|
-
declare const
|
|
1198
|
+
declare const CreateApprovalSchema: z__default.ZodObject<{
|
|
1194
1199
|
number: z__default.ZodOptional<z__default.ZodString>;
|
|
1195
1200
|
id: z__default.ZodDefault<z__default.ZodUUID>;
|
|
1196
1201
|
type: z__default.ZodDefault<z__default.ZodEnum<{
|
|
@@ -1217,8 +1222,9 @@ declare const ApprovalCreateSchema: z__default.ZodObject<{
|
|
|
1217
1222
|
}, z__default.core.$strip>>;
|
|
1218
1223
|
}, z__default.core.$strip>>;
|
|
1219
1224
|
}, z__default.core.$strip>;
|
|
1220
|
-
type
|
|
1221
|
-
declare const
|
|
1225
|
+
type CreateApproval = z__default.infer<typeof CreateApprovalSchema>;
|
|
1226
|
+
declare const ApproveApprovalSchema: z__default.ZodObject<{
|
|
1227
|
+
id: z__default.ZodUUID;
|
|
1222
1228
|
result: z__default.ZodEnum<{
|
|
1223
1229
|
NotAvailable: "NotAvailable";
|
|
1224
1230
|
FutureApproval: "FutureApproval";
|
|
@@ -1232,13 +1238,36 @@ declare const SingleApprovalSchema: z__default.ZodObject<{
|
|
|
1232
1238
|
resultComment: z__default.ZodOptional<z__default.ZodString>;
|
|
1233
1239
|
emailBody: z__default.ZodString;
|
|
1234
1240
|
}, z__default.core.$strip>;
|
|
1235
|
-
type
|
|
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>;
|
|
1236
1263
|
declare const CancelApprovalSchema: z__default.ZodObject<{
|
|
1264
|
+
id: z__default.ZodUUID;
|
|
1237
1265
|
comment: z__default.ZodString;
|
|
1238
1266
|
emailBody: z__default.ZodString;
|
|
1239
1267
|
}, z__default.core.$strip>;
|
|
1240
1268
|
type CancelApproval = z__default.infer<typeof CancelApprovalSchema>;
|
|
1241
1269
|
declare const WithdrawApprovalSchema: z__default.ZodObject<{
|
|
1270
|
+
id: z__default.ZodUUID;
|
|
1242
1271
|
comment: z__default.ZodString;
|
|
1243
1272
|
emailBody: z__default.ZodString;
|
|
1244
1273
|
}, z__default.core.$strip>;
|
|
@@ -1360,4 +1389,4 @@ declare const StepApprovalOrder: z__default.ZodEnum<{
|
|
|
1360
1389
|
OneOfThem: "OneOfThem";
|
|
1361
1390
|
}>;
|
|
1362
1391
|
|
|
1363
|
-
export { type Approval, type
|
|
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 };
|