@omniumretail/shared-resources 0.3.84 → 0.3.85

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 (434) hide show
  1. package/dist/shared-resources.es.js +4780 -0
  2. package/dist/shared-resources.umd.js +2 -33
  3. package/package.json +40 -17
  4. package/.eslintrc.json +0 -32
  5. package/dist/shared-resources.umd.js.map +0 -1
  6. package/dist/types/index.d.ts +0 -2
  7. package/src/a2ai.scss +0 -130
  8. package/src/assets/omniu-retail_branco_s-fundo.png +0 -0
  9. package/src/assets/sitoo.svg +0 -9
  10. package/src/components/SharedContextProvider/index.tsx +0 -30
  11. package/src/components/index.ts +0 -1
  12. package/src/constants/QueryClient.ts +0 -10
  13. package/src/constants/index.ts +0 -1
  14. package/src/contexts/useStore.tsx +0 -20
  15. package/src/enums/attendence-type.enum.ts +0 -5
  16. package/src/enums/employees-order.enum.ts +0 -7
  17. package/src/enums/index.ts +0 -2
  18. package/src/global.scss +0 -124
  19. package/src/helpers/codeMutation.tsx +0 -19
  20. package/src/helpers/date-unix.helper.ts +0 -28
  21. package/src/helpers/formatted-date.helper.ts +0 -11
  22. package/src/helpers/getChildrenByType.helper.ts +0 -5
  23. package/src/helpers/index.ts +0 -4
  24. package/src/hooks/ACB/get/getClientBalance.hook.ts +0 -20
  25. package/src/hooks/ACB/mutate/postClientBalance.hook.ts +0 -16
  26. package/src/hooks/ASAEGNG/get/getCustomerHistoryQuery.hook.ts +0 -24
  27. package/src/hooks/ASAEGNG/get/getCustomerVouchersQuery.hook.ts +0 -24
  28. package/src/hooks/ASAEGNG/get/getCustomersQuery.hook.ts +0 -28
  29. package/src/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.ts +0 -33
  30. package/src/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.ts +0 -38
  31. package/src/hooks/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.ts +0 -52
  32. package/src/hooks/ATIM/BackOffice/get/useEmployeeQueryHook.hook.ts +0 -29
  33. package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +0 -51
  34. package/src/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.ts +0 -36
  35. package/src/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.ts +0 -36
  36. package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.ts +0 -16
  37. package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.ts +0 -36
  38. package/src/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.ts +0 -28
  39. package/src/hooks/ATIM/BackOffice/get/useStoresQueryHook.hook.ts +0 -27
  40. package/src/hooks/ATIM/BackOffice/get/useWorkMonths.hook.ts +0 -31
  41. package/src/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.ts +0 -31
  42. package/src/hooks/ATIM/BackOffice/mutate/postAttendanceRange.hook.ts +0 -16
  43. package/src/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.ts +0 -21
  44. package/src/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.ts +0 -25
  45. package/src/hooks/ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook.ts +0 -17
  46. package/src/hooks/ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook.ts +0 -35
  47. package/src/hooks/ATIM/PicaPonto/mutate/postAttendance.hook.ts +0 -16
  48. package/src/hooks/ATIM/PicaPonto/mutate/postTogglePinCode.ts +0 -33
  49. package/src/hooks/ATIM/PicaPonto/mutate/postVerifyUserQuery.hook.ts +0 -15
  50. package/src/hooks/Acls/get/getCustomersLoyaltyQuery.hook.ts +0 -22
  51. package/src/hooks/Acls/get/getVoucherLoyaltyQuery.hook.ts +0 -25
  52. package/src/hooks/Acls/get/getVoucherSitooQuery.hook.ts +0 -22
  53. package/src/hooks/Acls/get/getVoucherTemplatesQuery.hook.ts +0 -29
  54. package/src/hooks/Acls/mutate/postCreateVoucherTemplates.hook.ts +0 -19
  55. package/src/hooks/Acls/mutate/postSaldoVoucherQuery.hook.ts +0 -21
  56. package/src/hooks/Acls/mutate/postSalesAssociationQuery.hook.ts +0 -20
  57. package/src/hooks/Acls/mutate/postVerificationEmailQuery.hook.ts +0 -23
  58. package/src/hooks/Acls/mutate/postVerificationUserQuery.hook.ts +0 -23
  59. package/src/hooks/Acls/mutate/postVoucherSitooQuery.hook.ts +0 -21
  60. package/src/hooks/Acls/mutate/reactivateVoucherQuery.hook.ts +0 -27
  61. package/src/hooks/Acls/mutate/updateDisabledVoucherTemplates.hook.ts +0 -25
  62. package/src/hooks/Aexp/get/getFlowExecutionByIdQuery.hook.ts +0 -13
  63. package/src/hooks/Aexp/get/getFlowExecutionQuery.hook.ts +0 -27
  64. package/src/hooks/Aexp/get/getFlowListByIdQuery.hook.ts +0 -13
  65. package/src/hooks/Aexp/get/getFlowListQuery.hook.ts +0 -29
  66. package/src/hooks/Aexp/get/getTagsFlowQuery.hook.ts +0 -11
  67. package/src/hooks/Aexp/mutate/deleteFlowConfigurationQuery.hook.ts +0 -17
  68. package/src/hooks/Aexp/mutate/inactivateFlowConfigurationQuery.hook.ts +0 -18
  69. package/src/hooks/Aexp/mutate/runFlowExecutionQuery.hook.ts +0 -20
  70. package/src/hooks/Aexp/mutate/useFlowConfigurationQuery.hook.ts +0 -17
  71. package/src/hooks/Aexp/mutate/useFlowExecutionQuery.hook.ts +0 -22
  72. package/src/hooks/Aexp/mutate/validateExecutionFileQuery.hook.ts +0 -15
  73. package/src/hooks/Analytics/get/getArchivedAnalyticsQuery.hook.ts +0 -32
  74. package/src/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.ts +0 -21
  75. package/src/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.ts +0 -23
  76. package/src/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.ts +0 -21
  77. package/src/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.ts +0 -32
  78. package/src/hooks/Analytics/get/useAnalyticsUserQuery.hook.ts +0 -35
  79. package/src/hooks/Anot/get/getNotificationApplicationsQuery.hook.ts +0 -13
  80. package/src/hooks/Anot/get/getNotificationCriticalitiesQuery.hook.ts +0 -13
  81. package/src/hooks/Anot/get/getNotificationHeadersQuery.hook.ts +0 -33
  82. package/src/hooks/Anot/get/getNotificationLanguagesQuery.hook.ts +0 -15
  83. package/src/hooks/Anot/get/getNotificationTypeByIdQuery.hook.ts +0 -11
  84. package/src/hooks/Anot/get/getNotificationsQuery.hook.ts +0 -29
  85. package/src/hooks/Anot/get/getNotificationsTypeQuery.hook.ts +0 -27
  86. package/src/hooks/Anot/mutate/useNotificationTypeQuery.hook.ts +0 -18
  87. package/src/hooks/Answer/get/useAnswerIdQuery.hook.ts +0 -13
  88. package/src/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.ts +0 -21
  89. package/src/hooks/Answer/mutate/useAnswerMutateQuery.hook.ts +0 -31
  90. package/src/hooks/Answer/others/openAnswerQuery.hook.ts +0 -19
  91. package/src/hooks/Answer/others/postAnswersExportQuery.hook.ts +0 -26
  92. package/src/hooks/Answer/others/showAnswerQuery.hook.ts +0 -18
  93. package/src/hooks/AprProduct/get/useProductHierarchies.hook.ts +0 -19
  94. package/src/hooks/AprProduct/get/useProductRecommendations.hook.ts +0 -27
  95. package/src/hooks/AprProduct/get/useProductsByRefQuery.hook.ts +0 -18
  96. package/src/hooks/AprProduct/get/useProductsQuery.hook.ts +0 -46
  97. package/src/hooks/Aprc/get/getPriceChangePinQuery.hook.ts +0 -16
  98. package/src/hooks/Aprc/others/postPriceChangePinQuery.hook.ts +0 -19
  99. package/src/hooks/Aprc/others/sendEmailWithPinQuery.hook.ts +0 -19
  100. package/src/hooks/Asgt/get/getIdProductsPickedASGTQuery.hook.ts +0 -10
  101. package/src/hooks/Asgt/get/getProductWarningASGTQuery.hook.ts +0 -27
  102. package/src/hooks/Asgt/get/getProductsListingASGTQuery.hook.ts +0 -14
  103. package/src/hooks/Asgt/get/getProductsMovementsASGTQuery.hook.ts +0 -27
  104. package/src/hooks/Asgt/get/getProductsPickedASGTQuery.hook.ts +0 -19
  105. package/src/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.ts +0 -12
  106. package/src/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.ts +0 -25
  107. package/src/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.ts +0 -27
  108. package/src/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.ts +0 -12
  109. package/src/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.ts +0 -13
  110. package/src/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.ts +0 -23
  111. package/src/hooks/Asgt/get/getTransferReportDiffASGT.hook.ts +0 -17
  112. package/src/hooks/Asgt/mutate/autoSaveASGTQuery.hook.ts +0 -23
  113. package/src/hooks/Asgt/mutate/createPackageASGTMutateQuery.hook.ts +0 -21
  114. package/src/hooks/Asgt/mutate/createTransferASGTMutateQuery.hook.ts +0 -15
  115. package/src/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.ts +0 -23
  116. package/src/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.ts +0 -21
  117. package/src/hooks/Asgt/mutate/removeProductASGTQuery.hook.ts +0 -15
  118. package/src/hooks/Ass/get/getAssProductsByRefQuery.hook.ts +0 -23
  119. package/src/hooks/Ass/get/getAssProductsByStoreQuery.hook.ts +0 -29
  120. package/src/hooks/Ass/get/getAssProductsStockDetailsQuery.hook.ts +0 -21
  121. package/src/hooks/Asta/Actions/get/getActionByIdQuery.hook.ts +0 -15
  122. package/src/hooks/Asta/Actions/get/getActionPriorityQuery.hook.ts +0 -10
  123. package/src/hooks/Asta/Actions/get/getActionQuery.hook.ts +0 -29
  124. package/src/hooks/Asta/Actions/get/getActionStagesQuery.hook.ts +0 -10
  125. package/src/hooks/Asta/Actions/mutate/useActionMutateQuery.hook.ts +0 -20
  126. package/src/hooks/Asta/Actions/others/archiveActionQuery.hook.ts +0 -19
  127. package/src/hooks/Asta/Actions/others/deleteActionQuery.hook.ts +0 -19
  128. package/src/hooks/Asta/Actions/others/extractActionQuery.hook.ts +0 -19
  129. package/src/hooks/Asta/Actions/others/finishActionQuery.hook.ts +0 -17
  130. package/src/hooks/Asta/Actions/others/selectActionStatusQuery.hook.ts +0 -18
  131. package/src/hooks/Asta/Actions/others/startActionQuery.hook.ts +0 -17
  132. package/src/hooks/Asta/Answer/get/getAstaAnswerByIdQuery.hook.ts +0 -15
  133. package/src/hooks/Asta/Answer/get/getAstaAnswerQuery.hook.ts +0 -29
  134. package/src/hooks/Asta/Answer/mutate/useAstaAnswersMutateQuery.hook.ts +0 -20
  135. package/src/hooks/Asta/Answer/others/finishAstaAnswersQuery.hook.ts +0 -15
  136. package/src/hooks/Asta/Answer/others/finishGNGAstaAnswersQuery.hook.ts +0 -18
  137. package/src/hooks/Asta/Answer/others/putAnswerImageQuery.hook.ts +0 -15
  138. package/src/hooks/Asta/Answer/others/sendInspectionEmailQuery.hook.ts +0 -21
  139. package/src/hooks/Asta/Answer/others/sendInspectionEmailStoreQuery.hook.ts +0 -20
  140. package/src/hooks/Asta/AnswerType/get/getAllAnswerTypeQuery.hook.ts +0 -29
  141. package/src/hooks/Asta/AnswerType/get/getAnswerColorsQuery.hook.ts +0 -10
  142. package/src/hooks/Asta/AnswerType/get/getAnswerTypeByIdQuery.hook.ts +0 -15
  143. package/src/hooks/Asta/AnswerType/get/getAnswerTypeQuery.hook.ts +0 -10
  144. package/src/hooks/Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook.ts +0 -20
  145. package/src/hooks/Asta/AnswerType/others/deleteAnswerTypeQuery.hook.ts +0 -19
  146. package/src/hooks/Asta/AnswerType/others/finishAnswerTypeQuery.hook.ts +0 -17
  147. package/src/hooks/Asta/AnswerType/others/selectAnswerNameQuery.hook.ts +0 -18
  148. package/src/hooks/Asta/Inspection/get/getInspectionQuery.hook.ts +0 -29
  149. package/src/hooks/Asta/Inspection/mutate/useInspectionMutateQuery.hook.ts +0 -24
  150. package/src/hooks/Asta/Inspection/others/archiveTemplateQuery.hook.ts +0 -19
  151. package/src/hooks/Asta/Inspection/others/deleteInspectionQuery.hook.ts +0 -19
  152. package/src/hooks/Asta/Inspection/others/exportInspectionQuery.hook.ts +0 -19
  153. package/src/hooks/Asta/Inspection/others/extractTemplateQuery.hook.ts +0 -19
  154. package/src/hooks/Asta/Inspection/others/finishInspectionQuery.hook.ts +0 -17
  155. package/src/hooks/Asta/Template/get/getTemplateByIdQuery.hook.ts +0 -15
  156. package/src/hooks/Asta/Template/get/getTemplateHeadersQuery.hook.ts +0 -10
  157. package/src/hooks/Asta/Template/get/getTemplateQuery.hook.ts +0 -29
  158. package/src/hooks/Asta/Template/mutate/useTemplateMutateQuery.hook.ts +0 -20
  159. package/src/hooks/Asta/Template/others/archiveTemplateQuery.hook.ts +0 -19
  160. package/src/hooks/Asta/Template/others/deleteTemplateQuery.hook.ts +0 -19
  161. package/src/hooks/Asta/Template/others/duplicateTemplateQuery.hook.ts +0 -19
  162. package/src/hooks/Asta/Template/others/extractTemplateQuery.hook.ts +0 -19
  163. package/src/hooks/Asta/Template/others/finishTemplateQuery.hook.ts +0 -17
  164. package/src/hooks/Asts/get/getProductInfoQuery.hook.ts +0 -19
  165. package/src/hooks/Asts/get/getStockQuery.hook.ts +0 -21
  166. package/src/hooks/Asts/others/postAudioFileQuery.hook.ts +0 -14
  167. package/src/hooks/Astt/Asgt/get/getAllAdidasProductsQuery.hook.ts +0 -25
  168. package/src/hooks/Astt/Asgt/get/getIdProductsPickedASTTQuery.hook.ts +0 -10
  169. package/src/hooks/Astt/Asgt/get/getProductWarningASTTQuery.hook.ts +0 -27
  170. package/src/hooks/Astt/Asgt/get/getProductsListingASTTQuery.hook.ts +0 -14
  171. package/src/hooks/Astt/Asgt/get/getProductsMovementsASTTQuery.hook.ts +0 -27
  172. package/src/hooks/Astt/Asgt/get/getProductsPickedASTTQuery.hook.ts +0 -19
  173. package/src/hooks/Astt/Asgt/get/getReportsBuilderASTTQuery.hook.ts +0 -12
  174. package/src/hooks/Astt/Asgt/get/getReprocessNeededASTTQuery.hook.ts +0 -12
  175. package/src/hooks/Astt/Asgt/get/getTransferAllProductsASTTQuery.hook.ts +0 -25
  176. package/src/hooks/Astt/Asgt/get/getTransferDocumentsASTTQuery.hook.ts +0 -27
  177. package/src/hooks/Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook.ts +0 -12
  178. package/src/hooks/Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook.ts +0 -13
  179. package/src/hooks/Astt/Asgt/get/getTransferDocumentsPackagesASTTQuery.hook.ts +0 -23
  180. package/src/hooks/Astt/Asgt/get/getTransferReportDiffASTT.hook.ts +0 -17
  181. package/src/hooks/Astt/Asgt/mutate/autoSaveASTTQuery.hook.ts +0 -23
  182. package/src/hooks/Astt/Asgt/mutate/createPackageASTTMutateQuery.hook.ts +0 -21
  183. package/src/hooks/Astt/Asgt/mutate/createTransferASTTMutateQuery.hook.ts +0 -15
  184. package/src/hooks/Astt/Asgt/mutate/deleteProductASTTQuery.hook.ts +0 -25
  185. package/src/hooks/Astt/Asgt/mutate/finishPackageASTTQuery.hook.ts +0 -21
  186. package/src/hooks/Astt/Asgt/mutate/postMissingProductsASTTQuery.hook.ts +0 -21
  187. package/src/hooks/Astt/Asgt/mutate/postReprocessASTTQuery.hook.ts +0 -20
  188. package/src/hooks/Astt/Asgt/mutate/postRfidASGTMutateQuery.hook.ts +0 -28
  189. package/src/hooks/Astt/Asgt/mutate/postTransferDocumentsASTTMutateQuery.hook.ts +0 -23
  190. package/src/hooks/Astt/Asgt/mutate/putTransferDocumentsStateASTTMutateQuery.hook.ts +0 -21
  191. package/src/hooks/Astt/Asgt/mutate/removeProductASTTQuery.hook.ts +0 -15
  192. package/src/hooks/Astt/Asgt/mutate/restartProductASTTQuery.hook.ts +0 -22
  193. package/src/hooks/Astt/get/getBarcodesListingByPackageQuery.hook.ts +0 -14
  194. package/src/hooks/Astt/get/getBarcodesListingQuery.hook.ts +0 -13
  195. package/src/hooks/Astt/get/getBarcodesPrintQuery.hook.ts +0 -12
  196. package/src/hooks/Astt/get/getDocumentsFindByIdQuery.hook.ts +0 -12
  197. package/src/hooks/Astt/get/getManualPackagesListQuery.hook.ts +0 -20
  198. package/src/hooks/Astt/get/getProductsListingQuery.hook.ts +0 -14
  199. package/src/hooks/Astt/get/getReconciliationDocumentsQuery.hook.ts +0 -18
  200. package/src/hooks/Astt/get/getReportsBuilderQuery.hook.ts +0 -12
  201. package/src/hooks/Astt/get/getRfidQuery.hook.ts +0 -23
  202. package/src/hooks/Astt/get/getTransferAllProductsQuery.hook.ts +0 -25
  203. package/src/hooks/Astt/get/getTransferDocumentsByIdQuery.hook.ts +0 -12
  204. package/src/hooks/Astt/get/getTransferDocumentsByPackageQuery.hook.ts +0 -13
  205. package/src/hooks/Astt/get/getTransferDocumentsPackagesQuery.hook.ts +0 -23
  206. package/src/hooks/Astt/get/getTransferDocumentsQuery.hook.ts +0 -27
  207. package/src/hooks/Astt/get/getTransferReportDiff.hook.ts +0 -17
  208. package/src/hooks/Astt/get/getTransferStatesQuery.hook.ts +0 -10
  209. package/src/hooks/Astt/mutate/deleteManualPackageQuery.hook.ts +0 -23
  210. package/src/hooks/Astt/mutate/notifyMissingProductsQuery.hook.ts +0 -36
  211. package/src/hooks/Astt/mutate/postAsttActionsQuery.hook.ts +0 -18
  212. package/src/hooks/Astt/mutate/postManualPackageQuery.hook.ts +0 -18
  213. package/src/hooks/Astt/mutate/postManualTransferQuery.hook.ts +0 -16
  214. package/src/hooks/Astt/mutate/postMatchingPackageQuery.hook.ts +0 -22
  215. package/src/hooks/Astt/mutate/postTransferDocumentsMutateQuery.hook.ts +0 -23
  216. package/src/hooks/Astt/mutate/putTransferDocumentFinishQuery.hook.ts +0 -21
  217. package/src/hooks/Astt/mutate/putTransferDocumentsPartiallyQuery.hook.ts +0 -21
  218. package/src/hooks/Astt/mutate/putTransferDocumentsStateMutateQuery.hook.ts +0 -21
  219. package/src/hooks/Astt/mutate/updateDocumentIdQuery.hook.ts +0 -23
  220. package/src/hooks/Astt/mutate/updatePackageIdQuery.hook.ts +0 -25
  221. package/src/hooks/AsvProduct/get/getProductsByRefQuery.hook.ts +0 -23
  222. package/src/hooks/AsvProduct/get/getProductsByStoreQuery.hook.ts +0 -29
  223. package/src/hooks/AsvProduct/get/getProductsStockDetailsQuery.hook.ts +0 -21
  224. package/src/hooks/BigWin/get/getBwgAllEmployeesQuery.hook.ts +0 -29
  225. package/src/hooks/BigWin/get/getBwgBackOfficeQuery.hook.ts +0 -29
  226. package/src/hooks/BigWin/get/getMonthsListQuery.hook.ts +0 -10
  227. package/src/hooks/BigWin/others/importABWGQuery.hook.ts +0 -20
  228. package/src/hooks/BigWin/others/importRegulationQuery.hook.ts +0 -15
  229. package/src/hooks/BigWin/others/publishMonthsEmployeeQuery.hook.ts +0 -19
  230. package/src/hooks/BigWin/others/publishMonthsManagerQuery.hook.ts +0 -19
  231. package/src/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.ts +0 -13
  232. package/src/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.ts +0 -29
  233. package/src/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.ts +0 -17
  234. package/src/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.ts +0 -15
  235. package/src/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.ts +0 -15
  236. package/src/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.ts +0 -15
  237. package/src/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.ts +0 -15
  238. package/src/hooks/OSUA/MIMO/get/getIntegrationByName.hook.ts +0 -19
  239. package/src/hooks/OSUA/MIMO/get/getProductIntegrationHistory.hook.ts +0 -25
  240. package/src/hooks/OSUA/MIMO/get/useErrorHistory.hook.ts +0 -21
  241. package/src/hooks/OSUA/MIMO/get/useIntegrationDataQuery.hook.ts +0 -15
  242. package/src/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.ts +0 -13
  243. package/src/hooks/OSUA/MIMO/mutate/postIntegrationDag.hook.ts +0 -18
  244. package/src/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.ts +0 -15
  245. package/src/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.ts +0 -25
  246. package/src/hooks/OSUA/MIMO/mutate/updateIntegrationProcess.hook.ts +0 -30
  247. package/src/hooks/OSUA/get/documentos/getGngDocumentos.hook.ts +0 -28
  248. package/src/hooks/OSUA/get/documentos/getSitooDocumentos.hook.ts +0 -21
  249. package/src/hooks/OSUA/get/eventos/getSitooErrorEvents.hook.ts +0 -30
  250. package/src/hooks/OSUA/get/faqs/getFaqsQuery.hook.ts +0 -33
  251. package/src/hooks/OSUA/get/orders/getOrderDocuments.hook.ts +0 -21
  252. package/src/hooks/OSUA/get/queue/getQueues.hook.ts +0 -15
  253. package/src/hooks/OSUA/get/queue/getQueuesMessages.hook.ts +0 -28
  254. package/src/hooks/OSUA/get/vouchers/getGngVoucher.hook.ts +0 -21
  255. package/src/hooks/OSUA/get/vouchers/getOsuaVouchersQuery.hook.ts +0 -27
  256. package/src/hooks/OSUA/get/vouchers/getSalesNumberOsua.hook.ts +0 -26
  257. package/src/hooks/OSUA/get/vouchers/getSitooVouchers.hook.ts +0 -22
  258. package/src/hooks/OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook.ts +0 -23
  259. package/src/hooks/OSUA/mutate/activateOsuaVoucherQuery.hook.ts +0 -24
  260. package/src/hooks/OSUA/mutate/postCreateIntegrationRequest.hook.ts +0 -28
  261. package/src/hooks/OSUA/mutate/postEventsRep.hook.ts +0 -16
  262. package/src/hooks/OSUA/mutate/postQueuesMessages.hook.ts +0 -21
  263. package/src/hooks/OSUA/mutate/postVoucher.hook.ts +0 -16
  264. package/src/hooks/OSUA/mutate/putBalanceVouchers.hook.ts +0 -25
  265. package/src/hooks/OSUA/mutate/useSetIntegrationToFinished.hook.ts +0 -21
  266. package/src/hooks/Orch/get/getAuth0ConfigQuery.hook.ts +0 -11
  267. package/src/hooks/Orch/get/getInstanceByIdQuery.hook.ts +0 -14
  268. package/src/hooks/Orch/get/getInstancesQuery.hook.ts +0 -27
  269. package/src/hooks/Orch/get/getMacrosInstancesQuery.hook.ts +0 -19
  270. package/src/hooks/Orch/get/getMacrosQuery.hook.ts +0 -27
  271. package/src/hooks/Orch/get/getMacrosUserQuery.hook.ts +0 -11
  272. package/src/hooks/Orch/get/getMonitoringComponents.hook.ts +0 -29
  273. package/src/hooks/Orch/others/reprocessingInstanceQuery.hook.ts +0 -14
  274. package/src/hooks/Orch/others/runMacrosQuery.hook.ts +0 -23
  275. package/src/hooks/Orch/others/stopInstanceQuery.hook.ts +0 -16
  276. package/src/hooks/Orch/others/updateMacroStatusQuery.hook.ts +0 -23
  277. package/src/hooks/Others/Vacation/get/getVacationPlanQuery.hook.ts +0 -20
  278. package/src/hooks/Others/Vacation/get/getVacationTemplateQuery.hook.ts +0 -11
  279. package/src/hooks/Others/Vacation/others/aproveVacationPlanQuery.hook.ts +0 -23
  280. package/src/hooks/Others/Vacation/others/postVacationPlanQuery.hook.ts +0 -20
  281. package/src/hooks/Others/Vacation/others/rejectVacationPlanQuery.hook.ts +0 -25
  282. package/src/hooks/Others/changePasswordQuery.hook.ts +0 -21
  283. package/src/hooks/Others/editAllBellNotificationsStatusQuery.hook.ts +0 -19
  284. package/src/hooks/Others/editBellNotificationsStatusQuery.hook.ts +0 -22
  285. package/src/hooks/Others/editFieldsByBulkQuery.hook.ts +0 -15
  286. package/src/hooks/Others/getBellNotificationsQuery.hook.ts +0 -28
  287. package/src/hooks/Others/getNotificationTitleQuery.hook.ts +0 -19
  288. package/src/hooks/Others/getRegulationQuery.hook.ts +0 -14
  289. package/src/hooks/Others/getUserEmailStatusQuery.hook.ts +0 -21
  290. package/src/hooks/Others/getWeeklyWorkloadQuery.hook.ts +0 -23
  291. package/src/hooks/Others/oneSignalUserQuery.hook.ts +0 -14
  292. package/src/hooks/Others/postCheckoutsMutateQuery.hook.ts +0 -15
  293. package/src/hooks/Others/postUserAuthenticationQuery.hook.ts +0 -19
  294. package/src/hooks/Others/postVerifyImageQuery.hook.ts +0 -15
  295. package/src/hooks/Others/unblockUserQuery.hook.ts +0 -14
  296. package/src/hooks/Others/useApplicationDataQuery.hook.ts +0 -10
  297. package/src/hooks/Others/useContractStatesQuery.hook.ts +0 -15
  298. package/src/hooks/Others/useCountriesQuery.hook.ts +0 -15
  299. package/src/hooks/Others/useCreateNotification.hook.ts +0 -24
  300. package/src/hooks/Others/useCustomersQuery.hook.ts +0 -40
  301. package/src/hooks/Others/useJobTitlesQuery.hook.ts +0 -17
  302. package/src/hooks/Others/useRegulationQuery.hook.ts +0 -24
  303. package/src/hooks/Others/useTermNotificationQuery.hook.ts +0 -11
  304. package/src/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.ts +0 -13
  305. package/src/hooks/Questionnaire/get/useQuestionnaireQuery.hook.ts +0 -29
  306. package/src/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.ts +0 -17
  307. package/src/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.ts +0 -15
  308. package/src/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.ts +0 -15
  309. package/src/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.ts +0 -15
  310. package/src/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.ts +0 -15
  311. package/src/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.ts +0 -15
  312. package/src/hooks/Roles/get/useAllRolesQuery.hook.ts +0 -30
  313. package/src/hooks/Store/getLocationsByUser.hook.ts +0 -37
  314. package/src/hooks/Store/useAllStoreQuery.hook.ts +0 -37
  315. package/src/hooks/Store/useStoreByCodeQuery.hook.ts +0 -21
  316. package/src/hooks/Store/useStoreQuery.ts +0 -13
  317. package/src/hooks/Users/get/getUserAndSupervisorQuery.hook.ts +0 -21
  318. package/src/hooks/Users/get/getUsersReadmissionQuery.hook.ts +0 -27
  319. package/src/hooks/Users/get/useApplicationQuery.hook.ts +0 -29
  320. package/src/hooks/Users/get/useExpUsersAnswersQuery.hook.ts +0 -25
  321. package/src/hooks/Users/get/usePermissionByIdQuery.hook.ts +0 -15
  322. package/src/hooks/Users/get/usePermissionsQuery.hook.ts +0 -29
  323. package/src/hooks/Users/get/useSingleUserIdQuery.hook.ts +0 -15
  324. package/src/hooks/Users/get/useUserIdQuery.hook.ts +0 -14
  325. package/src/hooks/Users/get/useUserListQuery.hook.ts +0 -27
  326. package/src/hooks/Users/get/useUserQuery.hook.ts +0 -31
  327. package/src/hooks/Users/mutate/deletePermissionMutateQuery.hook.ts +0 -15
  328. package/src/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.ts +0 -18
  329. package/src/hooks/Users/mutate/useUpdatePermissionsMutateQuery.hook.ts +0 -17
  330. package/src/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.ts +0 -27
  331. package/src/hooks/Users/others/useSingleUserResetPassword.hook.ts +0 -18
  332. package/src/hooks/Users/others/useUserBlockQuery.hook.ts +0 -15
  333. package/src/hooks/Users/others/useUserEmailVerifQuery.hook.ts +0 -15
  334. package/src/hooks/Users/others/useUserResetPassByEmail.hook.ts +0 -14
  335. package/src/hooks/Watson/get/getCloseSession.hook.ts +0 -15
  336. package/src/hooks/Watson/mutate/mutateCloseSession.hook.ts +0 -18
  337. package/src/hooks/Watson/mutate/mutateNotificationRequest.hook.ts +0 -18
  338. package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesByIdQuery.hook.ts +0 -15
  339. package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesQuery.hook.ts +0 -27
  340. package/src/hooks/WidgetPicaPonto/get/getCriticaliesQuery.hook.ts +0 -27
  341. package/src/hooks/WidgetPicaPonto/get/getReasonCodesQuery.hook.ts +0 -27
  342. package/src/hooks/WidgetPicaPonto/get/getSchedulesStoresQuery.hook.ts +0 -28
  343. package/src/hooks/WidgetPicaPonto/mutate/useAttendanceIssuesQuery.hook.ts +0 -18
  344. package/src/hooks/index.ts +0 -505
  345. package/src/index.ts +0 -11
  346. package/src/interfaces/ACB.ts +0 -21
  347. package/src/interfaces/ASAECustomer.ts +0 -28
  348. package/src/interfaces/Acls.ts +0 -84
  349. package/src/interfaces/Actions.ts +0 -20
  350. package/src/interfaces/AnalyticsEvaluationCycle.ts +0 -24
  351. package/src/interfaces/AnalyticsUserId.ts +0 -14
  352. package/src/interfaces/Anot.ts +0 -79
  353. package/src/interfaces/Answer.ts +0 -14
  354. package/src/interfaces/AnswerType.ts +0 -22
  355. package/src/interfaces/AnswersUserSupervisor.ts +0 -45
  356. package/src/interfaces/ApplicationsByCategory.ts +0 -19
  357. package/src/interfaces/AstaQuestions.ts +0 -10
  358. package/src/interfaces/AstsStock.ts +0 -17
  359. package/src/interfaces/AstsStockInfo.ts +0 -14
  360. package/src/interfaces/AsttReconciliationDocuments.ts +0 -32
  361. package/src/interfaces/AsvProductsByReference.ts +0 -14
  362. package/src/interfaces/AsvProductsByStore.ts +0 -13
  363. package/src/interfaces/AsvProductsStockDetails.ts +0 -20
  364. package/src/interfaces/Atim.ts +0 -123
  365. package/src/interfaces/AtimScheduling.ts +0 -64
  366. package/src/interfaces/AttendanceIssues.ts +0 -20
  367. package/src/interfaces/Auth0Config.ts +0 -6
  368. package/src/interfaces/BellNotification.ts +0 -17
  369. package/src/interfaces/Brand.ts +0 -5
  370. package/src/interfaces/Bulk.ts +0 -11
  371. package/src/interfaces/Bwg.ts +0 -25
  372. package/src/interfaces/Cart.ts +0 -14
  373. package/src/interfaces/Checkout.ts +0 -15
  374. package/src/interfaces/Configuration.ts +0 -8
  375. package/src/interfaces/ContractStates.ts +0 -7
  376. package/src/interfaces/Countries.ts +0 -10
  377. package/src/interfaces/CreateNotification.ts +0 -18
  378. package/src/interfaces/Customer.ts +0 -23
  379. package/src/interfaces/CustomerHistory.ts +0 -11
  380. package/src/interfaces/CustomerVoucher.ts +0 -12
  381. package/src/interfaces/Employee.ts +0 -18
  382. package/src/interfaces/EvaluationCycle.ts +0 -34
  383. package/src/interfaces/ExpUsersAnswers.ts +0 -16
  384. package/src/interfaces/FlowExecution.ts +0 -33
  385. package/src/interfaces/FlowList.ts +0 -32
  386. package/src/interfaces/GetMonths.ts +0 -8
  387. package/src/interfaces/Inspection.ts +0 -22
  388. package/src/interfaces/Instances.ts +0 -25
  389. package/src/interfaces/JobTitles.ts +0 -7
  390. package/src/interfaces/MIMO.ts +0 -19
  391. package/src/interfaces/MacroInstance.ts +0 -11
  392. package/src/interfaces/Macros.ts +0 -19
  393. package/src/interfaces/MonitoringComponent.ts +0 -6
  394. package/src/interfaces/NotificationTitle.ts +0 -8
  395. package/src/interfaces/OSUA.ts +0 -363
  396. package/src/interfaces/Permissions.ts +0 -16
  397. package/src/interfaces/PriceChange.ts +0 -7
  398. package/src/interfaces/Product.ts +0 -17
  399. package/src/interfaces/ProductsHierarchies.ts +0 -6
  400. package/src/interfaces/ProductsPickedTransfers.ts +0 -13
  401. package/src/interfaces/Questionnaire.ts +0 -39
  402. package/src/interfaces/ReasonCodes.ts +0 -9
  403. package/src/interfaces/ReportBuilder.ts +0 -5
  404. package/src/interfaces/ResponseList.ts +0 -7
  405. package/src/interfaces/Responses.ts +0 -50
  406. package/src/interfaces/Rfid.ts +0 -10
  407. package/src/interfaces/Roles.ts +0 -5
  408. package/src/interfaces/Store.ts +0 -35
  409. package/src/interfaces/TagsFlow.ts +0 -5
  410. package/src/interfaces/Template.ts +0 -33
  411. package/src/interfaces/TermNotification.ts +0 -6
  412. package/src/interfaces/TimeKeeping.ts +0 -7
  413. package/src/interfaces/TransferAllProducts.ts +0 -39
  414. package/src/interfaces/TransferDocumentState.ts +0 -5
  415. package/src/interfaces/TransferDocuments.ts +0 -62
  416. package/src/interfaces/TransferPackage.ts +0 -19
  417. package/src/interfaces/TransferPickProducts.ts +0 -34
  418. package/src/interfaces/TransferReportDiff.ts +0 -9
  419. package/src/interfaces/TransferStates.ts +0 -8
  420. package/src/interfaces/User.ts +0 -75
  421. package/src/interfaces/UserAuthentication.ts +0 -7
  422. package/src/interfaces/UserEmailStatus.ts +0 -14
  423. package/src/interfaces/VacationPlan.ts +0 -13
  424. package/src/interfaces/VerifyImage.ts +0 -49
  425. package/src/interfaces/VerifyUser.ts +0 -5
  426. package/src/interfaces/Watson.ts +0 -76
  427. package/src/interfaces/Workload.ts +0 -8
  428. package/src/interfaces/index.ts +0 -81
  429. package/src/services/ApiService/index.ts +0 -185
  430. package/src/services/InitService/index.ts +0 -7
  431. package/src/services/index.ts +0 -3
  432. package/src/types/Global.d.ts +0 -4
  433. package/tsconfig.json +0 -24
  434. package/vite.config.js +0 -49
