@omniumretail/shared-resources 0.3.83 → 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 (466) hide show
  1. package/dist/components/index.d.ts +0 -8
  2. package/dist/constants/index.d.ts +0 -1
  3. package/dist/helpers/codeMutation.d.ts +1 -2
  4. package/dist/index.d.ts +0 -1
  5. package/dist/shared-resources.es.js +4780 -0
  6. package/dist/shared-resources.umd.js +2 -746
  7. package/package.json +40 -22
  8. package/.eslintrc.json +0 -32
  9. package/dist/components/BottomDrawer/index.d.ts +0 -10
  10. package/dist/components/Button/index.d.ts +0 -3
  11. package/dist/components/Footer/index.d.ts +0 -3
  12. package/dist/components/Form/FormInputField/index.d.ts +0 -9
  13. package/dist/components/Form/FormSelectField/index.d.ts +0 -10
  14. package/dist/components/Form/index.d.ts +0 -2
  15. package/dist/components/Header/index.d.ts +0 -4
  16. package/dist/components/Link/index.d.ts +0 -7
  17. package/dist/components/Navigation/index.d.ts +0 -8
  18. package/dist/components/Page/index.d.ts +0 -13
  19. package/dist/constants/Icons.d.ts +0 -15
  20. package/dist/shared-resources.umd.js.map +0 -1
  21. package/dist/types/index.d.ts +0 -2
  22. package/src/a2ai.scss +0 -130
  23. package/src/assets/omniu-retail_branco_s-fundo.png +0 -0
  24. package/src/assets/sitoo.svg +0 -9
  25. package/src/components/BottomDrawer/index.tsx +0 -33
  26. package/src/components/BottomDrawer/styles.module.scss +0 -59
  27. package/src/components/Button/index.tsx +0 -7
  28. package/src/components/Footer/index.tsx +0 -44
  29. package/src/components/Footer/styles.module.scss +0 -33
  30. package/src/components/Form/FormInputField/index.tsx +0 -18
  31. package/src/components/Form/FormSelectField/index.tsx +0 -16
  32. package/src/components/Form/index.ts +0 -2
  33. package/src/components/Header/index.tsx +0 -20
  34. package/src/components/Header/styles.module.scss +0 -16
  35. package/src/components/Link/index.tsx +0 -21
  36. package/src/components/Link/styles.module.scss +0 -24
  37. package/src/components/Navigation/index.tsx +0 -30
  38. package/src/components/Navigation/styles.module.scss +0 -34
  39. package/src/components/Page/index.tsx +0 -35
  40. package/src/components/Page/styles.module.scss +0 -26
  41. package/src/components/SharedContextProvider/index.tsx +0 -30
  42. package/src/components/index.ts +0 -9
  43. package/src/constants/Icons.ts +0 -21
  44. package/src/constants/QueryClient.ts +0 -10
  45. package/src/constants/index.ts +0 -2
  46. package/src/contexts/useStore.tsx +0 -20
  47. package/src/enums/attendence-type.enum.ts +0 -5
  48. package/src/enums/employees-order.enum.ts +0 -7
  49. package/src/enums/index.ts +0 -2
  50. package/src/global.scss +0 -124
  51. package/src/helpers/codeMutation.tsx +0 -20
  52. package/src/helpers/date-unix.helper.ts +0 -29
  53. package/src/helpers/formatted-date.helper.ts +0 -11
  54. package/src/helpers/getChildrenByType.helper.ts +0 -5
  55. package/src/helpers/index.ts +0 -4
  56. package/src/hooks/ACB/get/getClientBalance.hook.ts +0 -20
  57. package/src/hooks/ACB/mutate/postClientBalance.hook.ts +0 -16
  58. package/src/hooks/ASAEGNG/get/getCustomerHistoryQuery.hook.ts +0 -24
  59. package/src/hooks/ASAEGNG/get/getCustomerVouchersQuery.hook.ts +0 -24
  60. package/src/hooks/ASAEGNG/get/getCustomersQuery.hook.ts +0 -28
  61. package/src/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.ts +0 -33
  62. package/src/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.ts +0 -38
  63. package/src/hooks/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.ts +0 -52
  64. package/src/hooks/ATIM/BackOffice/get/useEmployeeQueryHook.hook.ts +0 -29
  65. package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +0 -51
  66. package/src/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.ts +0 -36
  67. package/src/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.ts +0 -36
  68. package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.ts +0 -16
  69. package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.ts +0 -36
  70. package/src/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.ts +0 -28
  71. package/src/hooks/ATIM/BackOffice/get/useStoresQueryHook.hook.ts +0 -27
  72. package/src/hooks/ATIM/BackOffice/get/useWorkMonths.hook.ts +0 -31
  73. package/src/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.ts +0 -31
  74. package/src/hooks/ATIM/BackOffice/mutate/postAttendanceRange.hook.ts +0 -16
  75. package/src/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.ts +0 -21
  76. package/src/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.ts +0 -25
  77. package/src/hooks/ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook.ts +0 -17
  78. package/src/hooks/ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook.ts +0 -35
  79. package/src/hooks/ATIM/PicaPonto/mutate/postAttendance.hook.ts +0 -16
  80. package/src/hooks/ATIM/PicaPonto/mutate/postTogglePinCode.ts +0 -33
  81. package/src/hooks/ATIM/PicaPonto/mutate/postVerifyUserQuery.hook.ts +0 -15
  82. package/src/hooks/Acls/get/getCustomersLoyaltyQuery.hook.ts +0 -22
  83. package/src/hooks/Acls/get/getVoucherLoyaltyQuery.hook.ts +0 -25
  84. package/src/hooks/Acls/get/getVoucherSitooQuery.hook.ts +0 -22
  85. package/src/hooks/Acls/get/getVoucherTemplatesQuery.hook.ts +0 -29
  86. package/src/hooks/Acls/mutate/postCreateVoucherTemplates.hook.ts +0 -19
  87. package/src/hooks/Acls/mutate/postSaldoVoucherQuery.hook.ts +0 -21
  88. package/src/hooks/Acls/mutate/postSalesAssociationQuery.hook.ts +0 -20
  89. package/src/hooks/Acls/mutate/postVerificationEmailQuery.hook.ts +0 -23
  90. package/src/hooks/Acls/mutate/postVerificationUserQuery.hook.ts +0 -23
  91. package/src/hooks/Acls/mutate/postVoucherSitooQuery.hook.ts +0 -21
  92. package/src/hooks/Acls/mutate/reactivateVoucherQuery.hook.ts +0 -27
  93. package/src/hooks/Acls/mutate/updateDisabledVoucherTemplates.hook.ts +0 -25
  94. package/src/hooks/Aexp/get/getFlowExecutionByIdQuery.hook.ts +0 -13
  95. package/src/hooks/Aexp/get/getFlowExecutionQuery.hook.ts +0 -27
  96. package/src/hooks/Aexp/get/getFlowListByIdQuery.hook.ts +0 -13
  97. package/src/hooks/Aexp/get/getFlowListQuery.hook.ts +0 -29
  98. package/src/hooks/Aexp/get/getTagsFlowQuery.hook.ts +0 -11
  99. package/src/hooks/Aexp/mutate/deleteFlowConfigurationQuery.hook.ts +0 -17
  100. package/src/hooks/Aexp/mutate/inactivateFlowConfigurationQuery.hook.ts +0 -18
  101. package/src/hooks/Aexp/mutate/runFlowExecutionQuery.hook.ts +0 -20
  102. package/src/hooks/Aexp/mutate/useFlowConfigurationQuery.hook.ts +0 -17
  103. package/src/hooks/Aexp/mutate/useFlowExecutionQuery.hook.ts +0 -22
  104. package/src/hooks/Aexp/mutate/validateExecutionFileQuery.hook.ts +0 -15
  105. package/src/hooks/Analytics/get/getArchivedAnalyticsQuery.hook.ts +0 -32
  106. package/src/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.ts +0 -21
  107. package/src/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.ts +0 -23
  108. package/src/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.ts +0 -21
  109. package/src/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.ts +0 -32
  110. package/src/hooks/Analytics/get/useAnalyticsUserQuery.hook.ts +0 -35
  111. package/src/hooks/Anot/get/getNotificationApplicationsQuery.hook.ts +0 -13
  112. package/src/hooks/Anot/get/getNotificationCriticalitiesQuery.hook.ts +0 -13
  113. package/src/hooks/Anot/get/getNotificationHeadersQuery.hook.ts +0 -33
  114. package/src/hooks/Anot/get/getNotificationLanguagesQuery.hook.ts +0 -15
  115. package/src/hooks/Anot/get/getNotificationTypeByIdQuery.hook.ts +0 -11
  116. package/src/hooks/Anot/get/getNotificationsQuery.hook.ts +0 -29
  117. package/src/hooks/Anot/get/getNotificationsTypeQuery.hook.ts +0 -27
  118. package/src/hooks/Anot/mutate/useNotificationTypeQuery.hook.ts +0 -18
  119. package/src/hooks/Answer/get/useAnswerIdQuery.hook.ts +0 -13
  120. package/src/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.ts +0 -21
  121. package/src/hooks/Answer/mutate/useAnswerMutateQuery.hook.ts +0 -31
  122. package/src/hooks/Answer/others/openAnswerQuery.hook.ts +0 -19
  123. package/src/hooks/Answer/others/postAnswersExportQuery.hook.ts +0 -26
  124. package/src/hooks/Answer/others/showAnswerQuery.hook.ts +0 -18
  125. package/src/hooks/AprProduct/get/useProductHierarchies.hook.ts +0 -19
  126. package/src/hooks/AprProduct/get/useProductRecommendations.hook.ts +0 -27
  127. package/src/hooks/AprProduct/get/useProductsByRefQuery.hook.ts +0 -18
  128. package/src/hooks/AprProduct/get/useProductsQuery.hook.ts +0 -46
  129. package/src/hooks/Aprc/get/getPriceChangePinQuery.hook.ts +0 -16
  130. package/src/hooks/Aprc/others/postPriceChangePinQuery.hook.ts +0 -19
  131. package/src/hooks/Aprc/others/sendEmailWithPinQuery.hook.ts +0 -19
  132. package/src/hooks/Asgt/get/getIdProductsPickedASGTQuery.hook.ts +0 -10
  133. package/src/hooks/Asgt/get/getProductWarningASGTQuery.hook.ts +0 -27
  134. package/src/hooks/Asgt/get/getProductsListingASGTQuery.hook.ts +0 -14
  135. package/src/hooks/Asgt/get/getProductsMovementsASGTQuery.hook.ts +0 -27
  136. package/src/hooks/Asgt/get/getProductsPickedASGTQuery.hook.ts +0 -19
  137. package/src/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.ts +0 -12
  138. package/src/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.ts +0 -25
  139. package/src/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.ts +0 -27
  140. package/src/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.ts +0 -12
  141. package/src/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.ts +0 -13
  142. package/src/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.ts +0 -23
  143. package/src/hooks/Asgt/get/getTransferReportDiffASGT.hook.ts +0 -17
  144. package/src/hooks/Asgt/mutate/autoSaveASGTQuery.hook.ts +0 -23
  145. package/src/hooks/Asgt/mutate/createPackageASGTMutateQuery.hook.ts +0 -21
  146. package/src/hooks/Asgt/mutate/createTransferASGTMutateQuery.hook.ts +0 -15
  147. package/src/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.ts +0 -23
  148. package/src/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.ts +0 -21
  149. package/src/hooks/Asgt/mutate/removeProductASGTQuery.hook.ts +0 -15
  150. package/src/hooks/Ass/get/getAssProductsByRefQuery.hook.ts +0 -23
  151. package/src/hooks/Ass/get/getAssProductsByStoreQuery.hook.ts +0 -29
  152. package/src/hooks/Ass/get/getAssProductsStockDetailsQuery.hook.ts +0 -21
  153. package/src/hooks/Asta/Actions/get/getActionByIdQuery.hook.ts +0 -15
  154. package/src/hooks/Asta/Actions/get/getActionPriorityQuery.hook.ts +0 -10
  155. package/src/hooks/Asta/Actions/get/getActionQuery.hook.ts +0 -29
  156. package/src/hooks/Asta/Actions/get/getActionStagesQuery.hook.ts +0 -10
  157. package/src/hooks/Asta/Actions/mutate/useActionMutateQuery.hook.ts +0 -20
  158. package/src/hooks/Asta/Actions/others/archiveActionQuery.hook.ts +0 -19
  159. package/src/hooks/Asta/Actions/others/deleteActionQuery.hook.ts +0 -19
  160. package/src/hooks/Asta/Actions/others/extractActionQuery.hook.ts +0 -19
  161. package/src/hooks/Asta/Actions/others/finishActionQuery.hook.ts +0 -17
  162. package/src/hooks/Asta/Actions/others/selectActionStatusQuery.hook.ts +0 -18
  163. package/src/hooks/Asta/Actions/others/startActionQuery.hook.ts +0 -17
  164. package/src/hooks/Asta/Answer/get/getAstaAnswerByIdQuery.hook.ts +0 -15
  165. package/src/hooks/Asta/Answer/get/getAstaAnswerQuery.hook.ts +0 -29
  166. package/src/hooks/Asta/Answer/mutate/useAstaAnswersMutateQuery.hook.ts +0 -20
  167. package/src/hooks/Asta/Answer/others/finishAstaAnswersQuery.hook.ts +0 -15
  168. package/src/hooks/Asta/Answer/others/finishGNGAstaAnswersQuery.hook.ts +0 -18
  169. package/src/hooks/Asta/Answer/others/putAnswerImageQuery.hook.ts +0 -15
  170. package/src/hooks/Asta/Answer/others/sendInspectionEmailQuery.hook.ts +0 -21
  171. package/src/hooks/Asta/Answer/others/sendInspectionEmailStoreQuery.hook.ts +0 -20
  172. package/src/hooks/Asta/AnswerType/get/getAllAnswerTypeQuery.hook.ts +0 -29
  173. package/src/hooks/Asta/AnswerType/get/getAnswerColorsQuery.hook.ts +0 -10
  174. package/src/hooks/Asta/AnswerType/get/getAnswerTypeByIdQuery.hook.ts +0 -15
  175. package/src/hooks/Asta/AnswerType/get/getAnswerTypeQuery.hook.ts +0 -10
  176. package/src/hooks/Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook.ts +0 -20
  177. package/src/hooks/Asta/AnswerType/others/deleteAnswerTypeQuery.hook.ts +0 -19
  178. package/src/hooks/Asta/AnswerType/others/finishAnswerTypeQuery.hook.ts +0 -17
  179. package/src/hooks/Asta/AnswerType/others/selectAnswerNameQuery.hook.ts +0 -18
  180. package/src/hooks/Asta/Inspection/get/getInspectionQuery.hook.ts +0 -29
  181. package/src/hooks/Asta/Inspection/mutate/useInspectionMutateQuery.hook.ts +0 -24
  182. package/src/hooks/Asta/Inspection/others/archiveTemplateQuery.hook.ts +0 -19
  183. package/src/hooks/Asta/Inspection/others/deleteInspectionQuery.hook.ts +0 -19
  184. package/src/hooks/Asta/Inspection/others/exportInspectionQuery.hook.ts +0 -19
  185. package/src/hooks/Asta/Inspection/others/extractTemplateQuery.hook.ts +0 -19
  186. package/src/hooks/Asta/Inspection/others/finishInspectionQuery.hook.ts +0 -17
  187. package/src/hooks/Asta/Template/get/getTemplateByIdQuery.hook.ts +0 -15
  188. package/src/hooks/Asta/Template/get/getTemplateHeadersQuery.hook.ts +0 -10
  189. package/src/hooks/Asta/Template/get/getTemplateQuery.hook.ts +0 -29
  190. package/src/hooks/Asta/Template/mutate/useTemplateMutateQuery.hook.ts +0 -20
  191. package/src/hooks/Asta/Template/others/archiveTemplateQuery.hook.ts +0 -19
  192. package/src/hooks/Asta/Template/others/deleteTemplateQuery.hook.ts +0 -19
  193. package/src/hooks/Asta/Template/others/duplicateTemplateQuery.hook.ts +0 -19
  194. package/src/hooks/Asta/Template/others/extractTemplateQuery.hook.ts +0 -19
  195. package/src/hooks/Asta/Template/others/finishTemplateQuery.hook.ts +0 -17
  196. package/src/hooks/Asts/get/getProductInfoQuery.hook.ts +0 -19
  197. package/src/hooks/Asts/get/getStockQuery.hook.ts +0 -21
  198. package/src/hooks/Asts/others/postAudioFileQuery.hook.ts +0 -14
  199. package/src/hooks/Astt/Asgt/get/getAllAdidasProductsQuery.hook.ts +0 -25
  200. package/src/hooks/Astt/Asgt/get/getIdProductsPickedASTTQuery.hook.ts +0 -10
  201. package/src/hooks/Astt/Asgt/get/getProductWarningASTTQuery.hook.ts +0 -27
  202. package/src/hooks/Astt/Asgt/get/getProductsListingASTTQuery.hook.ts +0 -14
  203. package/src/hooks/Astt/Asgt/get/getProductsMovementsASTTQuery.hook.ts +0 -27
  204. package/src/hooks/Astt/Asgt/get/getProductsPickedASTTQuery.hook.ts +0 -19
  205. package/src/hooks/Astt/Asgt/get/getReportsBuilderASTTQuery.hook.ts +0 -12
  206. package/src/hooks/Astt/Asgt/get/getReprocessNeededASTTQuery.hook.ts +0 -12
  207. package/src/hooks/Astt/Asgt/get/getTransferAllProductsASTTQuery.hook.ts +0 -25
  208. package/src/hooks/Astt/Asgt/get/getTransferDocumentsASTTQuery.hook.ts +0 -27
  209. package/src/hooks/Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook.ts +0 -12
  210. package/src/hooks/Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook.ts +0 -13
  211. package/src/hooks/Astt/Asgt/get/getTransferDocumentsPackagesASTTQuery.hook.ts +0 -23
  212. package/src/hooks/Astt/Asgt/get/getTransferReportDiffASTT.hook.ts +0 -17
  213. package/src/hooks/Astt/Asgt/mutate/autoSaveASTTQuery.hook.ts +0 -23
  214. package/src/hooks/Astt/Asgt/mutate/createPackageASTTMutateQuery.hook.ts +0 -21
  215. package/src/hooks/Astt/Asgt/mutate/createTransferASTTMutateQuery.hook.ts +0 -15
  216. package/src/hooks/Astt/Asgt/mutate/deleteProductASTTQuery.hook.ts +0 -25
  217. package/src/hooks/Astt/Asgt/mutate/finishPackageASTTQuery.hook.ts +0 -21
  218. package/src/hooks/Astt/Asgt/mutate/postMissingProductsASTTQuery.hook.ts +0 -21
  219. package/src/hooks/Astt/Asgt/mutate/postReprocessASTTQuery.hook.ts +0 -20
  220. package/src/hooks/Astt/Asgt/mutate/postRfidASGTMutateQuery.hook.ts +0 -28
  221. package/src/hooks/Astt/Asgt/mutate/postTransferDocumentsASTTMutateQuery.hook.ts +0 -23
  222. package/src/hooks/Astt/Asgt/mutate/putTransferDocumentsStateASTTMutateQuery.hook.ts +0 -21
  223. package/src/hooks/Astt/Asgt/mutate/removeProductASTTQuery.hook.ts +0 -15
  224. package/src/hooks/Astt/Asgt/mutate/restartProductASTTQuery.hook.ts +0 -22
  225. package/src/hooks/Astt/get/getBarcodesListingByPackageQuery.hook.ts +0 -14
  226. package/src/hooks/Astt/get/getBarcodesListingQuery.hook.ts +0 -13
  227. package/src/hooks/Astt/get/getBarcodesPrintQuery.hook.ts +0 -12
  228. package/src/hooks/Astt/get/getDocumentsFindByIdQuery.hook.ts +0 -12
  229. package/src/hooks/Astt/get/getManualPackagesListQuery.hook.ts +0 -20
  230. package/src/hooks/Astt/get/getProductsListingQuery.hook.ts +0 -14
  231. package/src/hooks/Astt/get/getReconciliationDocumentsQuery.hook.ts +0 -18
  232. package/src/hooks/Astt/get/getReportsBuilderQuery.hook.ts +0 -12
  233. package/src/hooks/Astt/get/getRfidQuery.hook.ts +0 -24
  234. package/src/hooks/Astt/get/getTransferAllProductsQuery.hook.ts +0 -25
  235. package/src/hooks/Astt/get/getTransferDocumentsByIdQuery.hook.ts +0 -12
  236. package/src/hooks/Astt/get/getTransferDocumentsByPackageQuery.hook.ts +0 -13
  237. package/src/hooks/Astt/get/getTransferDocumentsPackagesQuery.hook.ts +0 -23
  238. package/src/hooks/Astt/get/getTransferDocumentsQuery.hook.ts +0 -27
  239. package/src/hooks/Astt/get/getTransferReportDiff.hook.ts +0 -17
  240. package/src/hooks/Astt/get/getTransferStatesQuery.hook.ts +0 -10
  241. package/src/hooks/Astt/mutate/deleteManualPackageQuery.hook.ts +0 -23
  242. package/src/hooks/Astt/mutate/notifyMissingProductsQuery.hook.ts +0 -36
  243. package/src/hooks/Astt/mutate/postAsttActionsQuery.hook.ts +0 -18
  244. package/src/hooks/Astt/mutate/postManualPackageQuery.hook.ts +0 -18
  245. package/src/hooks/Astt/mutate/postManualTransferQuery.hook.ts +0 -16
  246. package/src/hooks/Astt/mutate/postMatchingPackageQuery.hook.ts +0 -22
  247. package/src/hooks/Astt/mutate/postTransferDocumentsMutateQuery.hook.ts +0 -23
  248. package/src/hooks/Astt/mutate/putTransferDocumentFinishQuery.hook.ts +0 -21
  249. package/src/hooks/Astt/mutate/putTransferDocumentsPartiallyQuery.hook.ts +0 -21
  250. package/src/hooks/Astt/mutate/putTransferDocumentsStateMutateQuery.hook.ts +0 -21
  251. package/src/hooks/Astt/mutate/updateDocumentIdQuery.hook.ts +0 -23
  252. package/src/hooks/Astt/mutate/updatePackageIdQuery.hook.ts +0 -25
  253. package/src/hooks/AsvProduct/get/getProductsByRefQuery.hook.ts +0 -23
  254. package/src/hooks/AsvProduct/get/getProductsByStoreQuery.hook.ts +0 -29
  255. package/src/hooks/AsvProduct/get/getProductsStockDetailsQuery.hook.ts +0 -21
  256. package/src/hooks/BigWin/get/getBwgAllEmployeesQuery.hook.ts +0 -29
  257. package/src/hooks/BigWin/get/getBwgBackOfficeQuery.hook.ts +0 -29
  258. package/src/hooks/BigWin/get/getMonthsListQuery.hook.ts +0 -10
  259. package/src/hooks/BigWin/others/importABWGQuery.hook.ts +0 -20
  260. package/src/hooks/BigWin/others/importRegulationQuery.hook.ts +0 -15
  261. package/src/hooks/BigWin/others/publishMonthsEmployeeQuery.hook.ts +0 -19
  262. package/src/hooks/BigWin/others/publishMonthsManagerQuery.hook.ts +0 -19
  263. package/src/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.ts +0 -13
  264. package/src/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.ts +0 -29
  265. package/src/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.ts +0 -17
  266. package/src/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.ts +0 -15
  267. package/src/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.ts +0 -15
  268. package/src/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.ts +0 -15
  269. package/src/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.ts +0 -15
  270. package/src/hooks/OSUA/MIMO/get/getIntegrationByName.hook.ts +0 -19
  271. package/src/hooks/OSUA/MIMO/get/getProductIntegrationHistory.hook.ts +0 -25
  272. package/src/hooks/OSUA/MIMO/get/useErrorHistory.hook.ts +0 -21
  273. package/src/hooks/OSUA/MIMO/get/useIntegrationDataQuery.hook.ts +0 -15
  274. package/src/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.ts +0 -13
  275. package/src/hooks/OSUA/MIMO/mutate/postIntegrationDag.hook.ts +0 -18
  276. package/src/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.ts +0 -15
  277. package/src/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.ts +0 -25
  278. package/src/hooks/OSUA/MIMO/mutate/updateIntegrationProcess.hook.ts +0 -30
  279. package/src/hooks/OSUA/get/documentos/getGngDocumentos.hook.ts +0 -28
  280. package/src/hooks/OSUA/get/documentos/getSitooDocumentos.hook.ts +0 -21
  281. package/src/hooks/OSUA/get/eventos/getSitooErrorEvents.hook.ts +0 -30
  282. package/src/hooks/OSUA/get/faqs/getFaqsQuery.hook.ts +0 -33
  283. package/src/hooks/OSUA/get/orders/getOrderDocuments.hook.ts +0 -21
  284. package/src/hooks/OSUA/get/queue/getQueues.hook.ts +0 -15
  285. package/src/hooks/OSUA/get/queue/getQueuesMessages.hook.ts +0 -28
  286. package/src/hooks/OSUA/get/vouchers/getGngVoucher.hook.ts +0 -21
  287. package/src/hooks/OSUA/get/vouchers/getOsuaVouchersQuery.hook.ts +0 -27
  288. package/src/hooks/OSUA/get/vouchers/getSalesNumberOsua.hook.ts +0 -26
  289. package/src/hooks/OSUA/get/vouchers/getSitooVouchers.hook.ts +0 -22
  290. package/src/hooks/OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook.ts +0 -23
  291. package/src/hooks/OSUA/mutate/activateOsuaVoucherQuery.hook.ts +0 -24
  292. package/src/hooks/OSUA/mutate/postCreateIntegrationRequest.hook.ts +0 -28
  293. package/src/hooks/OSUA/mutate/postEventsRep.hook.ts +0 -16
  294. package/src/hooks/OSUA/mutate/postQueuesMessages.hook.ts +0 -21
  295. package/src/hooks/OSUA/mutate/postVoucher.hook.ts +0 -16
  296. package/src/hooks/OSUA/mutate/putBalanceVouchers.hook.ts +0 -25
  297. package/src/hooks/OSUA/mutate/useSetIntegrationToFinished.hook.ts +0 -21
  298. package/src/hooks/Orch/get/getAuth0ConfigQuery.hook.ts +0 -11
  299. package/src/hooks/Orch/get/getInstanceByIdQuery.hook.ts +0 -14
  300. package/src/hooks/Orch/get/getInstancesQuery.hook.ts +0 -27
  301. package/src/hooks/Orch/get/getMacrosInstancesQuery.hook.ts +0 -19
  302. package/src/hooks/Orch/get/getMacrosQuery.hook.ts +0 -27
  303. package/src/hooks/Orch/get/getMacrosUserQuery.hook.ts +0 -11
  304. package/src/hooks/Orch/get/getMonitoringComponents.hook.ts +0 -29
  305. package/src/hooks/Orch/others/reprocessingInstanceQuery.hook.ts +0 -14
  306. package/src/hooks/Orch/others/runMacrosQuery.hook.ts +0 -23
  307. package/src/hooks/Orch/others/stopInstanceQuery.hook.ts +0 -16
  308. package/src/hooks/Orch/others/updateMacroStatusQuery.hook.ts +0 -23
  309. package/src/hooks/Others/Vacation/get/getVacationPlanQuery.hook.ts +0 -20
  310. package/src/hooks/Others/Vacation/get/getVacationTemplateQuery.hook.ts +0 -11
  311. package/src/hooks/Others/Vacation/others/aproveVacationPlanQuery.hook.ts +0 -23
  312. package/src/hooks/Others/Vacation/others/postVacationPlanQuery.hook.ts +0 -20
  313. package/src/hooks/Others/Vacation/others/rejectVacationPlanQuery.hook.ts +0 -25
  314. package/src/hooks/Others/changePasswordQuery.hook.ts +0 -21
  315. package/src/hooks/Others/editAllBellNotificationsStatusQuery.hook.ts +0 -19
  316. package/src/hooks/Others/editBellNotificationsStatusQuery.hook.ts +0 -22
  317. package/src/hooks/Others/editFieldsByBulkQuery.hook.ts +0 -15
  318. package/src/hooks/Others/getBellNotificationsQuery.hook.ts +0 -28
  319. package/src/hooks/Others/getNotificationTitleQuery.hook.ts +0 -19
  320. package/src/hooks/Others/getRegulationQuery.hook.ts +0 -14
  321. package/src/hooks/Others/getUserEmailStatusQuery.hook.ts +0 -21
  322. package/src/hooks/Others/getWeeklyWorkloadQuery.hook.ts +0 -23
  323. package/src/hooks/Others/oneSignalUserQuery.hook.ts +0 -14
  324. package/src/hooks/Others/postCheckoutsMutateQuery.hook.ts +0 -15
  325. package/src/hooks/Others/postUserAuthenticationQuery.hook.ts +0 -19
  326. package/src/hooks/Others/postVerifyImageQuery.hook.ts +0 -15
  327. package/src/hooks/Others/unblockUserQuery.hook.ts +0 -14
  328. package/src/hooks/Others/useApplicationDataQuery.hook.ts +0 -10
  329. package/src/hooks/Others/useContractStatesQuery.hook.ts +0 -15
  330. package/src/hooks/Others/useCountriesQuery.hook.ts +0 -15
  331. package/src/hooks/Others/useCreateNotification.hook.ts +0 -24
  332. package/src/hooks/Others/useCustomersQuery.hook.ts +0 -40
  333. package/src/hooks/Others/useJobTitlesQuery.hook.ts +0 -17
  334. package/src/hooks/Others/useRegulationQuery.hook.ts +0 -24
  335. package/src/hooks/Others/useTermNotificationQuery.hook.ts +0 -11
  336. package/src/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.ts +0 -13
  337. package/src/hooks/Questionnaire/get/useQuestionnaireQuery.hook.ts +0 -29
  338. package/src/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.ts +0 -17
  339. package/src/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.ts +0 -15
  340. package/src/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.ts +0 -15
  341. package/src/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.ts +0 -15
  342. package/src/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.ts +0 -15
  343. package/src/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.ts +0 -15
  344. package/src/hooks/Roles/get/useAllRolesQuery.hook.ts +0 -30
  345. package/src/hooks/Store/getLocationsByUser.hook.ts +0 -37
  346. package/src/hooks/Store/useAllStoreQuery.hook.ts +0 -37
  347. package/src/hooks/Store/useStoreByCodeQuery.hook.ts +0 -21
  348. package/src/hooks/Store/useStoreQuery.ts +0 -13
  349. package/src/hooks/Users/get/getUserAndSupervisorQuery.hook.ts +0 -21
  350. package/src/hooks/Users/get/getUsersReadmissionQuery.hook.ts +0 -27
  351. package/src/hooks/Users/get/useApplicationQuery.hook.ts +0 -29
  352. package/src/hooks/Users/get/useExpUsersAnswersQuery.hook.ts +0 -25
  353. package/src/hooks/Users/get/usePermissionByIdQuery.hook.ts +0 -15
  354. package/src/hooks/Users/get/usePermissionsQuery.hook.ts +0 -29
  355. package/src/hooks/Users/get/useSingleUserIdQuery.hook.ts +0 -15
  356. package/src/hooks/Users/get/useUserIdQuery.hook.ts +0 -14
  357. package/src/hooks/Users/get/useUserListQuery.hook.ts +0 -27
  358. package/src/hooks/Users/get/useUserQuery.hook.ts +0 -31
  359. package/src/hooks/Users/mutate/deletePermissionMutateQuery.hook.ts +0 -15
  360. package/src/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.ts +0 -18
  361. package/src/hooks/Users/mutate/useUpdatePermissionsMutateQuery.hook.ts +0 -17
  362. package/src/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.ts +0 -27
  363. package/src/hooks/Users/others/useSingleUserResetPassword.hook.ts +0 -18
  364. package/src/hooks/Users/others/useUserBlockQuery.hook.ts +0 -15
  365. package/src/hooks/Users/others/useUserEmailVerifQuery.hook.ts +0 -15
  366. package/src/hooks/Users/others/useUserResetPassByEmail.hook.ts +0 -14
  367. package/src/hooks/Watson/get/getCloseSession.hook.ts +0 -15
  368. package/src/hooks/Watson/mutate/mutateCloseSession.hook.ts +0 -18
  369. package/src/hooks/Watson/mutate/mutateNotificationRequest.hook.ts +0 -18
  370. package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesByIdQuery.hook.ts +0 -15
  371. package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesQuery.hook.ts +0 -27
  372. package/src/hooks/WidgetPicaPonto/get/getCriticaliesQuery.hook.ts +0 -27
  373. package/src/hooks/WidgetPicaPonto/get/getReasonCodesQuery.hook.ts +0 -27
  374. package/src/hooks/WidgetPicaPonto/get/getSchedulesStoresQuery.hook.ts +0 -28
  375. package/src/hooks/WidgetPicaPonto/mutate/useAttendanceIssuesQuery.hook.ts +0 -18
  376. package/src/hooks/index.ts +0 -505
  377. package/src/index.ts +0 -12
  378. package/src/interfaces/ACB.ts +0 -21
  379. package/src/interfaces/ASAECustomer.ts +0 -28
  380. package/src/interfaces/Acls.ts +0 -84
  381. package/src/interfaces/Actions.ts +0 -20
  382. package/src/interfaces/AnalyticsEvaluationCycle.ts +0 -24
  383. package/src/interfaces/AnalyticsUserId.ts +0 -14
  384. package/src/interfaces/Anot.ts +0 -79
  385. package/src/interfaces/Answer.ts +0 -14
  386. package/src/interfaces/AnswerType.ts +0 -22
  387. package/src/interfaces/AnswersUserSupervisor.ts +0 -45
  388. package/src/interfaces/ApplicationsByCategory.ts +0 -19
  389. package/src/interfaces/AstaQuestions.ts +0 -10
  390. package/src/interfaces/AstsStock.ts +0 -17
  391. package/src/interfaces/AstsStockInfo.ts +0 -14
  392. package/src/interfaces/AsttReconciliationDocuments.ts +0 -32
  393. package/src/interfaces/AsvProductsByReference.ts +0 -14
  394. package/src/interfaces/AsvProductsByStore.ts +0 -13
  395. package/src/interfaces/AsvProductsStockDetails.ts +0 -20
  396. package/src/interfaces/Atim.ts +0 -123
  397. package/src/interfaces/AtimScheduling.ts +0 -64
  398. package/src/interfaces/AttendanceIssues.ts +0 -20
  399. package/src/interfaces/Auth0Config.ts +0 -6
  400. package/src/interfaces/BellNotification.ts +0 -17
  401. package/src/interfaces/Brand.ts +0 -5
  402. package/src/interfaces/Bulk.ts +0 -11
  403. package/src/interfaces/Bwg.ts +0 -25
  404. package/src/interfaces/Cart.ts +0 -14
  405. package/src/interfaces/Checkout.ts +0 -15
  406. package/src/interfaces/Configuration.ts +0 -8
  407. package/src/interfaces/ContractStates.ts +0 -7
  408. package/src/interfaces/Countries.ts +0 -10
  409. package/src/interfaces/CreateNotification.ts +0 -18
  410. package/src/interfaces/Customer.ts +0 -23
  411. package/src/interfaces/CustomerHistory.ts +0 -11
  412. package/src/interfaces/CustomerVoucher.ts +0 -12
  413. package/src/interfaces/Employee.ts +0 -18
  414. package/src/interfaces/EvaluationCycle.ts +0 -34
  415. package/src/interfaces/ExpUsersAnswers.ts +0 -16
  416. package/src/interfaces/FlowExecution.ts +0 -33
  417. package/src/interfaces/FlowList.ts +0 -32
  418. package/src/interfaces/GetMonths.ts +0 -8
  419. package/src/interfaces/Inspection.ts +0 -22
  420. package/src/interfaces/Instances.ts +0 -25
  421. package/src/interfaces/JobTitles.ts +0 -7
  422. package/src/interfaces/MIMO.ts +0 -19
  423. package/src/interfaces/MacroInstance.ts +0 -11
  424. package/src/interfaces/Macros.ts +0 -19
  425. package/src/interfaces/MonitoringComponent.ts +0 -6
  426. package/src/interfaces/NotificationTitle.ts +0 -8
  427. package/src/interfaces/OSUA.ts +0 -363
  428. package/src/interfaces/Permissions.ts +0 -16
  429. package/src/interfaces/PriceChange.ts +0 -7
  430. package/src/interfaces/Product.ts +0 -17
  431. package/src/interfaces/ProductsHierarchies.ts +0 -6
  432. package/src/interfaces/ProductsPickedTransfers.ts +0 -13
  433. package/src/interfaces/Questionnaire.ts +0 -39
  434. package/src/interfaces/ReasonCodes.ts +0 -9
  435. package/src/interfaces/ReportBuilder.ts +0 -5
  436. package/src/interfaces/ResponseList.ts +0 -7
  437. package/src/interfaces/Responses.ts +0 -50
  438. package/src/interfaces/Rfid.ts +0 -10
  439. package/src/interfaces/Roles.ts +0 -5
  440. package/src/interfaces/Store.ts +0 -35
  441. package/src/interfaces/TagsFlow.ts +0 -5
  442. package/src/interfaces/Template.ts +0 -33
  443. package/src/interfaces/TermNotification.ts +0 -6
  444. package/src/interfaces/TimeKeeping.ts +0 -7
  445. package/src/interfaces/TransferAllProducts.ts +0 -39
  446. package/src/interfaces/TransferDocumentState.ts +0 -5
  447. package/src/interfaces/TransferDocuments.ts +0 -62
  448. package/src/interfaces/TransferPackage.ts +0 -19
  449. package/src/interfaces/TransferPickProducts.ts +0 -34
  450. package/src/interfaces/TransferReportDiff.ts +0 -9
  451. package/src/interfaces/TransferStates.ts +0 -8
  452. package/src/interfaces/User.ts +0 -75
  453. package/src/interfaces/UserAuthentication.ts +0 -7
  454. package/src/interfaces/UserEmailStatus.ts +0 -14
  455. package/src/interfaces/VacationPlan.ts +0 -13
  456. package/src/interfaces/VerifyImage.ts +0 -49
  457. package/src/interfaces/VerifyUser.ts +0 -5
  458. package/src/interfaces/Watson.ts +0 -76
  459. package/src/interfaces/Workload.ts +0 -8
  460. package/src/interfaces/index.ts +0 -81
  461. package/src/services/ApiService/index.ts +0 -185
  462. package/src/services/InitService/index.ts +0 -7
  463. package/src/services/index.ts +0 -3
  464. package/src/types/Global.d.ts +0 -4
  465. package/tsconfig.json +0 -24
  466. package/vite.config.js +0 -49
