wcz-test 6.24.0 → 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} +24 -9
- 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/___vite-browser-external.js +0 -7
- package/dist/_virtual/___vite-browser-external.js.map +0 -1
- package/dist/_virtual/__vite-browser-external.js +0 -5
- package/dist/_virtual/__vite-browser-external.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -37
- package/dist/_virtual/_commonjsHelpers.js.map +0 -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/index.js +0 -8
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/index3.js +0 -5
- package/dist/_virtual/index3.js.map +0 -1
- package/dist/_virtual/index4.js +0 -5
- package/dist/_virtual/index4.js.map +0 -1
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index5.js.map +0 -1
- package/dist/_virtual/index6.js +0 -5
- package/dist/_virtual/index6.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/re.js +0 -5
- package/dist/_virtual/re.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 -97
- 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 -13
- 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/@oslojs/binary/dist/bits.js +0 -7
- package/dist/node_modules/@oslojs/binary/dist/bits.js.map +0 -1
- package/dist/node_modules/@oslojs/binary/dist/uint.js +0 -80
- package/dist/node_modules/@oslojs/binary/dist/uint.js.map +0 -1
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js +0 -182
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js.map +0 -1
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js +0 -83
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js.map +0 -1
- package/dist/node_modules/@oslojs/encoding/dist/base32.js +0 -11
- package/dist/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
- package/dist/node_modules/@oslojs/encoding/dist/base64.js +0 -46
- package/dist/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/dist/index.js +0 -28
- package/dist/node_modules/@oslojs/jwt/dist/index.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js +0 -11
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js +0 -126
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
- package/dist/node_modules/arctic/dist/client.js +0 -12
- package/dist/node_modules/arctic/dist/client.js.map +0 -1
- package/dist/node_modules/arctic/dist/oauth2.js +0 -76
- package/dist/node_modules/arctic/dist/oauth2.js.map +0 -1
- package/dist/node_modules/arctic/dist/oidc.js +0 -14
- package/dist/node_modules/arctic/dist/oidc.js.map +0 -1
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js +0 -73
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js.map +0 -1
- package/dist/node_modules/arctic/dist/request.js +0 -149
- package/dist/node_modules/arctic/dist/request.js.map +0 -1
- package/dist/node_modules/arctic/dist/utils.js +0 -25
- package/dist/node_modules/arctic/dist/utils.js.map +0 -1
- package/dist/node_modules/base64-js/index.js +0 -103
- package/dist/node_modules/base64-js/index.js.map +0 -1
- package/dist/node_modules/buffer/index.js +0 -1598
- package/dist/node_modules/buffer/index.js.map +0 -1
- package/dist/node_modules/buffer-equal-constant-time/index.js +0 -39
- package/dist/node_modules/buffer-equal-constant-time/index.js.map +0 -1
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +0 -140
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js.map +0 -1
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +0 -28
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js.map +0 -1
- package/dist/node_modules/ieee754/index.js +0 -88
- package/dist/node_modules/ieee754/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/decode.js +0 -38
- package/dist/node_modules/jsonwebtoken/decode.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/index.js +0 -25
- package/dist/node_modules/jsonwebtoken/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +0 -23
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js +0 -21
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js +0 -21
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js +0 -14
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/timespan.js +0 -27
- package/dist/node_modules/jsonwebtoken/lib/timespan.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +0 -60
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js +0 -123
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js +0 -388
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js +0 -288
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js +0 -60
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js +0 -53
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js +0 -19
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js +0 -49
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js +0 -29
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js +0 -27
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js +0 -22
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js +0 -18
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js +0 -140
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js +0 -36
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js +0 -14
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js +0 -29
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js +0 -42
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js +0 -23
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js +0 -96
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js +0 -19
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js +0 -35
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js +0 -35
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js +0 -66
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js +0 -81
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js +0 -56
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js +0 -170
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js +0 -15
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js +0 -21
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/sign.js +0 -242
- package/dist/node_modules/jsonwebtoken/sign.js.map +0 -1
- package/dist/node_modules/jsonwebtoken/verify.js +0 -229
- package/dist/node_modules/jsonwebtoken/verify.js.map +0 -1
- package/dist/node_modules/jwa/index.js +0 -233
- package/dist/node_modules/jwa/index.js.map +0 -1
- package/dist/node_modules/jws/index.js +0 -40
- package/dist/node_modules/jws/index.js.map +0 -1
- package/dist/node_modules/jws/lib/data-stream.js +0 -55
- package/dist/node_modules/jws/lib/data-stream.js.map +0 -1
- package/dist/node_modules/jws/lib/sign-stream.js +0 -85
- package/dist/node_modules/jws/lib/sign-stream.js.map +0 -1
- package/dist/node_modules/jws/lib/tostring.js +0 -20
- package/dist/node_modules/jws/lib/tostring.js.map +0 -1
- package/dist/node_modules/jws/lib/verify-stream.js +0 -125
- package/dist/node_modules/jws/lib/verify-stream.js.map +0 -1
- package/dist/node_modules/lodash.includes/index.js +0 -181
- package/dist/node_modules/lodash.includes/index.js.map +0 -1
- package/dist/node_modules/lodash.isboolean/index.js +0 -21
- package/dist/node_modules/lodash.isboolean/index.js.map +0 -1
- package/dist/node_modules/lodash.isinteger/index.js +0 -67
- package/dist/node_modules/lodash.isinteger/index.js.map +0 -1
- package/dist/node_modules/lodash.isnumber/index.js +0 -21
- package/dist/node_modules/lodash.isnumber/index.js.map +0 -1
- package/dist/node_modules/lodash.isplainobject/index.js +0 -48
- package/dist/node_modules/lodash.isplainobject/index.js.map +0 -1
- package/dist/node_modules/lodash.isstring/index.js +0 -22
- package/dist/node_modules/lodash.isstring/index.js.map +0 -1
- package/dist/node_modules/lodash.once/index.js +0 -84
- package/dist/node_modules/lodash.once/index.js.map +0 -1
- package/dist/node_modules/ms/index.js +0 -121
- package/dist/node_modules/ms/index.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/node_modules/safe-buffer/index.js +0 -66
- package/dist/node_modules/safe-buffer/index.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,79 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import useEventCallback from "@mui/utils/useEventCallback";
|
|
3
|
-
import { useState, useId, useRef } from "react";
|
|
4
|
-
import { DialogsContext } from "../contexts/DialogsContext.js";
|
|
5
|
-
function DialogsProvider({
|
|
6
|
-
children
|
|
7
|
-
}) {
|
|
8
|
-
const [stack, setStack] = useState([]);
|
|
9
|
-
const keyPrefix = useId();
|
|
10
|
-
const nextId = useRef(0);
|
|
11
|
-
const dialogMetadata = useRef(/* @__PURE__ */ new WeakMap());
|
|
12
|
-
const requestDialog = useEventCallback(function open(Component, payload, options = {}) {
|
|
13
|
-
const {
|
|
14
|
-
onClose = async () => {
|
|
15
|
-
}
|
|
16
|
-
} = options;
|
|
17
|
-
let resolve;
|
|
18
|
-
const promise = new Promise((resolveImpl) => {
|
|
19
|
-
resolve = resolveImpl;
|
|
20
|
-
});
|
|
21
|
-
const key = `${keyPrefix}-${nextId.current}`;
|
|
22
|
-
nextId.current += 1;
|
|
23
|
-
const newEntry = {
|
|
24
|
-
key,
|
|
25
|
-
open: true,
|
|
26
|
-
promise,
|
|
27
|
-
Component,
|
|
28
|
-
payload,
|
|
29
|
-
onClose,
|
|
30
|
-
resolve
|
|
31
|
-
};
|
|
32
|
-
dialogMetadata.current.set(promise, newEntry);
|
|
33
|
-
setStack((previousStack) => [...previousStack, newEntry]);
|
|
34
|
-
return promise;
|
|
35
|
-
});
|
|
36
|
-
const removeDialogFromStack = (dialog) => {
|
|
37
|
-
setStack((previousStack_0) => previousStack_0.filter((entry) => entry.promise !== dialog));
|
|
38
|
-
dialogMetadata.current.delete(dialog);
|
|
39
|
-
};
|
|
40
|
-
const closeDialogUi = useEventCallback(function closeDialogUi2(dialog_0) {
|
|
41
|
-
setStack((previousStack_1) => previousStack_1.map((entry_0) => entry_0.promise === dialog_0 ? {
|
|
42
|
-
...entry_0,
|
|
43
|
-
open: false
|
|
44
|
-
} : entry_0));
|
|
45
|
-
setTimeout(() => removeDialogFromStack(dialog_0), 1e3);
|
|
46
|
-
});
|
|
47
|
-
const closeDialog = useEventCallback(async function closeDialog2(dialog_1, result) {
|
|
48
|
-
const entryToClose = dialogMetadata.current.get(dialog_1);
|
|
49
|
-
if (!entryToClose) {
|
|
50
|
-
throw new Error("Dialog not found in stack");
|
|
51
|
-
}
|
|
52
|
-
try {
|
|
53
|
-
await entryToClose.onClose(result);
|
|
54
|
-
} finally {
|
|
55
|
-
entryToClose.resolve(result);
|
|
56
|
-
closeDialogUi(dialog_1);
|
|
57
|
-
}
|
|
58
|
-
return dialog_1;
|
|
59
|
-
});
|
|
60
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogsContext.Provider, { value: {
|
|
61
|
-
open: requestDialog,
|
|
62
|
-
close: closeDialog
|
|
63
|
-
}, children: [
|
|
64
|
-
children,
|
|
65
|
-
stack.map(({
|
|
66
|
-
key: key_0,
|
|
67
|
-
open,
|
|
68
|
-
Component: Component_0,
|
|
69
|
-
payload: payload_0,
|
|
70
|
-
promise: promise_0
|
|
71
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component_0, { payload: payload_0, open, onClose: async (result_0) => {
|
|
72
|
-
await closeDialog(promise_0, result_0);
|
|
73
|
-
} }, key_0))
|
|
74
|
-
] });
|
|
75
|
-
}
|
|
76
|
-
export {
|
|
77
|
-
DialogsProvider
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=DialogsProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogsProvider.js","sources":["../../src/providers/DialogsProvider.tsx"],"sourcesContent":["import useEventCallback from \"@mui/utils/useEventCallback\";\nimport { useId, useRef, useState } from \"react\";\nimport { DialogsContext } from \"../contexts/DialogsContext\";\nimport type { DialogComponent, OpenDialog, OpenDialogOptions } from \"../hooks/DialogsHooks\";\n\ninterface DialogStackEntry<TPayload, TResult> {\n key: string;\n open: boolean;\n promise: Promise<TResult>;\n Component: DialogComponent<TPayload, TResult>;\n payload: TPayload;\n onClose: (result: TResult) => Promise<void>;\n resolve: (result: TResult) => void;\n}\n\nexport interface DialogProviderProps {\n children?: React.ReactNode;\n}\n\nfunction DialogsProvider({ children }: Readonly<DialogProviderProps>) {\n const [stack, setStack] = useState<Array<DialogStackEntry<any, any>>>([]);\n const keyPrefix = useId();\n const nextId = useRef(0);\n const dialogMetadata = useRef(new WeakMap<Promise<any>, DialogStackEntry<any, any>>());\n\n const requestDialog = useEventCallback<OpenDialog>(function open<TPayload, TResult>(\n Component: DialogComponent<TPayload, TResult>,\n payload: TPayload,\n options: OpenDialogOptions<TResult> = {},\n ) {\n const { onClose = async () => { } } = options;\n\n let resolve: (result: TResult) => void;\n const promise = new Promise<TResult>((resolveImpl) => {\n resolve = resolveImpl;\n });\n\n const key = `${keyPrefix}-${nextId.current}`;\n nextId.current += 1;\n\n const newEntry: DialogStackEntry<TPayload, TResult> = {\n key,\n open: true,\n promise,\n Component,\n payload,\n onClose,\n resolve: resolve!,\n };\n\n dialogMetadata.current.set(promise, newEntry);\n\n setStack((previousStack) => [...previousStack, newEntry]);\n\n return promise;\n });\n\n const removeDialogFromStack = (dialog: Promise<any>) => {\n setStack((previousStack) => previousStack.filter((entry) => entry.promise !== dialog));\n dialogMetadata.current.delete(dialog);\n };\n\n const closeDialogUi = useEventCallback(function closeDialogUi<TResult>(dialog: Promise<TResult>) {\n setStack((previousStack) =>\n previousStack.map((entry) => (entry.promise === dialog ? { ...entry, open: false } : entry)),\n );\n\n setTimeout(() => removeDialogFromStack(dialog), 1000);\n });\n\n const closeDialog = useEventCallback(async function closeDialog<TResult>(\n dialog: Promise<TResult>,\n result: TResult,\n ) {\n const entryToClose = dialogMetadata.current.get(dialog);\n if (!entryToClose) {\n throw new Error(\"Dialog not found in stack\");\n }\n\n try {\n await entryToClose.onClose(result);\n } finally {\n entryToClose.resolve(result);\n closeDialogUi(dialog);\n }\n\n return dialog;\n });\n\n return (\n <DialogsContext.Provider value={{ open: requestDialog, close: closeDialog }}>\n {children}\n {stack.map(({ key, open, Component, payload, promise }) => (\n <Component\n key={key}\n payload={payload}\n open={open}\n onClose={async (result) => {\n await closeDialog(promise, result);\n }}\n />\n ))}\n </DialogsContext.Provider>\n );\n}\n\nexport { DialogsProvider };\n\n"],"names":["DialogsProvider","children","stack","setStack","useState","keyPrefix","useId","nextId","useRef","dialogMetadata","WeakMap","requestDialog","useEventCallback","open","Component","payload","options","onClose","resolve","promise","Promise","resolveImpl","key","current","newEntry","set","previousStack","removeDialogFromStack","dialog","filter","entry","delete","closeDialogUi","map","setTimeout","closeDialog","result","entryToClose","get","Error","jsxs","close"],"mappings":";;;;AAmBA,SAASA,gBAAgB;AAAA,EAAEC;AAAwC,GAAG;AAClE,QAAM,CAACC,OAAOC,QAAQ,IAAIC,SAA4C,CAAA,CAAE;AACxE,QAAMC,YAAYC,MAAAA;AAClB,QAAMC,SAASC,OAAO,CAAC;AACvB,QAAMC,iBAAiBD,OAAO,oBAAIE,SAAmD;AAErF,QAAMC,gBAAgBC,iBAA6B,SAASC,KACxDC,WACAC,SACAC,UAAsC,IACxC;AACE,UAAM;AAAA,MAAEC,UAAU,YAAY;AAAA,MAAE;AAAA,IAAA,IAAMD;AAEtC,QAAIE;AACJ,UAAMC,UAAU,IAAIC,QAAkBC,CAAAA,gBAAgB;AAClDH,gBAAUG;AAAAA,IACd,CAAC;AAED,UAAMC,MAAM,GAAGjB,SAAS,IAAIE,OAAOgB,OAAO;AAC1ChB,WAAOgB,WAAW;AAElB,UAAMC,WAAgD;AAAA,MAClDF;AAAAA,MACAT,MAAM;AAAA,MACNM;AAAAA,MACAL;AAAAA,MACAC;AAAAA,MACAE;AAAAA,MACAC;AAAAA,IAAAA;AAGJT,mBAAec,QAAQE,IAAIN,SAASK,QAAQ;AAE5CrB,aAAUuB,CAAAA,kBAAkB,CAAC,GAAGA,eAAeF,QAAQ,CAAC;AAExD,WAAOL;AAAAA,EACX,CAAC;AAED,QAAMQ,wBAAwBA,CAACC,WAAyB;AACpDzB,aAAUuB,qBAAkBA,gBAAcG,OAAQC,WAAUA,MAAMX,YAAYS,MAAM,CAAC;AACrFnB,mBAAec,QAAQQ,OAAOH,MAAM;AAAA,EACxC;AAEA,QAAMI,gBAAgBpB,iBAAiB,SAASoB,eAAuBJ,UAA0B;AAC7FzB,aAAUuB,qBACNA,gBAAcO,IAAKH,CAAAA,YAAWA,QAAMX,YAAYS,WAAS;AAAA,MAAE,GAAGE;AAAAA,MAAOjB,MAAM;AAAA,IAAA,IAAUiB,OAAM,CAC/F;AAEAI,eAAW,MAAMP,sBAAsBC,QAAM,GAAG,GAAI;AAAA,EACxD,CAAC;AAED,QAAMO,cAAcvB,iBAAiB,eAAeuB,aAChDP,UACAQ,QACF;AACE,UAAMC,eAAe5B,eAAec,QAAQe,IAAIV,QAAM;AACtD,QAAI,CAACS,cAAc;AACf,YAAM,IAAIE,MAAM,2BAA2B;AAAA,IAC/C;AAEA,QAAI;AACA,YAAMF,aAAapB,QAAQmB,MAAM;AAAA,IACrC,UAAA;AACIC,mBAAanB,QAAQkB,MAAM;AAC3BJ,oBAAcJ,QAAM;AAAA,IACxB;AAEA,WAAOA;AAAAA,EACX,CAAC;AAED,SACIY,uCAAC,eAAe,UAAf,EAAwB,OAAO;AAAA,IAAE3B,MAAMF;AAAAA,IAAe8B,OAAON;AAAAA,EAAAA,GACzDlC,UAAAA;AAAAA,IAAAA;AAAAA,IACAC,MAAM+B,IAAI,CAAC;AAAA,MAAEX,KAAAA;AAAAA,MAAKT;AAAAA,MAAMC,WAAAA;AAAAA,MAAWC,SAAAA;AAAAA,MAASI,SAAAA;AAAAA,IAAAA,4CACxC,aAAA,EAEG,SAASJ,WACT,MACA,SAAS,OAAOqB,aAAW;AACvB,YAAMD,YAAYhB,WAASiB,QAAM;AAAA,IACrC,EAAA,GALKd,MAOZ;AAAA,EAAA,GACL;AAER;"}
|
|
@@ -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 {};
|