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
package/dist/queries.js CHANGED
@@ -1,20 +1,941 @@
1
- import { queryClient } from "./lib/queryClient.js";
2
- import { useDeleteFile, useDeleteFiles, useDownloadFile, useGetFile, useGetFileMetas, useGetFileThumbnail, useOpenFile, useUpdateFileMeta, useUploadFile } from "./queries/FileHooks.js";
3
- import { useGetPeopleSoftActiveEmployees, useGetPeopleSoftCompanyGeneralManager, useGetPeopleSoftDepartmentById, useGetPeopleSoftDepartmentEmployees, useGetPeopleSoftDepartmentManager, useGetPeopleSoftDepartments, useGetPeopleSoftEmployeeById, useGetPeopleSoftEmployeeGeneralManager, useGetPeopleSoftEmployeeManager, useGetPeopleSoftEmployeeSubordinates, useGetPeopleSoftEmployeeSupervisor, useGetPeopleSoftEmployees, useGetPeopleSoftEmployeesSearch, useGetPeopleSoftPreviousEmployeeIds } from "./queries/PeopleSoftHooks.js";
4
- import { useApproveApproval, useCancelApproval, useCreateApproval, useGetApproval, useGetApprovals, useResubmitApproval, useWithdrawApproval } from "./queries/ApprovalHooks.js";
1
+ import { q } from "./queryClient-CNvC95mU.js";
2
+ import { f, g, c, b, u, a, d, e, h } from "./FileHooks-Cg9ver7z.js";
3
+ import { c as compilerRuntimeExports } from "./compiler-runtime-BGHur82y.js";
4
+ import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query";
5
+ import { h as httpClient, t as toKebabCase } from "./utils-MD9YwOtu.js";
6
+ import z__default from "zod";
7
+ import { c as clientEnv } from "./env-gsqZ6zZD.js";
8
+ import { A as ApprovalStepResult, a as ApprovalStatus } from "./ApprovalStatus-BtAVFn5p.js";
9
+ const QUERY_KEY = "ps";
10
+ const DAY = 1e3 * 60 * 60 * 24;
11
+ const useGetPeopleSoftEmployeesSearch = (searchTerm, options) => {
12
+ const $ = compilerRuntimeExports.c(7);
13
+ let t0;
14
+ let t1;
15
+ if ($[0] !== searchTerm) {
16
+ t0 = [QUERY_KEY, "employee", "search", searchTerm];
17
+ t1 = (t22) => {
18
+ const {
19
+ signal
20
+ } = t22;
21
+ return httpClient.request({
22
+ url: `/${QUERY_KEY}/v1/employee?search=${searchTerm}`,
23
+ method: "GET",
24
+ signal
25
+ }).then(_temp$1);
26
+ };
27
+ $[0] = searchTerm;
28
+ $[1] = t0;
29
+ $[2] = t1;
30
+ } else {
31
+ t0 = $[1];
32
+ t1 = $[2];
33
+ }
34
+ let t2;
35
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
36
+ t2 = {
37
+ ...options,
38
+ queryKey: t0,
39
+ queryFn: t1,
40
+ staleTime: DAY,
41
+ gcTime: DAY,
42
+ refetchOnWindowFocus: false
43
+ };
44
+ $[3] = options;
45
+ $[4] = t0;
46
+ $[5] = t1;
47
+ $[6] = t2;
48
+ } else {
49
+ t2 = $[6];
50
+ }
51
+ return useQuery(t2);
52
+ };
53
+ const useGetPeopleSoftEmployees = (options) => {
54
+ const $ = compilerRuntimeExports.c(3);
55
+ let t0;
56
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
57
+ t0 = [QUERY_KEY, "employee"];
58
+ $[0] = t0;
59
+ } else {
60
+ t0 = $[0];
61
+ }
62
+ let t1;
63
+ if ($[1] !== options) {
64
+ t1 = {
65
+ ...options,
66
+ queryKey: t0,
67
+ queryFn: _temp3$1,
68
+ staleTime: DAY,
69
+ gcTime: DAY,
70
+ refetchOnWindowFocus: false
71
+ };
72
+ $[1] = options;
73
+ $[2] = t1;
74
+ } else {
75
+ t1 = $[2];
76
+ }
77
+ return useQuery(t1);
78
+ };
79
+ const useGetPeopleSoftActiveEmployees = (options) => {
80
+ const $ = compilerRuntimeExports.c(3);
81
+ let t0;
82
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
83
+ t0 = [QUERY_KEY, "employee", "active"];
84
+ $[0] = t0;
85
+ } else {
86
+ t0 = $[0];
87
+ }
88
+ let t1;
89
+ if ($[1] !== options) {
90
+ t1 = {
91
+ ...options,
92
+ queryKey: t0,
93
+ queryFn: _temp5$1,
94
+ staleTime: DAY,
95
+ gcTime: DAY,
96
+ refetchOnWindowFocus: false
97
+ };
98
+ $[1] = options;
99
+ $[2] = t1;
100
+ } else {
101
+ t1 = $[2];
102
+ }
103
+ return useQuery(t1);
104
+ };
105
+ const useGetPeopleSoftEmployeeById = (employeeId, options) => {
106
+ const $ = compilerRuntimeExports.c(7);
107
+ let t0;
108
+ let t1;
109
+ if ($[0] !== employeeId) {
110
+ t0 = [QUERY_KEY, "employee", employeeId];
111
+ t1 = (t22) => {
112
+ const {
113
+ signal
114
+ } = t22;
115
+ return httpClient.request({
116
+ url: `/${QUERY_KEY}/v1/employee/${employeeId}`,
117
+ method: "GET",
118
+ signal
119
+ }).then(_temp6$1);
120
+ };
121
+ $[0] = employeeId;
122
+ $[1] = t0;
123
+ $[2] = t1;
124
+ } else {
125
+ t0 = $[1];
126
+ t1 = $[2];
127
+ }
128
+ let t2;
129
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
130
+ t2 = {
131
+ ...options,
132
+ queryKey: t0,
133
+ queryFn: t1,
134
+ staleTime: DAY,
135
+ gcTime: DAY,
136
+ refetchOnWindowFocus: false
137
+ };
138
+ $[3] = options;
139
+ $[4] = t0;
140
+ $[5] = t1;
141
+ $[6] = t2;
142
+ } else {
143
+ t2 = $[6];
144
+ }
145
+ return useQuery(t2);
146
+ };
147
+ const useGetPeopleSoftPreviousEmployeeIds = (options) => {
148
+ const $ = compilerRuntimeExports.c(3);
149
+ let t0;
150
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
151
+ t0 = [QUERY_KEY, "employee", "previousIds"];
152
+ $[0] = t0;
153
+ } else {
154
+ t0 = $[0];
155
+ }
156
+ let t1;
157
+ if ($[1] !== options) {
158
+ t1 = {
159
+ ...options,
160
+ queryKey: t0,
161
+ queryFn: _temp8$1,
162
+ staleTime: DAY,
163
+ gcTime: DAY,
164
+ refetchOnWindowFocus: false
165
+ };
166
+ $[1] = options;
167
+ $[2] = t1;
168
+ } else {
169
+ t1 = $[2];
170
+ }
171
+ return useQuery(t1);
172
+ };
173
+ const useGetPeopleSoftEmployeeSupervisor = (employeeId, options) => {
174
+ const $ = compilerRuntimeExports.c(7);
175
+ let t0;
176
+ let t1;
177
+ if ($[0] !== employeeId) {
178
+ t0 = [QUERY_KEY, "employee", employeeId, "supervisor"];
179
+ t1 = (t22) => {
180
+ const {
181
+ signal
182
+ } = t22;
183
+ return httpClient.request({
184
+ url: `/${QUERY_KEY}/v1/employee/${employeeId}/supervisor`,
185
+ method: "GET",
186
+ signal
187
+ }).then(_temp9$1);
188
+ };
189
+ $[0] = employeeId;
190
+ $[1] = t0;
191
+ $[2] = t1;
192
+ } else {
193
+ t0 = $[1];
194
+ t1 = $[2];
195
+ }
196
+ let t2;
197
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
198
+ t2 = {
199
+ ...options,
200
+ queryKey: t0,
201
+ queryFn: t1,
202
+ staleTime: DAY,
203
+ gcTime: DAY,
204
+ refetchOnWindowFocus: false
205
+ };
206
+ $[3] = options;
207
+ $[4] = t0;
208
+ $[5] = t1;
209
+ $[6] = t2;
210
+ } else {
211
+ t2 = $[6];
212
+ }
213
+ return useQuery(t2);
214
+ };
215
+ const useGetPeopleSoftEmployeeSubordinates = (employeeId, options) => {
216
+ const $ = compilerRuntimeExports.c(7);
217
+ let t0;
218
+ let t1;
219
+ if ($[0] !== employeeId) {
220
+ t0 = [QUERY_KEY, "employee", employeeId, "subordinates"];
221
+ t1 = (t22) => {
222
+ const {
223
+ signal
224
+ } = t22;
225
+ return httpClient.request({
226
+ url: `/${QUERY_KEY}/v1/employee/${employeeId}/subordinates`,
227
+ method: "GET",
228
+ signal
229
+ }).then(_temp0$1);
230
+ };
231
+ $[0] = employeeId;
232
+ $[1] = t0;
233
+ $[2] = t1;
234
+ } else {
235
+ t0 = $[1];
236
+ t1 = $[2];
237
+ }
238
+ let t2;
239
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
240
+ t2 = {
241
+ ...options,
242
+ queryKey: t0,
243
+ queryFn: t1,
244
+ staleTime: DAY,
245
+ gcTime: DAY,
246
+ refetchOnWindowFocus: false
247
+ };
248
+ $[3] = options;
249
+ $[4] = t0;
250
+ $[5] = t1;
251
+ $[6] = t2;
252
+ } else {
253
+ t2 = $[6];
254
+ }
255
+ return useQuery(t2);
256
+ };
257
+ const useGetPeopleSoftEmployeeManager = (employeeId, options) => {
258
+ const $ = compilerRuntimeExports.c(7);
259
+ let t0;
260
+ let t1;
261
+ if ($[0] !== employeeId) {
262
+ t0 = [QUERY_KEY, "employee", employeeId, "manager"];
263
+ t1 = (t22) => {
264
+ const {
265
+ signal
266
+ } = t22;
267
+ return httpClient.request({
268
+ url: `/${QUERY_KEY}/v1/employee/${employeeId}/manager`,
269
+ method: "GET",
270
+ signal
271
+ }).then(_temp1$1);
272
+ };
273
+ $[0] = employeeId;
274
+ $[1] = t0;
275
+ $[2] = t1;
276
+ } else {
277
+ t0 = $[1];
278
+ t1 = $[2];
279
+ }
280
+ let t2;
281
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
282
+ t2 = {
283
+ ...options,
284
+ queryKey: t0,
285
+ queryFn: t1,
286
+ staleTime: DAY,
287
+ gcTime: DAY,
288
+ refetchOnWindowFocus: false
289
+ };
290
+ $[3] = options;
291
+ $[4] = t0;
292
+ $[5] = t1;
293
+ $[6] = t2;
294
+ } else {
295
+ t2 = $[6];
296
+ }
297
+ return useQuery(t2);
298
+ };
299
+ const useGetPeopleSoftEmployeeGeneralManager = (employeeId, options) => {
300
+ const $ = compilerRuntimeExports.c(7);
301
+ let t0;
302
+ let t1;
303
+ if ($[0] !== employeeId) {
304
+ t0 = [QUERY_KEY, "employee", employeeId, "generalManager"];
305
+ t1 = (t22) => {
306
+ const {
307
+ signal
308
+ } = t22;
309
+ return httpClient.request({
310
+ url: `/${QUERY_KEY}/v1/employee/${employeeId}/generalManager`,
311
+ method: "GET",
312
+ signal
313
+ }).then(_temp10$1);
314
+ };
315
+ $[0] = employeeId;
316
+ $[1] = t0;
317
+ $[2] = t1;
318
+ } else {
319
+ t0 = $[1];
320
+ t1 = $[2];
321
+ }
322
+ let t2;
323
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
324
+ t2 = {
325
+ ...options,
326
+ queryKey: t0,
327
+ queryFn: t1,
328
+ staleTime: DAY,
329
+ gcTime: DAY,
330
+ refetchOnWindowFocus: false
331
+ };
332
+ $[3] = options;
333
+ $[4] = t0;
334
+ $[5] = t1;
335
+ $[6] = t2;
336
+ } else {
337
+ t2 = $[6];
338
+ }
339
+ return useQuery(t2);
340
+ };
341
+ const useGetPeopleSoftDepartments = (options) => {
342
+ const $ = compilerRuntimeExports.c(3);
343
+ let t0;
344
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
345
+ t0 = [QUERY_KEY, "department"];
346
+ $[0] = t0;
347
+ } else {
348
+ t0 = $[0];
349
+ }
350
+ let t1;
351
+ if ($[1] !== options) {
352
+ t1 = {
353
+ ...options,
354
+ queryKey: t0,
355
+ queryFn: _temp12,
356
+ staleTime: DAY,
357
+ gcTime: DAY,
358
+ refetchOnWindowFocus: false
359
+ };
360
+ $[1] = options;
361
+ $[2] = t1;
362
+ } else {
363
+ t1 = $[2];
364
+ }
365
+ return useQuery(t1);
366
+ };
367
+ const useGetPeopleSoftDepartmentById = (departmentId, options) => {
368
+ const $ = compilerRuntimeExports.c(7);
369
+ let t0;
370
+ let t1;
371
+ if ($[0] !== departmentId) {
372
+ t0 = [QUERY_KEY, "department", departmentId];
373
+ t1 = (t22) => {
374
+ const {
375
+ signal
376
+ } = t22;
377
+ return httpClient.request({
378
+ url: `/${QUERY_KEY}/v1/department/${departmentId}`,
379
+ method: "GET",
380
+ signal
381
+ }).then(_temp13);
382
+ };
383
+ $[0] = departmentId;
384
+ $[1] = t0;
385
+ $[2] = t1;
386
+ } else {
387
+ t0 = $[1];
388
+ t1 = $[2];
389
+ }
390
+ let t2;
391
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
392
+ t2 = {
393
+ ...options,
394
+ queryKey: t0,
395
+ queryFn: t1,
396
+ staleTime: DAY,
397
+ gcTime: DAY,
398
+ refetchOnWindowFocus: false
399
+ };
400
+ $[3] = options;
401
+ $[4] = t0;
402
+ $[5] = t1;
403
+ $[6] = t2;
404
+ } else {
405
+ t2 = $[6];
406
+ }
407
+ return useQuery(t2);
408
+ };
409
+ const useGetPeopleSoftDepartmentManager = (departmentId, options) => {
410
+ const $ = compilerRuntimeExports.c(7);
411
+ let t0;
412
+ let t1;
413
+ if ($[0] !== departmentId) {
414
+ t0 = [QUERY_KEY, "department", departmentId, "manager"];
415
+ t1 = (t22) => {
416
+ const {
417
+ signal
418
+ } = t22;
419
+ return httpClient.request({
420
+ url: `/${QUERY_KEY}/v1/department/${departmentId}/manager`,
421
+ method: "GET",
422
+ signal
423
+ }).then(_temp14);
424
+ };
425
+ $[0] = departmentId;
426
+ $[1] = t0;
427
+ $[2] = t1;
428
+ } else {
429
+ t0 = $[1];
430
+ t1 = $[2];
431
+ }
432
+ let t2;
433
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
434
+ t2 = {
435
+ ...options,
436
+ queryKey: t0,
437
+ queryFn: t1,
438
+ staleTime: DAY,
439
+ gcTime: DAY,
440
+ refetchOnWindowFocus: false
441
+ };
442
+ $[3] = options;
443
+ $[4] = t0;
444
+ $[5] = t1;
445
+ $[6] = t2;
446
+ } else {
447
+ t2 = $[6];
448
+ }
449
+ return useQuery(t2);
450
+ };
451
+ const useGetPeopleSoftDepartmentEmployees = (departmentId, options) => {
452
+ const $ = compilerRuntimeExports.c(7);
453
+ let t0;
454
+ let t1;
455
+ if ($[0] !== departmentId) {
456
+ t0 = [QUERY_KEY, "department", departmentId, "employees"];
457
+ t1 = (t22) => {
458
+ const {
459
+ signal
460
+ } = t22;
461
+ return httpClient.request({
462
+ url: `/${QUERY_KEY}/v1/department/${departmentId}/employees`,
463
+ method: "GET",
464
+ signal
465
+ }).then(_temp15);
466
+ };
467
+ $[0] = departmentId;
468
+ $[1] = t0;
469
+ $[2] = t1;
470
+ } else {
471
+ t0 = $[1];
472
+ t1 = $[2];
473
+ }
474
+ let t2;
475
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
476
+ t2 = {
477
+ ...options,
478
+ queryKey: t0,
479
+ queryFn: t1,
480
+ staleTime: DAY,
481
+ gcTime: DAY,
482
+ refetchOnWindowFocus: false
483
+ };
484
+ $[3] = options;
485
+ $[4] = t0;
486
+ $[5] = t1;
487
+ $[6] = t2;
488
+ } else {
489
+ t2 = $[6];
490
+ }
491
+ return useQuery(t2);
492
+ };
493
+ const useGetPeopleSoftCompanyGeneralManager = (companyCode, options) => {
494
+ const $ = compilerRuntimeExports.c(7);
495
+ let t0;
496
+ let t1;
497
+ if ($[0] !== companyCode) {
498
+ t0 = [QUERY_KEY, "company", companyCode, "generalManager"];
499
+ t1 = (t22) => {
500
+ const {
501
+ signal
502
+ } = t22;
503
+ return httpClient.request({
504
+ url: `/${QUERY_KEY}/v1/company/${companyCode}/generalManager`,
505
+ method: "GET",
506
+ signal
507
+ }).then(_temp16);
508
+ };
509
+ $[0] = companyCode;
510
+ $[1] = t0;
511
+ $[2] = t1;
512
+ } else {
513
+ t0 = $[1];
514
+ t1 = $[2];
515
+ }
516
+ let t2;
517
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
518
+ t2 = {
519
+ ...options,
520
+ queryKey: t0,
521
+ queryFn: t1,
522
+ staleTime: DAY,
523
+ gcTime: DAY,
524
+ refetchOnWindowFocus: false
525
+ };
526
+ $[3] = options;
527
+ $[4] = t0;
528
+ $[5] = t1;
529
+ $[6] = t2;
530
+ } else {
531
+ t2 = $[6];
532
+ }
533
+ return useQuery(t2);
534
+ };
535
+ function _temp$1(request) {
536
+ return request.data;
537
+ }
538
+ function _temp2$1(request) {
539
+ return request.data;
540
+ }
541
+ function _temp3$1(t0) {
542
+ const {
543
+ signal
544
+ } = t0;
545
+ return httpClient.request({
546
+ url: `/${QUERY_KEY}/v1/employee/all`,
547
+ method: "GET",
548
+ signal
549
+ }).then(_temp2$1);
550
+ }
551
+ function _temp4$1(request) {
552
+ return request.data;
553
+ }
554
+ function _temp5$1(t0) {
555
+ const {
556
+ signal
557
+ } = t0;
558
+ return httpClient.request({
559
+ url: `/${QUERY_KEY}/v1/employee/active`,
560
+ method: "GET",
561
+ signal
562
+ }).then(_temp4$1);
563
+ }
564
+ function _temp6$1(request) {
565
+ return request.data;
566
+ }
567
+ function _temp7$1(request) {
568
+ return request.data;
569
+ }
570
+ function _temp8$1(t0) {
571
+ const {
572
+ signal
573
+ } = t0;
574
+ return httpClient.request({
575
+ url: `/${QUERY_KEY}/v1/employee/previousIds`,
576
+ method: "GET",
577
+ signal
578
+ }).then(_temp7$1);
579
+ }
580
+ function _temp9$1(request) {
581
+ return request.data;
582
+ }
583
+ function _temp0$1(request) {
584
+ return request.data;
585
+ }
586
+ function _temp1$1(request) {
587
+ return request.data;
588
+ }
589
+ function _temp10$1(request) {
590
+ return request.data;
591
+ }
592
+ function _temp11(request) {
593
+ return request.data;
594
+ }
595
+ function _temp12(t0) {
596
+ const {
597
+ signal
598
+ } = t0;
599
+ return httpClient.request({
600
+ url: `/${QUERY_KEY}/v1/department/all`,
601
+ method: "GET",
602
+ signal
603
+ }).then(_temp11);
604
+ }
605
+ function _temp13(request) {
606
+ return request.data;
607
+ }
608
+ function _temp14(request) {
609
+ return request.data;
610
+ }
611
+ function _temp15(request) {
612
+ return request.data;
613
+ }
614
+ function _temp16(request) {
615
+ return request.data;
616
+ }
617
+ const ROUTE = "approval";
618
+ const APP_NAME = toKebabCase(clientEnv.VITE_APP_TITLE);
619
+ z__default.object({
620
+ appName: z__default.string().min(1).max(255).default(APP_NAME).optional(),
621
+ status: ApprovalStatus.optional(),
622
+ approverEmployeeId: z__default.string().min(1).max(20).optional(),
623
+ stepResult: ApprovalStepResult.optional()
624
+ });
625
+ const useGetApprovals = (params, options) => {
626
+ const $ = compilerRuntimeExports.c(10);
627
+ let queryParams;
628
+ if ($[0] !== params) {
629
+ queryParams = new URLSearchParams();
630
+ queryParams.append("applicationName", params?.appName ?? APP_NAME);
631
+ if (params?.status) {
632
+ queryParams.append("status", params.status.toString());
633
+ }
634
+ if (params?.approverEmployeeId) {
635
+ queryParams.append("approverEmployeeId", params.approverEmployeeId);
636
+ }
637
+ if (params?.stepResult) {
638
+ queryParams.append("stepResult", params.stepResult.toString());
639
+ }
640
+ $[0] = params;
641
+ $[1] = queryParams;
642
+ } else {
643
+ queryParams = $[1];
644
+ }
645
+ let t0;
646
+ if ($[2] !== params) {
647
+ t0 = [ROUTE, params];
648
+ $[2] = params;
649
+ $[3] = t0;
650
+ } else {
651
+ t0 = $[3];
652
+ }
653
+ let t1;
654
+ if ($[4] !== queryParams) {
655
+ t1 = (t22) => {
656
+ const {
657
+ signal
658
+ } = t22;
659
+ return httpClient.request({
660
+ url: `/${ROUTE}/Requests/Requests?${queryParams.toString()}`,
661
+ method: "GET",
662
+ signal
663
+ }).then(_temp);
664
+ };
665
+ $[4] = queryParams;
666
+ $[5] = t1;
667
+ } else {
668
+ t1 = $[5];
669
+ }
670
+ let t2;
671
+ if ($[6] !== options || $[7] !== t0 || $[8] !== t1) {
672
+ t2 = {
673
+ ...options,
674
+ queryKey: t0,
675
+ queryFn: t1
676
+ };
677
+ $[6] = options;
678
+ $[7] = t0;
679
+ $[8] = t1;
680
+ $[9] = t2;
681
+ } else {
682
+ t2 = $[9];
683
+ }
684
+ return useQuery(t2);
685
+ };
686
+ const useGetApproval = (id, options) => {
687
+ const $ = compilerRuntimeExports.c(7);
688
+ let t0;
689
+ let t1;
690
+ if ($[0] !== id) {
691
+ t0 = [ROUTE, id];
692
+ t1 = (t22) => {
693
+ const {
694
+ signal
695
+ } = t22;
696
+ return httpClient.request({
697
+ url: `/${ROUTE}/Requests/${id}`,
698
+ method: "GET",
699
+ signal
700
+ }).then(_temp2);
701
+ };
702
+ $[0] = id;
703
+ $[1] = t0;
704
+ $[2] = t1;
705
+ } else {
706
+ t0 = $[1];
707
+ t1 = $[2];
708
+ }
709
+ let t2;
710
+ if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
711
+ t2 = {
712
+ ...options,
713
+ queryKey: t0,
714
+ queryFn: t1
715
+ };
716
+ $[3] = options;
717
+ $[4] = t0;
718
+ $[5] = t1;
719
+ $[6] = t2;
720
+ } else {
721
+ t2 = $[6];
722
+ }
723
+ return useQuery(t2);
724
+ };
725
+ const useCreateApproval = (options) => {
726
+ const $ = compilerRuntimeExports.c(5);
727
+ const queryClient = useQueryClient();
728
+ let t0;
729
+ if ($[0] !== queryClient) {
730
+ t0 = () => queryClient.invalidateQueries({
731
+ queryKey: [ROUTE],
732
+ exact: false
733
+ });
734
+ $[0] = queryClient;
735
+ $[1] = t0;
736
+ } else {
737
+ t0 = $[1];
738
+ }
739
+ let t1;
740
+ if ($[2] !== options || $[3] !== t0) {
741
+ t1 = {
742
+ ...options,
743
+ mutationFn: _temp4,
744
+ onSettled: t0
745
+ };
746
+ $[2] = options;
747
+ $[3] = t0;
748
+ $[4] = t1;
749
+ } else {
750
+ t1 = $[4];
751
+ }
752
+ return useMutation(t1);
753
+ };
754
+ const useApproveApproval = (options) => {
755
+ const $ = compilerRuntimeExports.c(5);
756
+ const queryClient = useQueryClient();
757
+ let t0;
758
+ if ($[0] !== queryClient) {
759
+ t0 = () => queryClient.invalidateQueries({
760
+ queryKey: [ROUTE],
761
+ exact: false
762
+ });
763
+ $[0] = queryClient;
764
+ $[1] = t0;
765
+ } else {
766
+ t0 = $[1];
767
+ }
768
+ let t1;
769
+ if ($[2] !== options || $[3] !== t0) {
770
+ t1 = {
771
+ ...options,
772
+ mutationFn: _temp6,
773
+ onSettled: t0
774
+ };
775
+ $[2] = options;
776
+ $[3] = t0;
777
+ $[4] = t1;
778
+ } else {
779
+ t1 = $[4];
780
+ }
781
+ return useMutation(t1);
782
+ };
783
+ const useResubmitApproval = (options) => {
784
+ const $ = compilerRuntimeExports.c(5);
785
+ const queryClient = useQueryClient();
786
+ let t0;
787
+ if ($[0] !== queryClient) {
788
+ t0 = () => queryClient.invalidateQueries({
789
+ queryKey: [ROUTE],
790
+ exact: false
791
+ });
792
+ $[0] = queryClient;
793
+ $[1] = t0;
794
+ } else {
795
+ t0 = $[1];
796
+ }
797
+ let t1;
798
+ if ($[2] !== options || $[3] !== t0) {
799
+ t1 = {
800
+ ...options,
801
+ mutationFn: _temp8,
802
+ onSettled: t0
803
+ };
804
+ $[2] = options;
805
+ $[3] = t0;
806
+ $[4] = t1;
807
+ } else {
808
+ t1 = $[4];
809
+ }
810
+ return useMutation(t1);
811
+ };
812
+ const useWithdrawApproval = (options) => {
813
+ const $ = compilerRuntimeExports.c(5);
814
+ const queryClient = useQueryClient();
815
+ let t0;
816
+ if ($[0] !== queryClient) {
817
+ t0 = () => queryClient.invalidateQueries({
818
+ queryKey: [ROUTE],
819
+ exact: false
820
+ });
821
+ $[0] = queryClient;
822
+ $[1] = t0;
823
+ } else {
824
+ t0 = $[1];
825
+ }
826
+ let t1;
827
+ if ($[2] !== options || $[3] !== t0) {
828
+ t1 = {
829
+ ...options,
830
+ mutationFn: _temp0,
831
+ onSettled: t0
832
+ };
833
+ $[2] = options;
834
+ $[3] = t0;
835
+ $[4] = t1;
836
+ } else {
837
+ t1 = $[4];
838
+ }
839
+ return useMutation(t1);
840
+ };
841
+ const useCancelApproval = (options) => {
842
+ const $ = compilerRuntimeExports.c(5);
843
+ const queryClient = useQueryClient();
844
+ let t0;
845
+ if ($[0] !== queryClient) {
846
+ t0 = () => queryClient.invalidateQueries({
847
+ queryKey: [ROUTE],
848
+ exact: false
849
+ });
850
+ $[0] = queryClient;
851
+ $[1] = t0;
852
+ } else {
853
+ t0 = $[1];
854
+ }
855
+ let t1;
856
+ if ($[2] !== options || $[3] !== t0) {
857
+ t1 = {
858
+ ...options,
859
+ mutationFn: _temp10,
860
+ onSettled: t0
861
+ };
862
+ $[2] = options;
863
+ $[3] = t0;
864
+ $[4] = t1;
865
+ } else {
866
+ t1 = $[4];
867
+ }
868
+ return useMutation(t1);
869
+ };
870
+ function _temp(request) {
871
+ return request.data;
872
+ }
873
+ function _temp2(request) {
874
+ return request.data;
875
+ }
876
+ function _temp3(request) {
877
+ return request.data;
878
+ }
879
+ function _temp4(data) {
880
+ return httpClient.request({
881
+ url: `/${ROUTE}/Requests`,
882
+ method: "POST",
883
+ data
884
+ }).then(_temp3);
885
+ }
886
+ function _temp5(request) {
887
+ return request.data;
888
+ }
889
+ function _temp6(data) {
890
+ return httpClient.request({
891
+ url: `/${ROUTE}/Requests/${data.id}/single-approval`,
892
+ method: "POST",
893
+ data
894
+ }).then(_temp5);
895
+ }
896
+ function _temp7(request) {
897
+ return request.data;
898
+ }
899
+ function _temp8(data) {
900
+ return httpClient.request({
901
+ url: `/${ROUTE}/Requests/${data.id}/resubmit`,
902
+ method: "POST",
903
+ data
904
+ }).then(_temp7);
905
+ }
906
+ function _temp9(request) {
907
+ return request.data;
908
+ }
909
+ function _temp0(data) {
910
+ return httpClient.request({
911
+ url: `/${ROUTE}/Requests/${data.id}/withdraw`,
912
+ method: "POST",
913
+ data
914
+ }).then(_temp9);
915
+ }
916
+ function _temp1(request) {
917
+ return request.data;
918
+ }
919
+ function _temp10(data) {
920
+ return httpClient.request({
921
+ url: `/${ROUTE}/Requests/${data.id}/cancel`,
922
+ method: "POST",
923
+ data
924
+ }).then(_temp1);
925
+ }
5
926
  export {
6
- queryClient,
927
+ q as queryClient,
7
928
  useApproveApproval,
8
929
  useCancelApproval,
9
930
  useCreateApproval,
10
- useDeleteFile,
11
- useDeleteFiles,
12
- useDownloadFile,
931
+ f as useDeleteFile,
932
+ g as useDeleteFiles,
933
+ c as useDownloadFile,
13
934
  useGetApproval,
14
935
  useGetApprovals,
15
- useGetFile,
16
- useGetFileMetas,
17
- useGetFileThumbnail,
936
+ b as useGetFile,
937
+ u as useGetFileMetas,
938
+ a as useGetFileThumbnail,
18
939
  useGetPeopleSoftActiveEmployees,
19
940
  useGetPeopleSoftCompanyGeneralManager,
20
941
  useGetPeopleSoftDepartmentById,
@@ -29,10 +950,10 @@ export {
29
950
  useGetPeopleSoftEmployees,
30
951
  useGetPeopleSoftEmployeesSearch,
31
952
  useGetPeopleSoftPreviousEmployeeIds,
32
- useOpenFile,
953
+ d as useOpenFile,
33
954
  useResubmitApproval,
34
- useUpdateFileMeta,
35
- useUploadFile,
955
+ e as useUpdateFileMeta,
956
+ h as useUploadFile,
36
957
  useWithdrawApproval
37
958
  };
38
959
  //# sourceMappingURL=queries.js.map