@@ -1,9 +0,0 @@
1
- export * from './SharedContextProvider';
2
- export * from './Header';
3
- export * from './Footer';
4
- export * from './Page';
5
- export * from './Button';
6
- export * from './BottomDrawer';
7
- export * from './Form';
8
- export * from './Link';
9
- export * from './Navigation';
@@ -1,21 +0,0 @@
1
-
2
- import {
3
- faBars, faUserTie, faPlus, faXmark, faUser, faUserPlus,
4
- faCartShopping, faChevronDown, faFilter, faSearch, faQrcode, faCheck, faTrashAlt
5
- } from '@fortawesome/free-solid-svg-icons'
6
-
7
- export const icons = {
8
- faBars,
9
- faUser,
10
- faUserTie,
11
- faPlus,
12
- faUserPlus,
13
- faXmark,
14
- faCartShopping,
15
- faChevronDown,
16
- faFilter,
17
- faSearch,
18
- faQrcode,
19
- faCheck,
20
- faTrashAlt
21
- };
@@ -1,10 +0,0 @@
1
- import { QueryClient } from '@tanstack/react-query';
2
-
3
- export const queryClient = new QueryClient({
4
- defaultOptions: {
5
- queries: {
6
- refetchOnWindowFocus: false,
7
- suspense: true,
8
- },
9
- },
10
- });
@@ -1,2 +0,0 @@
1
- export * from './QueryClient'
2
- export * from './Icons';
@@ -1,20 +0,0 @@
1
-
2
- import React from 'react';
3
- import { useSearchParams } from 'react-router-dom';
4
- import { useStoreQuery } from '../hooks/Store/useStoreQuery';
5
- import { Store } from '../interfaces/Store';
6
-
7
- const StoreContext = React.createContext<Store | null>(null);
8
-
9
- const StoreProvider = ({ children, disableInitialStoreRequest }: { disableInitialStoreRequest?: boolean, children: React.ReactElement | React.ReactElement[] }) => {
10
- const [params] = useSearchParams();
11
- const { data: store } = useStoreQuery({ id: params.get('storeId') as string, enabled: !disableInitialStoreRequest });
12
-
13
- return <StoreContext.Provider value={ store }> { children } </StoreContext.Provider>;
14
- };
15
-
16
- const useStoreContext = (): Store => {
17
- return React.useContext(StoreContext) as Store;
18
- };
19
-
20
- export { StoreProvider, useStoreContext };
@@ -1,5 +0,0 @@
1
-
2
- export enum AttendanceType {
3
- ENTER = 0,
4
- EXIT = 1
5
- }
@@ -1,7 +0,0 @@
1
-
2
- export enum EmployeeOrder {
3
- NAME_A_Z,
4
- NAME_Z_A,
5
- ID_ASC,
6
- ID_DESC,
7
- }
@@ -1,2 +0,0 @@
1
- export * from './attendence-type.enum';
2
- export * from './employees-order.enum';
package/src/global.scss DELETED
@@ -1,124 +0,0 @@
1
- :root {
2
- /* TODO: Update this code */
3
- --primary-color: red;
4
- --white-color: white;
5
- --grad-bg-button-color: #DADADA;
6
- --button-border-color: #707070;
7
- --button-color: #37383A;
8
- --customer-icon-color: #63B299;
9
- --default-background-image-color: #D9D9D9;
10
- --field-border-color: #D5D8D7;
11
- --page-bg-color: #F9F9F9;
12
- --page-border-color: #CECECE;
13
- --page-footer-bg-color: #DEDEDE;
14
- --app-footer-bg-color: #2C2D2E;
15
- --app-footer-color: #F5F6F7;
16
- --app-header-bg-1-color: #F7F7F7;
17
- --app-header-bg-2-color: #E3E3E3;
18
- --app-header-bg-3-color: #797979;
19
- --app-header-bt-border-color: #090909;
20
- --page-header-bg-color: #282c34;
21
- --success-color: #64B298;
22
- --error-color: #E05151;
23
- --disabled-input: #E8E8E8;
24
- --job-title-bg: #A83D3D;
25
- --job-date-info-bg: #E0F0EA;
26
- --job-date-edit-bg: #F0F0F0;
27
- --header-border-color: #C7CAC9;
28
- --grey: #E6E6E6;
29
- --active-button-color: #35779D;
30
- --sf-pro: normal normal bold 12px/14px SF Pro Text;
31
- --delete-bg: #E15151;
32
-
33
- /* New Code */
34
- /*** Colors ***/
35
- // Primary Colors
36
- --color-black: #2c2d2e;
37
- --color-black-rgb: 44, 45, 46;
38
- --color-white: #FFFFFF;
39
- --color-white-rgb: 255, 255, 255;
40
-
41
- --color-orange: #FF674C;
42
- --color-orange-rgb: 255, 103, 76;
43
-
44
- --color-blue: #09168B;
45
- --color-blue-rgb: 9, 22, 139;
46
-
47
- --color-grey-light: #D9D9D9;
48
- --color-grey-light-rgb: 217, 217, 217;
49
- --color-grey: #C7CAC9;
50
- --color-grey-rgb: 199, 202, 201;
51
- --color-grey-dark: #797979;
52
- --color-grey-dark-rgb: 121, 121, 121;
53
-
54
- // Helper Colors
55
- --color-warning-400: #E36262;
56
- --color-warning-500: #E05151;
57
-
58
- --color-confirmation-400: #73b9a2;
59
- --color-confirmation-600: #64B298;
60
-
61
- /*** Font Styles ***/
62
- // Font Family
63
- --font-family-primary: SF Pro;
64
-
65
- // Font Weight
66
- --font-weight-light: 300;
67
- --font-weight-regular: 400;
68
- --font-weight-medium: 500;
69
- --font-weight-semibold: 600;
70
- --font-weight-bold: 700;
71
-
72
- // Font Styles
73
- --font-style-normal: normal;
74
- --font-style-italic: italic;
75
-
76
- // Font Sizes
77
- --font-size-body-1: 10px;
78
- --font-size-body-2: 12px;
79
- --font-size-body-3: 14px;
80
- --font-size-body-4: 16px;
81
- --font-size-body-5: 18px;
82
- --font-size-body-6: 20px;
83
-
84
- --font-size-h1: 46px;
85
- --font-size-h2: 40px;
86
- --font-size-h3: 36px;
87
- --font-size-h4: 30px;
88
- --font-size-h5: 24px;
89
-
90
- --font-size-body-base: var(--font-size-body-4);
91
- --font-size-label: var(--font-size-body-3);
92
-
93
- /*** CTAs ***/
94
- // Button Default
95
- --button-default-background: var(--color-orange);
96
- --button-default-text-color: var(--color-white);
97
- --button-default-background-hover-color: rgba(var(--color-orange-rgb), .9);
98
- --button-default-text-hover-color: var(--color-white);
99
- --button-default-background-focus-color: var(--color-grey-dark);
100
- --button-default-text-focus-color: rgba(var(--color-white-rgb), .8);
101
-
102
- // Button Style 1
103
- --button-style-1-background: var(--color-black);
104
- --button-style-1-text-color: var(--color-white);
105
- --button-style-1-background-hover-color: rgba(var(--color-black-rgb), .9);
106
- --button-style-1-text-hover-color: var(--color-white);
107
- --button-style-1-background-focus-color: var(--color-grey-dark);
108
- --button-style-1-text-focus-color: rgba(var(--color-white-rgb), .8);
109
-
110
- // Button Disabled
111
- --button-disabled-background-color: var(--color-grey-dark);
112
- --button-disabled-default-text-color: var(--color-white);
113
-
114
- // Link
115
- --link-color: var(--color-orange);
116
- --link-hover-color: var(--color-black);
117
- --link-focus-color: rgba(var(--color-orange), .9);
118
- --link-disabled-color: rgba(var(--color-grey), .2);
119
-
120
- // Transition Speed
121
- --transition-slow: .2s;
122
- --transition: .6s;
123
- --transition-fast: 1s;
124
- }
@@ -1,20 +0,0 @@
1
- import type { MenuProps } from 'antd';
2
- import React from 'react';
3
-
4
- export type MenuItem = Required<MenuProps>['items'][number];
5
-
6
- export function getItem(
7
- label: React.ReactNode,
8
- key: React.Key,
9
- icon?: React.ReactNode,
10
- children?: MenuItem[],
11
- type?: 'group',
12
- ): MenuItem {
13
- return {
14
- key,
15
- icon,
16
- children,
17
- label,
18
- type,
19
- } as MenuItem;
20
- }
@@ -1,29 +0,0 @@
1
- import moment from 'moment';
2
- import dayjs, { Dayjs } from 'dayjs';
3
-
4
- export const getDateFromUnix = <T = Dayjs | string | null>(unixDate: number, formatStr?: string): T => {
5
- const date = unixDate ? dayjs.unix(unixDate) : null;
6
-
7
- return (formatStr && date ? date.format(formatStr) : date) as T;
8
- }
9
-
10
- export const getDateToUnix = (date: Date): number | null => {
11
- return date ? dayjs(date).unix() : null;
12
- };
13
-
14
- export const getUnixFromDateString = (dateString: string): number | null => {
15
- const date = dayjs(dateString, 'YYYY-MM-DD');
16
-
17
- return date.isValid() ? date.unix() : null;
18
- }
19
-
20
- export const getDateStringToUnix = (dateUnix: number) => {
21
- const dateObject = new Date(dateUnix * 1000);
22
-
23
- const day = dateObject?.getDate()?.toString()?.padStart(2, '0');
24
- const month = (dateObject?.getMonth() + 1)?.toString()?.padStart(2, '0');
25
- const year = dateObject?.getFullYear();
26
-
27
- return `${day}/${month}/${year}`;
28
- }
29
-
@@ -1,11 +0,0 @@
1
- import dayjs from 'dayjs';
2
-
3
- export const getFormattedDate = (seconds: number, defaultValue = ''): string => {
4
- if (!seconds) return defaultValue;
5
-
6
- // Converte segundos para milissegundos
7
- const date = dayjs.unix(seconds);
8
-
9
- // Formata para HH:mm
10
- return date.format('HH:mm');
11
- };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
-
3
- export const getChildrenByType = (children: JSX.Element | JSX.Element[], fn: Function) => {
4
- return React.Children.toArray(children).find((child) => (child as JSX.Element).type === fn);
5
- }
@@ -1,4 +0,0 @@
1
- export * from './codeMutation';
2
- export * from './formatted-date.helper';
3
- export * from './getChildrenByType.helper';
4
- export * from './date-unix.helper';
@@ -1,20 +0,0 @@
1
- import { useQuery, UseQueryOptions } from '@tanstack/react-query';
2
- import { get } from '../../../services/ApiService';
3
- import { ClientResponse } from '../../../interfaces';
4
-
5
- interface ClientBalanceQueryOptions extends UseQueryOptions<ClientResponse>{
6
- fiscalId?: string;
7
- }
8
-
9
- export const getClientBalance= ({ fiscalId, ...options }: ClientBalanceQueryOptions) => {
10
- return useQuery<ClientResponse>(
11
- ['EMPLOYEES_QUERY', fiscalId],
12
- () =>
13
- get<ClientResponse>('/ACB/Clients', {
14
- pFiscalId: fiscalId
15
- }),
16
- {
17
- ...options
18
- }
19
- );
20
- };
@@ -1,16 +0,0 @@
1
- import { useQueryClient, useMutation } from '@tanstack/react-query';
2
- import { AddClientBalanceRequest } from "../../../interfaces";
3
- import { post } from "../../../services/ApiService";
4
-
5
-
6
- export const postClientBalance = () => {
7
- const queryClient = useQueryClient();
8
- return useMutation<AddClientBalanceRequest , unknown, AddClientBalanceRequest >((data: AddClientBalanceRequest ) => {
9
- return post('/ACB/Clients', data);
10
- }, {
11
- onSuccess: (data: AddClientBalanceRequest ) => {
12
- queryClient.setQueryData(
13
- ['POST_CLIENT_BALANCE'], data);
14
- },
15
- });
16
- }
@@ -1,24 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { CustomerHistory, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- interface CustomerHistoryProps extends Omit<UseQueryOptions<ResponseList<"CustomerHistories", CustomerHistory>>, "queryKey"> {
6
- page: number;
7
- records: number;
8
- sortBy: string;
9
- sortDirection: string;
10
- }
11
-
12
- export const getCustomerHistoryQueryHook = (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerHistoryProps) => {
13
- return useQuery(
14
- ['CUSTOMER_HISTORY_QUERY', customerId, page, records, sortBy, sortDirection, options],
15
- () => getAuth0<ResponseList<"CustomerHistories", CustomerHistory>>(`/GNG/Salesforce/CustomerHistories/${customerId}`, {
16
- pPage: page,
17
- pRecords: records,
18
- pSortBy: sortBy,
19
- pSortDirection: sortDirection
20
- }),
21
- options
22
- );
23
- }
24
-
@@ -1,24 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { CustomerVoucher, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- interface CustomerVoucherProps extends Omit<UseQueryOptions<ResponseList<"CustomerVouchers", CustomerVoucher>>, "queryKey"> {
6
- page: number;
7
- records: number;
8
- sortBy: string;
9
- sortDirection: string;
10
- }
11
-
12
- export const getCustomerVouchersQueryHook = (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerVoucherProps) => {
13
- return useQuery(
14
- ['CUSTOMER_VOUCHERS_QUERY', page, records, sortBy, sortDirection, customerId, options],
15
- () => getAuth0<ResponseList<"CustomerVouchers", CustomerVoucher>>(`/GNG/Salesforce/CustomerVouchers/${customerId}`, {
16
- pPage: page,
17
- pRecords: records,
18
- pSortBy: sortBy,
19
- pSortDirection: sortDirection
20
- }),
21
- options
22
- );
23
- }
24
-
@@ -1,28 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { ASAECustomer, ResponseList } from "../../../interfaces";
3
- import { getAuth0 } from "../../../services/ApiService";
4
-
5
- interface ASAECustomerProps extends Omit<UseQueryOptions<ResponseList<"Customers", ASAECustomer>>, "queryKey"> {
6
- page: number;
7
- records: number;
8
- sortBy: string;
9
- sortDirection: string;
10
- terms?: string;
11
- query?: string;
12
- }
13
-
14
- export const getASAECustomerQueryHook = ({ page, records, sortBy, sortDirection, terms, query, ...options }: ASAECustomerProps) => {
15
- return useQuery(
16
- ['CUSTOMER_QUERY', page, records, sortBy, sortDirection, terms, query, options],
17
- () => getAuth0<ResponseList<"Customers", ASAECustomer>>(`/GNG/Salesforce/Customers`, {
18
- pPage: page,
19
- pRecords: records,
20
- pSortBy: sortBy,
21
- pSortDirection: sortDirection,
22
- pTerms: terms || "",
23
- pQuery: query || ""
24
- }),
25
- options
26
- );
27
- }
28
-
@@ -1,33 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { get } from "../../../../services/ApiService";
3
- import { ResponseList, AbsenceTypes } from "../../../../interfaces";
4
-
5
- interface AbsenceTypesQueryOptions
6
- extends UseQueryOptions<ResponseList<"AbsenceTypes", AbsenceTypes>> {
7
- page?: number;
8
- records?: number;
9
- sortBy?: string;
10
- sortDirection?: string;
11
- }
12
-
13
- export const useAbsenceTypes = ({
14
- page,
15
- records,
16
- sortBy,
17
- sortDirection,
18
- ...options
19
- }: AbsenceTypesQueryOptions) => {
20
- return useQuery<ResponseList<"AbsenceTypes", AbsenceTypes>>(
21
- ["EMPLOYEES_QUERY", page, records, sortBy, sortDirection],
22
- () =>
23
- get("/ATIM/AbsenceTypes", {
24
- pPage: page,
25
- pRecords: records,
26
- pSortBy: sortBy,
27
- pSortDirection: sortDirection,
28
- }),
29
- {
30
- ...options,
31
- }
32
- );
33
- };
@@ -1,38 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { getAuth0 } from "../../../../services/ApiService";
3
- import { AttendancesSummary } from "../../../../interfaces";
4
-
5
- interface EmployeeQueryOptions
6
- extends UseQueryOptions<AttendancesSummary>{
7
- employeeId?: string;
8
- storeId?: string;
9
- beginWorkPeriod?: number;
10
- endWorkPeriod?: number;
11
- }
12
-
13
- export const useAttendancesSummary = ({
14
- employeeId,
15
- storeId,
16
- beginWorkPeriod,
17
- endWorkPeriod,
18
- ...options
19
- }: EmployeeQueryOptions) => {
20
- return useQuery<AttendancesSummary>(
21
- [
22
- "ATTENDANCES_SUMMARY",
23
- employeeId,
24
- storeId,
25
- beginWorkPeriod,
26
- endWorkPeriod,
27
- ],
28
- () =>
29
- getAuth0(`/ATIM/AttendancesSummary/${employeeId}`, {
30
- pStoreId: storeId,
31
- pBeginWorkPeriod: beginWorkPeriod,
32
- pEndWorkPeriod: endWorkPeriod,
33
- }),
34
- {
35
- ...options,
36
- }
37
- );
38
- };
@@ -1,52 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { getAuth0 } from "../../../../services/ApiService";
3
- import { AttendancesSummary } from "../../../../interfaces";
4
- import { ResponseList } from "../../../../interfaces";
5
-
6
- interface EmployeeQueryOptions
7
- extends UseQueryOptions<ResponseList<'AttendanceSummarys', AttendancesSummary>>{
8
- userId?: string;
9
- page: number;
10
- record: number;
11
- sortBy?: string;
12
- sortDirection?: string;
13
- terms?: string;
14
- query?: string;
15
- }
16
-
17
- export const useAttendancesSummarySearch = ({
18
- userId,
19
- page,
20
- record,
21
- sortBy,
22
- sortDirection,
23
- terms,
24
- query,
25
- ...options
26
- }: EmployeeQueryOptions) => {
27
- return useQuery<ResponseList<'AttendanceSummarys', AttendancesSummary>>(
28
- [
29
- "ATTENDANCES_SUMMARY",
30
- userId,
31
- page,
32
- record,
33
- sortBy,
34
- sortDirection,
35
- terms,
36
- query
37
- ],
38
- () =>
39
- getAuth0<ResponseList<'AttendanceSummarys', AttendancesSummary>>(`/ATIM/AttendancesSummary`, {
40
- pUserId: userId,
41
- pPage: page,
42
- pRecords: record,
43
- pSortBy: sortBy,
44
- pSortDirection: sortDirection,
45
- pTerms: terms,
46
- pQuery: query,
47
- }),
48
- {
49
- ...options,
50
- }
51
- );
52
- };
@@ -1,29 +0,0 @@
1
- import { useQuery, UseQueryOptions } from '@tanstack/react-query';
2
- import { getAuth0 } from '../../../../services/ApiService';
3
- import { Store, ResponseList, Employee } from '../../../../interfaces';
4
-
5
- interface EmployeeQueryOptions extends UseQueryOptions<ResponseList<'Users', Employee >> {
6
- query?: string;
7
- page?: number;
8
- records?: number;
9
- sortBy?: string;
10
- sortDirection?: string;
11
- }
12
-
13
- export const useEmployeeQueryHook = ({ query, page, records, sortBy, sortDirection, ...options }: EmployeeQueryOptions) => {
14
- return useQuery<ResponseList<'Users', Employee>>(
15
- ['EMPLOYEES_QUERY', query, page, records, sortBy, sortDirection],
16
- () =>
17
- getAuth0('/AACP/Users', {
18
- pPage: page,
19
- pRecords: records,
20
- pSortBy: sortBy,
21
- pSortDirection: sortDirection,
22
- pQuery: query,
23
- }),
24
- {
25
- ...options
26
- }
27
- );
28
- };
29
-
@@ -1,51 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { getDateToUnix } from "../../../../helpers/date-unix.helper";
3
- import { get, getAuth0 } from "../../../../services/ApiService";
4
- import { ResponseList, EmployeesWorklog } from "../../../../interfaces";
5
-
6
- interface EmployeesWithTimekeepingProps
7
- extends UseQueryOptions<ResponseList<"EmployeesWorkLog", EmployeesWorklog>> {
8
- search?: string;
9
- page?: number;
10
- records?: number;
11
- sortBy?: string;
12
- sortDirection?: string;
13
- terms?: string;
14
- query?: string;
15
- }
16
-
17
- export const useEmployeeWorklogDetails = ({
18
- search,
19
- page,
20
- records,
21
- sortBy,
22
- sortDirection,
23
- terms,
24
- query,
25
- }: EmployeesWithTimekeepingProps) => {
26
- return useQuery<ResponseList<"EmployeesWorklog", EmployeesWorklog>>(
27
- [
28
- "EMPLOYEES_WITH_TIMEKEEPING",
29
- search,
30
- page,
31
- records,
32
- sortBy,
33
- sortDirection,
34
- terms,
35
- query,
36
- ],
37
- () =>
38
- getAuth0("/ATIM/EmployeesWorklogDetails", {
39
- pPage: page || 1,
40
- pRecords: records,
41
- pSortBy: sortBy,
42
- pSortDirection: sortDirection,
43
- pTerms: terms,
44
- pQuery: query,
45
- }),
46
- {
47
- suspense: false,
48
- enabled: !!query,
49
- }
50
- );
51
- };
@@ -1,36 +0,0 @@
1
- import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
- import { getAuth0 } from "../../../../services/ApiService";
3
- import { Employee, ResponseList } from "../../../../interfaces";
4
-
5
- interface EmployeesQueryOptions
6
- extends UseQueryOptions<ResponseList<"Users", Employee>> {
7
- page: number;
8
- records: number;
9
- storeId: string;
10
- sortBy: string;
11
- sortDirection: string;
12
- }
13
-
14
- export const useEmployeesQuery = ({
15
- page,
16
- records,
17
- storeId,
18
- sortBy,
19
- sortDirection,
20
- ...options
21
- }: EmployeesQueryOptions) => {
22
- return useQuery<ResponseList<"Users", Employee>>(
23
- ["EMPLOYEES_QUERY", page, records, storeId, sortBy, sortDirection],
24
- () =>
25
- getAuth0(`/Employees`, {
26
- pPage: page,
27
- pRecords: records,
28
- pStoreId: storeId,
29
- pSortBy: sortBy,
30
- pSortDirection: sortDirection,
31
- }),
32
- {
33
- ...options,
34
- }
35
- );
36
- };