@@ -1,25 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { ExpUsersAnswers, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export interface ExpUsersAnswersProps extends UseQueryOptions<ResponseList<"Users", ExpUsersAnswers>> {
6
- tags?: string;
7
- page?: number;
8
- records?: number;
9
- queryUser?: string
10
- }
11
-
12
- export const useExpUsersAnswersQueryHook = ({ tags, page, records, queryUser }: ExpUsersAnswersProps) => {
13
- return useQuery(
14
- ['EXP_USERS_ANSWERS_QUERY', tags, page, records, queryUser],
15
- () => getAuth0<ResponseList<"Users", ExpUsersAnswers>>('/APE/Analytics/EvaluationCycles/UsersExperimental', {
16
- pPage: page || 1,
17
- pRecords: records || 50,
18
- pTerms: tags,
19
- pQueryUser: queryUser
20
- }),
21
- {
22
- keepPreviousData: true,
23
- }
24
- );
25
- }
@@ -1,15 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { Permissions } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export const usePermissionIdQueryHook = (Id: string, options?: UseQueryOptions<Permissions, Error>) => {
6
- return useQuery(
7
- ['PERMISSIONS_ID_QUERY', Id],
8
- () => getAuth0<Permissions>(`/AACP/Permissions/${Id}`),
9
- {
10
- enabled: !!(Id),
11
- ...options,
12
- },
13
- );
14
- }
15
-
@@ -1,29 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { Permissions, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export interface PermissionQuery extends UseQueryOptions<ResponseList<"Permissions", Permissions>> {
6
- tags?: string;
7
- page?: number;
8
- records?: number;
9
- queryField?: string;
10
- sortBy?: string;
11
- sortDirection?: string;
12
- }
13
-
14
- export const usePermissionsQuery = ({ tags, page, records, queryField, sortBy, sortDirection }: PermissionQuery) => {
15
- return useQuery(
16
- ['PERMISSION_QUERY', tags, page, records, queryField],
17
- () => getAuth0<ResponseList<"Permissions", Permissions>>('/AACP/Permissions', {
18
- pPage: page,
19
- pRecords: records,
20
- pSortBy: sortBy,
21
- pSortDirection: sortDirection ,
22
- pTerms: tags,
23
- pQuery: queryField
24
- }),
25
- {
26
- keepPreviousData: true,
27
- }
28
- );
29
- }
@@ -1,15 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { User } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export const useSingleUserIdQueryHook = (userId: string, options?: UseQueryOptions<User, Error>) => {
6
- return useQuery(
7
- ['SINGLE_USER_ID_QUERY', userId],
8
- () => getAuth0<User>(`/AACP/Users/${userId}`),
9
- {
10
- enabled: !!(userId),
11
- ...options,
12
- },
13
- );
14
- }
15
-
@@ -1,14 +0,0 @@
1
- import { useQuery } from "@tanstack/react-query";
2
- import { User } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export const useUserIdQueryHook = (userId: string) => {
6
- return useQuery(
7
- ['USER_ID_QUERY', userId],
8
- () => getAuth0<User>(`/APE/Users/${userId}`),
9
- {
10
- enabled: !!(userId),
11
- },
12
- );
13
- }
14
-
@@ -1,27 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { User, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export interface UserListQuery extends Omit<UseQueryOptions<ResponseList<"Users", User>>, "queryKey"> {
6
- tags?: string;
7
- records: number;
8
- page: number;
9
- queryField?: string;
10
- sortBy?: string;
11
- sortDirection?: string;
12
- }
13
-
14
- export const useUserListQueryHook = ({ tags, page, records, queryField, sortBy, sortDirection, ...options }: UserListQuery) => {
15
- return useQuery(
16
- ['USER_LIST_QUERY', tags, page, records, sortBy, sortDirection, queryField, options],
17
- () => getAuth0<ResponseList<"Users", User>>('/AACP/Users', {
18
- pPage: page || 1,
19
- pRecords: records || 50,
20
- pSortBy: sortBy || 'DisplayName',
21
- pSortDirection: sortDirection || 'asc',
22
- pTerms: tags,
23
- pQuery: queryField
24
- }),
25
- options
26
- );
27
- }
@@ -1,31 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { User, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export interface UserQuery extends UseQueryOptions<ResponseList<"Users", User>> {
6
- tags?: string;
7
- page?: number;
8
- records?: number;
9
- evaluationId?: string;
10
- queryField?: string;
11
- sortBy?: string;
12
- sortDirection?: string;
13
- }
14
-
15
- export const useUserQueryHook = ({ tags, evaluationId, page, records, queryField, sortBy, sortDirection }: UserQuery) => {
16
- return useQuery(
17
- ['USER_QUERY', tags, evaluationId, page, records, queryField],
18
- () => getAuth0<ResponseList<"Users", User>>('/APE/Users', {
19
- pPage: page || 1,
20
- pRecords: records || 50,
21
- pSortBy: sortBy || 'DisplayName',
22
- pSortDirection: sortDirection || 'asc',
23
- pTerms: tags,
24
- pEvaluationCycleId: evaluationId,
25
- pQuery: queryField
26
- }),
27
- {
28
- keepPreviousData: true,
29
- }
30
- );
31
- }
@@ -1,15 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { Permissions } from '../../../interfaces';
3
- import { toDeleteAuth0 } from '../../../services/ApiService';
4
-
5
- export const deletePermissionMutateHook = () => {
6
- const queryClient = useQueryClient();
7
- return useMutation<Permissions, unknown, Permissions>((data: Permissions) => {
8
- return toDeleteAuth0(`/AACP/Permissions/${data.Id}`)
9
- }, {
10
- onSuccess: () => {
11
- queryClient.invalidateQueries(
12
- ['DELETE_PERMISSIONS_QUERY']);
13
- },
14
- });
15
- }
@@ -1,18 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { SingleUser } from '../../../interfaces/User';
3
- import { putAuth0, postAuth0 } from '../../../services/ApiService';
4
-
5
- export const useSingleUserIdMutateQuery = (bodyType?: string) => {
6
- const queryClient = useQueryClient();
7
- return useMutation<SingleUser, unknown, SingleUser>((data: SingleUser | any) => {
8
- const userId = bodyType === 'formdata' ? data.get('UserId') : data.UserId
9
- return userId
10
- ? putAuth0(`/AACP/Users/${userId}`, undefined, data, bodyType)
11
- : postAuth0('/AACP/Users/', undefined, data, bodyType);
12
- }, {
13
- onSuccess: (data: SingleUser) => {
14
- queryClient.setQueryData(
15
- ['SINGLE_USER_ID_QUERY'], data);
16
- },
17
- });
18
- }
@@ -1,17 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { Permissions } from '../../../interfaces';
3
- import { putAuth0, postAuth0 } from '../../../services/ApiService';
4
-
5
- export const usePermissionsIdMutateQuery = (bodyType?: string) => {
6
- const queryClient = useQueryClient();
7
- return useMutation<Permissions, unknown, Permissions>((data: Permissions | any) => {
8
- return data.Id
9
- ? putAuth0(`/AACP/Permissions/${data.Id}`, undefined, data)
10
- : postAuth0('/AACP/Permissions', undefined, data);
11
- }, {
12
- onSuccess: (data: Permissions) => {
13
- queryClient.setQueryData(
14
- ['UPDATE_PERMISSIONS_ID_QUERY'], data);
15
- },
16
- });
17
- }
@@ -1,27 +0,0 @@
1
- import { useMutation, useQueryClient, UseQueryOptions } from '@tanstack/react-query';
2
- import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
3
- import { putAuth0 } from '../../../services/ApiService';
4
-
5
- export interface UpdateSupervisorMutateQuery extends UseQueryOptions<EvaluationCycle> {
6
- evaluationCycleId?: string;
7
- userId?: string;
8
- supervisorId?: string;
9
- }
10
-
11
- export const useUpdateSupervisorMutateQueryHook = ({ evaluationCycleId, userId, supervisorId }: UpdateSupervisorMutateQuery) => {
12
- const queryClient = useQueryClient();
13
- return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
14
- return putAuth0(`/APE/EvaluationCycle/UpdateSupervisor?`, {
15
- pEvaluationCycleId: evaluationCycleId,
16
- pUserId: userId,
17
- pSupervisor: supervisorId
18
- },
19
- data
20
- );
21
- }, {
22
- onSuccess: (data: EvaluationCycle) => {
23
- queryClient.setQueryData(
24
- ['UPDATE_SUPERVISOR'], data);
25
- },
26
- });
27
- }
@@ -1,18 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { User } from "../../../interfaces";
3
- import { postAuth0 } from "../../../services/ApiService";
4
-
5
- interface UserWithResetPasswordURL extends User {
6
- ResetPasswordURL: string;
7
- }
8
-
9
- export const useSingleUserResetPasswordHook = () => {
10
- const queryClient = useQueryClient();
11
- return useMutation<UserWithResetPasswordURL, unknown, UserWithResetPasswordURL>((data: UserWithResetPasswordURL) => {
12
- return postAuth0(`/AACP/Users/${data.UserId}/resetPassword`);
13
- }, {
14
- onSuccess: (data: UserWithResetPasswordURL) => {
15
- queryClient.setQueryData(['USER_RESET_PASSWORD_QUERY'], data);
16
- },
17
- });
18
- };
@@ -1,15 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { User } from "../../../interfaces";
3
- import { putAuth0 } from "../../../services/ApiService";
4
-
5
- export const useUserBlockQueryHook = () => {
6
- const queryClient = useQueryClient();
7
- return useMutation<User, unknown, User>((data: User) => {
8
- return putAuth0(`/AACP/Users/${data.UserId}/block`)
9
- }, {
10
- onSuccess: (data: User) => {
11
- queryClient.setQueryData(
12
- ['USER_LIST_QUERY'], data);
13
- },
14
- });
15
- }
@@ -1,15 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { User } from "../../../interfaces";
3
- import { postAuth0 } from "../../../services/ApiService";
4
-
5
- export const useUserEmailVerifQueryHook = () => {
6
- const queryClient = useQueryClient();
7
- return useMutation<User, unknown, User>((data: User) => {
8
- return postAuth0(`/AACP/Users/${data.UserId}/sendVerificationEmail`)
9
- }, {
10
- onSuccess: (data: User) => {
11
- queryClient.setQueryData(
12
- ['USER_LIST_QUERY'], data);
13
- },
14
- });
15
- }
@@ -1,14 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { User } from "../../../interfaces";
3
- import { postAuth0 } from "../../../services/ApiService";
4
-
5
- export const useUserResetPassByEmailHook = () => {
6
- const queryClient = useQueryClient();
7
- return useMutation<User, unknown, User>((data: User) => {
8
- return postAuth0(`/AACP/Users/${data.UserId}/resetPasswordEmail`);
9
- }, {
10
- onSuccess: (data: User) => {
11
- queryClient.setQueryData(['USER_RESET_PASSWORD_BY_EMAIL_QUERY'], data);
12
- },
13
- });
14
- };
@@ -1,15 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { Session } from "../../../interfaces";
3
- import { get } from "../../../services/ApiService";
4
-
5
- export const getCloseSession = (SessionId: string, options?: UseQueryOptions<Session, Error>) => {
6
- return useQuery(
7
- ['SESSION_ID', SessionId],
8
- () => get<Session>(`/sessions/${SessionId}`),
9
- {
10
- enabled: !!(SessionId),
11
- suspense:false,
12
- ...options,
13
- },
14
- );
15
- }
@@ -1,18 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { patch } from '../../../services/ApiService';
3
- import { Session } from '../../../interfaces';
4
-
5
-
6
- export const mutateCloseSession = (id: string) => {
7
- const queryClient = useQueryClient();
8
-
9
- return useMutation<Session, unknown, Session>((data: Session) => {
10
-
11
- return patch(`/sessions/${id}`, data);
12
- }, {
13
- onSuccess: (data: Session) => {
14
- queryClient.setQueryData(['SESSIONS'], data);
15
- },
16
- });
17
- };
18
-
@@ -1,18 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { NotificationRequestPayload, NotificationRequestResponse } from '../../../interfaces';
3
- import { post } from '../../../services/ApiService';
4
-
5
- export const mutateNotificationRequest = () => {
6
- const queryClient = useQueryClient();
7
- return useMutation<NotificationRequestResponse, unknown, NotificationRequestPayload>(
8
- (data: NotificationRequestPayload) => {
9
- return post('/notification_requests', data);
10
- },
11
- {
12
- onSuccess: (data: NotificationRequestResponse) => {
13
- queryClient.setQueryData(['NOTIFICATION_REQUESTS'], data);
14
-
15
- },
16
- }
17
- );
18
- };
@@ -1,15 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { AttendanceIssues } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export const getAttendanceIssuesByIdQueryHook = (userId: string, options?: UseQueryOptions<AttendanceIssues, Error>) => {
6
- return useQuery(
7
- ['ATTENDANCE_ISSUES_ID_QUERY', userId],
8
- () => getAuth0<AttendanceIssues>(`/ATIM/AttendanceIssues/${userId}`),
9
- {
10
- enabled: !!(userId),
11
- ...options,
12
- },
13
- );
14
- }
15
-
@@ -1,27 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { AttendanceIssues, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export interface AttendanceIssuesQueryProps extends UseQueryOptions<ResponseList<"AttendanceIssues", AttendanceIssues>> {
6
- tags?: string;
7
- page?: number;
8
- records?: number;
9
- sortBy?: string;
10
- sortDirection?: string;
11
- query?: string;
12
- }
13
-
14
- export const getAttendanceIssuesQueryHook = ({ tags, page, records, sortBy, sortDirection, query, ...options }: AttendanceIssuesQueryProps) => {
15
- return useQuery(
16
- ['ATTENDANCE_ISSUES_QUERY', tags, page, records, sortBy, sortDirection, query, options],
17
- () => getAuth0<ResponseList<"AttendanceIssues", AttendanceIssues>>('/ATIM/AttendanceIssues', {
18
- pPage: page || 1,
19
- pRecords: records || 50,
20
- pSortBy: sortBy || 'CreateDate',
21
- pSortDirection: sortDirection || 'asc',
22
- pTerms: tags,
23
- pQuery: query,
24
- }),
25
- options
26
- );
27
- }
@@ -1,27 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { ReasonCodes, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export interface CriticalitiesQueryProps extends UseQueryOptions<ResponseList<"Criticalities", ReasonCodes>> {
6
- tags?: string;
7
- page?: number;
8
- records?: number;
9
- sortBy?: string;
10
- sortDirection?: string;
11
- query?: string;
12
- }
13
-
14
- export const getCriticalitiesQuery = ({ tags, page, records, sortBy, sortDirection, query, ...options }: CriticalitiesQueryProps) => {
15
- return useQuery(
16
- ['CRITICALITIES_QUERY', tags, page, records, sortBy, sortDirection, query, options],
17
- () => getAuth0<ResponseList<"Criticalities", ReasonCodes>>('/ATIM/Criticalities', {
18
- pPage: page || 1,
19
- pRecords: records || 50,
20
- pSortBy: sortBy || 'Value',
21
- pSortDirection: sortDirection || 'asc',
22
- pTerms: tags,
23
- pQuery: query,
24
- }),
25
- options
26
- );
27
- }
@@ -1,27 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { ReasonCodes, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- export interface ReasonCodesQueryProps extends UseQueryOptions<ResponseList<"ReasonCodes", ReasonCodes>> {
6
- tags?: string;
7
- page?: number;
8
- records?: number;
9
- sortBy?: string;
10
- sortDirection?: string;
11
- query?: string;
12
- }
13
-
14
- export const getReasonCodesQuery = ({ tags, page, records, sortBy, sortDirection, query, ...options }: ReasonCodesQueryProps) => {
15
- return useQuery(
16
- ['REASON_CODES_QUERY', tags, page, records, sortBy, sortDirection, query, options],
17
- () => getAuth0<ResponseList<"ReasonCodes", ReasonCodes>>('/ATIM/ReasonCodes', {
18
- pPage: page || 1,
19
- pRecords: records || 50,
20
- pSortBy: sortBy || 'Name',
21
- pSortDirection: sortDirection || 'asc',
22
- pTerms: tags,
23
- pQuery: query,
24
- }),
25
- options
26
- );
27
- }
@@ -1,28 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { getAuth0 } from "../../../services/ApiService";
3
- import { Schedule } from "../../../interfaces";
4
-
5
- interface ScheduleWidgetQueryOptions extends UseQueryOptions<Schedule> {
6
- date: number;
7
- storeId: string;
8
- }
9
-
10
- export const getScheduleQueryHook = ({
11
- date,
12
- storeId,
13
- ...options
14
- }: ScheduleWidgetQueryOptions) => {
15
- return useQuery<Schedule>(
16
- ["SCHEDULES_WIDGET_QUERY", date, storeId],
17
- () =>
18
- getAuth0<Schedule>(`/ATIM/Schedules/StoreSchedule`, {
19
- pDate: date,
20
- pStoreId: storeId,
21
- }),
22
- {
23
- ...options,
24
- useErrorBoundary: false,
25
- retry: 1,
26
- }
27
- );
28
- };
@@ -1,18 +0,0 @@
1
- import { useMutation, useQueryClient } from '@tanstack/react-query';
2
- import { AttendanceIssues } from '../../../interfaces';
3
- import { putAuth0, postAuth0 } from '../../../services/ApiService';
4
-
5
- export const useAttendanceIssuesQueryHook = () => {
6
- const queryClient = useQueryClient();
7
- return useMutation<AttendanceIssues, unknown, AttendanceIssues>((data: AttendanceIssues) => {
8
- return data.CriticalityId ?
9
- putAuth0(`/ATIM/AttendanceIssues/${data.Id}`, undefined, data)
10
-
11
- : postAuth0('/ATIM/AttendanceIssues', undefined, data);
12
- }, {
13
- onSuccess: (data: AttendanceIssues) => {
14
- queryClient.setQueryData(
15
- ['ATTENDANCE_ISSUES_QUERY'], data);
16
- },
17
- });
18
- }