@omniumretail/shared-resources 0.3.85 → 0.3.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +32 -0
- package/dist/bundle.js +1 -0
- package/dist/types/components/BottomDrawer/index.d.ts +9 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/Footer/index.d.ts +3 -0
- package/dist/types/components/Form/FormInputField/index.d.ts +8 -0
- package/dist/types/components/Form/FormSelectField/index.d.ts +9 -0
- package/dist/types/components/Form/index.d.ts +2 -0
- package/dist/types/components/Header/index.d.ts +4 -0
- package/dist/types/components/Link/index.d.ts +6 -0
- package/dist/types/components/Navigation/index.d.ts +8 -0
- package/dist/types/components/Page/index.d.ts +13 -0
- package/dist/types/components/SharedContextProvider/index.d.ts +7 -0
- package/dist/types/components/index.d.ts +9 -0
- package/dist/types/constants/Icons.d.ts +15 -0
- package/dist/types/constants/QueryClient.d.ts +2 -0
- package/dist/types/constants/index.d.ts +2 -0
- package/dist/types/contexts/useStore.d.ts +8 -0
- package/dist/types/helpers/codeMutation.d.ts +4 -0
- package/dist/types/helpers/date-unix.helper.d.ts +5 -0
- package/dist/types/helpers/getChildrenByType.helper.d.ts +2 -0
- package/dist/types/hooks/ACB/get/getClientBalance.hook.d.ts +7 -0
- package/dist/types/hooks/ACB/mutate/postClientBalance.hook.d.ts +2 -0
- package/dist/types/hooks/ASAEGNG/get/getCustomerHistoryQuery.hook.d.ts +10 -0
- package/dist/types/hooks/ASAEGNG/get/getCustomerVouchersQuery.hook.d.ts +10 -0
- package/dist/types/hooks/ASAEGNG/get/getCustomersQuery.hook.d.ts +12 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.d.ts +14 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useEmployeeQueryHook.hook.d.ts +11 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.d.ts +13 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.d.ts +11 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.d.ts +11 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.d.ts +2 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.d.ts +8 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useStoresQueryHook.hook.d.ts +11 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useWorkMonths.hook.d.ts +9 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.d.ts +9 -0
- package/dist/types/hooks/ATIM/BackOffice/mutate/postAttendanceRange.hook.d.ts +2 -0
- package/dist/types/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.d.ts +2 -0
- package/dist/types/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook.d.ts +2 -0
- package/dist/types/hooks/ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook.d.ts +13 -0
- package/dist/types/hooks/ATIM/PicaPonto/mutate/postAttendance.hook.d.ts +2 -0
- package/dist/types/hooks/ATIM/PicaPonto/mutate/postTogglePinCode.d.ts +10 -0
- package/dist/types/hooks/ATIM/PicaPonto/mutate/postVerifyUserQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Acls/get/getCustomersLoyaltyQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Acls/get/getVoucherLoyaltyQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Acls/get/getVoucherSitooQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Acls/get/getVoucherTemplatesQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Acls/mutate/postCreateVoucherTemplates.hook.d.ts +2 -0
- package/dist/types/hooks/Acls/mutate/postSaldoVoucherQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Acls/mutate/postSalesAssociationQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Acls/mutate/postVerificationEmailQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Acls/mutate/postVerificationUserQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Acls/mutate/postVoucherSitooQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Acls/mutate/reactivateVoucherQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Acls/mutate/updateDisabledVoucherTemplates.hook.d.ts +2 -0
- package/dist/types/hooks/Aexp/get/getFlowExecutionByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Aexp/get/getFlowExecutionQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Aexp/get/getFlowListByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Aexp/get/getFlowListQuery.hook.d.ts +13 -0
- package/dist/types/hooks/Aexp/get/getTagsFlowQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Aexp/mutate/deleteFlowConfigurationQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Aexp/mutate/inactivateFlowConfigurationQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Aexp/mutate/runFlowExecutionQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Aexp/mutate/useFlowConfigurationQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Aexp/mutate/useFlowExecutionQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Aexp/mutate/validateExecutionFileQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Analytics/get/getArchivedAnalyticsQuery.hook.d.ts +13 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.d.ts +13 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsUserQuery.hook.d.ts +14 -0
- package/dist/types/hooks/Anot/get/getNotificationApplicationsQuery.hook.d.ts +4 -0
- package/dist/types/hooks/Anot/get/getNotificationCriticalitiesQuery.hook.d.ts +4 -0
- package/dist/types/hooks/Anot/get/getNotificationHeadersQuery.hook.d.ts +17 -0
- package/dist/types/hooks/Anot/get/getNotificationLanguagesQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Anot/get/getNotificationTypeByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Anot/get/getNotificationsQuery.hook.d.ts +13 -0
- package/dist/types/hooks/Anot/get/getNotificationsTypeQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Anot/mutate/useNotificationTypeQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Answer/get/useAnswerIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Answer/mutate/useAnswerMutateQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Answer/others/openAnswerQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Answer/others/postAnswersExportQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Answer/others/showAnswerQuery.hook.d.ts +2 -0
- package/dist/types/hooks/AprProduct/get/useProductHierarchies.hook.d.ts +7 -0
- package/dist/types/hooks/AprProduct/get/useProductRecommendations.hook.d.ts +11 -0
- package/dist/types/hooks/AprProduct/get/useProductsByRefQuery.hook.d.ts +7 -0
- package/dist/types/hooks/AprProduct/get/useProductsQuery.hook.d.ts +144 -0
- package/dist/types/hooks/Aprc/get/getPriceChangePinQuery.hook.d.ts +5 -0
- package/dist/types/hooks/Aprc/others/postPriceChangePinQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Aprc/others/sendEmailWithPinQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asgt/get/getIdProductsPickedASGTQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asgt/get/getProductWarningASGTQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asgt/get/getProductsListingASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getProductsMovementsASGTQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asgt/get/getProductsPickedASGTQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Asgt/get/getTransferReportDiffASGT.hook.d.ts +12 -0
- package/dist/types/hooks/Asgt/mutate/autoSaveASGTQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Asgt/mutate/createPackageASGTMutateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asgt/mutate/createTransferASGTMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asgt/mutate/removeProductASGTQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Ass/get/getAssProductsByRefQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Ass/get/getAssProductsByStoreQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Ass/get/getAssProductsStockDetailsQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Asta/Actions/get/getActionByIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Actions/get/getActionPriorityQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Actions/get/getActionQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asta/Actions/get/getActionStagesQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Actions/mutate/useActionMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Actions/others/archiveActionQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Actions/others/deleteActionQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Actions/others/extractActionQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Actions/others/finishActionQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Actions/others/selectActionStatusQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Actions/others/startActionQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Answer/get/getAstaAnswerByIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Answer/get/getAstaAnswerQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asta/Answer/mutate/useAstaAnswersMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Answer/others/finishAstaAnswersQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Answer/others/finishGNGAstaAnswersQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Answer/others/putAnswerImageQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Answer/others/sendInspectionEmailQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Answer/others/sendInspectionEmailStoreQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/AnswerType/get/getAllAnswerTypeQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asta/AnswerType/get/getAnswerColorsQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/AnswerType/get/getAnswerTypeByIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/AnswerType/get/getAnswerTypeQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/AnswerType/others/deleteAnswerTypeQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/AnswerType/others/finishAnswerTypeQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/AnswerType/others/selectAnswerNameQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Inspection/get/getInspectionQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asta/Inspection/mutate/useInspectionMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Inspection/others/archiveTemplateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Inspection/others/deleteInspectionQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Inspection/others/exportInspectionQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Inspection/others/extractTemplateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Inspection/others/finishInspectionQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Template/get/getTemplateByIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Template/get/getTemplateHeadersQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Template/get/getTemplateQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asta/Template/mutate/useTemplateMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asta/Template/others/archiveTemplateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Template/others/deleteTemplateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Template/others/duplicateTemplateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Template/others/extractTemplateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asta/Template/others/finishTemplateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Asts/get/getProductInfoQuery.hook.d.ts +15 -0
- package/dist/types/hooks/Asts/get/getStockQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Asts/others/postAudioFileQuery.hook.d.ts +1 -0
- package/dist/types/hooks/Astt/Asgt/get/getAllAdidasProductsQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Astt/Asgt/get/getIdProductsPickedASTTQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Astt/Asgt/get/getProductWarningASTTQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Astt/Asgt/get/getProductsListingASTTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/Asgt/get/getProductsMovementsASTTQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Astt/Asgt/get/getProductsPickedASTTQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/Asgt/get/getReportsBuilderASTTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/Asgt/get/getReprocessNeededASTTQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Astt/Asgt/get/getTransferAllProductsASTTQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Astt/Asgt/get/getTransferDocumentsASTTQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/Asgt/get/getTransferDocumentsPackagesASTTQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Astt/Asgt/get/getTransferReportDiffASTT.hook.d.ts +12 -0
- package/dist/types/hooks/Astt/Asgt/mutate/autoSaveASTTQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Astt/Asgt/mutate/createPackageASTTMutateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/Asgt/mutate/createTransferASTTMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Astt/Asgt/mutate/deleteProductASTTQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Astt/Asgt/mutate/finishPackageASTTQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/Asgt/mutate/postMissingProductsASTTQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/Asgt/mutate/postReprocessASTTQuery.hook.d.ts +5 -0
- package/dist/types/hooks/Astt/Asgt/mutate/postRfidASGTMutateQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Astt/Asgt/mutate/postTransferDocumentsASTTMutateQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Astt/Asgt/mutate/putTransferDocumentsStateASTTMutateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/Asgt/mutate/removeProductASTTQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Astt/Asgt/mutate/restartProductASTTQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/get/getBarcodesListingByPackageQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getBarcodesListingQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getBarcodesPrintQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getDocumentsFindByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getManualPackagesListQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Astt/get/getProductsListingQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getReconciliationDocumentsQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Astt/get/getReportsBuilderQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getRfidQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Astt/get/getTransferAllProductsQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Astt/get/getTransferDocumentsByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getTransferDocumentsByPackageQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Astt/get/getTransferDocumentsPackagesQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Astt/get/getTransferDocumentsQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Astt/get/getTransferReportDiff.hook.d.ts +12 -0
- package/dist/types/hooks/Astt/get/getTransferStatesQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Astt/mutate/deleteManualPackageQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Astt/mutate/notifyMissingProductsQuery.hook.d.ts +14 -0
- package/dist/types/hooks/Astt/mutate/postAsttActionsQuery.hook.d.ts +1 -0
- package/dist/types/hooks/Astt/mutate/postManualPackageQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Astt/mutate/postManualTransferQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Astt/mutate/postMatchingPackageQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/mutate/postTransferDocumentsMutateQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Astt/mutate/putTransferDocumentFinishQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/mutate/putTransferDocumentsPartiallyQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/mutate/putTransferDocumentsStateMutateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Astt/mutate/updateDocumentIdQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Astt/mutate/updatePackageIdQuery.hook.d.ts +8 -0
- package/dist/types/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +8 -0
- package/dist/types/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +11 -0
- package/dist/types/hooks/AsvProduct/get/getProductsStockDetailsQuery.hook.d.ts +7 -0
- package/dist/types/hooks/BigWin/get/getBwgAllEmployeesQuery.hook.d.ts +12 -0
- package/dist/types/hooks/BigWin/get/getBwgBackOfficeQuery.hook.d.ts +12 -0
- package/dist/types/hooks/BigWin/get/getMonthsListQuery.hook.d.ts +2 -0
- package/dist/types/hooks/BigWin/others/importABWGQuery.hook.d.ts +2 -0
- package/dist/types/hooks/BigWin/others/importRegulationQuery.hook.d.ts +2 -0
- package/dist/types/hooks/BigWin/others/publishMonthsEmployeeQuery.hook.d.ts +2 -0
- package/dist/types/hooks/BigWin/others/publishMonthsManagerQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts +11 -0
- package/dist/types/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/MIMO/get/getIntegrationByName.hook.d.ts +6 -0
- package/dist/types/hooks/OSUA/MIMO/get/getProductIntegrationHistory.hook.d.ts +9 -0
- package/dist/types/hooks/OSUA/MIMO/get/useErrorHistory.hook.d.ts +7 -0
- package/dist/types/hooks/OSUA/MIMO/get/useIntegrationDataQuery.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.d.ts +1 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/postIntegrationDag.hook.d.ts +5 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/updateIntegrationProcess.hook.d.ts +6 -0
- package/dist/types/hooks/OSUA/get/documentos/getGngDocumentos.hook.d.ts +9 -0
- package/dist/types/hooks/OSUA/get/documentos/getSitooDocumentos.hook.d.ts +8 -0
- package/dist/types/hooks/OSUA/get/eventos/getSitooErrorEvents.hook.d.ts +10 -0
- package/dist/types/hooks/OSUA/get/faqs/getFaqsQuery.hook.d.ts +11 -0
- package/dist/types/hooks/OSUA/get/orders/getOrderDocuments.hook.d.ts +9 -0
- package/dist/types/hooks/OSUA/get/queue/getQueues.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/get/queue/getQueuesMessages.hook.d.ts +9 -0
- package/dist/types/hooks/OSUA/get/vouchers/getGngVoucher.hook.d.ts +9 -0
- package/dist/types/hooks/OSUA/get/vouchers/getOsuaVouchersQuery.hook.d.ts +12 -0
- package/dist/types/hooks/OSUA/get/vouchers/getSalesNumberOsua.hook.d.ts +13 -0
- package/dist/types/hooks/OSUA/get/vouchers/getSitooVouchers.hook.d.ts +7 -0
- package/dist/types/hooks/OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook.d.ts +8 -0
- package/dist/types/hooks/OSUA/mutate/activateOsuaVoucherQuery.hook.d.ts +10 -0
- package/dist/types/hooks/OSUA/mutate/postCreateIntegrationRequest.hook.d.ts +10 -0
- package/dist/types/hooks/OSUA/mutate/postEventsRep.hook.d.ts +1 -0
- package/dist/types/hooks/OSUA/mutate/postQueuesMessages.hook.d.ts +6 -0
- package/dist/types/hooks/OSUA/mutate/postVoucher.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/mutate/putBalanceVouchers.hook.d.ts +6 -0
- package/dist/types/hooks/OSUA/mutate/useSetIntegrationToFinished.hook.d.ts +2 -0
- package/dist/types/hooks/Orch/get/getAuth0ConfigQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Orch/get/getInstanceByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Orch/get/getInstancesQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Orch/get/getMacrosInstancesQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Orch/get/getMacrosQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Orch/get/getMacrosUserQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Orch/get/getMonitoringComponents.hook.d.ts +13 -0
- package/dist/types/hooks/Orch/others/reprocessingInstanceQuery.hook.d.ts +1 -0
- package/dist/types/hooks/Orch/others/runMacrosQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Orch/others/stopInstanceQuery.hook.d.ts +1 -0
- package/dist/types/hooks/Orch/others/updateMacroStatusQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Others/Vacation/get/getVacationPlanQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Others/Vacation/get/getVacationTemplateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/Vacation/others/aproveVacationPlanQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Others/Vacation/others/postVacationPlanQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Others/Vacation/others/rejectVacationPlanQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Others/changePasswordQuery.hook.d.ts +5 -0
- package/dist/types/hooks/Others/editAllBellNotificationsStatusQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Others/editBellNotificationsStatusQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Others/editFieldsByBulkQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/getBellNotificationsQuery.hook.d.ts +13 -0
- package/dist/types/hooks/Others/getNotificationTitleQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Others/getRegulationQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/getUserEmailStatusQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Others/getWeeklyWorkloadQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Others/oneSignalUserQuery.hook.d.ts +1 -0
- package/dist/types/hooks/Others/postCheckoutsMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/postUserAuthenticationQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Others/postVerifyImageQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/unblockUserQuery.hook.d.ts +1 -0
- package/dist/types/hooks/Others/useApplicationDataQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/useContractStatesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Others/useCountriesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Others/useCreateNotification.hook.d.ts +7 -0
- package/dist/types/hooks/Others/useCustomersQuery.hook.d.ts +142 -0
- package/dist/types/hooks/Others/useJobTitlesQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Others/useRegulationQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Others/useTermNotificationQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/get/useQuestionnaireQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Roles/get/useAllRolesQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Store/getLocationsByUser.hook.d.ts +13 -0
- package/dist/types/hooks/Store/useAllStoreQuery.hook.d.ts +13 -0
- package/dist/types/hooks/Store/useStoreByCodeQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Store/useStoreQuery.d.ts +7 -0
- package/dist/types/hooks/Users/get/getUserAndSupervisorQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Users/get/getUsersReadmissionQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Users/get/useApplicationQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Users/get/usePermissionByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Users/get/usePermissionsQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Users/get/useSingleUserIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Users/get/useUserIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/get/useUserListQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Users/get/useUserQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Users/mutate/deletePermissionMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/mutate/useUpdatePermissionsMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Users/others/useSingleUserResetPassword.hook.d.ts +6 -0
- package/dist/types/hooks/Users/others/useUserBlockQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/others/useUserEmailVerifQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/others/useUserResetPassByEmail.hook.d.ts +2 -0
- package/dist/types/hooks/Watson/get/getCloseSession.hook.d.ts +3 -0
- package/dist/types/hooks/Watson/mutate/mutateCloseSession.hook.d.ts +2 -0
- package/dist/types/hooks/Watson/mutate/mutateNotificationRequest.hook.d.ts +2 -0
- package/dist/types/hooks/WidgetPicaPonto/get/getAttendanceIssuesByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/WidgetPicaPonto/get/getAttendanceIssuesQuery.hook.d.ts +11 -0
- package/dist/types/hooks/WidgetPicaPonto/get/getCriticaliesQuery.hook.d.ts +11 -0
- package/dist/types/hooks/WidgetPicaPonto/get/getReasonCodesQuery.hook.d.ts +11 -0
- package/dist/types/hooks/WidgetPicaPonto/get/getSchedulesStoresQuery.hook.d.ts +8 -0
- package/dist/types/hooks/WidgetPicaPonto/mutate/useAttendanceIssuesQuery.hook.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +434 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/interfaces/Answer.d.ts +13 -0
- package/dist/types/interfaces/Cart.d.ts +11 -0
- package/dist/types/interfaces/Employee.d.ts +14 -0
- package/dist/types/interfaces/Inspection.d.ts +21 -0
- package/dist/types/interfaces/OSUA.d.ts +325 -0
- package/dist/types/interfaces/Responses.d.ts +29 -0
- package/dist/types/interfaces/Template.d.ts +30 -0
- package/dist/types/interfaces/User.d.ts +71 -0
- package/dist/types/services/ApiService/index.d.ts +14 -0
- package/dist/types/services/InitService/index.d.ts +3 -0
- package/package.json +36 -48
- package/src/a2ai.scss +130 -0
- package/src/assets/omniu-retail_branco_s-fundo.png +0 -0
- package/src/assets/sitoo.svg +9 -0
- package/src/components/BottomDrawer/index.tsx +33 -0
- package/src/components/BottomDrawer/styles.module.scss +59 -0
- package/src/components/Button/index.tsx +7 -0
- package/src/components/Footer/index.tsx +44 -0
- package/src/components/Footer/styles.module.scss +33 -0
- package/src/components/Form/FormInputField/index.tsx +18 -0
- package/src/components/Form/FormSelectField/index.tsx +16 -0
- package/src/components/Form/index.ts +2 -0
- package/src/components/Header/index.tsx +20 -0
- package/src/components/Header/styles.module.scss +16 -0
- package/src/components/Link/index.tsx +21 -0
- package/src/components/Link/styles.module.scss +24 -0
- package/src/components/Navigation/index.tsx +30 -0
- package/src/components/Navigation/styles.module.scss +34 -0
- package/src/components/Page/index.tsx +35 -0
- package/src/components/Page/styles.module.scss +26 -0
- package/src/components/SharedContextProvider/index.tsx +30 -0
- package/src/components/index.ts +9 -0
- package/src/constants/Icons.ts +21 -0
- package/src/constants/QueryClient.ts +10 -0
- package/src/constants/index.ts +2 -0
- package/src/contexts/useStore.tsx +20 -0
- package/src/enums/attendence-type.enum.ts +5 -0
- package/src/enums/employees-order.enum.ts +7 -0
- package/src/enums/index.ts +2 -0
- package/src/global.scss +124 -0
- package/src/helpers/codeMutation.tsx +20 -0
- package/src/helpers/date-unix.helper.ts +29 -0
- package/src/helpers/formatted-date.helper.ts +15 -0
- package/src/helpers/getChildrenByType.helper.ts +5 -0
- package/src/helpers/index.ts +4 -0
- package/src/hooks/ACB/get/getClientBalance.hook.ts +20 -0
- package/src/hooks/ACB/mutate/postClientBalance.hook.ts +16 -0
- package/src/hooks/ASAEGNG/get/getCustomerHistoryQuery.hook.ts +24 -0
- package/src/hooks/ASAEGNG/get/getCustomerVouchersQuery.hook.ts +24 -0
- package/src/hooks/ASAEGNG/get/getCustomersQuery.hook.ts +28 -0
- package/src/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.ts +33 -0
- package/src/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.ts +38 -0
- package/src/hooks/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.ts +52 -0
- package/src/hooks/ATIM/BackOffice/get/useEmployeeQueryHook.hook.ts +29 -0
- package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +51 -0
- package/src/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.ts +36 -0
- package/src/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.ts +36 -0
- package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.ts +16 -0
- package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.ts +36 -0
- package/src/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.ts +28 -0
- package/src/hooks/ATIM/BackOffice/get/useStoresQueryHook.hook.ts +27 -0
- package/src/hooks/ATIM/BackOffice/get/useWorkMonths.hook.ts +31 -0
- package/src/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.ts +31 -0
- package/src/hooks/ATIM/BackOffice/mutate/postAttendanceRange.hook.ts +16 -0
- package/src/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.ts +21 -0
- package/src/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.ts +25 -0
- package/src/hooks/ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook.ts +17 -0
- package/src/hooks/ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook.ts +35 -0
- package/src/hooks/ATIM/PicaPonto/mutate/postAttendance.hook.ts +16 -0
- package/src/hooks/ATIM/PicaPonto/mutate/postTogglePinCode.ts +33 -0
- package/src/hooks/ATIM/PicaPonto/mutate/postVerifyUserQuery.hook.ts +15 -0
- package/src/hooks/Acls/get/getCustomersLoyaltyQuery.hook.ts +22 -0
- package/src/hooks/Acls/get/getVoucherLoyaltyQuery.hook.ts +25 -0
- package/src/hooks/Acls/get/getVoucherSitooQuery.hook.ts +22 -0
- package/src/hooks/Acls/get/getVoucherTemplatesQuery.hook.ts +29 -0
- package/src/hooks/Acls/mutate/postCreateVoucherTemplates.hook.ts +19 -0
- package/src/hooks/Acls/mutate/postSaldoVoucherQuery.hook.ts +21 -0
- package/src/hooks/Acls/mutate/postSalesAssociationQuery.hook.ts +20 -0
- package/src/hooks/Acls/mutate/postVerificationEmailQuery.hook.ts +23 -0
- package/src/hooks/Acls/mutate/postVerificationUserQuery.hook.ts +23 -0
- package/src/hooks/Acls/mutate/postVoucherSitooQuery.hook.ts +21 -0
- package/src/hooks/Acls/mutate/reactivateVoucherQuery.hook.ts +27 -0
- package/src/hooks/Acls/mutate/updateDisabledVoucherTemplates.hook.ts +25 -0
- package/src/hooks/Aexp/get/getFlowExecutionByIdQuery.hook.ts +13 -0
- package/src/hooks/Aexp/get/getFlowExecutionQuery.hook.ts +27 -0
- package/src/hooks/Aexp/get/getFlowListByIdQuery.hook.ts +13 -0
- package/src/hooks/Aexp/get/getFlowListQuery.hook.ts +29 -0
- package/src/hooks/Aexp/get/getTagsFlowQuery.hook.ts +11 -0
- package/src/hooks/Aexp/mutate/deleteFlowConfigurationQuery.hook.ts +17 -0
- package/src/hooks/Aexp/mutate/inactivateFlowConfigurationQuery.hook.ts +18 -0
- package/src/hooks/Aexp/mutate/runFlowExecutionQuery.hook.ts +20 -0
- package/src/hooks/Aexp/mutate/useFlowConfigurationQuery.hook.ts +17 -0
- package/src/hooks/Aexp/mutate/useFlowExecutionQuery.hook.ts +22 -0
- package/src/hooks/Aexp/mutate/validateExecutionFileQuery.hook.ts +15 -0
- package/src/hooks/Analytics/get/getArchivedAnalyticsQuery.hook.ts +32 -0
- package/src/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.ts +21 -0
- package/src/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.ts +23 -0
- package/src/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.ts +21 -0
- package/src/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.ts +32 -0
- package/src/hooks/Analytics/get/useAnalyticsUserQuery.hook.ts +35 -0
- package/src/hooks/Anot/get/getNotificationApplicationsQuery.hook.ts +13 -0
- package/src/hooks/Anot/get/getNotificationCriticalitiesQuery.hook.ts +13 -0
- package/src/hooks/Anot/get/getNotificationHeadersQuery.hook.ts +33 -0
- package/src/hooks/Anot/get/getNotificationLanguagesQuery.hook.ts +15 -0
- package/src/hooks/Anot/get/getNotificationTypeByIdQuery.hook.ts +11 -0
- package/src/hooks/Anot/get/getNotificationsQuery.hook.ts +29 -0
- package/src/hooks/Anot/get/getNotificationsTypeQuery.hook.ts +27 -0
- package/src/hooks/Anot/mutate/useNotificationTypeQuery.hook.ts +18 -0
- package/src/hooks/Answer/get/useAnswerIdQuery.hook.ts +13 -0
- package/src/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.ts +21 -0
- package/src/hooks/Answer/mutate/useAnswerMutateQuery.hook.ts +31 -0
- package/src/hooks/Answer/others/openAnswerQuery.hook.ts +19 -0
- package/src/hooks/Answer/others/postAnswersExportQuery.hook.ts +26 -0
- package/src/hooks/Answer/others/showAnswerQuery.hook.ts +18 -0
- package/src/hooks/AprProduct/get/useProductHierarchies.hook.ts +19 -0
- package/src/hooks/AprProduct/get/useProductRecommendations.hook.ts +27 -0
- package/src/hooks/AprProduct/get/useProductsByRefQuery.hook.ts +18 -0
- package/src/hooks/AprProduct/get/useProductsQuery.hook.ts +46 -0
- package/src/hooks/Aprc/get/getPriceChangePinQuery.hook.ts +16 -0
- package/src/hooks/Aprc/others/postPriceChangePinQuery.hook.ts +19 -0
- package/src/hooks/Aprc/others/sendEmailWithPinQuery.hook.ts +19 -0
- package/src/hooks/Asgt/get/getIdProductsPickedASGTQuery.hook.ts +10 -0
- package/src/hooks/Asgt/get/getProductWarningASGTQuery.hook.ts +27 -0
- package/src/hooks/Asgt/get/getProductsListingASGTQuery.hook.ts +14 -0
- package/src/hooks/Asgt/get/getProductsMovementsASGTQuery.hook.ts +27 -0
- package/src/hooks/Asgt/get/getProductsPickedASGTQuery.hook.ts +19 -0
- package/src/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.ts +12 -0
- package/src/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.ts +25 -0
- package/src/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.ts +27 -0
- package/src/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.ts +12 -0
- package/src/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.ts +13 -0
- package/src/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.ts +23 -0
- package/src/hooks/Asgt/get/getTransferReportDiffASGT.hook.ts +17 -0
- package/src/hooks/Asgt/mutate/autoSaveASGTQuery.hook.ts +23 -0
- package/src/hooks/Asgt/mutate/createPackageASGTMutateQuery.hook.ts +21 -0
- package/src/hooks/Asgt/mutate/createTransferASGTMutateQuery.hook.ts +15 -0
- package/src/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.ts +23 -0
- package/src/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.ts +21 -0
- package/src/hooks/Asgt/mutate/removeProductASGTQuery.hook.ts +15 -0
- package/src/hooks/Ass/get/getAssProductsByRefQuery.hook.ts +23 -0
- package/src/hooks/Ass/get/getAssProductsByStoreQuery.hook.ts +29 -0
- package/src/hooks/Ass/get/getAssProductsStockDetailsQuery.hook.ts +21 -0
- package/src/hooks/Asta/Actions/get/getActionByIdQuery.hook.ts +15 -0
- package/src/hooks/Asta/Actions/get/getActionPriorityQuery.hook.ts +10 -0
- package/src/hooks/Asta/Actions/get/getActionQuery.hook.ts +29 -0
- package/src/hooks/Asta/Actions/get/getActionStagesQuery.hook.ts +10 -0
- package/src/hooks/Asta/Actions/mutate/useActionMutateQuery.hook.ts +20 -0
- package/src/hooks/Asta/Actions/others/archiveActionQuery.hook.ts +19 -0
- package/src/hooks/Asta/Actions/others/deleteActionQuery.hook.ts +19 -0
- package/src/hooks/Asta/Actions/others/extractActionQuery.hook.ts +19 -0
- package/src/hooks/Asta/Actions/others/finishActionQuery.hook.ts +17 -0
- package/src/hooks/Asta/Actions/others/selectActionStatusQuery.hook.ts +18 -0
- package/src/hooks/Asta/Actions/others/startActionQuery.hook.ts +17 -0
- package/src/hooks/Asta/Answer/get/getAstaAnswerByIdQuery.hook.ts +15 -0
- package/src/hooks/Asta/Answer/get/getAstaAnswerQuery.hook.ts +29 -0
- package/src/hooks/Asta/Answer/mutate/useAstaAnswersMutateQuery.hook.ts +20 -0
- package/src/hooks/Asta/Answer/others/finishAstaAnswersQuery.hook.ts +15 -0
- package/src/hooks/Asta/Answer/others/finishGNGAstaAnswersQuery.hook.ts +18 -0
- package/src/hooks/Asta/Answer/others/putAnswerImageQuery.hook.ts +15 -0
- package/src/hooks/Asta/Answer/others/sendInspectionEmailQuery.hook.ts +21 -0
- package/src/hooks/Asta/Answer/others/sendInspectionEmailStoreQuery.hook.ts +20 -0
- package/src/hooks/Asta/AnswerType/get/getAllAnswerTypeQuery.hook.ts +29 -0
- package/src/hooks/Asta/AnswerType/get/getAnswerColorsQuery.hook.ts +10 -0
- package/src/hooks/Asta/AnswerType/get/getAnswerTypeByIdQuery.hook.ts +15 -0
- package/src/hooks/Asta/AnswerType/get/getAnswerTypeQuery.hook.ts +10 -0
- package/src/hooks/Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook.ts +20 -0
- package/src/hooks/Asta/AnswerType/others/deleteAnswerTypeQuery.hook.ts +19 -0
- package/src/hooks/Asta/AnswerType/others/finishAnswerTypeQuery.hook.ts +17 -0
- package/src/hooks/Asta/AnswerType/others/selectAnswerNameQuery.hook.ts +18 -0
- package/src/hooks/Asta/Inspection/get/getInspectionQuery.hook.ts +29 -0
- package/src/hooks/Asta/Inspection/mutate/useInspectionMutateQuery.hook.ts +24 -0
- package/src/hooks/Asta/Inspection/others/archiveTemplateQuery.hook.ts +19 -0
- package/src/hooks/Asta/Inspection/others/deleteInspectionQuery.hook.ts +19 -0
- package/src/hooks/Asta/Inspection/others/exportInspectionQuery.hook.ts +19 -0
- package/src/hooks/Asta/Inspection/others/extractTemplateQuery.hook.ts +19 -0
- package/src/hooks/Asta/Inspection/others/finishInspectionQuery.hook.ts +17 -0
- package/src/hooks/Asta/Template/get/getTemplateByIdQuery.hook.ts +15 -0
- package/src/hooks/Asta/Template/get/getTemplateHeadersQuery.hook.ts +10 -0
- package/src/hooks/Asta/Template/get/getTemplateQuery.hook.ts +29 -0
- package/src/hooks/Asta/Template/mutate/useTemplateMutateQuery.hook.ts +20 -0
- package/src/hooks/Asta/Template/others/archiveTemplateQuery.hook.ts +19 -0
- package/src/hooks/Asta/Template/others/deleteTemplateQuery.hook.ts +19 -0
- package/src/hooks/Asta/Template/others/duplicateTemplateQuery.hook.ts +19 -0
- package/src/hooks/Asta/Template/others/extractTemplateQuery.hook.ts +19 -0
- package/src/hooks/Asta/Template/others/finishTemplateQuery.hook.ts +17 -0
- package/src/hooks/Asts/get/getProductInfoQuery.hook.ts +19 -0
- package/src/hooks/Asts/get/getStockQuery.hook.ts +21 -0
- package/src/hooks/Asts/others/postAudioFileQuery.hook.ts +14 -0
- package/src/hooks/Astt/Asgt/get/getAllAdidasProductsQuery.hook.ts +25 -0
- package/src/hooks/Astt/Asgt/get/getIdProductsPickedASTTQuery.hook.ts +10 -0
- package/src/hooks/Astt/Asgt/get/getProductWarningASTTQuery.hook.ts +27 -0
- package/src/hooks/Astt/Asgt/get/getProductsListingASTTQuery.hook.ts +14 -0
- package/src/hooks/Astt/Asgt/get/getProductsMovementsASTTQuery.hook.ts +27 -0
- package/src/hooks/Astt/Asgt/get/getProductsPickedASTTQuery.hook.ts +19 -0
- package/src/hooks/Astt/Asgt/get/getReportsBuilderASTTQuery.hook.ts +12 -0
- package/src/hooks/Astt/Asgt/get/getReprocessNeededASTTQuery.hook.ts +12 -0
- package/src/hooks/Astt/Asgt/get/getTransferAllProductsASTTQuery.hook.ts +25 -0
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsASTTQuery.hook.ts +27 -0
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook.ts +12 -0
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook.ts +13 -0
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsPackagesASTTQuery.hook.ts +23 -0
- package/src/hooks/Astt/Asgt/get/getTransferReportDiffASTT.hook.ts +17 -0
- package/src/hooks/Astt/Asgt/mutate/autoSaveASTTQuery.hook.ts +23 -0
- package/src/hooks/Astt/Asgt/mutate/createPackageASTTMutateQuery.hook.ts +21 -0
- package/src/hooks/Astt/Asgt/mutate/createTransferASTTMutateQuery.hook.ts +15 -0
- package/src/hooks/Astt/Asgt/mutate/deleteProductASTTQuery.hook.ts +25 -0
- package/src/hooks/Astt/Asgt/mutate/finishPackageASTTQuery.hook.ts +21 -0
- package/src/hooks/Astt/Asgt/mutate/postMissingProductsASTTQuery.hook.ts +21 -0
- package/src/hooks/Astt/Asgt/mutate/postReprocessASTTQuery.hook.ts +20 -0
- package/src/hooks/Astt/Asgt/mutate/postRfidASGTMutateQuery.hook.ts +28 -0
- package/src/hooks/Astt/Asgt/mutate/postTransferDocumentsASTTMutateQuery.hook.ts +23 -0
- package/src/hooks/Astt/Asgt/mutate/putTransferDocumentsStateASTTMutateQuery.hook.ts +21 -0
- package/src/hooks/Astt/Asgt/mutate/removeProductASTTQuery.hook.ts +15 -0
- package/src/hooks/Astt/Asgt/mutate/restartProductASTTQuery.hook.ts +22 -0
- package/src/hooks/Astt/get/getBarcodesListingByPackageQuery.hook.ts +14 -0
- package/src/hooks/Astt/get/getBarcodesListingQuery.hook.ts +13 -0
- package/src/hooks/Astt/get/getBarcodesPrintQuery.hook.ts +12 -0
- package/src/hooks/Astt/get/getDocumentsFindByIdQuery.hook.ts +12 -0
- package/src/hooks/Astt/get/getManualPackagesListQuery.hook.ts +20 -0
- package/src/hooks/Astt/get/getProductsListingQuery.hook.ts +14 -0
- package/src/hooks/Astt/get/getReconciliationDocumentsQuery.hook.ts +18 -0
- package/src/hooks/Astt/get/getReportsBuilderQuery.hook.ts +12 -0
- package/src/hooks/Astt/get/getRfidQuery.hook.ts +24 -0
- package/src/hooks/Astt/get/getTransferAllProductsQuery.hook.ts +25 -0
- package/src/hooks/Astt/get/getTransferDocumentsByIdQuery.hook.ts +12 -0
- package/src/hooks/Astt/get/getTransferDocumentsByPackageQuery.hook.ts +13 -0
- package/src/hooks/Astt/get/getTransferDocumentsPackagesQuery.hook.ts +23 -0
- package/src/hooks/Astt/get/getTransferDocumentsQuery.hook.ts +27 -0
- package/src/hooks/Astt/get/getTransferReportDiff.hook.ts +17 -0
- package/src/hooks/Astt/get/getTransferStatesQuery.hook.ts +10 -0
- package/src/hooks/Astt/mutate/deleteManualPackageQuery.hook.ts +23 -0
- package/src/hooks/Astt/mutate/notifyMissingProductsQuery.hook.ts +36 -0
- package/src/hooks/Astt/mutate/postAsttActionsQuery.hook.ts +18 -0
- package/src/hooks/Astt/mutate/postManualPackageQuery.hook.ts +18 -0
- package/src/hooks/Astt/mutate/postManualTransferQuery.hook.ts +16 -0
- package/src/hooks/Astt/mutate/postMatchingPackageQuery.hook.ts +22 -0
- package/src/hooks/Astt/mutate/postTransferDocumentsMutateQuery.hook.ts +23 -0
- package/src/hooks/Astt/mutate/putTransferDocumentFinishQuery.hook.ts +21 -0
- package/src/hooks/Astt/mutate/putTransferDocumentsPartiallyQuery.hook.ts +21 -0
- package/src/hooks/Astt/mutate/putTransferDocumentsStateMutateQuery.hook.ts +21 -0
- package/src/hooks/Astt/mutate/updateDocumentIdQuery.hook.ts +23 -0
- package/src/hooks/Astt/mutate/updatePackageIdQuery.hook.ts +25 -0
- package/src/hooks/AsvProduct/get/getProductsByRefQuery.hook.ts +23 -0
- package/src/hooks/AsvProduct/get/getProductsByStoreQuery.hook.ts +29 -0
- package/src/hooks/AsvProduct/get/getProductsStockDetailsQuery.hook.ts +21 -0
- package/src/hooks/BigWin/get/getBwgAllEmployeesQuery.hook.ts +29 -0
- package/src/hooks/BigWin/get/getBwgBackOfficeQuery.hook.ts +29 -0
- package/src/hooks/BigWin/get/getMonthsListQuery.hook.ts +10 -0
- package/src/hooks/BigWin/others/importABWGQuery.hook.ts +20 -0
- package/src/hooks/BigWin/others/importRegulationQuery.hook.ts +15 -0
- package/src/hooks/BigWin/others/publishMonthsEmployeeQuery.hook.ts +19 -0
- package/src/hooks/BigWin/others/publishMonthsManagerQuery.hook.ts +19 -0
- package/src/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.ts +13 -0
- package/src/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.ts +29 -0
- package/src/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.ts +17 -0
- package/src/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.ts +15 -0
- package/src/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.ts +15 -0
- package/src/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.ts +15 -0
- package/src/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.ts +15 -0
- package/src/hooks/OSUA/MIMO/get/getIntegrationByName.hook.ts +19 -0
- package/src/hooks/OSUA/MIMO/get/getProductIntegrationHistory.hook.ts +25 -0
- package/src/hooks/OSUA/MIMO/get/useErrorHistory.hook.ts +21 -0
- package/src/hooks/OSUA/MIMO/get/useIntegrationDataQuery.hook.ts +15 -0
- package/src/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.ts +13 -0
- package/src/hooks/OSUA/MIMO/mutate/postIntegrationDag.hook.ts +18 -0
- package/src/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.ts +15 -0
- package/src/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.ts +25 -0
- package/src/hooks/OSUA/MIMO/mutate/updateIntegrationProcess.hook.ts +30 -0
- package/src/hooks/OSUA/get/documentos/getGngDocumentos.hook.ts +28 -0
- package/src/hooks/OSUA/get/documentos/getSitooDocumentos.hook.ts +21 -0
- package/src/hooks/OSUA/get/eventos/getSitooErrorEvents.hook.ts +30 -0
- package/src/hooks/OSUA/get/faqs/getFaqsQuery.hook.ts +33 -0
- package/src/hooks/OSUA/get/orders/getOrderDocuments.hook.ts +21 -0
- package/src/hooks/OSUA/get/queue/getQueues.hook.ts +15 -0
- package/src/hooks/OSUA/get/queue/getQueuesMessages.hook.ts +28 -0
- package/src/hooks/OSUA/get/vouchers/getGngVoucher.hook.ts +21 -0
- package/src/hooks/OSUA/get/vouchers/getOsuaVouchersQuery.hook.ts +27 -0
- package/src/hooks/OSUA/get/vouchers/getSalesNumberOsua.hook.ts +26 -0
- package/src/hooks/OSUA/get/vouchers/getSitooVouchers.hook.ts +22 -0
- package/src/hooks/OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook.ts +23 -0
- package/src/hooks/OSUA/mutate/activateOsuaVoucherQuery.hook.ts +24 -0
- package/src/hooks/OSUA/mutate/postCreateIntegrationRequest.hook.ts +28 -0
- package/src/hooks/OSUA/mutate/postEventsRep.hook.ts +16 -0
- package/src/hooks/OSUA/mutate/postQueuesMessages.hook.ts +21 -0
- package/src/hooks/OSUA/mutate/postVoucher.hook.ts +16 -0
- package/src/hooks/OSUA/mutate/putBalanceVouchers.hook.ts +25 -0
- package/src/hooks/OSUA/mutate/useSetIntegrationToFinished.hook.ts +21 -0
- package/src/hooks/Orch/get/getAuth0ConfigQuery.hook.ts +11 -0
- package/src/hooks/Orch/get/getInstanceByIdQuery.hook.ts +14 -0
- package/src/hooks/Orch/get/getInstancesQuery.hook.ts +27 -0
- package/src/hooks/Orch/get/getMacrosInstancesQuery.hook.ts +19 -0
- package/src/hooks/Orch/get/getMacrosQuery.hook.ts +27 -0
- package/src/hooks/Orch/get/getMacrosUserQuery.hook.ts +11 -0
- package/src/hooks/Orch/get/getMonitoringComponents.hook.ts +29 -0
- package/src/hooks/Orch/others/reprocessingInstanceQuery.hook.ts +14 -0
- package/src/hooks/Orch/others/runMacrosQuery.hook.ts +23 -0
- package/src/hooks/Orch/others/stopInstanceQuery.hook.ts +16 -0
- package/src/hooks/Orch/others/updateMacroStatusQuery.hook.ts +23 -0
- package/src/hooks/Others/Vacation/get/getVacationPlanQuery.hook.ts +20 -0
- package/src/hooks/Others/Vacation/get/getVacationTemplateQuery.hook.ts +11 -0
- package/src/hooks/Others/Vacation/others/aproveVacationPlanQuery.hook.ts +23 -0
- package/src/hooks/Others/Vacation/others/postVacationPlanQuery.hook.ts +20 -0
- package/src/hooks/Others/Vacation/others/rejectVacationPlanQuery.hook.ts +25 -0
- package/src/hooks/Others/changePasswordQuery.hook.ts +21 -0
- package/src/hooks/Others/editAllBellNotificationsStatusQuery.hook.ts +19 -0
- package/src/hooks/Others/editBellNotificationsStatusQuery.hook.ts +22 -0
- package/src/hooks/Others/editFieldsByBulkQuery.hook.ts +15 -0
- package/src/hooks/Others/getBellNotificationsQuery.hook.ts +28 -0
- package/src/hooks/Others/getNotificationTitleQuery.hook.ts +19 -0
- package/src/hooks/Others/getRegulationQuery.hook.ts +14 -0
- package/src/hooks/Others/getUserEmailStatusQuery.hook.ts +21 -0
- package/src/hooks/Others/getWeeklyWorkloadQuery.hook.ts +23 -0
- package/src/hooks/Others/oneSignalUserQuery.hook.ts +14 -0
- package/src/hooks/Others/postCheckoutsMutateQuery.hook.ts +15 -0
- package/src/hooks/Others/postUserAuthenticationQuery.hook.ts +19 -0
- package/src/hooks/Others/postVerifyImageQuery.hook.ts +15 -0
- package/src/hooks/Others/unblockUserQuery.hook.ts +14 -0
- package/src/hooks/Others/useApplicationDataQuery.hook.ts +10 -0
- package/src/hooks/Others/useContractStatesQuery.hook.ts +15 -0
- package/src/hooks/Others/useCountriesQuery.hook.ts +15 -0
- package/src/hooks/Others/useCreateNotification.hook.ts +24 -0
- package/src/hooks/Others/useCustomersQuery.hook.ts +40 -0
- package/src/hooks/Others/useJobTitlesQuery.hook.ts +17 -0
- package/src/hooks/Others/useRegulationQuery.hook.ts +24 -0
- package/src/hooks/Others/useTermNotificationQuery.hook.ts +11 -0
- package/src/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.ts +13 -0
- package/src/hooks/Questionnaire/get/useQuestionnaireQuery.hook.ts +29 -0
- package/src/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.ts +17 -0
- package/src/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.ts +15 -0
- package/src/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.ts +15 -0
- package/src/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.ts +15 -0
- package/src/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.ts +15 -0
- package/src/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.ts +15 -0
- package/src/hooks/Roles/get/useAllRolesQuery.hook.ts +30 -0
- package/src/hooks/Store/getLocationsByUser.hook.ts +37 -0
- package/src/hooks/Store/useAllStoreQuery.hook.ts +37 -0
- package/src/hooks/Store/useStoreByCodeQuery.hook.ts +21 -0
- package/src/hooks/Store/useStoreQuery.ts +13 -0
- package/src/hooks/Users/get/getUserAndSupervisorQuery.hook.ts +21 -0
- package/src/hooks/Users/get/getUsersReadmissionQuery.hook.ts +27 -0
- package/src/hooks/Users/get/useApplicationQuery.hook.ts +29 -0
- package/src/hooks/Users/get/useExpUsersAnswersQuery.hook.ts +25 -0
- package/src/hooks/Users/get/usePermissionByIdQuery.hook.ts +15 -0
- package/src/hooks/Users/get/usePermissionsQuery.hook.ts +29 -0
- package/src/hooks/Users/get/useSingleUserIdQuery.hook.ts +15 -0
- package/src/hooks/Users/get/useUserIdQuery.hook.ts +14 -0
- package/src/hooks/Users/get/useUserListQuery.hook.ts +27 -0
- package/src/hooks/Users/get/useUserQuery.hook.ts +31 -0
- package/src/hooks/Users/mutate/deletePermissionMutateQuery.hook.ts +15 -0
- package/src/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.ts +18 -0
- package/src/hooks/Users/mutate/useUpdatePermissionsMutateQuery.hook.ts +17 -0
- package/src/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.ts +27 -0
- package/src/hooks/Users/others/useSingleUserResetPassword.hook.ts +18 -0
- package/src/hooks/Users/others/useUserBlockQuery.hook.ts +15 -0
- package/src/hooks/Users/others/useUserEmailVerifQuery.hook.ts +15 -0
- package/src/hooks/Users/others/useUserResetPassByEmail.hook.ts +14 -0
- package/src/hooks/Watson/get/getCloseSession.hook.ts +15 -0
- package/src/hooks/Watson/mutate/mutateCloseSession.hook.ts +18 -0
- package/src/hooks/Watson/mutate/mutateNotificationRequest.hook.ts +18 -0
- package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesByIdQuery.hook.ts +15 -0
- package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesQuery.hook.ts +27 -0
- package/src/hooks/WidgetPicaPonto/get/getCriticaliesQuery.hook.ts +27 -0
- package/src/hooks/WidgetPicaPonto/get/getReasonCodesQuery.hook.ts +27 -0
- package/src/hooks/WidgetPicaPonto/get/getSchedulesStoresQuery.hook.ts +28 -0
- package/src/hooks/WidgetPicaPonto/mutate/useAttendanceIssuesQuery.hook.ts +18 -0
- package/src/hooks/index.ts +505 -0
- package/src/index.ts +12 -0
- package/src/interfaces/ACB.ts +21 -0
- package/src/interfaces/ASAECustomer.ts +28 -0
- package/src/interfaces/Acls.ts +84 -0
- package/src/interfaces/Actions.ts +20 -0
- package/src/interfaces/AnalyticsEvaluationCycle.ts +24 -0
- package/src/interfaces/AnalyticsUserId.ts +14 -0
- package/src/interfaces/Anot.ts +79 -0
- package/src/interfaces/Answer.ts +14 -0
- package/src/interfaces/AnswerType.ts +22 -0
- package/src/interfaces/AnswersUserSupervisor.ts +45 -0
- package/src/interfaces/ApplicationsByCategory.ts +19 -0
- package/src/interfaces/AstaQuestions.ts +10 -0
- package/src/interfaces/AstsStock.ts +17 -0
- package/src/interfaces/AstsStockInfo.ts +14 -0
- package/src/interfaces/AsttReconciliationDocuments.ts +32 -0
- package/src/interfaces/AsvProductsByReference.ts +14 -0
- package/src/interfaces/AsvProductsByStore.ts +13 -0
- package/src/interfaces/AsvProductsStockDetails.ts +20 -0
- package/src/interfaces/Atim.ts +123 -0
- package/src/interfaces/AtimScheduling.ts +64 -0
- package/src/interfaces/AttendanceIssues.ts +20 -0
- package/src/interfaces/Auth0Config.ts +6 -0
- package/src/interfaces/BellNotification.ts +17 -0
- package/src/interfaces/Brand.ts +5 -0
- package/src/interfaces/Bulk.ts +11 -0
- package/src/interfaces/Bwg.ts +25 -0
- package/src/interfaces/Cart.ts +14 -0
- package/src/interfaces/Checkout.ts +15 -0
- package/src/interfaces/Configuration.ts +8 -0
- package/src/interfaces/ContractStates.ts +7 -0
- package/src/interfaces/Countries.ts +10 -0
- package/src/interfaces/CreateNotification.ts +18 -0
- package/src/interfaces/Customer.ts +23 -0
- package/src/interfaces/CustomerHistory.ts +11 -0
- package/src/interfaces/CustomerVoucher.ts +12 -0
- package/src/interfaces/Employee.ts +18 -0
- package/src/interfaces/EvaluationCycle.ts +34 -0
- package/src/interfaces/ExpUsersAnswers.ts +16 -0
- package/src/interfaces/FlowExecution.ts +33 -0
- package/src/interfaces/FlowList.ts +32 -0
- package/src/interfaces/GetMonths.ts +8 -0
- package/src/interfaces/Inspection.ts +22 -0
- package/src/interfaces/Instances.ts +25 -0
- package/src/interfaces/JobTitles.ts +7 -0
- package/src/interfaces/MIMO.ts +19 -0
- package/src/interfaces/MacroInstance.ts +11 -0
- package/src/interfaces/Macros.ts +19 -0
- package/src/interfaces/MonitoringComponent.ts +6 -0
- package/src/interfaces/NotificationTitle.ts +8 -0
- package/src/interfaces/OSUA.ts +364 -0
- package/src/interfaces/Permissions.ts +16 -0
- package/src/interfaces/PriceChange.ts +7 -0
- package/src/interfaces/Product.ts +17 -0
- package/src/interfaces/ProductsHierarchies.ts +6 -0
- package/src/interfaces/ProductsPickedTransfers.ts +13 -0
- package/src/interfaces/Questionnaire.ts +39 -0
- package/src/interfaces/ReasonCodes.ts +9 -0
- package/src/interfaces/ReportBuilder.ts +5 -0
- package/src/interfaces/ResponseList.ts +7 -0
- package/src/interfaces/Responses.ts +50 -0
- package/src/interfaces/Rfid.ts +10 -0
- package/src/interfaces/Roles.ts +5 -0
- package/src/interfaces/Store.ts +35 -0
- package/src/interfaces/TagsFlow.ts +5 -0
- package/src/interfaces/Template.ts +33 -0
- package/src/interfaces/TermNotification.ts +6 -0
- package/src/interfaces/TimeKeeping.ts +7 -0
- package/src/interfaces/TransferAllProducts.ts +39 -0
- package/src/interfaces/TransferDocumentState.ts +5 -0
- package/src/interfaces/TransferDocuments.ts +62 -0
- package/src/interfaces/TransferPackage.ts +19 -0
- package/src/interfaces/TransferPickProducts.ts +34 -0
- package/src/interfaces/TransferReportDiff.ts +9 -0
- package/src/interfaces/TransferStates.ts +8 -0
- package/src/interfaces/User.ts +75 -0
- package/src/interfaces/UserAuthentication.ts +7 -0
- package/src/interfaces/UserEmailStatus.ts +14 -0
- package/src/interfaces/VacationPlan.ts +13 -0
- package/src/interfaces/VerifyImage.ts +49 -0
- package/src/interfaces/VerifyUser.ts +5 -0
- package/src/interfaces/Watson.ts +76 -0
- package/src/interfaces/Workload.ts +8 -0
- package/src/interfaces/index.ts +81 -0
- package/src/services/ApiService/index.ts +185 -0
- package/src/services/InitService/index.ts +7 -0
- package/src/services/index.ts +3 -0
- package/src/types/Global.d.ts +4 -0
- package/tsconfig.json +27 -0
- package/webpack.config.js +60 -0
- package/dist/components/SharedContextProvider/index.d.ts +0 -8
- package/dist/components/index.d.ts +0 -1
- package/dist/constants/QueryClient.d.ts +0 -3
- package/dist/constants/index.d.ts +0 -1
- package/dist/contexts/useStore.d.ts +0 -9
- package/dist/helpers/codeMutation.d.ts +0 -4
- package/dist/helpers/date-unix.helper.d.ts +0 -6
- package/dist/helpers/getChildrenByType.helper.d.ts +0 -3
- package/dist/hooks/ACB/get/getClientBalance.hook.d.ts +0 -8
- package/dist/hooks/ACB/mutate/postClientBalance.hook.d.ts +0 -3
- package/dist/hooks/ASAEGNG/get/getCustomerHistoryQuery.hook.d.ts +0 -11
- package/dist/hooks/ASAEGNG/get/getCustomerVouchersQuery.hook.d.ts +0 -11
- package/dist/hooks/ASAEGNG/get/getCustomersQuery.hook.d.ts +0 -13
- package/dist/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.d.ts +0 -11
- package/dist/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.d.ts +0 -11
- package/dist/hooks/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.d.ts +0 -14
- package/dist/hooks/ATIM/BackOffice/get/useEmployeeQueryHook.hook.d.ts +0 -12
- package/dist/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.d.ts +0 -14
- package/dist/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.d.ts +0 -12
- package/dist/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.d.ts +0 -12
- package/dist/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.d.ts +0 -3
- package/dist/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.d.ts +0 -11
- package/dist/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.d.ts +0 -9
- package/dist/hooks/ATIM/BackOffice/get/useStoresQueryHook.hook.d.ts +0 -12
- package/dist/hooks/ATIM/BackOffice/get/useWorkMonths.hook.d.ts +0 -10
- package/dist/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.d.ts +0 -10
- package/dist/hooks/ATIM/BackOffice/mutate/postAttendanceRange.hook.d.ts +0 -3
- package/dist/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.d.ts +0 -3
- package/dist/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook.d.ts +0 -3
- package/dist/hooks/ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook.d.ts +0 -14
- package/dist/hooks/ATIM/PicaPonto/mutate/postAttendance.hook.d.ts +0 -3
- package/dist/hooks/ATIM/PicaPonto/mutate/postTogglePinCode.d.ts +0 -11
- package/dist/hooks/ATIM/PicaPonto/mutate/postVerifyUserQuery.hook.d.ts +0 -3
- package/dist/hooks/Acls/get/getCustomersLoyaltyQuery.hook.d.ts +0 -9
- package/dist/hooks/Acls/get/getVoucherLoyaltyQuery.hook.d.ts +0 -9
- package/dist/hooks/Acls/get/getVoucherSitooQuery.hook.d.ts +0 -9
- package/dist/hooks/Acls/get/getVoucherTemplatesQuery.hook.d.ts +0 -10
- package/dist/hooks/Acls/mutate/postCreateVoucherTemplates.hook.d.ts +0 -3
- package/dist/hooks/Acls/mutate/postSaldoVoucherQuery.hook.d.ts +0 -8
- package/dist/hooks/Acls/mutate/postSalesAssociationQuery.hook.d.ts +0 -7
- package/dist/hooks/Acls/mutate/postVerificationEmailQuery.hook.d.ts +0 -8
- package/dist/hooks/Acls/mutate/postVerificationUserQuery.hook.d.ts +0 -8
- package/dist/hooks/Acls/mutate/postVoucherSitooQuery.hook.d.ts +0 -8
- package/dist/hooks/Acls/mutate/reactivateVoucherQuery.hook.d.ts +0 -8
- package/dist/hooks/Acls/mutate/updateDisabledVoucherTemplates.hook.d.ts +0 -3
- package/dist/hooks/Aexp/get/getFlowExecutionByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Aexp/get/getFlowExecutionQuery.hook.d.ts +0 -13
- package/dist/hooks/Aexp/get/getFlowListByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Aexp/get/getFlowListQuery.hook.d.ts +0 -14
- package/dist/hooks/Aexp/get/getTagsFlowQuery.hook.d.ts +0 -4
- package/dist/hooks/Aexp/mutate/deleteFlowConfigurationQuery.hook.d.ts +0 -3
- package/dist/hooks/Aexp/mutate/inactivateFlowConfigurationQuery.hook.d.ts +0 -3
- package/dist/hooks/Aexp/mutate/runFlowExecutionQuery.hook.d.ts +0 -3
- package/dist/hooks/Aexp/mutate/useFlowConfigurationQuery.hook.d.ts +0 -3
- package/dist/hooks/Aexp/mutate/useFlowExecutionQuery.hook.d.ts +0 -3
- package/dist/hooks/Aexp/mutate/validateExecutionFileQuery.hook.d.ts +0 -3
- package/dist/hooks/Analytics/get/getArchivedAnalyticsQuery.hook.d.ts +0 -14
- package/dist/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts +0 -8
- package/dist/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts +0 -10
- package/dist/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.d.ts +0 -8
- package/dist/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.d.ts +0 -14
- package/dist/hooks/Analytics/get/useAnalyticsUserQuery.hook.d.ts +0 -15
- package/dist/hooks/Anot/get/getNotificationApplicationsQuery.hook.d.ts +0 -5
- package/dist/hooks/Anot/get/getNotificationCriticalitiesQuery.hook.d.ts +0 -5
- package/dist/hooks/Anot/get/getNotificationHeadersQuery.hook.d.ts +0 -18
- package/dist/hooks/Anot/get/getNotificationLanguagesQuery.hook.d.ts +0 -7
- package/dist/hooks/Anot/get/getNotificationTypeByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Anot/get/getNotificationsQuery.hook.d.ts +0 -14
- package/dist/hooks/Anot/get/getNotificationsTypeQuery.hook.d.ts +0 -13
- package/dist/hooks/Anot/mutate/useNotificationTypeQuery.hook.d.ts +0 -3
- package/dist/hooks/Answer/get/useAnswerIdQuery.hook.d.ts +0 -3
- package/dist/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.d.ts +0 -8
- package/dist/hooks/Answer/mutate/useAnswerMutateQuery.hook.d.ts +0 -10
- package/dist/hooks/Answer/others/openAnswerQuery.hook.d.ts +0 -3
- package/dist/hooks/Answer/others/postAnswersExportQuery.hook.d.ts +0 -9
- package/dist/hooks/Answer/others/showAnswerQuery.hook.d.ts +0 -3
- package/dist/hooks/AprProduct/get/useProductHierarchies.hook.d.ts +0 -8
- package/dist/hooks/AprProduct/get/useProductRecommendations.hook.d.ts +0 -12
- package/dist/hooks/AprProduct/get/useProductsByRefQuery.hook.d.ts +0 -8
- package/dist/hooks/AprProduct/get/useProductsQuery.hook.d.ts +0 -145
- package/dist/hooks/Aprc/get/getPriceChangePinQuery.hook.d.ts +0 -6
- package/dist/hooks/Aprc/others/postPriceChangePinQuery.hook.d.ts +0 -7
- package/dist/hooks/Aprc/others/sendEmailWithPinQuery.hook.d.ts +0 -7
- package/dist/hooks/Asgt/get/getIdProductsPickedASGTQuery.hook.d.ts +0 -3
- package/dist/hooks/Asgt/get/getProductWarningASGTQuery.hook.d.ts +0 -12
- package/dist/hooks/Asgt/get/getProductsListingASGTQuery.hook.d.ts +0 -4
- package/dist/hooks/Asgt/get/getProductsMovementsASGTQuery.hook.d.ts +0 -12
- package/dist/hooks/Asgt/get/getProductsPickedASGTQuery.hook.d.ts +0 -7
- package/dist/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.d.ts +0 -4
- package/dist/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.d.ts +0 -11
- package/dist/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.d.ts +0 -12
- package/dist/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.d.ts +0 -4
- package/dist/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.d.ts +0 -4
- package/dist/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.d.ts +0 -10
- package/dist/hooks/Asgt/get/getTransferReportDiffASGT.hook.d.ts +0 -13
- package/dist/hooks/Asgt/mutate/autoSaveASGTQuery.hook.d.ts +0 -8
- package/dist/hooks/Asgt/mutate/createPackageASGTMutateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asgt/mutate/createTransferASGTMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.d.ts +0 -8
- package/dist/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asgt/mutate/removeProductASGTQuery.hook.d.ts +0 -3
- package/dist/hooks/Ass/get/getAssProductsByRefQuery.hook.d.ts +0 -9
- package/dist/hooks/Ass/get/getAssProductsByStoreQuery.hook.d.ts +0 -12
- package/dist/hooks/Ass/get/getAssProductsStockDetailsQuery.hook.d.ts +0 -8
- package/dist/hooks/Asta/Actions/get/getActionByIdQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Actions/get/getActionPriorityQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Actions/get/getActionQuery.hook.d.ts +0 -12
- package/dist/hooks/Asta/Actions/get/getActionStagesQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Actions/mutate/useActionMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Actions/others/archiveActionQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Actions/others/deleteActionQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Actions/others/extractActionQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Actions/others/finishActionQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Actions/others/selectActionStatusQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Actions/others/startActionQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Answer/get/getAstaAnswerByIdQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Answer/get/getAstaAnswerQuery.hook.d.ts +0 -12
- package/dist/hooks/Asta/Answer/mutate/useAstaAnswersMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Answer/others/finishAstaAnswersQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Answer/others/finishGNGAstaAnswersQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Answer/others/putAnswerImageQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Answer/others/sendInspectionEmailQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Answer/others/sendInspectionEmailStoreQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/AnswerType/get/getAllAnswerTypeQuery.hook.d.ts +0 -12
- package/dist/hooks/Asta/AnswerType/get/getAnswerColorsQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/AnswerType/get/getAnswerTypeByIdQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/AnswerType/get/getAnswerTypeQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/AnswerType/others/deleteAnswerTypeQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/AnswerType/others/finishAnswerTypeQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/AnswerType/others/selectAnswerNameQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Inspection/get/getInspectionQuery.hook.d.ts +0 -12
- package/dist/hooks/Asta/Inspection/mutate/useInspectionMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Inspection/others/archiveTemplateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Inspection/others/deleteInspectionQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Inspection/others/exportInspectionQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Inspection/others/extractTemplateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Inspection/others/finishInspectionQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Template/get/getTemplateByIdQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Template/get/getTemplateHeadersQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Template/get/getTemplateQuery.hook.d.ts +0 -12
- package/dist/hooks/Asta/Template/mutate/useTemplateMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Asta/Template/others/archiveTemplateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Template/others/deleteTemplateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Template/others/duplicateTemplateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Template/others/extractTemplateQuery.hook.d.ts +0 -7
- package/dist/hooks/Asta/Template/others/finishTemplateQuery.hook.d.ts +0 -3
- package/dist/hooks/Asts/get/getProductInfoQuery.hook.d.ts +0 -16
- package/dist/hooks/Asts/get/getStockQuery.hook.d.ts +0 -8
- package/dist/hooks/Asts/others/postAudioFileQuery.hook.d.ts +0 -1
- package/dist/hooks/Astt/Asgt/get/getAllAdidasProductsQuery.hook.d.ts +0 -11
- package/dist/hooks/Astt/Asgt/get/getIdProductsPickedASTTQuery.hook.d.ts +0 -3
- package/dist/hooks/Astt/Asgt/get/getProductWarningASTTQuery.hook.d.ts +0 -12
- package/dist/hooks/Astt/Asgt/get/getProductsListingASTTQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/Asgt/get/getProductsMovementsASTTQuery.hook.d.ts +0 -12
- package/dist/hooks/Astt/Asgt/get/getProductsPickedASTTQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/Asgt/get/getReportsBuilderASTTQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/Asgt/get/getReprocessNeededASTTQuery.hook.d.ts +0 -3
- package/dist/hooks/Astt/Asgt/get/getTransferAllProductsASTTQuery.hook.d.ts +0 -11
- package/dist/hooks/Astt/Asgt/get/getTransferDocumentsASTTQuery.hook.d.ts +0 -12
- package/dist/hooks/Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/Asgt/get/getTransferDocumentsPackagesASTTQuery.hook.d.ts +0 -10
- package/dist/hooks/Astt/Asgt/get/getTransferReportDiffASTT.hook.d.ts +0 -13
- package/dist/hooks/Astt/Asgt/mutate/autoSaveASTTQuery.hook.d.ts +0 -8
- package/dist/hooks/Astt/Asgt/mutate/createPackageASTTMutateQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/Asgt/mutate/createTransferASTTMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Astt/Asgt/mutate/deleteProductASTTQuery.hook.d.ts +0 -9
- package/dist/hooks/Astt/Asgt/mutate/finishPackageASTTQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/Asgt/mutate/postMissingProductsASTTQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/Asgt/mutate/postReprocessASTTQuery.hook.d.ts +0 -6
- package/dist/hooks/Astt/Asgt/mutate/postRfidASGTMutateQuery.hook.d.ts +0 -11
- package/dist/hooks/Astt/Asgt/mutate/postTransferDocumentsASTTMutateQuery.hook.d.ts +0 -8
- package/dist/hooks/Astt/Asgt/mutate/putTransferDocumentsStateASTTMutateQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/Asgt/mutate/removeProductASTTQuery.hook.d.ts +0 -3
- package/dist/hooks/Astt/Asgt/mutate/restartProductASTTQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/get/getBarcodesListingByPackageQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getBarcodesListingQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getBarcodesPrintQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getDocumentsFindByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getManualPackagesListQuery.hook.d.ts +0 -8
- package/dist/hooks/Astt/get/getProductsListingQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getReconciliationDocumentsQuery.hook.d.ts +0 -8
- package/dist/hooks/Astt/get/getReportsBuilderQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getRfidQuery.hook.d.ts +0 -10
- package/dist/hooks/Astt/get/getTransferAllProductsQuery.hook.d.ts +0 -11
- package/dist/hooks/Astt/get/getTransferDocumentsByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getTransferDocumentsByPackageQuery.hook.d.ts +0 -4
- package/dist/hooks/Astt/get/getTransferDocumentsPackagesQuery.hook.d.ts +0 -10
- package/dist/hooks/Astt/get/getTransferDocumentsQuery.hook.d.ts +0 -12
- package/dist/hooks/Astt/get/getTransferReportDiff.hook.d.ts +0 -13
- package/dist/hooks/Astt/get/getTransferStatesQuery.hook.d.ts +0 -3
- package/dist/hooks/Astt/mutate/deleteManualPackageQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/mutate/notifyMissingProductsQuery.hook.d.ts +0 -15
- package/dist/hooks/Astt/mutate/postAsttActionsQuery.hook.d.ts +0 -1
- package/dist/hooks/Astt/mutate/postManualPackageQuery.hook.d.ts +0 -3
- package/dist/hooks/Astt/mutate/postManualTransferQuery.hook.d.ts +0 -3
- package/dist/hooks/Astt/mutate/postMatchingPackageQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/mutate/postTransferDocumentsMutateQuery.hook.d.ts +0 -8
- package/dist/hooks/Astt/mutate/putTransferDocumentFinishQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/mutate/putTransferDocumentsPartiallyQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/mutate/putTransferDocumentsStateMutateQuery.hook.d.ts +0 -7
- package/dist/hooks/Astt/mutate/updateDocumentIdQuery.hook.d.ts +0 -8
- package/dist/hooks/Astt/mutate/updatePackageIdQuery.hook.d.ts +0 -9
- package/dist/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +0 -9
- package/dist/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +0 -12
- package/dist/hooks/AsvProduct/get/getProductsStockDetailsQuery.hook.d.ts +0 -8
- package/dist/hooks/BigWin/get/getBwgAllEmployeesQuery.hook.d.ts +0 -13
- package/dist/hooks/BigWin/get/getBwgBackOfficeQuery.hook.d.ts +0 -13
- package/dist/hooks/BigWin/get/getMonthsListQuery.hook.d.ts +0 -3
- package/dist/hooks/BigWin/others/importABWGQuery.hook.d.ts +0 -3
- package/dist/hooks/BigWin/others/importRegulationQuery.hook.d.ts +0 -3
- package/dist/hooks/BigWin/others/publishMonthsEmployeeQuery.hook.d.ts +0 -3
- package/dist/hooks/BigWin/others/publishMonthsManagerQuery.hook.d.ts +0 -3
- package/dist/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts +0 -3
- package/dist/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts +0 -12
- package/dist/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts +0 -3
- package/dist/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts +0 -3
- package/dist/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts +0 -3
- package/dist/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts +0 -3
- package/dist/hooks/OSUA/MIMO/get/getIntegrationByName.hook.d.ts +0 -7
- package/dist/hooks/OSUA/MIMO/get/getProductIntegrationHistory.hook.d.ts +0 -10
- package/dist/hooks/OSUA/MIMO/get/useErrorHistory.hook.d.ts +0 -8
- package/dist/hooks/OSUA/MIMO/get/useIntegrationDataQuery.hook.d.ts +0 -3
- package/dist/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.d.ts +0 -1
- package/dist/hooks/OSUA/MIMO/mutate/postIntegrationDag.hook.d.ts +0 -5
- package/dist/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.d.ts +0 -3
- package/dist/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.d.ts +0 -3
- package/dist/hooks/OSUA/MIMO/mutate/updateIntegrationProcess.hook.d.ts +0 -7
- package/dist/hooks/OSUA/get/documentos/getGngDocumentos.hook.d.ts +0 -10
- package/dist/hooks/OSUA/get/documentos/getSitooDocumentos.hook.d.ts +0 -9
- package/dist/hooks/OSUA/get/eventos/getSitooErrorEvents.hook.d.ts +0 -11
- package/dist/hooks/OSUA/get/faqs/getFaqsQuery.hook.d.ts +0 -12
- package/dist/hooks/OSUA/get/orders/getOrderDocuments.hook.d.ts +0 -10
- package/dist/hooks/OSUA/get/queue/getQueues.hook.d.ts +0 -3
- package/dist/hooks/OSUA/get/queue/getQueuesMessages.hook.d.ts +0 -10
- package/dist/hooks/OSUA/get/vouchers/getGngVoucher.hook.d.ts +0 -10
- package/dist/hooks/OSUA/get/vouchers/getOsuaVouchersQuery.hook.d.ts +0 -13
- package/dist/hooks/OSUA/get/vouchers/getSalesNumberOsua.hook.d.ts +0 -14
- package/dist/hooks/OSUA/get/vouchers/getSitooVouchers.hook.d.ts +0 -8
- package/dist/hooks/OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook.d.ts +0 -9
- package/dist/hooks/OSUA/mutate/activateOsuaVoucherQuery.hook.d.ts +0 -11
- package/dist/hooks/OSUA/mutate/postCreateIntegrationRequest.hook.d.ts +0 -11
- package/dist/hooks/OSUA/mutate/postEventsRep.hook.d.ts +0 -1
- package/dist/hooks/OSUA/mutate/postQueuesMessages.hook.d.ts +0 -7
- package/dist/hooks/OSUA/mutate/postVoucher.hook.d.ts +0 -3
- package/dist/hooks/OSUA/mutate/putBalanceVouchers.hook.d.ts +0 -7
- package/dist/hooks/OSUA/mutate/useSetIntegrationToFinished.hook.d.ts +0 -3
- package/dist/hooks/Orch/get/getAuth0ConfigQuery.hook.d.ts +0 -3
- package/dist/hooks/Orch/get/getInstanceByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Orch/get/getInstancesQuery.hook.d.ts +0 -13
- package/dist/hooks/Orch/get/getMacrosInstancesQuery.hook.d.ts +0 -9
- package/dist/hooks/Orch/get/getMacrosQuery.hook.d.ts +0 -13
- package/dist/hooks/Orch/get/getMacrosUserQuery.hook.d.ts +0 -4
- package/dist/hooks/Orch/get/getMonitoringComponents.hook.d.ts +0 -14
- package/dist/hooks/Orch/others/reprocessingInstanceQuery.hook.d.ts +0 -1
- package/dist/hooks/Orch/others/runMacrosQuery.hook.d.ts +0 -7
- package/dist/hooks/Orch/others/stopInstanceQuery.hook.d.ts +0 -1
- package/dist/hooks/Orch/others/updateMacroStatusQuery.hook.d.ts +0 -7
- package/dist/hooks/Others/Vacation/get/getVacationPlanQuery.hook.d.ts +0 -10
- package/dist/hooks/Others/Vacation/get/getVacationTemplateQuery.hook.d.ts +0 -3
- package/dist/hooks/Others/Vacation/others/aproveVacationPlanQuery.hook.d.ts +0 -9
- package/dist/hooks/Others/Vacation/others/postVacationPlanQuery.hook.d.ts +0 -8
- package/dist/hooks/Others/Vacation/others/rejectVacationPlanQuery.hook.d.ts +0 -10
- package/dist/hooks/Others/changePasswordQuery.hook.d.ts +0 -5
- package/dist/hooks/Others/editAllBellNotificationsStatusQuery.hook.d.ts +0 -7
- package/dist/hooks/Others/editBellNotificationsStatusQuery.hook.d.ts +0 -8
- package/dist/hooks/Others/editFieldsByBulkQuery.hook.d.ts +0 -3
- package/dist/hooks/Others/getBellNotificationsQuery.hook.d.ts +0 -14
- package/dist/hooks/Others/getNotificationTitleQuery.hook.d.ts +0 -9
- package/dist/hooks/Others/getRegulationQuery.hook.d.ts +0 -3
- package/dist/hooks/Others/getUserEmailStatusQuery.hook.d.ts +0 -10
- package/dist/hooks/Others/getWeeklyWorkloadQuery.hook.d.ts +0 -11
- package/dist/hooks/Others/oneSignalUserQuery.hook.d.ts +0 -1
- package/dist/hooks/Others/postCheckoutsMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Others/postUserAuthenticationQuery.hook.d.ts +0 -7
- package/dist/hooks/Others/postVerifyImageQuery.hook.d.ts +0 -3
- package/dist/hooks/Others/unblockUserQuery.hook.d.ts +0 -1
- package/dist/hooks/Others/useApplicationDataQuery.hook.d.ts +0 -3
- package/dist/hooks/Others/useContractStatesQuery.hook.d.ts +0 -8
- package/dist/hooks/Others/useCountriesQuery.hook.d.ts +0 -8
- package/dist/hooks/Others/useCreateNotification.hook.d.ts +0 -8
- package/dist/hooks/Others/useCustomersQuery.hook.d.ts +0 -143
- package/dist/hooks/Others/useJobTitlesQuery.hook.d.ts +0 -10
- package/dist/hooks/Others/useRegulationQuery.hook.d.ts +0 -10
- package/dist/hooks/Others/useTermNotificationQuery.hook.d.ts +0 -3
- package/dist/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts +0 -3
- package/dist/hooks/Questionnaire/get/useQuestionnaireQuery.hook.d.ts +0 -12
- package/dist/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.d.ts +0 -3
- package/dist/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts +0 -3
- package/dist/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts +0 -3
- package/dist/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts +0 -3
- package/dist/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.d.ts +0 -3
- package/dist/hooks/Roles/get/useAllRolesQuery.hook.d.ts +0 -13
- package/dist/hooks/Store/getLocationsByUser.hook.d.ts +0 -14
- package/dist/hooks/Store/useAllStoreQuery.hook.d.ts +0 -14
- package/dist/hooks/Store/useStoreByCodeQuery.hook.d.ts +0 -9
- package/dist/hooks/Store/useStoreQuery.d.ts +0 -8
- package/dist/hooks/Users/get/getUserAndSupervisorQuery.hook.d.ts +0 -8
- package/dist/hooks/Users/get/getUsersReadmissionQuery.hook.d.ts +0 -12
- package/dist/hooks/Users/get/useApplicationQuery.hook.d.ts +0 -12
- package/dist/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +0 -10
- package/dist/hooks/Users/get/usePermissionByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Users/get/usePermissionsQuery.hook.d.ts +0 -12
- package/dist/hooks/Users/get/useSingleUserIdQuery.hook.d.ts +0 -4
- package/dist/hooks/Users/get/useUserIdQuery.hook.d.ts +0 -3
- package/dist/hooks/Users/get/useUserListQuery.hook.d.ts +0 -12
- package/dist/hooks/Users/get/useUserQuery.hook.d.ts +0 -13
- package/dist/hooks/Users/mutate/deletePermissionMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Users/mutate/useUpdatePermissionsMutateQuery.hook.d.ts +0 -3
- package/dist/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts +0 -9
- package/dist/hooks/Users/others/useSingleUserResetPassword.hook.d.ts +0 -7
- package/dist/hooks/Users/others/useUserBlockQuery.hook.d.ts +0 -3
- package/dist/hooks/Users/others/useUserEmailVerifQuery.hook.d.ts +0 -3
- package/dist/hooks/Users/others/useUserResetPassByEmail.hook.d.ts +0 -3
- package/dist/hooks/Watson/get/getCloseSession.hook.d.ts +0 -4
- package/dist/hooks/Watson/mutate/mutateCloseSession.hook.d.ts +0 -3
- package/dist/hooks/Watson/mutate/mutateNotificationRequest.hook.d.ts +0 -3
- package/dist/hooks/WidgetPicaPonto/get/getAttendanceIssuesByIdQuery.hook.d.ts +0 -4
- package/dist/hooks/WidgetPicaPonto/get/getAttendanceIssuesQuery.hook.d.ts +0 -12
- package/dist/hooks/WidgetPicaPonto/get/getCriticaliesQuery.hook.d.ts +0 -12
- package/dist/hooks/WidgetPicaPonto/get/getReasonCodesQuery.hook.d.ts +0 -12
- package/dist/hooks/WidgetPicaPonto/get/getSchedulesStoresQuery.hook.d.ts +0 -9
- package/dist/hooks/WidgetPicaPonto/mutate/useAttendanceIssuesQuery.hook.d.ts +0 -3
- package/dist/hooks/index.d.ts +0 -434
- package/dist/index.d.ts +0 -7
- package/dist/interfaces/Answer.d.ts +0 -14
- package/dist/interfaces/Cart.d.ts +0 -12
- package/dist/interfaces/Employee.d.ts +0 -15
- package/dist/interfaces/Inspection.d.ts +0 -22
- package/dist/interfaces/OSUA.d.ts +0 -324
- package/dist/interfaces/Responses.d.ts +0 -30
- package/dist/interfaces/Template.d.ts +0 -31
- package/dist/interfaces/User.d.ts +0 -72
- package/dist/services/ApiService/index.d.ts +0 -14
- package/dist/services/InitService/index.d.ts +0 -4
- package/dist/shared-resources.es.js +0 -4780
- package/dist/shared-resources.umd.js +0 -2
- /package/dist/{enums → types/enums}/attendence-type.enum.d.ts +0 -0
- /package/dist/{enums → types/enums}/employees-order.enum.d.ts +0 -0
- /package/dist/{enums → types/enums}/index.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/formatted-date.helper.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/index.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ACB.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ASAECustomer.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Acls.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Actions.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AnalyticsEvaluationCycle.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AnalyticsUserId.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Anot.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AnswerType.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AnswersUserSupervisor.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ApplicationsByCategory.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AstaQuestions.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AstsStock.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AstsStockInfo.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AsttReconciliationDocuments.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AsvProductsByReference.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AsvProductsByStore.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AsvProductsStockDetails.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Atim.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AtimScheduling.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/AttendanceIssues.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Auth0Config.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/BellNotification.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Brand.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Bulk.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Bwg.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Checkout.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Configuration.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ContractStates.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Countries.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/CreateNotification.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Customer.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/CustomerHistory.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/CustomerVoucher.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/EvaluationCycle.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ExpUsersAnswers.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/FlowExecution.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/FlowList.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/GetMonths.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Instances.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/JobTitles.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/MIMO.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/MacroInstance.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Macros.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/MonitoringComponent.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/NotificationTitle.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Permissions.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/PriceChange.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Product.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ProductsHierarchies.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ProductsPickedTransfers.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Questionnaire.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ReasonCodes.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ReportBuilder.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/ResponseList.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Rfid.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Roles.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Store.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TagsFlow.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TermNotification.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TimeKeeping.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TransferAllProducts.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TransferDocumentState.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TransferDocuments.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TransferPackage.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TransferPickProducts.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TransferReportDiff.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/TransferStates.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/UserAuthentication.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/UserEmailStatus.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/VacationPlan.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/VerifyImage.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/VerifyUser.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Watson.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/Workload.d.ts +0 -0
- /package/dist/{interfaces → types/interfaces}/index.d.ts +0 -0
- /package/dist/{services → types/services}/index.d.ts +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Actions, ResponseList } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface ActionQueryProps extends UseQueryOptions<ResponseList<"Value", Actions>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortDirection?: string;
|
|
11
|
+
query?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const getActionQueryHook = ({ tags, page, records, sortBy, sortDirection, query }: ActionQueryProps) => {
|
|
15
|
+
return useQuery(
|
|
16
|
+
['ACTION_QUERY', tags, page, records, sortBy, sortDirection, query],
|
|
17
|
+
() => getAuth0<ResponseList<"Value", Actions>>('/ASTA/Actions/GetByQuery', {
|
|
18
|
+
pPage: page || 1,
|
|
19
|
+
pRecords: records || 50,
|
|
20
|
+
pSortBy: sortBy || 'Type',
|
|
21
|
+
pSortDirection: sortDirection || 'asc',
|
|
22
|
+
pTerms: tags,
|
|
23
|
+
pQuery: query
|
|
24
|
+
}),
|
|
25
|
+
{
|
|
26
|
+
keepPreviousData: true,
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { HeadersInterface } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const getActionStageQueryHook = () => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['ACTION_STAGES_QUERY'],
|
|
8
|
+
() => getAuth0<HeadersInterface[]>(`/ASTA/Actions/ActionsStatus`),
|
|
9
|
+
);
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Actions } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0, postAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const useActionMutateHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Actions, unknown, Actions>((data: Actions) => {
|
|
8
|
+
return data.Id ?
|
|
9
|
+
putAuth0(`/ASTA/Actions?`, {
|
|
10
|
+
pId: data.Id
|
|
11
|
+
}, data)
|
|
12
|
+
|
|
13
|
+
: postAuth0('/ASTA/Actions', undefined, data);
|
|
14
|
+
}, {
|
|
15
|
+
onSuccess: (data: Actions) => {
|
|
16
|
+
queryClient.setQueryData(
|
|
17
|
+
['ACTIONS_ID_QUERY'], data);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Actions } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface ActionTemplateProps extends UseQueryOptions<Actions> {
|
|
6
|
+
actionsIds: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const archiveActionQueryHook = ({ actionsIds }: ActionTemplateProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<Actions, unknown, string[]>(() => {
|
|
12
|
+
return putAuth0(`/ASTA/Actions/FileActionList`, undefined, actionsIds);
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: (data: Actions) => {
|
|
15
|
+
queryClient.setQueryData(
|
|
16
|
+
['ACTION_ID_QUERY'], data);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Actions } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface DeleteActionProps extends UseQueryOptions<Actions> {
|
|
6
|
+
actionsIds: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const deleteActionMutateHook = ({ actionsIds }: DeleteActionProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<Actions, unknown, string[]>(() => {
|
|
12
|
+
return putAuth0(`/ASTA/Actions/DeleteActionList`, undefined, actionsIds)
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: () => {
|
|
15
|
+
queryClient.invalidateQueries(
|
|
16
|
+
['ACTION_QUERY']);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Actions } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface ExtractActionProps extends UseQueryOptions<Actions> {
|
|
6
|
+
actionsIds: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const extractActionQueryHook = ({ actionsIds }: ExtractActionProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<Actions, unknown, string[]>(() => {
|
|
12
|
+
return putAuth0(`/ASTA/Actions/FinishedActionList`, undefined, actionsIds)
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: (data: Actions) => {
|
|
15
|
+
queryClient.setQueryData(
|
|
16
|
+
['ACTION_ID_QUERY'], data);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Actions } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const finishActionQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Actions, unknown, Actions>((data: Actions) => {
|
|
8
|
+
return putAuth0(`/ASTA/Actions/FinishAction?`, {
|
|
9
|
+
pId: data.Id
|
|
10
|
+
}, data);
|
|
11
|
+
}, {
|
|
12
|
+
onSuccess: (data: Actions) => {
|
|
13
|
+
queryClient.setQueryData(
|
|
14
|
+
['ACTION_ID_QUERY'], data);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Actions } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const selectActionStatusQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Actions, unknown, Actions>((data: Actions) => {
|
|
8
|
+
return putAuth0(`/ASTA/Actions/SelectStatus?`, {
|
|
9
|
+
pActionId: data.Id,
|
|
10
|
+
pStatus: data.Stage
|
|
11
|
+
}, data);
|
|
12
|
+
}, {
|
|
13
|
+
onSuccess: (data: Actions) => {
|
|
14
|
+
queryClient.setQueryData(
|
|
15
|
+
['ACTION_STATUS_ID_QUERY'], data);
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Actions } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const startActionQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Actions, unknown, Actions>((data: Actions) => {
|
|
8
|
+
return putAuth0(`/ASTA/Actions/StartAction?`, {
|
|
9
|
+
pId: data.Id
|
|
10
|
+
}, data);
|
|
11
|
+
}, {
|
|
12
|
+
onSuccess: (data: Actions) => {
|
|
13
|
+
queryClient.setQueryData(
|
|
14
|
+
['ACTION_ID_QUERY'], data);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { Answer } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const getAnswerByIdQueryHook = (answerId: string) => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['ANSWER_ID_QUERY', answerId],
|
|
8
|
+
() => getAuth0<Answer>(`/ASTA/Answers/GetAnswerById`, {
|
|
9
|
+
pId: answerId
|
|
10
|
+
}),
|
|
11
|
+
{
|
|
12
|
+
enabled: !!(answerId),
|
|
13
|
+
},
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Answer, ResponseList } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface AstaAnswersQueryProps extends UseQueryOptions<ResponseList<"Answers", Answer>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortDirection?: string;
|
|
11
|
+
query?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const getAstaAnswersQueryHook = ({ tags, page, records, sortBy, sortDirection, query }: AstaAnswersQueryProps) => {
|
|
15
|
+
return useQuery(
|
|
16
|
+
['ASTA_ANSWERS_QUERY', tags, page, records, sortBy, sortDirection, query],
|
|
17
|
+
() => getAuth0<ResponseList<"Answers", Answer>>('/ASTA/Answers/GetAnswers', {
|
|
18
|
+
pPage: page || 1,
|
|
19
|
+
pRecords: records || 50,
|
|
20
|
+
pSortBy: sortBy || 'Type',
|
|
21
|
+
pSortDirection: sortDirection || 'asc',
|
|
22
|
+
pTerms: tags,
|
|
23
|
+
pQuery: query
|
|
24
|
+
}),
|
|
25
|
+
{
|
|
26
|
+
keepPreviousData: true,
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Answer } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0, postAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const useAstaAnswersMutateHook = (inspectionId: string, answerId: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Answer, unknown, Answer>((data: Answer) => {
|
|
8
|
+
return inspectionId === "" ?
|
|
9
|
+
putAuth0(`/ASTA/Answers/${answerId}`, undefined, data)
|
|
10
|
+
|
|
11
|
+
: postAuth0(`/ASTA/Answers?`, {
|
|
12
|
+
pInspectionId: inspectionId
|
|
13
|
+
}, data);
|
|
14
|
+
}, {
|
|
15
|
+
onSuccess: (data: Answer) => {
|
|
16
|
+
queryClient.setQueryData(
|
|
17
|
+
['ASTA_ANSWERS_ID_QUERY'], data);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Answer } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const finishAstaAnswersQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Answer, unknown, Answer>((data: Answer) => {
|
|
8
|
+
return putAuth0(`/ASTA/Answers/FinishInspectionAnswer/${data.Id}`, undefined, data)
|
|
9
|
+
}, {
|
|
10
|
+
onSuccess: (data: Answer) => {
|
|
11
|
+
queryClient.setQueryData(
|
|
12
|
+
['ASTA_ANSWERS_ID_QUERY'], data);
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Answer } from '../../../../interfaces';
|
|
3
|
+
import { postAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const finishGNGAstaAnswersQueryHook = (answerId: string, userName: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Answer, unknown, Answer>((data: Answer) => {
|
|
8
|
+
return postAuth0(`/ASTA/Audit?`, {
|
|
9
|
+
pInspectionAnswerId: answerId,
|
|
10
|
+
pUserName: userName
|
|
11
|
+
}, data)
|
|
12
|
+
}, {
|
|
13
|
+
onSuccess: (data: Answer) => {
|
|
14
|
+
queryClient.setQueryData(
|
|
15
|
+
['ASTA_GNG_ANSWERS_ID_QUERY'], data);
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Answer } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const putAnswerImageMutateHook = (questionnaireId: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Answer, unknown, Answer>((data: Answer) => {
|
|
8
|
+
return putAuth0(`/ASTA/Answers/Image/${questionnaireId}`, undefined, data)
|
|
9
|
+
}, {
|
|
10
|
+
onSuccess: (data: Answer) => {
|
|
11
|
+
queryClient.setQueryData(
|
|
12
|
+
['ASTA_ANSWER_ID_QUERY'], data);
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const sendInspectionEmailMutateHook = (answerId: string, userName: string, email: string, storeId: string, pdfUrl: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Inspection, unknown, Inspection>((data: Inspection) => {
|
|
8
|
+
return putAuth0(`/ASTA/Answers/SendEmail?`, {
|
|
9
|
+
pAnswerId: answerId,
|
|
10
|
+
pUserName: userName,
|
|
11
|
+
pEmail: email,
|
|
12
|
+
pStoreId: storeId,
|
|
13
|
+
pPDFUrl: pdfUrl
|
|
14
|
+
}, data);
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: (data: Inspection) => {
|
|
17
|
+
queryClient.setQueryData(
|
|
18
|
+
['SEND_INSPECTION_EMAIL_QUERY'], data);
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const sendInspectionEmailStoreMutateHook = (answerId: string, userName: string, storeId: string, pdfUrl: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Inspection, unknown, Inspection>((data: Inspection) => {
|
|
8
|
+
return putAuth0(`/ASTA/Answers/SendEmailStore?`, {
|
|
9
|
+
pAnswerId: answerId,
|
|
10
|
+
pUserName: userName,
|
|
11
|
+
pStoreId: storeId,
|
|
12
|
+
pPDFUrl: pdfUrl
|
|
13
|
+
}, data);
|
|
14
|
+
}, {
|
|
15
|
+
onSuccess: (data: Inspection) => {
|
|
16
|
+
queryClient.setQueryData(
|
|
17
|
+
['SEND_INSPECTION_EMAIL_STORE_QUERY'], data);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { AnswerType, ResponseList } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface AnswerTypeQueryProps extends UseQueryOptions<ResponseList<"Value", AnswerType>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortDirection?: string;
|
|
11
|
+
query?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const getAllAnswerTypeQueryHook = ({ tags, page, records, sortBy, sortDirection, query }: AnswerTypeQueryProps) => {
|
|
15
|
+
return useQuery(
|
|
16
|
+
['ALL_ANSWER_TYPE_QUERY', tags, page, records, sortBy, sortDirection, query],
|
|
17
|
+
() => getAuth0<ResponseList<"Value", AnswerType>>('/ASTA/AnswerType/GetByQuery', {
|
|
18
|
+
pPage: page || 1,
|
|
19
|
+
pRecords: records || 50,
|
|
20
|
+
pSortBy: sortBy || 'Type',
|
|
21
|
+
pSortDirection: sortDirection || 'asc',
|
|
22
|
+
pTerms: tags,
|
|
23
|
+
pQuery: query
|
|
24
|
+
}),
|
|
25
|
+
{
|
|
26
|
+
keepPreviousData: true,
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { HeadersInterface } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const getAnswerColorsQueryHook = () => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['ANSWER_COLORS_QUERY'],
|
|
8
|
+
() => getAuth0<HeadersInterface[]>(`/ASTA/AnswerType/Colors`),
|
|
9
|
+
);
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { AnswerType } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const getAnswerTypeByIdQueryHook = (answerTypeId: string) => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['ANSWER_TYPE_ID_QUERY', answerTypeId],
|
|
8
|
+
() => getAuth0<AnswerType>(`/ASTA/AnswerType/GetById`, {
|
|
9
|
+
pId: answerTypeId
|
|
10
|
+
}),
|
|
11
|
+
{
|
|
12
|
+
enabled: !!(answerTypeId),
|
|
13
|
+
},
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { AnswerType } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const getAnswerTypeQueryHook = () => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['ANSWER_TYPE_QUERY'],
|
|
8
|
+
() => getAuth0<AnswerType[]>(`/ASTA/AnswerType`),
|
|
9
|
+
);
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { AnswerType } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0, postAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const useAnswerTypeMutateHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<AnswerType, unknown, AnswerType>((data: AnswerType) => {
|
|
8
|
+
return data.Id ?
|
|
9
|
+
putAuth0(`/ASTA/AnswerType?`, {
|
|
10
|
+
pId: data.Id
|
|
11
|
+
}, data)
|
|
12
|
+
|
|
13
|
+
: postAuth0('/ASTA/AnswerType', undefined, data);
|
|
14
|
+
}, {
|
|
15
|
+
onSuccess: (data: AnswerType) => {
|
|
16
|
+
queryClient.setQueryData(
|
|
17
|
+
['ANSWER_TYPE_ID_QUERY'], data);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { AnswerType } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface DeleteAnswerTypeProps extends UseQueryOptions<AnswerType> {
|
|
6
|
+
answerTypeIds: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const deleteAnswerTypeHook = ({ answerTypeIds }: DeleteAnswerTypeProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<AnswerType, unknown, string[]>(() => {
|
|
12
|
+
return putAuth0(`/ASTA/AnswerType/Delete`, undefined, answerTypeIds)
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: () => {
|
|
15
|
+
queryClient.invalidateQueries(
|
|
16
|
+
['ALL_ANSWER_TYPE_QUERY']);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { AnswerType } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const finishAnswerTypeQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<AnswerType, unknown, AnswerType>((data: AnswerType) => {
|
|
8
|
+
return putAuth0(`/ASTA/AnswerType/Finished?`, {
|
|
9
|
+
pId: data.Id
|
|
10
|
+
}, data);
|
|
11
|
+
}, {
|
|
12
|
+
onSuccess: (data: AnswerType) => {
|
|
13
|
+
queryClient.setQueryData(
|
|
14
|
+
['ANSWER_TYPE_ID_QUERY'], data);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { AnswerType } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const selectAnswerNameQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<AnswerType, unknown, AnswerType>((data: AnswerType) => {
|
|
8
|
+
return putAuth0(`/ASTA/AnswerType/SelectName?`, {
|
|
9
|
+
pAnswerTypeId: data.Id,
|
|
10
|
+
pUseName: data.UseName
|
|
11
|
+
}, data);
|
|
12
|
+
}, {
|
|
13
|
+
onSuccess: (data: AnswerType) => {
|
|
14
|
+
queryClient.setQueryData(
|
|
15
|
+
['ANSWER_NAME_ID_QUERY'], data);
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Inspection, ResponseList } from "../../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface InspectionQueryProps extends UseQueryOptions<ResponseList<"Value", Inspection>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortDirection?: string;
|
|
11
|
+
query?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const getInspectionQueryHook = ({ tags, page, records, sortBy, sortDirection, query }: InspectionQueryProps) => {
|
|
15
|
+
return useQuery(
|
|
16
|
+
['INSPECTION_QUERY', tags, page, records, sortBy, sortDirection, query],
|
|
17
|
+
() => getAuth0<ResponseList<"Value", Inspection>>('/ASTA/Inspection/GetInspection', {
|
|
18
|
+
pPage: page || 1,
|
|
19
|
+
pRecords: records || 50,
|
|
20
|
+
pSortBy: sortBy || 'Type',
|
|
21
|
+
pSortDirection: sortDirection || 'asc',
|
|
22
|
+
pTerms: tags,
|
|
23
|
+
pQuery: query
|
|
24
|
+
}),
|
|
25
|
+
{
|
|
26
|
+
keepPreviousData: true,
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0, postAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const useInspectionMutateHook = (templateId: string, userId: string, userName: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Inspection, unknown, Inspection>((data: Inspection) => {
|
|
8
|
+
return data.Id ?
|
|
9
|
+
putAuth0(`/ASTA/Inspection/FileInspection?`, {
|
|
10
|
+
pId: data.Id
|
|
11
|
+
}, data) :
|
|
12
|
+
|
|
13
|
+
postAuth0(`/ASTA/Inspection?`, {
|
|
14
|
+
pId: templateId,
|
|
15
|
+
pUserId: userId,
|
|
16
|
+
pUserName: userName
|
|
17
|
+
} , data);
|
|
18
|
+
}, {
|
|
19
|
+
onSuccess: (data: Inspection) => {
|
|
20
|
+
queryClient.setQueryData(
|
|
21
|
+
['INSPECTION_ID_QUERY'], data);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface ArchiveInspectionProps extends UseQueryOptions<Inspection> {
|
|
6
|
+
inspectionIds: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const archiveInspectionQueryHook = ({ inspectionIds }: ArchiveInspectionProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<Inspection, unknown, string[]>(() => {
|
|
12
|
+
return putAuth0(`/ASTA/Inspection/FileInspectionList`, undefined, inspectionIds);
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: (data: Inspection) => {
|
|
15
|
+
queryClient.setQueryData(
|
|
16
|
+
['INSPECTION_ID_QUERY'], data);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface DeleteInspectionProps extends UseQueryOptions<Inspection> {
|
|
6
|
+
inspectionIds: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const deleteInspectionMutateHook = ({ inspectionIds }: DeleteInspectionProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<Inspection, unknown, string[]>(() => {
|
|
12
|
+
return putAuth0(`/ASTA/Inspection/DeleteInspectionList`, undefined, inspectionIds)
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: () => {
|
|
15
|
+
queryClient.invalidateQueries(
|
|
16
|
+
['INSPECTION_QUERY']);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { postAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const exportInspectionMutateHook = (inspectionId: string, userName: string, language?: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Inspection, unknown, Inspection>((data: Inspection) => {
|
|
8
|
+
return postAuth0(`/ASTA/Inspection/AnswerExport?`, {
|
|
9
|
+
pInspectionId: inspectionId,
|
|
10
|
+
pUserName: userName,
|
|
11
|
+
pLanguage: language || "PT"
|
|
12
|
+
}, data);
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: (data: Inspection) => {
|
|
15
|
+
queryClient.setQueryData(
|
|
16
|
+
['EXPORT_INSPECTION_QUERY'], data);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface ExtractInspectionProps extends UseQueryOptions<Inspection> {
|
|
6
|
+
inspectionIds: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const extractInspectionQueryHook = ({ inspectionIds }: ExtractInspectionProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<Inspection, unknown, string[]>(() => {
|
|
12
|
+
return putAuth0(`/ASTA/Inspection/FinishedInspectionList`, undefined, inspectionIds)
|
|
13
|
+
}, {
|
|
14
|
+
onSuccess: (data: Inspection) => {
|
|
15
|
+
queryClient.setQueryData(
|
|
16
|
+
['INSPECTION_ID_QUERY'], data);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Inspection } from '../../../../interfaces';
|
|
3
|
+
import { putAuth0 } from '../../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const finishInspectionQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Inspection, unknown, Inspection>((data: Inspection) => {
|
|
8
|
+
return putAuth0(`/ASTA/Inspection/FinishInspection?`, {
|
|
9
|
+
pId: data.Id
|
|
10
|
+
}, data)
|
|
11
|
+
}, {
|
|
12
|
+
onSuccess: (data: Inspection) => {
|
|
13
|
+
queryClient.setQueryData(
|
|
14
|
+
['INSPECTION_ID_QUERY'], data);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|