wcz-test 6.24.1 → 6.24.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/ApprovalStatus-BtAVFn5p.js +8 -0
- package/dist/ApprovalStatus-BtAVFn5p.js.map +1 -0
- package/dist/{node_modules/react/cjs/react-jsx-runtime.development.js → DialogsContext-BKtkEAfL.js} +48 -4
- package/dist/DialogsContext-BKtkEAfL.js.map +1 -0
- package/dist/{hooks/DialogsHooks.js → DialogsHooks-BQVpqCq9.js} +4 -7
- package/dist/DialogsHooks-BQVpqCq9.js.map +1 -0
- package/dist/FileHooks-Cg9ver7z.js +3478 -0
- package/dist/FileHooks-Cg9ver7z.js.map +1 -0
- package/dist/{models/file/FileMeta.js → FileMeta-G1oT3mYK.js} +2 -2
- package/dist/FileMeta-G1oT3mYK.js.map +1 -0
- package/dist/{components/router/RouterListItemButton.js → RouterListItemButton-IUVgwnz3.js} +4 -4
- package/dist/RouterListItemButton-IUVgwnz3.js.map +1 -0
- package/dist/client.js +4 -4
- package/dist/compiler-runtime-BGHur82y.js +46 -0
- package/dist/compiler-runtime-BGHur82y.js.map +1 -0
- package/dist/components.js +1486 -15
- package/dist/components.js.map +1 -1
- package/dist/{env.js → env-gsqZ6zZD.js} +3 -3
- package/dist/env-gsqZ6zZD.js.map +1 -0
- package/dist/exports/client.d.ts +17 -4
- package/dist/exports/components.d.ts +44 -14
- package/dist/exports/hooks.d.ts +23 -4
- package/dist/exports/index.d.ts +17 -4
- package/dist/exports/models.d.ts +107 -25
- package/dist/exports/queries.d.ts +95 -4
- package/dist/exports/server.d.ts +14 -4
- package/dist/exports/utils.d.ts +11 -3
- package/dist/exports/vite.d.ts +5 -1
- package/dist/hooks.js +1000 -3
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +1752 -4
- package/dist/index.js.map +1 -1
- package/dist/models.js +159 -10
- package/dist/models.js.map +1 -1
- package/dist/queries.js +935 -14
- package/dist/queries.js.map +1 -1
- package/dist/{lib/queryClient.js → queryClient-CNvC95mU.js} +2 -2
- package/dist/queryClient-CNvC95mU.js.map +1 -0
- package/dist/server.js +84 -1
- package/dist/server.js.map +1 -1
- package/dist/{lib/auth/session.js → session-vW7WZadj.js} +23 -8
- package/dist/session-vW7WZadj.js.map +1 -0
- package/dist/{lib/utils.js → utils-MD9YwOtu.js} +9 -9
- package/dist/utils-MD9YwOtu.js.map +1 -0
- package/dist/utils.js +2 -2
- package/dist/vite.js +61 -1
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/compiler-runtime.js +0 -6
- package/dist/_virtual/compiler-runtime.js.map +0 -1
- package/dist/_virtual/compiler-runtime2.js +0 -5
- package/dist/_virtual/compiler-runtime2.js.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/_virtual/react-compiler-runtime.development.js +0 -5
- package/dist/_virtual/react-compiler-runtime.development.js.map +0 -1
- package/dist/_virtual/react-compiler-runtime.production.js +0 -5
- package/dist/_virtual/react-compiler-runtime.production.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js.map +0 -1
- package/dist/components/core/AppTitle.d.ts +0 -2
- package/dist/components/core/AppTitle.js +0 -23
- package/dist/components/core/AppTitle.js.map +0 -1
- package/dist/components/core/Fullscreen.d.ts +0 -3
- package/dist/components/core/Fullscreen.js +0 -104
- package/dist/components/core/Fullscreen.js.map +0 -1
- package/dist/components/core/Layout.d.ts +0 -8
- package/dist/components/core/Layout.js +0 -214
- package/dist/components/core/Layout.js.map +0 -1
- package/dist/components/core/ToolbarAccount.d.ts +0 -2
- package/dist/components/core/ToolbarAccount.js +0 -582
- package/dist/components/core/ToolbarAccount.js.map +0 -1
- package/dist/components/core/TypographyWithIcon.d.ts +0 -7
- package/dist/components/core/TypographyWithIcon.js +0 -117
- package/dist/components/core/TypographyWithIcon.js.map +0 -1
- package/dist/components/core/navigation/NavigationList.d.ts +0 -22
- package/dist/components/core/navigation/NavigationList.js +0 -166
- package/dist/components/core/navigation/NavigationList.js.map +0 -1
- package/dist/components/core/navigation/NavigationListItem.d.ts +0 -16
- package/dist/components/core/navigation/NavigationListItem.js +0 -467
- package/dist/components/core/navigation/NavigationListItem.js.map +0 -1
- package/dist/components/core/navigation/NavigationRail.d.ts +0 -12
- package/dist/components/core/navigation/NavigationRail.js +0 -141
- package/dist/components/core/navigation/NavigationRail.js.map +0 -1
- package/dist/components/data-grid/ChipInputCell.d.ts +0 -9
- package/dist/components/data-grid/ChipInputCell.js +0 -95
- package/dist/components/data-grid/ChipInputCell.js.map +0 -1
- package/dist/components/data-grid/EditableColumnHeader.d.ts +0 -2
- package/dist/components/data-grid/EditableColumnHeader.js +0 -30
- package/dist/components/data-grid/EditableColumnHeader.js.map +0 -1
- package/dist/components/file/Dropzone.d.ts +0 -8
- package/dist/components/file/Dropzone.js +0 -151
- package/dist/components/file/Dropzone.js.map +0 -1
- package/dist/components/file/FileViewer.d.ts +0 -20
- package/dist/components/file/FileViewer.js +0 -127
- package/dist/components/file/FileViewer.js.map +0 -1
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +0 -17
- package/dist/components/file/fileViewer/FileViewerGrid.js +0 -282
- package/dist/components/file/fileViewer/FileViewerGrid.js.map +0 -1
- package/dist/components/file/fileViewer/FileViewerList.d.ts +0 -12
- package/dist/components/file/fileViewer/FileViewerList.js +0 -191
- package/dist/components/file/fileViewer/FileViewerList.js.map +0 -1
- package/dist/components/file/fileViewer/ImageViewer.d.ts +0 -6
- package/dist/components/file/fileViewer/ImageViewer.js +0 -75
- package/dist/components/file/fileViewer/ImageViewer.js.map +0 -1
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +0 -15
- package/dist/components/file/fileViewer/common/ActionsMenu.js +0 -159
- package/dist/components/file/fileViewer/common/ActionsMenu.js.map +0 -1
- package/dist/components/form/FormAutocomplete.d.ts +0 -7
- package/dist/components/form/FormAutocomplete.js +0 -80
- package/dist/components/form/FormAutocomplete.js.map +0 -1
- package/dist/components/form/FormCheckbox.d.ts +0 -7
- package/dist/components/form/FormCheckbox.js +0 -81
- package/dist/components/form/FormCheckbox.js.map +0 -1
- package/dist/components/form/FormDatePicker.d.ts +0 -8
- package/dist/components/form/FormDatePicker.js +0 -77
- package/dist/components/form/FormDatePicker.js.map +0 -1
- package/dist/components/form/FormDateRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateRangePicker.js +0 -77
- package/dist/components/form/FormDateRangePicker.js.map +0 -1
- package/dist/components/form/FormDateTimePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimePicker.js +0 -77
- package/dist/components/form/FormDateTimePicker.js.map +0 -1
- package/dist/components/form/FormDateTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimeRangePicker.js +0 -77
- package/dist/components/form/FormDateTimeRangePicker.js.map +0 -1
- package/dist/components/form/FormNumberField.d.ts +0 -9
- package/dist/components/form/FormNumberField.js +0 -73
- package/dist/components/form/FormNumberField.js.map +0 -1
- package/dist/components/form/FormRadioGroup.d.ts +0 -13
- package/dist/components/form/FormRadioGroup.js +0 -113
- package/dist/components/form/FormRadioGroup.js.map +0 -1
- package/dist/components/form/FormSlider.d.ts +0 -7
- package/dist/components/form/FormSlider.js +0 -94
- package/dist/components/form/FormSlider.js.map +0 -1
- package/dist/components/form/FormSubmitButton.d.ts +0 -4
- package/dist/components/form/FormSubmitButton.js +0 -50
- package/dist/components/form/FormSubmitButton.js.map +0 -1
- package/dist/components/form/FormSwitch.d.ts +0 -7
- package/dist/components/form/FormSwitch.js +0 -81
- package/dist/components/form/FormSwitch.js.map +0 -1
- package/dist/components/form/FormTextField.d.ts +0 -7
- package/dist/components/form/FormTextField.js +0 -52
- package/dist/components/form/FormTextField.js.map +0 -1
- package/dist/components/form/FormTimePicker.d.ts +0 -8
- package/dist/components/form/FormTimePicker.js +0 -77
- package/dist/components/form/FormTimePicker.js.map +0 -1
- package/dist/components/form/FormTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormTimeRangePicker.js +0 -77
- package/dist/components/form/FormTimeRangePicker.js.map +0 -1
- package/dist/components/router/RouterButton.d.ts +0 -6
- package/dist/components/router/RouterButton.js +0 -35
- package/dist/components/router/RouterButton.js.map +0 -1
- package/dist/components/router/RouterError.d.ts +0 -7
- package/dist/components/router/RouterError.js +0 -62
- package/dist/components/router/RouterError.js.map +0 -1
- package/dist/components/router/RouterGridActionsCellItem.d.ts +0 -6
- package/dist/components/router/RouterGridActionsCellItem.js +0 -35
- package/dist/components/router/RouterGridActionsCellItem.js.map +0 -1
- package/dist/components/router/RouterIconButton.d.ts +0 -6
- package/dist/components/router/RouterIconButton.js +0 -35
- package/dist/components/router/RouterIconButton.js.map +0 -1
- package/dist/components/router/RouterLink.d.ts +0 -6
- package/dist/components/router/RouterLink.js +0 -35
- package/dist/components/router/RouterLink.js.map +0 -1
- package/dist/components/router/RouterListItemButton.d.ts +0 -6
- package/dist/components/router/RouterListItemButton.js.map +0 -1
- package/dist/components/router/RouterNotFound.d.ts +0 -1
- package/dist/components/router/RouterNotFound.js +0 -53
- package/dist/components/router/RouterNotFound.js.map +0 -1
- package/dist/components/router/RouterTab.d.ts +0 -6
- package/dist/components/router/RouterTab.js +0 -35
- package/dist/components/router/RouterTab.js.map +0 -1
- package/dist/contexts/DialogsContext.d.ts +0 -6
- package/dist/contexts/DialogsContext.js +0 -6
- package/dist/contexts/DialogsContext.js.map +0 -1
- package/dist/contexts/FileContext.d.ts +0 -13
- package/dist/contexts/FileContext.js +0 -14
- package/dist/contexts/FileContext.js.map +0 -1
- package/dist/env.d.ts +0 -13
- package/dist/env.js.map +0 -1
- package/dist/hooks/DialogsHooks.d.ts +0 -42
- package/dist/hooks/DialogsHooks.js.map +0 -1
- package/dist/hooks/FormHooks.d.ts +0 -52
- package/dist/hooks/FormHooks.js +0 -55
- package/dist/hooks/FormHooks.js.map +0 -1
- package/dist/lib/auth/api.d.ts +0 -3
- package/dist/lib/auth/api.js +0 -91
- package/dist/lib/auth/api.js.map +0 -1
- package/dist/lib/auth/entra.d.ts +0 -2
- package/dist/lib/auth/entra.js +0 -7
- package/dist/lib/auth/entra.js.map +0 -1
- package/dist/lib/auth/graph.d.ts +0 -17
- package/dist/lib/auth/graph.js +0 -72
- package/dist/lib/auth/graph.js.map +0 -1
- package/dist/lib/auth/session.d.ts +0 -24
- package/dist/lib/auth/session.js.map +0 -1
- package/dist/lib/queryClient.d.ts +0 -2
- package/dist/lib/queryClient.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -52
- package/dist/lib/utils.js.map +0 -1
- package/dist/lib/vite-plugin.d.ts +0 -2
- package/dist/lib/vite-plugin.js +0 -65
- package/dist/lib/vite-plugin.js.map +0 -1
- package/dist/middleware/auth.d.ts +0 -22
- package/dist/models/Navigation.d.ts +0 -18
- package/dist/models/User.d.ts +0 -16
- package/dist/models/User.js +0 -18
- package/dist/models/User.js.map +0 -1
- package/dist/models/approval/Approval.d.ts +0 -177
- package/dist/models/approval/Approval.js +0 -81
- package/dist/models/approval/Approval.js.map +0 -1
- package/dist/models/approval/ApprovalEmployee.d.ts +0 -7
- package/dist/models/approval/ApprovalEmployee.js +0 -10
- package/dist/models/approval/ApprovalEmployee.js.map +0 -1
- package/dist/models/approval/ApprovalFlow.d.ts +0 -49
- package/dist/models/approval/ApprovalFlow.js +0 -15
- package/dist/models/approval/ApprovalFlow.js.map +0 -1
- package/dist/models/approval/ApprovalFlowStep.d.ts +0 -29
- package/dist/models/approval/ApprovalFlowStep.js +0 -17
- package/dist/models/approval/ApprovalFlowStep.js.map +0 -1
- package/dist/models/approval/ApprovalRequestType.d.ts +0 -5
- package/dist/models/approval/ApprovalRequestType.js +0 -6
- package/dist/models/approval/ApprovalRequestType.js.map +0 -1
- package/dist/models/approval/ApprovalStatus.d.ts +0 -9
- package/dist/models/approval/ApprovalStatus.js +0 -6
- package/dist/models/approval/ApprovalStatus.js.map +0 -1
- package/dist/models/approval/ApprovalStepResult.d.ts +0 -11
- package/dist/models/approval/ApprovalStepResult.js +0 -6
- package/dist/models/approval/ApprovalStepResult.js.map +0 -1
- package/dist/models/approval/StepApprovalOrder.d.ts +0 -6
- package/dist/models/approval/StepApprovalOrder.js +0 -6
- package/dist/models/approval/StepApprovalOrder.js.map +0 -1
- package/dist/models/email/Email.d.ts +0 -13
- package/dist/models/email/Email.js +0 -14
- package/dist/models/email/Email.js.map +0 -1
- package/dist/models/email/EmailAttachment.d.ts +0 -6
- package/dist/models/email/EmailAttachment.js +0 -9
- package/dist/models/email/EmailAttachment.js.map +0 -1
- package/dist/models/file/FileActions.d.ts +0 -6
- package/dist/models/file/FileMeta.d.ts +0 -15
- package/dist/models/file/FileMeta.js.map +0 -1
- package/dist/models/peoplesoft/Department.d.ts +0 -58
- package/dist/models/peoplesoft/Department.js +0 -19
- package/dist/models/peoplesoft/Department.js.map +0 -1
- package/dist/models/peoplesoft/Employee.d.ts +0 -46
- package/dist/models/peoplesoft/Employee.js +0 -43
- package/dist/models/peoplesoft/Employee.js.map +0 -1
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js +0 -6
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js.map +0 -1
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.js +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.js.map +0 -1
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -22
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -33
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
- package/dist/node_modules/react/compiler-runtime.js +0 -18
- package/dist/node_modules/react/compiler-runtime.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -18
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/dist/providers/DialogsProvider.d.ts +0 -5
- package/dist/providers/DialogsProvider.js +0 -79
- package/dist/providers/DialogsProvider.js.map +0 -1
- package/dist/providers/LayoutProvider.d.ts +0 -11
- package/dist/providers/LayoutProvider.js +0 -94
- package/dist/providers/LayoutProvider.js.map +0 -1
- package/dist/queries/ApprovalHooks.d.ts +0 -338
- package/dist/queries/ApprovalHooks.js +0 -326
- package/dist/queries/ApprovalHooks.js.map +0 -1
- package/dist/queries/FileHooks.d.ts +0 -151
- package/dist/queries/FileHooks.js +0 -493
- package/dist/queries/FileHooks.js.map +0 -1
- package/dist/queries/PeopleSoftHooks.d.ts +0 -537
- package/dist/queries/PeopleSoftHooks.js +0 -628
- package/dist/queries/PeopleSoftHooks.js.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
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 declare const setSSRLanguage: import('@tanstack/start-client-core').OptionalFetcher<undefined, undefined, Promise<void>>;
|
|
11
|
-
export {};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { c as compilerRuntimeExports } from "../_virtual/compiler-runtime.js";
|
|
3
|
-
import { ThemeProvider } from "@mui/material";
|
|
4
|
-
import { LocalizationProvider } from "@mui/x-date-pickers";
|
|
5
|
-
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
|
6
|
-
import { createServerFn } from "@tanstack/react-start";
|
|
7
|
-
import { getCookie } from "@tanstack/react-start/server";
|
|
8
|
-
import dayjs from "dayjs";
|
|
9
|
-
import i18n from "i18next";
|
|
10
|
-
import LanguageDetector from "i18next-browser-languagedetector";
|
|
11
|
-
import { useEffectEvent, useEffect } from "react";
|
|
12
|
-
import { initReactI18next } from "react-i18next";
|
|
13
|
-
import { resources } from "virtual:wcz-layout";
|
|
14
|
-
import z__default from "zod";
|
|
15
|
-
import { DialogsProvider } from "./DialogsProvider.js";
|
|
16
|
-
import { Layout } from "../components/core/Layout.js";
|
|
17
|
-
const YEAR_IN_MINUTES = 60 * 24 * 365;
|
|
18
|
-
i18n.use(LanguageDetector).use(initReactI18next).init({
|
|
19
|
-
resources,
|
|
20
|
-
fallbackLng: "en",
|
|
21
|
-
supportedLngs: Object.keys(resources),
|
|
22
|
-
detection: {
|
|
23
|
-
caches: ["cookie"],
|
|
24
|
-
cookieMinutes: YEAR_IN_MINUTES
|
|
25
|
-
},
|
|
26
|
-
interpolation: {
|
|
27
|
-
escapeValue: false
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const LayoutProvider = (t0) => {
|
|
31
|
-
const $ = compilerRuntimeExports.c(9);
|
|
32
|
-
const {
|
|
33
|
-
navigation,
|
|
34
|
-
theme,
|
|
35
|
-
children
|
|
36
|
-
} = t0;
|
|
37
|
-
const languageChangedHandler = useEffectEvent(_temp);
|
|
38
|
-
let t1;
|
|
39
|
-
if ($[0] !== languageChangedHandler) {
|
|
40
|
-
t1 = () => {
|
|
41
|
-
languageChangedHandler();
|
|
42
|
-
i18n.on("languageChanged", languageChangedHandler);
|
|
43
|
-
return () => {
|
|
44
|
-
i18n.off("languageChanged", languageChangedHandler);
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
$[0] = languageChangedHandler;
|
|
48
|
-
$[1] = t1;
|
|
49
|
-
} else {
|
|
50
|
-
t1 = $[1];
|
|
51
|
-
}
|
|
52
|
-
let t2;
|
|
53
|
-
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
54
|
-
t2 = [];
|
|
55
|
-
$[2] = t2;
|
|
56
|
-
} else {
|
|
57
|
-
t2 = $[2];
|
|
58
|
-
}
|
|
59
|
-
useEffect(t1, t2);
|
|
60
|
-
let t3;
|
|
61
|
-
if ($[3] !== children || $[4] !== navigation) {
|
|
62
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n.language, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogsProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Layout, { navigation, children }) }) }, i18n.language);
|
|
63
|
-
$[3] = children;
|
|
64
|
-
$[4] = navigation;
|
|
65
|
-
$[5] = t3;
|
|
66
|
-
} else {
|
|
67
|
-
t3 = $[5];
|
|
68
|
-
}
|
|
69
|
-
let t4;
|
|
70
|
-
if ($[6] !== t3 || $[7] !== theme) {
|
|
71
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: t3 });
|
|
72
|
-
$[6] = t3;
|
|
73
|
-
$[7] = theme;
|
|
74
|
-
$[8] = t4;
|
|
75
|
-
} else {
|
|
76
|
-
t4 = $[8];
|
|
77
|
-
}
|
|
78
|
-
return t4;
|
|
79
|
-
};
|
|
80
|
-
const setSSRLanguage = createServerFn().handler(async () => {
|
|
81
|
-
const language = getCookie(i18n.services.languageDetector.options.lookupCookie) || "en";
|
|
82
|
-
z__default.config(z__default.core.locales[language]());
|
|
83
|
-
dayjs.locale(language);
|
|
84
|
-
await i18n.changeLanguage(language);
|
|
85
|
-
});
|
|
86
|
-
function _temp() {
|
|
87
|
-
z__default.config(z__default.core.locales[i18n.language]());
|
|
88
|
-
dayjs.locale(i18n.language);
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
LayoutProvider,
|
|
92
|
-
setSSRLanguage
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=LayoutProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutProvider.js","sources":["../../src/providers/LayoutProvider.tsx"],"sourcesContent":["import { ThemeProvider } from \"@mui/material\";\r\nimport { LocalizationProvider } from \"@mui/x-date-pickers\";\r\nimport { AdapterDayjs } from \"@mui/x-date-pickers/AdapterDayjs\";\r\nimport { createServerFn } from \"@tanstack/react-start\";\r\nimport { getCookie } from \"@tanstack/react-start/server\";\r\nimport dayjs from \"dayjs\";\r\nimport i18n from \"i18next\";\r\nimport LanguageDetector from \"i18next-browser-languagedetector\";\r\nimport { useEffect, useEffectEvent } from \"react\";\r\nimport { initReactI18next } from \"react-i18next\";\r\nimport { resources } from \"virtual:wcz-layout\";\r\nimport z from \"zod\";\r\nimport { DialogsProvider } from \"./DialogsProvider\";\r\nimport type { Navigation } from \"~/models/Navigation\";\r\nimport type { FC, ReactNode } from \"react\";\r\nimport type { Theme } from \"@mui/material\";\r\nimport { Layout } from \"~/components/core/Layout\";\r\n\r\nconst YEAR_IN_MINUTES = 60 * 24 * 365;\r\n\r\ni18n\r\n .use(LanguageDetector)\r\n .use(initReactI18next)\r\n .init({\r\n resources,\r\n fallbackLng: \"en\",\r\n supportedLngs: Object.keys(resources),\r\n detection: {\r\n caches: [\"cookie\"],\r\n cookieMinutes: YEAR_IN_MINUTES,\r\n },\r\n interpolation: { escapeValue: false },\r\n });\r\n\r\ninterface ProvidersProps {\r\n navigation?: Navigation;\r\n theme: Theme;\r\n children: ReactNode;\r\n}\r\n\r\nexport const LayoutProvider: FC<ProvidersProps> = ({ navigation, theme, children }) => {\r\n const languageChangedHandler = useEffectEvent(() => {\r\n z.config(z.core.locales[i18n.language as keyof typeof z.core.locales]());\r\n dayjs.locale(i18n.language);\r\n });\r\n\r\n useEffect(() => {\r\n languageChangedHandler();\r\n\r\n i18n.on(\"languageChanged\", languageChangedHandler);\r\n return () => { i18n.off(\"languageChanged\", languageChangedHandler); };\r\n }, []);\r\n\r\n return (\r\n <ThemeProvider theme={theme}>\r\n <LocalizationProvider key={i18n.language} dateAdapter={AdapterDayjs} adapterLocale={i18n.language}>\r\n <DialogsProvider>\r\n <Layout navigation={navigation}>\r\n {children}\r\n </Layout>\r\n </DialogsProvider>\r\n </LocalizationProvider>\r\n </ThemeProvider>\r\n );\r\n};\r\n\r\nexport const setSSRLanguage = createServerFn().handler(async () => {\r\n const language = getCookie(i18n.services.languageDetector.options.lookupCookie) || \"en\";\r\n z.config(z.core.locales[language as keyof typeof z.core.locales]());\r\n dayjs.locale(language);\r\n await i18n.changeLanguage(language);\r\n});\r\n"],"names":["YEAR_IN_MINUTES","i18n","use","LanguageDetector","initReactI18next","init","resources","fallbackLng","supportedLngs","Object","keys","detection","caches","cookieMinutes","interpolation","escapeValue","LayoutProvider","t0","$","_c","navigation","theme","children","languageChangedHandler","useEffectEvent","_temp","t1","on","off","t2","Symbol","for","useEffect","t3","AdapterDayjs","language","jsx","t4","setSSRLanguage","createServerFn","handler","getCookie","services","languageDetector","options","lookupCookie","z","config","core","locales","dayjs","locale","changeLanguage"],"mappings":";;;;;;;;;;;;;;;;AAkBA,MAAMA,kBAAkB,KAAK,KAAK;AAElCC,KACKC,IAAIC,gBAAgB,EACpBD,IAAIE,gBAAgB,EACpBC,KAAK;AAAA,EACFC;AAAAA,EACAC,aAAa;AAAA,EACbC,eAAeC,OAAOC,KAAKJ,SAAS;AAAA,EACpCK,WAAW;AAAA,IACPC,QAAQ,CAAC,QAAQ;AAAA,IACjBC,eAAeb;AAAAA,EAAAA;AAAAA,EAEnBc,eAAe;AAAA,IAAEC,aAAa;AAAA,EAAA;AAClC,CAAC;AAQE,MAAMC,iBAAqCC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,CAAA;AAAC,QAAA;AAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAAL;AAC/C,QAAAM,yBAA+BC,eAAeC,KAG7C;AAAE,MAAAC;AAAA,MAAAR,SAAAK,wBAAA;AAEOG,SAAAA,MAAA;AACNH,6BAAAA;AAEAtB,WAAI0B,GAAI,mBAAmBJ,sBAAsB;AAAC,aAC3C,MAAA;AAAQtB,aAAI2B,IAAK,mBAAmBL,sBAAsB;AAAA,MAAC;AAAA,IAAG;AACxEL,WAAAK;AAAAL,WAAAQ;AAAAA,EAAA,OAAA;AAAAA,SAAAR,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAW;AAAA,MAAAX,EAAA,CAAA,MAAAY,uBAAAC,IAAA,2BAAA,GAAA;AAAEF,SAAA,CAAA;AAAEX,WAAAW;AAAAA,EAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AALLc,YAAUN,IAKPG,EAAE;AAAC,MAAAI;AAAA,MAAAf,EAAA,CAAA,MAAAI,YAAAJ,SAAAE,YAAA;AAIEa,+CAAC,sBAAA,EAAsDC,2BAA6B,eAAAjC,KAAIkC,UACpF,UAAAC,kCAAAA,IAAC,iBAAA,EACG,UAAAA,kCAAAA,IAAC,UAAmBhB,YACfE,SAAAA,CACL,GACJ,EAAA,GALuBrB,KAAIkC,QAM/B;AAAuBjB,WAAAI;AAAAJ,WAAAE;AAAAF,WAAAe;AAAAA,EAAA,OAAA;AAAAA,SAAAf,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAmB;AAAA,MAAAnB,EAAA,CAAA,MAAAe,MAAAf,SAAAG,OAAA;AAP3BgB,SAAAD,kCAAAA,IAAC,eAAA,EAAqBf,OAClBY,UAAAA,IAOJ;AAAgBf,WAAAe;AAAAf,WAAAG;AAAAH,WAAAmB;AAAAA,EAAA,OAAA;AAAAA,SAAAnB,EAAA,CAAA;AAAA,EAAA;AAAA,SARhBmB;AAQgB;AAIjB,MAAMC,iBAAiBC,iBAAiBC,QAAQ,YAAY;AAC/D,QAAML,WAAWM,UAAUxC,KAAKyC,SAASC,iBAAiBC,QAAQC,YAAY,KAAK;AACnFC,aAAEC,OAAOD,WAAEE,KAAKC,QAAQd,QAAuC,GAAG;AAClEe,QAAMC,OAAOhB,QAAQ;AACrB,QAAMlC,KAAKmD,eAAejB,QAAQ;AACtC,CAAC;AA/BiD,SAAAV,QAAA;AAE1CqB,aAACC,OAAQD,WAACE,KAAKC,QAAShD,KAAIkC,QAAwC,GAAG;AACvEe,QAAKC,OAAQlD,KAAIkC,QAAS;AAAC;"}
|
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import { default as z } from 'zod';
|
|
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
|
-
declare const GetApprovalsParamsSchema: z.ZodObject<{
|
|
12
|
-
appName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
13
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
14
|
-
WaitingForApproval: "WaitingForApproval";
|
|
15
|
-
Approved: "Approved";
|
|
16
|
-
Rejected: "Rejected";
|
|
17
|
-
Withdrawn: "Withdrawn";
|
|
18
|
-
Cancelled: "Cancelled";
|
|
19
|
-
PartiallyApproved: "PartiallyApproved";
|
|
20
|
-
}>>;
|
|
21
|
-
approverEmployeeId: z.ZodOptional<z.ZodString>;
|
|
22
|
-
stepResult: z.ZodOptional<z.ZodEnum<{
|
|
23
|
-
NotAvailable: "NotAvailable";
|
|
24
|
-
FutureApproval: "FutureApproval";
|
|
25
|
-
WaitingForApproval: "WaitingForApproval";
|
|
26
|
-
Approved: "Approved";
|
|
27
|
-
Rejected: "Rejected";
|
|
28
|
-
Skipped: "Skipped";
|
|
29
|
-
Withdrawn: "Withdrawn";
|
|
30
|
-
Cancelled: "Cancelled";
|
|
31
|
-
}>>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type GetApprovalsParams = z.infer<typeof GetApprovalsParamsSchema>;
|
|
34
|
-
export declare const useGetApprovals: (params?: GetApprovalsParams, options?: UseGetApprovalsOptions) => import('@tanstack/react-query').UseQueryResult<{
|
|
35
|
-
id: string;
|
|
36
|
-
applicationName: string;
|
|
37
|
-
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
38
|
-
emailBody: string;
|
|
39
|
-
created: Date;
|
|
40
|
-
createdBy: {
|
|
41
|
-
employeeId: string;
|
|
42
|
-
name: string;
|
|
43
|
-
email: string;
|
|
44
|
-
};
|
|
45
|
-
updated: Date;
|
|
46
|
-
updatedBy: {
|
|
47
|
-
employeeId: string;
|
|
48
|
-
name: string;
|
|
49
|
-
email: string;
|
|
50
|
-
};
|
|
51
|
-
approvalFlows: {
|
|
52
|
-
id: string;
|
|
53
|
-
approvalStage: number;
|
|
54
|
-
approvalSequence: number;
|
|
55
|
-
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
56
|
-
steps: {
|
|
57
|
-
id: string;
|
|
58
|
-
order: number;
|
|
59
|
-
approver: {
|
|
60
|
-
employeeId: string;
|
|
61
|
-
name: string;
|
|
62
|
-
email: string;
|
|
63
|
-
};
|
|
64
|
-
approverRole?: string | undefined;
|
|
65
|
-
actualApprover?: {
|
|
66
|
-
employeeId: string;
|
|
67
|
-
name: string;
|
|
68
|
-
email: string;
|
|
69
|
-
} | undefined;
|
|
70
|
-
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
71
|
-
resultDate?: Date | undefined;
|
|
72
|
-
resultComment?: string | undefined;
|
|
73
|
-
}[];
|
|
74
|
-
batchSequence?: number | undefined;
|
|
75
|
-
isActive?: boolean | undefined;
|
|
76
|
-
}[];
|
|
77
|
-
currentApprovers: {
|
|
78
|
-
employeeId: string;
|
|
79
|
-
name: string;
|
|
80
|
-
email: string;
|
|
81
|
-
}[];
|
|
82
|
-
number?: string | undefined;
|
|
83
|
-
type?: "Single" | "Batch" | undefined;
|
|
84
|
-
}[], Error>;
|
|
85
|
-
export declare const useGetApproval: (id: string, options?: UseGetApprovalOptions) => import('@tanstack/react-query').UseQueryResult<{
|
|
86
|
-
id: string;
|
|
87
|
-
applicationName: string;
|
|
88
|
-
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
89
|
-
emailBody: string;
|
|
90
|
-
created: Date;
|
|
91
|
-
createdBy: {
|
|
92
|
-
employeeId: string;
|
|
93
|
-
name: string;
|
|
94
|
-
email: string;
|
|
95
|
-
};
|
|
96
|
-
updated: Date;
|
|
97
|
-
updatedBy: {
|
|
98
|
-
employeeId: string;
|
|
99
|
-
name: string;
|
|
100
|
-
email: string;
|
|
101
|
-
};
|
|
102
|
-
approvalFlows: {
|
|
103
|
-
id: string;
|
|
104
|
-
approvalStage: number;
|
|
105
|
-
approvalSequence: number;
|
|
106
|
-
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
107
|
-
steps: {
|
|
108
|
-
id: string;
|
|
109
|
-
order: number;
|
|
110
|
-
approver: {
|
|
111
|
-
employeeId: string;
|
|
112
|
-
name: string;
|
|
113
|
-
email: string;
|
|
114
|
-
};
|
|
115
|
-
approverRole?: string | undefined;
|
|
116
|
-
actualApprover?: {
|
|
117
|
-
employeeId: string;
|
|
118
|
-
name: string;
|
|
119
|
-
email: string;
|
|
120
|
-
} | undefined;
|
|
121
|
-
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
122
|
-
resultDate?: Date | undefined;
|
|
123
|
-
resultComment?: string | undefined;
|
|
124
|
-
}[];
|
|
125
|
-
batchSequence?: number | undefined;
|
|
126
|
-
isActive?: boolean | undefined;
|
|
127
|
-
}[];
|
|
128
|
-
currentApprovers: {
|
|
129
|
-
employeeId: string;
|
|
130
|
-
name: string;
|
|
131
|
-
email: string;
|
|
132
|
-
}[];
|
|
133
|
-
number?: string | undefined;
|
|
134
|
-
type?: "Single" | "Batch" | undefined;
|
|
135
|
-
}, Error>;
|
|
136
|
-
export declare const useCreateApproval: (options?: UseCreateApprovalOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
137
|
-
id: string;
|
|
138
|
-
applicationName: string;
|
|
139
|
-
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
140
|
-
emailBody: string;
|
|
141
|
-
created: Date;
|
|
142
|
-
createdBy: {
|
|
143
|
-
employeeId: string;
|
|
144
|
-
name: string;
|
|
145
|
-
email: string;
|
|
146
|
-
};
|
|
147
|
-
updated: Date;
|
|
148
|
-
updatedBy: {
|
|
149
|
-
employeeId: string;
|
|
150
|
-
name: string;
|
|
151
|
-
email: string;
|
|
152
|
-
};
|
|
153
|
-
approvalFlows: {
|
|
154
|
-
id: string;
|
|
155
|
-
approvalStage: number;
|
|
156
|
-
approvalSequence: number;
|
|
157
|
-
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
158
|
-
steps: {
|
|
159
|
-
id: string;
|
|
160
|
-
order: number;
|
|
161
|
-
approver: {
|
|
162
|
-
employeeId: string;
|
|
163
|
-
name: string;
|
|
164
|
-
email: string;
|
|
165
|
-
};
|
|
166
|
-
approverRole?: string | undefined;
|
|
167
|
-
actualApprover?: {
|
|
168
|
-
employeeId: string;
|
|
169
|
-
name: string;
|
|
170
|
-
email: string;
|
|
171
|
-
} | undefined;
|
|
172
|
-
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
173
|
-
resultDate?: Date | undefined;
|
|
174
|
-
resultComment?: string | undefined;
|
|
175
|
-
}[];
|
|
176
|
-
batchSequence?: number | undefined;
|
|
177
|
-
isActive?: boolean | undefined;
|
|
178
|
-
}[];
|
|
179
|
-
currentApprovers: {
|
|
180
|
-
employeeId: string;
|
|
181
|
-
name: string;
|
|
182
|
-
email: string;
|
|
183
|
-
}[];
|
|
184
|
-
number?: string | undefined;
|
|
185
|
-
type?: "Single" | "Batch" | undefined;
|
|
186
|
-
}, Error, {
|
|
187
|
-
id: string;
|
|
188
|
-
applicationName: string;
|
|
189
|
-
emailBody: string;
|
|
190
|
-
approvalFlows: {
|
|
191
|
-
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
192
|
-
approvalStage: number;
|
|
193
|
-
steps: {
|
|
194
|
-
approver: {
|
|
195
|
-
employeeId: string;
|
|
196
|
-
name: string;
|
|
197
|
-
email: string;
|
|
198
|
-
};
|
|
199
|
-
approverRole?: string | undefined;
|
|
200
|
-
}[];
|
|
201
|
-
batchSequence?: number | undefined;
|
|
202
|
-
}[];
|
|
203
|
-
number?: string | undefined;
|
|
204
|
-
type?: "Single" | "Batch" | undefined;
|
|
205
|
-
}, unknown>;
|
|
206
|
-
export declare const useApproveApproval: (options?: UseApproveApprovalOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
207
|
-
id: string;
|
|
208
|
-
applicationName: string;
|
|
209
|
-
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
210
|
-
emailBody: string;
|
|
211
|
-
created: Date;
|
|
212
|
-
createdBy: {
|
|
213
|
-
employeeId: string;
|
|
214
|
-
name: string;
|
|
215
|
-
email: string;
|
|
216
|
-
};
|
|
217
|
-
updated: Date;
|
|
218
|
-
updatedBy: {
|
|
219
|
-
employeeId: string;
|
|
220
|
-
name: string;
|
|
221
|
-
email: string;
|
|
222
|
-
};
|
|
223
|
-
approvalFlows: {
|
|
224
|
-
id: string;
|
|
225
|
-
approvalStage: number;
|
|
226
|
-
approvalSequence: number;
|
|
227
|
-
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
228
|
-
steps: {
|
|
229
|
-
id: string;
|
|
230
|
-
order: number;
|
|
231
|
-
approver: {
|
|
232
|
-
employeeId: string;
|
|
233
|
-
name: string;
|
|
234
|
-
email: string;
|
|
235
|
-
};
|
|
236
|
-
approverRole?: string | undefined;
|
|
237
|
-
actualApprover?: {
|
|
238
|
-
employeeId: string;
|
|
239
|
-
name: string;
|
|
240
|
-
email: string;
|
|
241
|
-
} | undefined;
|
|
242
|
-
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
243
|
-
resultDate?: Date | undefined;
|
|
244
|
-
resultComment?: string | undefined;
|
|
245
|
-
}[];
|
|
246
|
-
batchSequence?: number | undefined;
|
|
247
|
-
isActive?: boolean | undefined;
|
|
248
|
-
}[];
|
|
249
|
-
currentApprovers: {
|
|
250
|
-
employeeId: string;
|
|
251
|
-
name: string;
|
|
252
|
-
email: string;
|
|
253
|
-
}[];
|
|
254
|
-
number?: string | undefined;
|
|
255
|
-
type?: "Single" | "Batch" | undefined;
|
|
256
|
-
}, Error, {
|
|
257
|
-
id: string;
|
|
258
|
-
result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
|
|
259
|
-
emailBody: string;
|
|
260
|
-
resultComment?: string | undefined;
|
|
261
|
-
}, unknown>;
|
|
262
|
-
export declare const useResubmitApproval: (options?: UseResubmitApprovalOptions) => import('@tanstack/react-query').UseMutationResult<{
|
|
263
|
-
id: string;
|
|
264
|
-
applicationName: string;
|
|
265
|
-
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
266
|
-
emailBody: string;
|
|
267
|
-
created: Date;
|
|
268
|
-
createdBy: {
|
|
269
|
-
employeeId: string;
|
|
270
|
-
name: string;
|
|
271
|
-
email: string;
|
|
272
|
-
};
|
|
273
|
-
updated: Date;
|
|
274
|
-
updatedBy: {
|
|
275
|
-
employeeId: string;
|
|
276
|
-
name: string;
|
|
277
|
-
email: string;
|
|
278
|
-
};
|
|
279
|
-
approvalFlows: {
|
|
280
|
-
id: string;
|
|
281
|
-
approvalStage: number;
|
|
282
|
-
approvalSequence: number;
|
|
283
|
-
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
284
|
-
steps: {
|
|
285
|
-
id: string;
|
|
286
|
-
order: number;
|
|
287
|
-
approver: {
|
|
288
|
-
employeeId: string;
|
|
289
|
-
name: string;
|
|
290
|
-
email: string;
|
|
291
|
-
};
|
|
292
|
-
approverRole?: string | undefined;
|
|
293
|
-
actualApprover?: {
|
|
294
|
-
employeeId: string;
|
|
295
|
-
name: string;
|
|
296
|
-
email: string;
|
|
297
|
-
} | undefined;
|
|
298
|
-
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
299
|
-
resultDate?: Date | undefined;
|
|
300
|
-
resultComment?: string | undefined;
|
|
301
|
-
}[];
|
|
302
|
-
batchSequence?: number | undefined;
|
|
303
|
-
isActive?: boolean | undefined;
|
|
304
|
-
}[];
|
|
305
|
-
currentApprovers: {
|
|
306
|
-
employeeId: string;
|
|
307
|
-
name: string;
|
|
308
|
-
email: string;
|
|
309
|
-
}[];
|
|
310
|
-
number?: string | undefined;
|
|
311
|
-
type?: "Single" | "Batch" | undefined;
|
|
312
|
-
}, Error, {
|
|
313
|
-
id: string;
|
|
314
|
-
approvalFlows: {
|
|
315
|
-
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
316
|
-
approvalStage: number;
|
|
317
|
-
steps: {
|
|
318
|
-
approver: {
|
|
319
|
-
employeeId: string;
|
|
320
|
-
name: string;
|
|
321
|
-
email: string;
|
|
322
|
-
};
|
|
323
|
-
approverRole?: string | undefined;
|
|
324
|
-
}[];
|
|
325
|
-
batchSequence?: number | undefined;
|
|
326
|
-
}[];
|
|
327
|
-
}, unknown>;
|
|
328
|
-
export declare const useWithdrawApproval: (options?: UseWithdrawApprovalOptions) => import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
329
|
-
id: string;
|
|
330
|
-
comment: string;
|
|
331
|
-
emailBody: string;
|
|
332
|
-
}, unknown>;
|
|
333
|
-
export declare const useCancelApproval: (options?: UseCancelApprovalOptions) => import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
334
|
-
id: string;
|
|
335
|
-
comment: string;
|
|
336
|
-
emailBody: string;
|
|
337
|
-
}, unknown>;
|
|
338
|
-
export {};
|