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.
Files changed (490) hide show
  1. package/dist/ApprovalStatus-BtAVFn5p.js +8 -0
  2. package/dist/ApprovalStatus-BtAVFn5p.js.map +1 -0
  3. package/dist/{node_modules/react/cjs/react-jsx-runtime.development.js → DialogsContext-BKtkEAfL.js} +48 -4
  4. package/dist/DialogsContext-BKtkEAfL.js.map +1 -0
  5. package/dist/{hooks/DialogsHooks.js → DialogsHooks-BQVpqCq9.js} +4 -7
  6. package/dist/DialogsHooks-BQVpqCq9.js.map +1 -0
  7. package/dist/FileHooks-Cg9ver7z.js +3478 -0
  8. package/dist/FileHooks-Cg9ver7z.js.map +1 -0
  9. package/dist/{models/file/FileMeta.js → FileMeta-G1oT3mYK.js} +2 -2
  10. package/dist/FileMeta-G1oT3mYK.js.map +1 -0
  11. package/dist/{components/router/RouterListItemButton.js → RouterListItemButton-IUVgwnz3.js} +4 -4
  12. package/dist/RouterListItemButton-IUVgwnz3.js.map +1 -0
  13. package/dist/client.js +4 -4
  14. package/dist/compiler-runtime-BGHur82y.js +46 -0
  15. package/dist/compiler-runtime-BGHur82y.js.map +1 -0
  16. package/dist/components.js +1486 -15
  17. package/dist/components.js.map +1 -1
  18. package/dist/{env.js → env-gsqZ6zZD.js} +3 -3
  19. package/dist/env-gsqZ6zZD.js.map +1 -0
  20. package/dist/exports/client.d.ts +17 -4
  21. package/dist/exports/components.d.ts +44 -14
  22. package/dist/exports/hooks.d.ts +23 -4
  23. package/dist/exports/index.d.ts +17 -4
  24. package/dist/exports/models.d.ts +107 -25
  25. package/dist/exports/queries.d.ts +95 -4
  26. package/dist/exports/server.d.ts +14 -4
  27. package/dist/exports/utils.d.ts +11 -3
  28. package/dist/exports/vite.d.ts +5 -1
  29. package/dist/hooks.js +1000 -3
  30. package/dist/hooks.js.map +1 -1
  31. package/dist/index.js +1752 -4
  32. package/dist/index.js.map +1 -1
  33. package/dist/models.js +159 -10
  34. package/dist/models.js.map +1 -1
  35. package/dist/queries.js +935 -14
  36. package/dist/queries.js.map +1 -1
  37. package/dist/{lib/queryClient.js → queryClient-CNvC95mU.js} +2 -2
  38. package/dist/queryClient-CNvC95mU.js.map +1 -0
  39. package/dist/server.js +84 -1
  40. package/dist/server.js.map +1 -1
  41. package/dist/{lib/auth/session.js → session-vW7WZadj.js} +24 -9
  42. package/dist/session-vW7WZadj.js.map +1 -0
  43. package/dist/{lib/utils.js → utils-MD9YwOtu.js} +9 -9
  44. package/dist/utils-MD9YwOtu.js.map +1 -0
  45. package/dist/utils.js +2 -2
  46. package/dist/vite.js +61 -1
  47. package/dist/vite.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/_virtual/___vite-browser-external.js +0 -7
  50. package/dist/_virtual/___vite-browser-external.js.map +0 -1
  51. package/dist/_virtual/__vite-browser-external.js +0 -5
  52. package/dist/_virtual/__vite-browser-external.js.map +0 -1
  53. package/dist/_virtual/_commonjsHelpers.js +0 -37
  54. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  55. package/dist/_virtual/compiler-runtime.js +0 -6
  56. package/dist/_virtual/compiler-runtime.js.map +0 -1
  57. package/dist/_virtual/compiler-runtime2.js +0 -5
  58. package/dist/_virtual/compiler-runtime2.js.map +0 -1
  59. package/dist/_virtual/index.js +0 -8
  60. package/dist/_virtual/index.js.map +0 -1
  61. package/dist/_virtual/index2.js +0 -5
  62. package/dist/_virtual/index2.js.map +0 -1
  63. package/dist/_virtual/index3.js +0 -5
  64. package/dist/_virtual/index3.js.map +0 -1
  65. package/dist/_virtual/index4.js +0 -5
  66. package/dist/_virtual/index4.js.map +0 -1
  67. package/dist/_virtual/index5.js +0 -5
  68. package/dist/_virtual/index5.js.map +0 -1
  69. package/dist/_virtual/index6.js +0 -5
  70. package/dist/_virtual/index6.js.map +0 -1
  71. package/dist/_virtual/jsx-runtime.js +0 -6
  72. package/dist/_virtual/jsx-runtime.js.map +0 -1
  73. package/dist/_virtual/jsx-runtime2.js +0 -5
  74. package/dist/_virtual/jsx-runtime2.js.map +0 -1
  75. package/dist/_virtual/re.js +0 -5
  76. package/dist/_virtual/re.js.map +0 -1
  77. package/dist/_virtual/react-compiler-runtime.development.js +0 -5
  78. package/dist/_virtual/react-compiler-runtime.development.js.map +0 -1
  79. package/dist/_virtual/react-compiler-runtime.production.js +0 -5
  80. package/dist/_virtual/react-compiler-runtime.production.js.map +0 -1
  81. package/dist/_virtual/react-jsx-runtime.development.js +0 -5
  82. package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
  83. package/dist/_virtual/react-jsx-runtime.production.js +0 -5
  84. package/dist/_virtual/react-jsx-runtime.production.js.map +0 -1
  85. package/dist/components/core/AppTitle.d.ts +0 -2
  86. package/dist/components/core/AppTitle.js +0 -23
  87. package/dist/components/core/AppTitle.js.map +0 -1
  88. package/dist/components/core/Fullscreen.d.ts +0 -3
  89. package/dist/components/core/Fullscreen.js +0 -104
  90. package/dist/components/core/Fullscreen.js.map +0 -1
  91. package/dist/components/core/Layout.d.ts +0 -8
  92. package/dist/components/core/Layout.js +0 -214
  93. package/dist/components/core/Layout.js.map +0 -1
  94. package/dist/components/core/ToolbarAccount.d.ts +0 -2
  95. package/dist/components/core/ToolbarAccount.js +0 -582
  96. package/dist/components/core/ToolbarAccount.js.map +0 -1
  97. package/dist/components/core/TypographyWithIcon.d.ts +0 -7
  98. package/dist/components/core/TypographyWithIcon.js +0 -117
  99. package/dist/components/core/TypographyWithIcon.js.map +0 -1
  100. package/dist/components/core/navigation/NavigationList.d.ts +0 -22
  101. package/dist/components/core/navigation/NavigationList.js +0 -166
  102. package/dist/components/core/navigation/NavigationList.js.map +0 -1
  103. package/dist/components/core/navigation/NavigationListItem.d.ts +0 -16
  104. package/dist/components/core/navigation/NavigationListItem.js +0 -467
  105. package/dist/components/core/navigation/NavigationListItem.js.map +0 -1
  106. package/dist/components/core/navigation/NavigationRail.d.ts +0 -12
  107. package/dist/components/core/navigation/NavigationRail.js +0 -141
  108. package/dist/components/core/navigation/NavigationRail.js.map +0 -1
  109. package/dist/components/data-grid/ChipInputCell.d.ts +0 -9
  110. package/dist/components/data-grid/ChipInputCell.js +0 -95
  111. package/dist/components/data-grid/ChipInputCell.js.map +0 -1
  112. package/dist/components/data-grid/EditableColumnHeader.d.ts +0 -2
  113. package/dist/components/data-grid/EditableColumnHeader.js +0 -30
  114. package/dist/components/data-grid/EditableColumnHeader.js.map +0 -1
  115. package/dist/components/file/Dropzone.d.ts +0 -8
  116. package/dist/components/file/Dropzone.js +0 -151
  117. package/dist/components/file/Dropzone.js.map +0 -1
  118. package/dist/components/file/FileViewer.d.ts +0 -20
  119. package/dist/components/file/FileViewer.js +0 -127
  120. package/dist/components/file/FileViewer.js.map +0 -1
  121. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +0 -17
  122. package/dist/components/file/fileViewer/FileViewerGrid.js +0 -282
  123. package/dist/components/file/fileViewer/FileViewerGrid.js.map +0 -1
  124. package/dist/components/file/fileViewer/FileViewerList.d.ts +0 -12
  125. package/dist/components/file/fileViewer/FileViewerList.js +0 -191
  126. package/dist/components/file/fileViewer/FileViewerList.js.map +0 -1
  127. package/dist/components/file/fileViewer/ImageViewer.d.ts +0 -6
  128. package/dist/components/file/fileViewer/ImageViewer.js +0 -75
  129. package/dist/components/file/fileViewer/ImageViewer.js.map +0 -1
  130. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +0 -15
  131. package/dist/components/file/fileViewer/common/ActionsMenu.js +0 -159
  132. package/dist/components/file/fileViewer/common/ActionsMenu.js.map +0 -1
  133. package/dist/components/form/FormAutocomplete.d.ts +0 -7
  134. package/dist/components/form/FormAutocomplete.js +0 -80
  135. package/dist/components/form/FormAutocomplete.js.map +0 -1
  136. package/dist/components/form/FormCheckbox.d.ts +0 -7
  137. package/dist/components/form/FormCheckbox.js +0 -81
  138. package/dist/components/form/FormCheckbox.js.map +0 -1
  139. package/dist/components/form/FormDatePicker.d.ts +0 -8
  140. package/dist/components/form/FormDatePicker.js +0 -77
  141. package/dist/components/form/FormDatePicker.js.map +0 -1
  142. package/dist/components/form/FormDateRangePicker.d.ts +0 -8
  143. package/dist/components/form/FormDateRangePicker.js +0 -77
  144. package/dist/components/form/FormDateRangePicker.js.map +0 -1
  145. package/dist/components/form/FormDateTimePicker.d.ts +0 -8
  146. package/dist/components/form/FormDateTimePicker.js +0 -77
  147. package/dist/components/form/FormDateTimePicker.js.map +0 -1
  148. package/dist/components/form/FormDateTimeRangePicker.d.ts +0 -8
  149. package/dist/components/form/FormDateTimeRangePicker.js +0 -77
  150. package/dist/components/form/FormDateTimeRangePicker.js.map +0 -1
  151. package/dist/components/form/FormNumberField.d.ts +0 -9
  152. package/dist/components/form/FormNumberField.js +0 -73
  153. package/dist/components/form/FormNumberField.js.map +0 -1
  154. package/dist/components/form/FormRadioGroup.d.ts +0 -13
  155. package/dist/components/form/FormRadioGroup.js +0 -113
  156. package/dist/components/form/FormRadioGroup.js.map +0 -1
  157. package/dist/components/form/FormSlider.d.ts +0 -7
  158. package/dist/components/form/FormSlider.js +0 -94
  159. package/dist/components/form/FormSlider.js.map +0 -1
  160. package/dist/components/form/FormSubmitButton.d.ts +0 -4
  161. package/dist/components/form/FormSubmitButton.js +0 -50
  162. package/dist/components/form/FormSubmitButton.js.map +0 -1
  163. package/dist/components/form/FormSwitch.d.ts +0 -7
  164. package/dist/components/form/FormSwitch.js +0 -81
  165. package/dist/components/form/FormSwitch.js.map +0 -1
  166. package/dist/components/form/FormTextField.d.ts +0 -7
  167. package/dist/components/form/FormTextField.js +0 -52
  168. package/dist/components/form/FormTextField.js.map +0 -1
  169. package/dist/components/form/FormTimePicker.d.ts +0 -8
  170. package/dist/components/form/FormTimePicker.js +0 -77
  171. package/dist/components/form/FormTimePicker.js.map +0 -1
  172. package/dist/components/form/FormTimeRangePicker.d.ts +0 -8
  173. package/dist/components/form/FormTimeRangePicker.js +0 -77
  174. package/dist/components/form/FormTimeRangePicker.js.map +0 -1
  175. package/dist/components/router/RouterButton.d.ts +0 -6
  176. package/dist/components/router/RouterButton.js +0 -35
  177. package/dist/components/router/RouterButton.js.map +0 -1
  178. package/dist/components/router/RouterError.d.ts +0 -7
  179. package/dist/components/router/RouterError.js +0 -62
  180. package/dist/components/router/RouterError.js.map +0 -1
  181. package/dist/components/router/RouterGridActionsCellItem.d.ts +0 -6
  182. package/dist/components/router/RouterGridActionsCellItem.js +0 -35
  183. package/dist/components/router/RouterGridActionsCellItem.js.map +0 -1
  184. package/dist/components/router/RouterIconButton.d.ts +0 -6
  185. package/dist/components/router/RouterIconButton.js +0 -35
  186. package/dist/components/router/RouterIconButton.js.map +0 -1
  187. package/dist/components/router/RouterLink.d.ts +0 -6
  188. package/dist/components/router/RouterLink.js +0 -35
  189. package/dist/components/router/RouterLink.js.map +0 -1
  190. package/dist/components/router/RouterListItemButton.d.ts +0 -6
  191. package/dist/components/router/RouterListItemButton.js.map +0 -1
  192. package/dist/components/router/RouterNotFound.d.ts +0 -1
  193. package/dist/components/router/RouterNotFound.js +0 -53
  194. package/dist/components/router/RouterNotFound.js.map +0 -1
  195. package/dist/components/router/RouterTab.d.ts +0 -6
  196. package/dist/components/router/RouterTab.js +0 -35
  197. package/dist/components/router/RouterTab.js.map +0 -1
  198. package/dist/contexts/DialogsContext.d.ts +0 -6
  199. package/dist/contexts/DialogsContext.js +0 -6
  200. package/dist/contexts/DialogsContext.js.map +0 -1
  201. package/dist/contexts/FileContext.d.ts +0 -13
  202. package/dist/contexts/FileContext.js +0 -14
  203. package/dist/contexts/FileContext.js.map +0 -1
  204. package/dist/env.d.ts +0 -13
  205. package/dist/env.js.map +0 -1
  206. package/dist/hooks/DialogsHooks.d.ts +0 -42
  207. package/dist/hooks/DialogsHooks.js.map +0 -1
  208. package/dist/hooks/FormHooks.d.ts +0 -52
  209. package/dist/hooks/FormHooks.js +0 -55
  210. package/dist/hooks/FormHooks.js.map +0 -1
  211. package/dist/lib/auth/api.d.ts +0 -3
  212. package/dist/lib/auth/api.js +0 -97
  213. package/dist/lib/auth/api.js.map +0 -1
  214. package/dist/lib/auth/entra.d.ts +0 -2
  215. package/dist/lib/auth/entra.js +0 -13
  216. package/dist/lib/auth/entra.js.map +0 -1
  217. package/dist/lib/auth/graph.d.ts +0 -17
  218. package/dist/lib/auth/graph.js +0 -72
  219. package/dist/lib/auth/graph.js.map +0 -1
  220. package/dist/lib/auth/session.d.ts +0 -24
  221. package/dist/lib/auth/session.js.map +0 -1
  222. package/dist/lib/queryClient.d.ts +0 -2
  223. package/dist/lib/queryClient.js.map +0 -1
  224. package/dist/lib/utils.d.ts +0 -52
  225. package/dist/lib/utils.js.map +0 -1
  226. package/dist/lib/vite-plugin.d.ts +0 -2
  227. package/dist/lib/vite-plugin.js +0 -65
  228. package/dist/lib/vite-plugin.js.map +0 -1
  229. package/dist/middleware/auth.d.ts +0 -22
  230. package/dist/models/Navigation.d.ts +0 -18
  231. package/dist/models/User.d.ts +0 -16
  232. package/dist/models/User.js +0 -18
  233. package/dist/models/User.js.map +0 -1
  234. package/dist/models/approval/Approval.d.ts +0 -177
  235. package/dist/models/approval/Approval.js +0 -81
  236. package/dist/models/approval/Approval.js.map +0 -1
  237. package/dist/models/approval/ApprovalEmployee.d.ts +0 -7
  238. package/dist/models/approval/ApprovalEmployee.js +0 -10
  239. package/dist/models/approval/ApprovalEmployee.js.map +0 -1
  240. package/dist/models/approval/ApprovalFlow.d.ts +0 -49
  241. package/dist/models/approval/ApprovalFlow.js +0 -15
  242. package/dist/models/approval/ApprovalFlow.js.map +0 -1
  243. package/dist/models/approval/ApprovalFlowStep.d.ts +0 -29
  244. package/dist/models/approval/ApprovalFlowStep.js +0 -17
  245. package/dist/models/approval/ApprovalFlowStep.js.map +0 -1
  246. package/dist/models/approval/ApprovalRequestType.d.ts +0 -5
  247. package/dist/models/approval/ApprovalRequestType.js +0 -6
  248. package/dist/models/approval/ApprovalRequestType.js.map +0 -1
  249. package/dist/models/approval/ApprovalStatus.d.ts +0 -9
  250. package/dist/models/approval/ApprovalStatus.js +0 -6
  251. package/dist/models/approval/ApprovalStatus.js.map +0 -1
  252. package/dist/models/approval/ApprovalStepResult.d.ts +0 -11
  253. package/dist/models/approval/ApprovalStepResult.js +0 -6
  254. package/dist/models/approval/ApprovalStepResult.js.map +0 -1
  255. package/dist/models/approval/StepApprovalOrder.d.ts +0 -6
  256. package/dist/models/approval/StepApprovalOrder.js +0 -6
  257. package/dist/models/approval/StepApprovalOrder.js.map +0 -1
  258. package/dist/models/email/Email.d.ts +0 -13
  259. package/dist/models/email/Email.js +0 -14
  260. package/dist/models/email/Email.js.map +0 -1
  261. package/dist/models/email/EmailAttachment.d.ts +0 -6
  262. package/dist/models/email/EmailAttachment.js +0 -9
  263. package/dist/models/email/EmailAttachment.js.map +0 -1
  264. package/dist/models/file/FileActions.d.ts +0 -6
  265. package/dist/models/file/FileMeta.d.ts +0 -15
  266. package/dist/models/file/FileMeta.js.map +0 -1
  267. package/dist/models/peoplesoft/Department.d.ts +0 -58
  268. package/dist/models/peoplesoft/Department.js +0 -19
  269. package/dist/models/peoplesoft/Department.js.map +0 -1
  270. package/dist/models/peoplesoft/Employee.d.ts +0 -46
  271. package/dist/models/peoplesoft/Employee.js +0 -43
  272. package/dist/models/peoplesoft/Employee.js.map +0 -1
  273. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +0 -6
  274. package/dist/models/peoplesoft/EmployeeCategoryGroup.js +0 -6
  275. package/dist/models/peoplesoft/EmployeeCategoryGroup.js.map +0 -1
  276. package/dist/models/peoplesoft/EmployeeStatus.d.ts +0 -6
  277. package/dist/models/peoplesoft/EmployeeStatus.js +0 -6
  278. package/dist/models/peoplesoft/EmployeeStatus.js.map +0 -1
  279. package/dist/node_modules/@oslojs/binary/dist/bits.js +0 -7
  280. package/dist/node_modules/@oslojs/binary/dist/bits.js.map +0 -1
  281. package/dist/node_modules/@oslojs/binary/dist/uint.js +0 -80
  282. package/dist/node_modules/@oslojs/binary/dist/uint.js.map +0 -1
  283. package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js +0 -182
  284. package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js.map +0 -1
  285. package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js +0 -83
  286. package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js.map +0 -1
  287. package/dist/node_modules/@oslojs/encoding/dist/base32.js +0 -11
  288. package/dist/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
  289. package/dist/node_modules/@oslojs/encoding/dist/base64.js +0 -46
  290. package/dist/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
  291. package/dist/node_modules/@oslojs/jwt/dist/index.js +0 -28
  292. package/dist/node_modules/@oslojs/jwt/dist/index.js.map +0 -1
  293. package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js +0 -11
  294. package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js.map +0 -1
  295. package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js +0 -126
  296. package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js.map +0 -1
  297. package/dist/node_modules/arctic/dist/client.js +0 -12
  298. package/dist/node_modules/arctic/dist/client.js.map +0 -1
  299. package/dist/node_modules/arctic/dist/oauth2.js +0 -76
  300. package/dist/node_modules/arctic/dist/oauth2.js.map +0 -1
  301. package/dist/node_modules/arctic/dist/oidc.js +0 -14
  302. package/dist/node_modules/arctic/dist/oidc.js.map +0 -1
  303. package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js +0 -73
  304. package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js.map +0 -1
  305. package/dist/node_modules/arctic/dist/request.js +0 -149
  306. package/dist/node_modules/arctic/dist/request.js.map +0 -1
  307. package/dist/node_modules/arctic/dist/utils.js +0 -25
  308. package/dist/node_modules/arctic/dist/utils.js.map +0 -1
  309. package/dist/node_modules/base64-js/index.js +0 -103
  310. package/dist/node_modules/base64-js/index.js.map +0 -1
  311. package/dist/node_modules/buffer/index.js +0 -1598
  312. package/dist/node_modules/buffer/index.js.map +0 -1
  313. package/dist/node_modules/buffer-equal-constant-time/index.js +0 -39
  314. package/dist/node_modules/buffer-equal-constant-time/index.js.map +0 -1
  315. package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +0 -140
  316. package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js.map +0 -1
  317. package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +0 -28
  318. package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js.map +0 -1
  319. package/dist/node_modules/ieee754/index.js +0 -88
  320. package/dist/node_modules/ieee754/index.js.map +0 -1
  321. package/dist/node_modules/jsonwebtoken/decode.js +0 -38
  322. package/dist/node_modules/jsonwebtoken/decode.js.map +0 -1
  323. package/dist/node_modules/jsonwebtoken/index.js +0 -25
  324. package/dist/node_modules/jsonwebtoken/index.js.map +0 -1
  325. package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +0 -23
  326. package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js.map +0 -1
  327. package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js +0 -21
  328. package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js.map +0 -1
  329. package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js +0 -21
  330. package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js.map +0 -1
  331. package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js +0 -14
  332. package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js.map +0 -1
  333. package/dist/node_modules/jsonwebtoken/lib/psSupported.js +0 -14
  334. package/dist/node_modules/jsonwebtoken/lib/psSupported.js.map +0 -1
  335. package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js +0 -14
  336. package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js.map +0 -1
  337. package/dist/node_modules/jsonwebtoken/lib/timespan.js +0 -27
  338. package/dist/node_modules/jsonwebtoken/lib/timespan.js.map +0 -1
  339. package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +0 -60
  340. package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js.map +0 -1
  341. package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js +0 -123
  342. package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js.map +0 -1
  343. package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js +0 -388
  344. package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js.map +0 -1
  345. package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js +0 -288
  346. package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js.map +0 -1
  347. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js +0 -18
  348. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js.map +0 -1
  349. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js +0 -60
  350. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js.map +0 -1
  351. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js +0 -53
  352. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js.map +0 -1
  353. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js +0 -19
  354. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js.map +0 -1
  355. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js +0 -15
  356. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js.map +0 -1
  357. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js +0 -15
  358. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js.map +0 -1
  359. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js +0 -49
  360. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js.map +0 -1
  361. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js +0 -15
  362. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js.map +0 -1
  363. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js +0 -15
  364. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js.map +0 -1
  365. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js +0 -15
  366. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js.map +0 -1
  367. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js +0 -29
  368. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js.map +0 -1
  369. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js +0 -15
  370. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js.map +0 -1
  371. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js +0 -15
  372. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js.map +0 -1
  373. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js +0 -15
  374. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js.map +0 -1
  375. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js +0 -15
  376. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js.map +0 -1
  377. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js +0 -15
  378. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js.map +0 -1
  379. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js +0 -27
  380. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js.map +0 -1
  381. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js +0 -15
  382. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js.map +0 -1
  383. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js +0 -18
  384. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js.map +0 -1
  385. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js +0 -15
  386. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js.map +0 -1
  387. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js +0 -15
  388. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js.map +0 -1
  389. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js +0 -22
  390. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js.map +0 -1
  391. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js +0 -15
  392. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js.map +0 -1
  393. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js +0 -18
  394. package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js.map +0 -1
  395. package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js +0 -140
  396. package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js.map +0 -1
  397. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js +0 -36
  398. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js.map +0 -1
  399. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js +0 -14
  400. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js.map +0 -1
  401. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js +0 -29
  402. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js.map +0 -1
  403. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js +0 -42
  404. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js.map +0 -1
  405. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js +0 -23
  406. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js.map +0 -1
  407. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js +0 -96
  408. package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js.map +0 -1
  409. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js +0 -15
  410. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js.map +0 -1
  411. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js +0 -19
  412. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js.map +0 -1
  413. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js +0 -15
  414. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js.map +0 -1
  415. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js +0 -35
  416. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js.map +0 -1
  417. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js +0 -35
  418. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js.map +0 -1
  419. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js +0 -66
  420. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js.map +0 -1
  421. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js +0 -81
  422. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js.map +0 -1
  423. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js +0 -56
  424. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js.map +0 -1
  425. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js +0 -170
  426. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js.map +0 -1
  427. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js +0 -15
  428. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js.map +0 -1
  429. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js +0 -21
  430. package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js.map +0 -1
  431. package/dist/node_modules/jsonwebtoken/sign.js +0 -242
  432. package/dist/node_modules/jsonwebtoken/sign.js.map +0 -1
  433. package/dist/node_modules/jsonwebtoken/verify.js +0 -229
  434. package/dist/node_modules/jsonwebtoken/verify.js.map +0 -1
  435. package/dist/node_modules/jwa/index.js +0 -233
  436. package/dist/node_modules/jwa/index.js.map +0 -1
  437. package/dist/node_modules/jws/index.js +0 -40
  438. package/dist/node_modules/jws/index.js.map +0 -1
  439. package/dist/node_modules/jws/lib/data-stream.js +0 -55
  440. package/dist/node_modules/jws/lib/data-stream.js.map +0 -1
  441. package/dist/node_modules/jws/lib/sign-stream.js +0 -85
  442. package/dist/node_modules/jws/lib/sign-stream.js.map +0 -1
  443. package/dist/node_modules/jws/lib/tostring.js +0 -20
  444. package/dist/node_modules/jws/lib/tostring.js.map +0 -1
  445. package/dist/node_modules/jws/lib/verify-stream.js +0 -125
  446. package/dist/node_modules/jws/lib/verify-stream.js.map +0 -1
  447. package/dist/node_modules/lodash.includes/index.js +0 -181
  448. package/dist/node_modules/lodash.includes/index.js.map +0 -1
  449. package/dist/node_modules/lodash.isboolean/index.js +0 -21
  450. package/dist/node_modules/lodash.isboolean/index.js.map +0 -1
  451. package/dist/node_modules/lodash.isinteger/index.js +0 -67
  452. package/dist/node_modules/lodash.isinteger/index.js.map +0 -1
  453. package/dist/node_modules/lodash.isnumber/index.js +0 -21
  454. package/dist/node_modules/lodash.isnumber/index.js.map +0 -1
  455. package/dist/node_modules/lodash.isplainobject/index.js +0 -48
  456. package/dist/node_modules/lodash.isplainobject/index.js.map +0 -1
  457. package/dist/node_modules/lodash.isstring/index.js +0 -22
  458. package/dist/node_modules/lodash.isstring/index.js.map +0 -1
  459. package/dist/node_modules/lodash.once/index.js +0 -84
  460. package/dist/node_modules/lodash.once/index.js.map +0 -1
  461. package/dist/node_modules/ms/index.js +0 -121
  462. package/dist/node_modules/ms/index.js.map +0 -1
  463. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -22
  464. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js.map +0 -1
  465. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
  466. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
  467. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  468. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -33
  469. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
  470. package/dist/node_modules/react/compiler-runtime.js +0 -18
  471. package/dist/node_modules/react/compiler-runtime.js.map +0 -1
  472. package/dist/node_modules/react/jsx-runtime.js +0 -18
  473. package/dist/node_modules/react/jsx-runtime.js.map +0 -1
  474. package/dist/node_modules/safe-buffer/index.js +0 -66
  475. package/dist/node_modules/safe-buffer/index.js.map +0 -1
  476. package/dist/providers/DialogsProvider.d.ts +0 -5
  477. package/dist/providers/DialogsProvider.js +0 -79
  478. package/dist/providers/DialogsProvider.js.map +0 -1
  479. package/dist/providers/LayoutProvider.d.ts +0 -11
  480. package/dist/providers/LayoutProvider.js +0 -94
  481. package/dist/providers/LayoutProvider.js.map +0 -1
  482. package/dist/queries/ApprovalHooks.d.ts +0 -338
  483. package/dist/queries/ApprovalHooks.js +0 -326
  484. package/dist/queries/ApprovalHooks.js.map +0 -1
  485. package/dist/queries/FileHooks.d.ts +0 -151
  486. package/dist/queries/FileHooks.js +0 -493
  487. package/dist/queries/FileHooks.js.map +0 -1
  488. package/dist/queries/PeopleSoftHooks.d.ts +0 -537
  489. package/dist/queries/PeopleSoftHooks.js +0 -628
  490. 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 {};