@omniumretail/shared-resources 0.3.83 → 0.3.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +0 -8
- package/dist/constants/index.d.ts +0 -1
- package/dist/helpers/codeMutation.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/shared-resources.es.js +4780 -0
- package/dist/shared-resources.umd.js +2 -746
- package/package.json +40 -22
- package/.eslintrc.json +0 -32
- package/dist/components/BottomDrawer/index.d.ts +0 -10
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Footer/index.d.ts +0 -3
- package/dist/components/Form/FormInputField/index.d.ts +0 -9
- package/dist/components/Form/FormSelectField/index.d.ts +0 -10
- package/dist/components/Form/index.d.ts +0 -2
- package/dist/components/Header/index.d.ts +0 -4
- package/dist/components/Link/index.d.ts +0 -7
- package/dist/components/Navigation/index.d.ts +0 -8
- package/dist/components/Page/index.d.ts +0 -13
- package/dist/constants/Icons.d.ts +0 -15
- package/dist/shared-resources.umd.js.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/src/a2ai.scss +0 -130
- package/src/assets/omniu-retail_branco_s-fundo.png +0 -0
- package/src/assets/sitoo.svg +0 -9
- package/src/components/BottomDrawer/index.tsx +0 -33
- package/src/components/BottomDrawer/styles.module.scss +0 -59
- package/src/components/Button/index.tsx +0 -7
- package/src/components/Footer/index.tsx +0 -44
- package/src/components/Footer/styles.module.scss +0 -33
- package/src/components/Form/FormInputField/index.tsx +0 -18
- package/src/components/Form/FormSelectField/index.tsx +0 -16
- package/src/components/Form/index.ts +0 -2
- package/src/components/Header/index.tsx +0 -20
- package/src/components/Header/styles.module.scss +0 -16
- package/src/components/Link/index.tsx +0 -21
- package/src/components/Link/styles.module.scss +0 -24
- package/src/components/Navigation/index.tsx +0 -30
- package/src/components/Navigation/styles.module.scss +0 -34
- package/src/components/Page/index.tsx +0 -35
- package/src/components/Page/styles.module.scss +0 -26
- package/src/components/SharedContextProvider/index.tsx +0 -30
- package/src/components/index.ts +0 -9
- package/src/constants/Icons.ts +0 -21
- package/src/constants/QueryClient.ts +0 -10
- package/src/constants/index.ts +0 -2
- package/src/contexts/useStore.tsx +0 -20
- package/src/enums/attendence-type.enum.ts +0 -5
- package/src/enums/employees-order.enum.ts +0 -7
- package/src/enums/index.ts +0 -2
- package/src/global.scss +0 -124
- package/src/helpers/codeMutation.tsx +0 -20
- package/src/helpers/date-unix.helper.ts +0 -29
- package/src/helpers/formatted-date.helper.ts +0 -11
- package/src/helpers/getChildrenByType.helper.ts +0 -5
- package/src/helpers/index.ts +0 -4
- package/src/hooks/ACB/get/getClientBalance.hook.ts +0 -20
- package/src/hooks/ACB/mutate/postClientBalance.hook.ts +0 -16
- package/src/hooks/ASAEGNG/get/getCustomerHistoryQuery.hook.ts +0 -24
- package/src/hooks/ASAEGNG/get/getCustomerVouchersQuery.hook.ts +0 -24
- package/src/hooks/ASAEGNG/get/getCustomersQuery.hook.ts +0 -28
- package/src/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.ts +0 -33
- package/src/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.ts +0 -38
- package/src/hooks/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.ts +0 -52
- package/src/hooks/ATIM/BackOffice/get/useEmployeeQueryHook.hook.ts +0 -29
- package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +0 -51
- package/src/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.ts +0 -36
- package/src/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.ts +0 -36
- package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.ts +0 -16
- package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.ts +0 -36
- package/src/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.ts +0 -28
- package/src/hooks/ATIM/BackOffice/get/useStoresQueryHook.hook.ts +0 -27
- package/src/hooks/ATIM/BackOffice/get/useWorkMonths.hook.ts +0 -31
- package/src/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.ts +0 -31
- package/src/hooks/ATIM/BackOffice/mutate/postAttendanceRange.hook.ts +0 -16
- package/src/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.ts +0 -21
- package/src/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.ts +0 -25
- package/src/hooks/ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook.ts +0 -17
- package/src/hooks/ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook.ts +0 -35
- package/src/hooks/ATIM/PicaPonto/mutate/postAttendance.hook.ts +0 -16
- package/src/hooks/ATIM/PicaPonto/mutate/postTogglePinCode.ts +0 -33
- package/src/hooks/ATIM/PicaPonto/mutate/postVerifyUserQuery.hook.ts +0 -15
- package/src/hooks/Acls/get/getCustomersLoyaltyQuery.hook.ts +0 -22
- package/src/hooks/Acls/get/getVoucherLoyaltyQuery.hook.ts +0 -25
- package/src/hooks/Acls/get/getVoucherSitooQuery.hook.ts +0 -22
- package/src/hooks/Acls/get/getVoucherTemplatesQuery.hook.ts +0 -29
- package/src/hooks/Acls/mutate/postCreateVoucherTemplates.hook.ts +0 -19
- package/src/hooks/Acls/mutate/postSaldoVoucherQuery.hook.ts +0 -21
- package/src/hooks/Acls/mutate/postSalesAssociationQuery.hook.ts +0 -20
- package/src/hooks/Acls/mutate/postVerificationEmailQuery.hook.ts +0 -23
- package/src/hooks/Acls/mutate/postVerificationUserQuery.hook.ts +0 -23
- package/src/hooks/Acls/mutate/postVoucherSitooQuery.hook.ts +0 -21
- package/src/hooks/Acls/mutate/reactivateVoucherQuery.hook.ts +0 -27
- package/src/hooks/Acls/mutate/updateDisabledVoucherTemplates.hook.ts +0 -25
- package/src/hooks/Aexp/get/getFlowExecutionByIdQuery.hook.ts +0 -13
- package/src/hooks/Aexp/get/getFlowExecutionQuery.hook.ts +0 -27
- package/src/hooks/Aexp/get/getFlowListByIdQuery.hook.ts +0 -13
- package/src/hooks/Aexp/get/getFlowListQuery.hook.ts +0 -29
- package/src/hooks/Aexp/get/getTagsFlowQuery.hook.ts +0 -11
- package/src/hooks/Aexp/mutate/deleteFlowConfigurationQuery.hook.ts +0 -17
- package/src/hooks/Aexp/mutate/inactivateFlowConfigurationQuery.hook.ts +0 -18
- package/src/hooks/Aexp/mutate/runFlowExecutionQuery.hook.ts +0 -20
- package/src/hooks/Aexp/mutate/useFlowConfigurationQuery.hook.ts +0 -17
- package/src/hooks/Aexp/mutate/useFlowExecutionQuery.hook.ts +0 -22
- package/src/hooks/Aexp/mutate/validateExecutionFileQuery.hook.ts +0 -15
- package/src/hooks/Analytics/get/getArchivedAnalyticsQuery.hook.ts +0 -32
- package/src/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.ts +0 -21
- package/src/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.ts +0 -23
- package/src/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.ts +0 -21
- package/src/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.ts +0 -32
- package/src/hooks/Analytics/get/useAnalyticsUserQuery.hook.ts +0 -35
- package/src/hooks/Anot/get/getNotificationApplicationsQuery.hook.ts +0 -13
- package/src/hooks/Anot/get/getNotificationCriticalitiesQuery.hook.ts +0 -13
- package/src/hooks/Anot/get/getNotificationHeadersQuery.hook.ts +0 -33
- package/src/hooks/Anot/get/getNotificationLanguagesQuery.hook.ts +0 -15
- package/src/hooks/Anot/get/getNotificationTypeByIdQuery.hook.ts +0 -11
- package/src/hooks/Anot/get/getNotificationsQuery.hook.ts +0 -29
- package/src/hooks/Anot/get/getNotificationsTypeQuery.hook.ts +0 -27
- package/src/hooks/Anot/mutate/useNotificationTypeQuery.hook.ts +0 -18
- package/src/hooks/Answer/get/useAnswerIdQuery.hook.ts +0 -13
- package/src/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.ts +0 -21
- package/src/hooks/Answer/mutate/useAnswerMutateQuery.hook.ts +0 -31
- package/src/hooks/Answer/others/openAnswerQuery.hook.ts +0 -19
- package/src/hooks/Answer/others/postAnswersExportQuery.hook.ts +0 -26
- package/src/hooks/Answer/others/showAnswerQuery.hook.ts +0 -18
- package/src/hooks/AprProduct/get/useProductHierarchies.hook.ts +0 -19
- package/src/hooks/AprProduct/get/useProductRecommendations.hook.ts +0 -27
- package/src/hooks/AprProduct/get/useProductsByRefQuery.hook.ts +0 -18
- package/src/hooks/AprProduct/get/useProductsQuery.hook.ts +0 -46
- package/src/hooks/Aprc/get/getPriceChangePinQuery.hook.ts +0 -16
- package/src/hooks/Aprc/others/postPriceChangePinQuery.hook.ts +0 -19
- package/src/hooks/Aprc/others/sendEmailWithPinQuery.hook.ts +0 -19
- package/src/hooks/Asgt/get/getIdProductsPickedASGTQuery.hook.ts +0 -10
- package/src/hooks/Asgt/get/getProductWarningASGTQuery.hook.ts +0 -27
- package/src/hooks/Asgt/get/getProductsListingASGTQuery.hook.ts +0 -14
- package/src/hooks/Asgt/get/getProductsMovementsASGTQuery.hook.ts +0 -27
- package/src/hooks/Asgt/get/getProductsPickedASGTQuery.hook.ts +0 -19
- package/src/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.ts +0 -12
- package/src/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.ts +0 -25
- package/src/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.ts +0 -27
- package/src/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.ts +0 -12
- package/src/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.ts +0 -13
- package/src/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.ts +0 -23
- package/src/hooks/Asgt/get/getTransferReportDiffASGT.hook.ts +0 -17
- package/src/hooks/Asgt/mutate/autoSaveASGTQuery.hook.ts +0 -23
- package/src/hooks/Asgt/mutate/createPackageASGTMutateQuery.hook.ts +0 -21
- package/src/hooks/Asgt/mutate/createTransferASGTMutateQuery.hook.ts +0 -15
- package/src/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.ts +0 -23
- package/src/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.ts +0 -21
- package/src/hooks/Asgt/mutate/removeProductASGTQuery.hook.ts +0 -15
- package/src/hooks/Ass/get/getAssProductsByRefQuery.hook.ts +0 -23
- package/src/hooks/Ass/get/getAssProductsByStoreQuery.hook.ts +0 -29
- package/src/hooks/Ass/get/getAssProductsStockDetailsQuery.hook.ts +0 -21
- package/src/hooks/Asta/Actions/get/getActionByIdQuery.hook.ts +0 -15
- package/src/hooks/Asta/Actions/get/getActionPriorityQuery.hook.ts +0 -10
- package/src/hooks/Asta/Actions/get/getActionQuery.hook.ts +0 -29
- package/src/hooks/Asta/Actions/get/getActionStagesQuery.hook.ts +0 -10
- package/src/hooks/Asta/Actions/mutate/useActionMutateQuery.hook.ts +0 -20
- package/src/hooks/Asta/Actions/others/archiveActionQuery.hook.ts +0 -19
- package/src/hooks/Asta/Actions/others/deleteActionQuery.hook.ts +0 -19
- package/src/hooks/Asta/Actions/others/extractActionQuery.hook.ts +0 -19
- package/src/hooks/Asta/Actions/others/finishActionQuery.hook.ts +0 -17
- package/src/hooks/Asta/Actions/others/selectActionStatusQuery.hook.ts +0 -18
- package/src/hooks/Asta/Actions/others/startActionQuery.hook.ts +0 -17
- package/src/hooks/Asta/Answer/get/getAstaAnswerByIdQuery.hook.ts +0 -15
- package/src/hooks/Asta/Answer/get/getAstaAnswerQuery.hook.ts +0 -29
- package/src/hooks/Asta/Answer/mutate/useAstaAnswersMutateQuery.hook.ts +0 -20
- package/src/hooks/Asta/Answer/others/finishAstaAnswersQuery.hook.ts +0 -15
- package/src/hooks/Asta/Answer/others/finishGNGAstaAnswersQuery.hook.ts +0 -18
- package/src/hooks/Asta/Answer/others/putAnswerImageQuery.hook.ts +0 -15
- package/src/hooks/Asta/Answer/others/sendInspectionEmailQuery.hook.ts +0 -21
- package/src/hooks/Asta/Answer/others/sendInspectionEmailStoreQuery.hook.ts +0 -20
- package/src/hooks/Asta/AnswerType/get/getAllAnswerTypeQuery.hook.ts +0 -29
- package/src/hooks/Asta/AnswerType/get/getAnswerColorsQuery.hook.ts +0 -10
- package/src/hooks/Asta/AnswerType/get/getAnswerTypeByIdQuery.hook.ts +0 -15
- package/src/hooks/Asta/AnswerType/get/getAnswerTypeQuery.hook.ts +0 -10
- package/src/hooks/Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook.ts +0 -20
- package/src/hooks/Asta/AnswerType/others/deleteAnswerTypeQuery.hook.ts +0 -19
- package/src/hooks/Asta/AnswerType/others/finishAnswerTypeQuery.hook.ts +0 -17
- package/src/hooks/Asta/AnswerType/others/selectAnswerNameQuery.hook.ts +0 -18
- package/src/hooks/Asta/Inspection/get/getInspectionQuery.hook.ts +0 -29
- package/src/hooks/Asta/Inspection/mutate/useInspectionMutateQuery.hook.ts +0 -24
- package/src/hooks/Asta/Inspection/others/archiveTemplateQuery.hook.ts +0 -19
- package/src/hooks/Asta/Inspection/others/deleteInspectionQuery.hook.ts +0 -19
- package/src/hooks/Asta/Inspection/others/exportInspectionQuery.hook.ts +0 -19
- package/src/hooks/Asta/Inspection/others/extractTemplateQuery.hook.ts +0 -19
- package/src/hooks/Asta/Inspection/others/finishInspectionQuery.hook.ts +0 -17
- package/src/hooks/Asta/Template/get/getTemplateByIdQuery.hook.ts +0 -15
- package/src/hooks/Asta/Template/get/getTemplateHeadersQuery.hook.ts +0 -10
- package/src/hooks/Asta/Template/get/getTemplateQuery.hook.ts +0 -29
- package/src/hooks/Asta/Template/mutate/useTemplateMutateQuery.hook.ts +0 -20
- package/src/hooks/Asta/Template/others/archiveTemplateQuery.hook.ts +0 -19
- package/src/hooks/Asta/Template/others/deleteTemplateQuery.hook.ts +0 -19
- package/src/hooks/Asta/Template/others/duplicateTemplateQuery.hook.ts +0 -19
- package/src/hooks/Asta/Template/others/extractTemplateQuery.hook.ts +0 -19
- package/src/hooks/Asta/Template/others/finishTemplateQuery.hook.ts +0 -17
- package/src/hooks/Asts/get/getProductInfoQuery.hook.ts +0 -19
- package/src/hooks/Asts/get/getStockQuery.hook.ts +0 -21
- package/src/hooks/Asts/others/postAudioFileQuery.hook.ts +0 -14
- package/src/hooks/Astt/Asgt/get/getAllAdidasProductsQuery.hook.ts +0 -25
- package/src/hooks/Astt/Asgt/get/getIdProductsPickedASTTQuery.hook.ts +0 -10
- package/src/hooks/Astt/Asgt/get/getProductWarningASTTQuery.hook.ts +0 -27
- package/src/hooks/Astt/Asgt/get/getProductsListingASTTQuery.hook.ts +0 -14
- package/src/hooks/Astt/Asgt/get/getProductsMovementsASTTQuery.hook.ts +0 -27
- package/src/hooks/Astt/Asgt/get/getProductsPickedASTTQuery.hook.ts +0 -19
- package/src/hooks/Astt/Asgt/get/getReportsBuilderASTTQuery.hook.ts +0 -12
- package/src/hooks/Astt/Asgt/get/getReprocessNeededASTTQuery.hook.ts +0 -12
- package/src/hooks/Astt/Asgt/get/getTransferAllProductsASTTQuery.hook.ts +0 -25
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsASTTQuery.hook.ts +0 -27
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook.ts +0 -12
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook.ts +0 -13
- package/src/hooks/Astt/Asgt/get/getTransferDocumentsPackagesASTTQuery.hook.ts +0 -23
- package/src/hooks/Astt/Asgt/get/getTransferReportDiffASTT.hook.ts +0 -17
- package/src/hooks/Astt/Asgt/mutate/autoSaveASTTQuery.hook.ts +0 -23
- package/src/hooks/Astt/Asgt/mutate/createPackageASTTMutateQuery.hook.ts +0 -21
- package/src/hooks/Astt/Asgt/mutate/createTransferASTTMutateQuery.hook.ts +0 -15
- package/src/hooks/Astt/Asgt/mutate/deleteProductASTTQuery.hook.ts +0 -25
- package/src/hooks/Astt/Asgt/mutate/finishPackageASTTQuery.hook.ts +0 -21
- package/src/hooks/Astt/Asgt/mutate/postMissingProductsASTTQuery.hook.ts +0 -21
- package/src/hooks/Astt/Asgt/mutate/postReprocessASTTQuery.hook.ts +0 -20
- package/src/hooks/Astt/Asgt/mutate/postRfidASGTMutateQuery.hook.ts +0 -28
- package/src/hooks/Astt/Asgt/mutate/postTransferDocumentsASTTMutateQuery.hook.ts +0 -23
- package/src/hooks/Astt/Asgt/mutate/putTransferDocumentsStateASTTMutateQuery.hook.ts +0 -21
- package/src/hooks/Astt/Asgt/mutate/removeProductASTTQuery.hook.ts +0 -15
- package/src/hooks/Astt/Asgt/mutate/restartProductASTTQuery.hook.ts +0 -22
- package/src/hooks/Astt/get/getBarcodesListingByPackageQuery.hook.ts +0 -14
- package/src/hooks/Astt/get/getBarcodesListingQuery.hook.ts +0 -13
- package/src/hooks/Astt/get/getBarcodesPrintQuery.hook.ts +0 -12
- package/src/hooks/Astt/get/getDocumentsFindByIdQuery.hook.ts +0 -12
- package/src/hooks/Astt/get/getManualPackagesListQuery.hook.ts +0 -20
- package/src/hooks/Astt/get/getProductsListingQuery.hook.ts +0 -14
- package/src/hooks/Astt/get/getReconciliationDocumentsQuery.hook.ts +0 -18
- package/src/hooks/Astt/get/getReportsBuilderQuery.hook.ts +0 -12
- package/src/hooks/Astt/get/getRfidQuery.hook.ts +0 -24
- package/src/hooks/Astt/get/getTransferAllProductsQuery.hook.ts +0 -25
- package/src/hooks/Astt/get/getTransferDocumentsByIdQuery.hook.ts +0 -12
- package/src/hooks/Astt/get/getTransferDocumentsByPackageQuery.hook.ts +0 -13
- package/src/hooks/Astt/get/getTransferDocumentsPackagesQuery.hook.ts +0 -23
- package/src/hooks/Astt/get/getTransferDocumentsQuery.hook.ts +0 -27
- package/src/hooks/Astt/get/getTransferReportDiff.hook.ts +0 -17
- package/src/hooks/Astt/get/getTransferStatesQuery.hook.ts +0 -10
- package/src/hooks/Astt/mutate/deleteManualPackageQuery.hook.ts +0 -23
- package/src/hooks/Astt/mutate/notifyMissingProductsQuery.hook.ts +0 -36
- package/src/hooks/Astt/mutate/postAsttActionsQuery.hook.ts +0 -18
- package/src/hooks/Astt/mutate/postManualPackageQuery.hook.ts +0 -18
- package/src/hooks/Astt/mutate/postManualTransferQuery.hook.ts +0 -16
- package/src/hooks/Astt/mutate/postMatchingPackageQuery.hook.ts +0 -22
- package/src/hooks/Astt/mutate/postTransferDocumentsMutateQuery.hook.ts +0 -23
- package/src/hooks/Astt/mutate/putTransferDocumentFinishQuery.hook.ts +0 -21
- package/src/hooks/Astt/mutate/putTransferDocumentsPartiallyQuery.hook.ts +0 -21
- package/src/hooks/Astt/mutate/putTransferDocumentsStateMutateQuery.hook.ts +0 -21
- package/src/hooks/Astt/mutate/updateDocumentIdQuery.hook.ts +0 -23
- package/src/hooks/Astt/mutate/updatePackageIdQuery.hook.ts +0 -25
- package/src/hooks/AsvProduct/get/getProductsByRefQuery.hook.ts +0 -23
- package/src/hooks/AsvProduct/get/getProductsByStoreQuery.hook.ts +0 -29
- package/src/hooks/AsvProduct/get/getProductsStockDetailsQuery.hook.ts +0 -21
- package/src/hooks/BigWin/get/getBwgAllEmployeesQuery.hook.ts +0 -29
- package/src/hooks/BigWin/get/getBwgBackOfficeQuery.hook.ts +0 -29
- package/src/hooks/BigWin/get/getMonthsListQuery.hook.ts +0 -10
- package/src/hooks/BigWin/others/importABWGQuery.hook.ts +0 -20
- package/src/hooks/BigWin/others/importRegulationQuery.hook.ts +0 -15
- package/src/hooks/BigWin/others/publishMonthsEmployeeQuery.hook.ts +0 -19
- package/src/hooks/BigWin/others/publishMonthsManagerQuery.hook.ts +0 -19
- package/src/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.ts +0 -13
- package/src/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.ts +0 -29
- package/src/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.ts +0 -17
- package/src/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.ts +0 -15
- package/src/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.ts +0 -15
- package/src/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.ts +0 -15
- package/src/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.ts +0 -15
- package/src/hooks/OSUA/MIMO/get/getIntegrationByName.hook.ts +0 -19
- package/src/hooks/OSUA/MIMO/get/getProductIntegrationHistory.hook.ts +0 -25
- package/src/hooks/OSUA/MIMO/get/useErrorHistory.hook.ts +0 -21
- package/src/hooks/OSUA/MIMO/get/useIntegrationDataQuery.hook.ts +0 -15
- package/src/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.ts +0 -13
- package/src/hooks/OSUA/MIMO/mutate/postIntegrationDag.hook.ts +0 -18
- package/src/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.ts +0 -15
- package/src/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.ts +0 -25
- package/src/hooks/OSUA/MIMO/mutate/updateIntegrationProcess.hook.ts +0 -30
- package/src/hooks/OSUA/get/documentos/getGngDocumentos.hook.ts +0 -28
- package/src/hooks/OSUA/get/documentos/getSitooDocumentos.hook.ts +0 -21
- package/src/hooks/OSUA/get/eventos/getSitooErrorEvents.hook.ts +0 -30
- package/src/hooks/OSUA/get/faqs/getFaqsQuery.hook.ts +0 -33
- package/src/hooks/OSUA/get/orders/getOrderDocuments.hook.ts +0 -21
- package/src/hooks/OSUA/get/queue/getQueues.hook.ts +0 -15
- package/src/hooks/OSUA/get/queue/getQueuesMessages.hook.ts +0 -28
- package/src/hooks/OSUA/get/vouchers/getGngVoucher.hook.ts +0 -21
- package/src/hooks/OSUA/get/vouchers/getOsuaVouchersQuery.hook.ts +0 -27
- package/src/hooks/OSUA/get/vouchers/getSalesNumberOsua.hook.ts +0 -26
- package/src/hooks/OSUA/get/vouchers/getSitooVouchers.hook.ts +0 -22
- package/src/hooks/OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook.ts +0 -23
- package/src/hooks/OSUA/mutate/activateOsuaVoucherQuery.hook.ts +0 -24
- package/src/hooks/OSUA/mutate/postCreateIntegrationRequest.hook.ts +0 -28
- package/src/hooks/OSUA/mutate/postEventsRep.hook.ts +0 -16
- package/src/hooks/OSUA/mutate/postQueuesMessages.hook.ts +0 -21
- package/src/hooks/OSUA/mutate/postVoucher.hook.ts +0 -16
- package/src/hooks/OSUA/mutate/putBalanceVouchers.hook.ts +0 -25
- package/src/hooks/OSUA/mutate/useSetIntegrationToFinished.hook.ts +0 -21
- package/src/hooks/Orch/get/getAuth0ConfigQuery.hook.ts +0 -11
- package/src/hooks/Orch/get/getInstanceByIdQuery.hook.ts +0 -14
- package/src/hooks/Orch/get/getInstancesQuery.hook.ts +0 -27
- package/src/hooks/Orch/get/getMacrosInstancesQuery.hook.ts +0 -19
- package/src/hooks/Orch/get/getMacrosQuery.hook.ts +0 -27
- package/src/hooks/Orch/get/getMacrosUserQuery.hook.ts +0 -11
- package/src/hooks/Orch/get/getMonitoringComponents.hook.ts +0 -29
- package/src/hooks/Orch/others/reprocessingInstanceQuery.hook.ts +0 -14
- package/src/hooks/Orch/others/runMacrosQuery.hook.ts +0 -23
- package/src/hooks/Orch/others/stopInstanceQuery.hook.ts +0 -16
- package/src/hooks/Orch/others/updateMacroStatusQuery.hook.ts +0 -23
- package/src/hooks/Others/Vacation/get/getVacationPlanQuery.hook.ts +0 -20
- package/src/hooks/Others/Vacation/get/getVacationTemplateQuery.hook.ts +0 -11
- package/src/hooks/Others/Vacation/others/aproveVacationPlanQuery.hook.ts +0 -23
- package/src/hooks/Others/Vacation/others/postVacationPlanQuery.hook.ts +0 -20
- package/src/hooks/Others/Vacation/others/rejectVacationPlanQuery.hook.ts +0 -25
- package/src/hooks/Others/changePasswordQuery.hook.ts +0 -21
- package/src/hooks/Others/editAllBellNotificationsStatusQuery.hook.ts +0 -19
- package/src/hooks/Others/editBellNotificationsStatusQuery.hook.ts +0 -22
- package/src/hooks/Others/editFieldsByBulkQuery.hook.ts +0 -15
- package/src/hooks/Others/getBellNotificationsQuery.hook.ts +0 -28
- package/src/hooks/Others/getNotificationTitleQuery.hook.ts +0 -19
- package/src/hooks/Others/getRegulationQuery.hook.ts +0 -14
- package/src/hooks/Others/getUserEmailStatusQuery.hook.ts +0 -21
- package/src/hooks/Others/getWeeklyWorkloadQuery.hook.ts +0 -23
- package/src/hooks/Others/oneSignalUserQuery.hook.ts +0 -14
- package/src/hooks/Others/postCheckoutsMutateQuery.hook.ts +0 -15
- package/src/hooks/Others/postUserAuthenticationQuery.hook.ts +0 -19
- package/src/hooks/Others/postVerifyImageQuery.hook.ts +0 -15
- package/src/hooks/Others/unblockUserQuery.hook.ts +0 -14
- package/src/hooks/Others/useApplicationDataQuery.hook.ts +0 -10
- package/src/hooks/Others/useContractStatesQuery.hook.ts +0 -15
- package/src/hooks/Others/useCountriesQuery.hook.ts +0 -15
- package/src/hooks/Others/useCreateNotification.hook.ts +0 -24
- package/src/hooks/Others/useCustomersQuery.hook.ts +0 -40
- package/src/hooks/Others/useJobTitlesQuery.hook.ts +0 -17
- package/src/hooks/Others/useRegulationQuery.hook.ts +0 -24
- package/src/hooks/Others/useTermNotificationQuery.hook.ts +0 -11
- package/src/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.ts +0 -13
- package/src/hooks/Questionnaire/get/useQuestionnaireQuery.hook.ts +0 -29
- package/src/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.ts +0 -17
- package/src/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.ts +0 -15
- package/src/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.ts +0 -15
- package/src/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.ts +0 -15
- package/src/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.ts +0 -15
- package/src/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.ts +0 -15
- package/src/hooks/Roles/get/useAllRolesQuery.hook.ts +0 -30
- package/src/hooks/Store/getLocationsByUser.hook.ts +0 -37
- package/src/hooks/Store/useAllStoreQuery.hook.ts +0 -37
- package/src/hooks/Store/useStoreByCodeQuery.hook.ts +0 -21
- package/src/hooks/Store/useStoreQuery.ts +0 -13
- package/src/hooks/Users/get/getUserAndSupervisorQuery.hook.ts +0 -21
- package/src/hooks/Users/get/getUsersReadmissionQuery.hook.ts +0 -27
- package/src/hooks/Users/get/useApplicationQuery.hook.ts +0 -29
- package/src/hooks/Users/get/useExpUsersAnswersQuery.hook.ts +0 -25
- package/src/hooks/Users/get/usePermissionByIdQuery.hook.ts +0 -15
- package/src/hooks/Users/get/usePermissionsQuery.hook.ts +0 -29
- package/src/hooks/Users/get/useSingleUserIdQuery.hook.ts +0 -15
- package/src/hooks/Users/get/useUserIdQuery.hook.ts +0 -14
- package/src/hooks/Users/get/useUserListQuery.hook.ts +0 -27
- package/src/hooks/Users/get/useUserQuery.hook.ts +0 -31
- package/src/hooks/Users/mutate/deletePermissionMutateQuery.hook.ts +0 -15
- package/src/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.ts +0 -18
- package/src/hooks/Users/mutate/useUpdatePermissionsMutateQuery.hook.ts +0 -17
- package/src/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.ts +0 -27
- package/src/hooks/Users/others/useSingleUserResetPassword.hook.ts +0 -18
- package/src/hooks/Users/others/useUserBlockQuery.hook.ts +0 -15
- package/src/hooks/Users/others/useUserEmailVerifQuery.hook.ts +0 -15
- package/src/hooks/Users/others/useUserResetPassByEmail.hook.ts +0 -14
- package/src/hooks/Watson/get/getCloseSession.hook.ts +0 -15
- package/src/hooks/Watson/mutate/mutateCloseSession.hook.ts +0 -18
- package/src/hooks/Watson/mutate/mutateNotificationRequest.hook.ts +0 -18
- package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesByIdQuery.hook.ts +0 -15
- package/src/hooks/WidgetPicaPonto/get/getAttendanceIssuesQuery.hook.ts +0 -27
- package/src/hooks/WidgetPicaPonto/get/getCriticaliesQuery.hook.ts +0 -27
- package/src/hooks/WidgetPicaPonto/get/getReasonCodesQuery.hook.ts +0 -27
- package/src/hooks/WidgetPicaPonto/get/getSchedulesStoresQuery.hook.ts +0 -28
- package/src/hooks/WidgetPicaPonto/mutate/useAttendanceIssuesQuery.hook.ts +0 -18
- package/src/hooks/index.ts +0 -505
- package/src/index.ts +0 -12
- package/src/interfaces/ACB.ts +0 -21
- package/src/interfaces/ASAECustomer.ts +0 -28
- package/src/interfaces/Acls.ts +0 -84
- package/src/interfaces/Actions.ts +0 -20
- package/src/interfaces/AnalyticsEvaluationCycle.ts +0 -24
- package/src/interfaces/AnalyticsUserId.ts +0 -14
- package/src/interfaces/Anot.ts +0 -79
- package/src/interfaces/Answer.ts +0 -14
- package/src/interfaces/AnswerType.ts +0 -22
- package/src/interfaces/AnswersUserSupervisor.ts +0 -45
- package/src/interfaces/ApplicationsByCategory.ts +0 -19
- package/src/interfaces/AstaQuestions.ts +0 -10
- package/src/interfaces/AstsStock.ts +0 -17
- package/src/interfaces/AstsStockInfo.ts +0 -14
- package/src/interfaces/AsttReconciliationDocuments.ts +0 -32
- package/src/interfaces/AsvProductsByReference.ts +0 -14
- package/src/interfaces/AsvProductsByStore.ts +0 -13
- package/src/interfaces/AsvProductsStockDetails.ts +0 -20
- package/src/interfaces/Atim.ts +0 -123
- package/src/interfaces/AtimScheduling.ts +0 -64
- package/src/interfaces/AttendanceIssues.ts +0 -20
- package/src/interfaces/Auth0Config.ts +0 -6
- package/src/interfaces/BellNotification.ts +0 -17
- package/src/interfaces/Brand.ts +0 -5
- package/src/interfaces/Bulk.ts +0 -11
- package/src/interfaces/Bwg.ts +0 -25
- package/src/interfaces/Cart.ts +0 -14
- package/src/interfaces/Checkout.ts +0 -15
- package/src/interfaces/Configuration.ts +0 -8
- package/src/interfaces/ContractStates.ts +0 -7
- package/src/interfaces/Countries.ts +0 -10
- package/src/interfaces/CreateNotification.ts +0 -18
- package/src/interfaces/Customer.ts +0 -23
- package/src/interfaces/CustomerHistory.ts +0 -11
- package/src/interfaces/CustomerVoucher.ts +0 -12
- package/src/interfaces/Employee.ts +0 -18
- package/src/interfaces/EvaluationCycle.ts +0 -34
- package/src/interfaces/ExpUsersAnswers.ts +0 -16
- package/src/interfaces/FlowExecution.ts +0 -33
- package/src/interfaces/FlowList.ts +0 -32
- package/src/interfaces/GetMonths.ts +0 -8
- package/src/interfaces/Inspection.ts +0 -22
- package/src/interfaces/Instances.ts +0 -25
- package/src/interfaces/JobTitles.ts +0 -7
- package/src/interfaces/MIMO.ts +0 -19
- package/src/interfaces/MacroInstance.ts +0 -11
- package/src/interfaces/Macros.ts +0 -19
- package/src/interfaces/MonitoringComponent.ts +0 -6
- package/src/interfaces/NotificationTitle.ts +0 -8
- package/src/interfaces/OSUA.ts +0 -363
- package/src/interfaces/Permissions.ts +0 -16
- package/src/interfaces/PriceChange.ts +0 -7
- package/src/interfaces/Product.ts +0 -17
- package/src/interfaces/ProductsHierarchies.ts +0 -6
- package/src/interfaces/ProductsPickedTransfers.ts +0 -13
- package/src/interfaces/Questionnaire.ts +0 -39
- package/src/interfaces/ReasonCodes.ts +0 -9
- package/src/interfaces/ReportBuilder.ts +0 -5
- package/src/interfaces/ResponseList.ts +0 -7
- package/src/interfaces/Responses.ts +0 -50
- package/src/interfaces/Rfid.ts +0 -10
- package/src/interfaces/Roles.ts +0 -5
- package/src/interfaces/Store.ts +0 -35
- package/src/interfaces/TagsFlow.ts +0 -5
- package/src/interfaces/Template.ts +0 -33
- package/src/interfaces/TermNotification.ts +0 -6
- package/src/interfaces/TimeKeeping.ts +0 -7
- package/src/interfaces/TransferAllProducts.ts +0 -39
- package/src/interfaces/TransferDocumentState.ts +0 -5
- package/src/interfaces/TransferDocuments.ts +0 -62
- package/src/interfaces/TransferPackage.ts +0 -19
- package/src/interfaces/TransferPickProducts.ts +0 -34
- package/src/interfaces/TransferReportDiff.ts +0 -9
- package/src/interfaces/TransferStates.ts +0 -8
- package/src/interfaces/User.ts +0 -75
- package/src/interfaces/UserAuthentication.ts +0 -7
- package/src/interfaces/UserEmailStatus.ts +0 -14
- package/src/interfaces/VacationPlan.ts +0 -13
- package/src/interfaces/VerifyImage.ts +0 -49
- package/src/interfaces/VerifyUser.ts +0 -5
- package/src/interfaces/Watson.ts +0 -76
- package/src/interfaces/Workload.ts +0 -8
- package/src/interfaces/index.ts +0 -81
- package/src/services/ApiService/index.ts +0 -185
- package/src/services/InitService/index.ts +0 -7
- package/src/services/index.ts +0 -3
- package/src/types/Global.d.ts +0 -4
- package/tsconfig.json +0 -24
- package/vite.config.js +0 -49
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { TransferDocumentsDetails } from '../../../interfaces/TransferDocuments';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const postManualPackageQueryHook = (transferDocumentId: string) => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<TransferDocumentsDetails, unknown, TransferDocumentsDetails>((data: TransferDocumentsDetails) => {
|
|
8
|
-
return postAuth0(`/ASTT/TransferDocuments/Manual/Packages?`, {
|
|
9
|
-
pTransferDocumentId: transferDocumentId
|
|
10
|
-
}, data);
|
|
11
|
-
}, {
|
|
12
|
-
onSuccess: (data: TransferDocumentsDetails) => {
|
|
13
|
-
queryClient.setQueryData(
|
|
14
|
-
['MANUAL_PACKAGE_QUERY'], data);
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { TransferDocumentManual, TransferDocumentsDetails } from '../../../interfaces/TransferDocuments';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const postManualTransferQueryHook = (bodyType?: string) => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<TransferDocumentsDetails, unknown, TransferDocumentManual>((data: any) => {
|
|
8
|
-
return postAuth0(`/ASTT/TransferDocuments/Manual`, undefined, data, bodyType);
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: TransferDocumentsDetails) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['MANUAL_TRANSFER_QUERY'], data);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { TransferPickProductsList, TransferPickProductsMatched } from '../../../interfaces/TransferPickProducts';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export interface MatchingPackageMutateProps extends UseQueryOptions<TransferPickProductsMatched> {
|
|
6
|
-
transferDocumentId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const postMatchingPackageQueryHook = ({ transferDocumentId }: MatchingPackageMutateProps) => {
|
|
10
|
-
const queryClient = useQueryClient();
|
|
11
|
-
return useMutation<TransferPickProductsMatched, unknown, TransferPickProductsList[]>((data: TransferPickProductsList[]) => {
|
|
12
|
-
return postAuth0(`/ASTT/TransferDocuments/MatchingPackage?`, {
|
|
13
|
-
pTransferDocumentId: transferDocumentId,
|
|
14
|
-
}, data);
|
|
15
|
-
}, {
|
|
16
|
-
onSuccess: (data: TransferPickProductsMatched) => {
|
|
17
|
-
queryClient.setQueryData(
|
|
18
|
-
['MATCHING_PACKAGE_QUERY'], data);
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { TransferPickProducts } from '../../../interfaces/TransferPickProducts';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export interface TransferDocumentsMutateProps extends UseQueryOptions<TransferPickProducts> {
|
|
6
|
-
transferDocumentId: string;
|
|
7
|
-
packageId: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const postTransferDocumentsMutateQueryHook = ({ transferDocumentId, packageId }: TransferDocumentsMutateProps) => {
|
|
11
|
-
const queryClient = useQueryClient();
|
|
12
|
-
return useMutation<TransferPickProducts, unknown, TransferPickProducts>((data: TransferPickProducts) => {
|
|
13
|
-
return postAuth0(`/ASTT/TransferDocuments/Products/Picking?`, {
|
|
14
|
-
pTransferDocumentId: transferDocumentId,
|
|
15
|
-
pPackageId: packageId
|
|
16
|
-
}, data);
|
|
17
|
-
}, {
|
|
18
|
-
onSuccess: (data: TransferPickProducts) => {
|
|
19
|
-
queryClient.setQueryData(
|
|
20
|
-
['TRANSFER_PICKED_PRODUCTS_QUERY'], data);
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { TransferDocumentState } from '../../../interfaces/TransferDocumentState';
|
|
3
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export interface TransferDocumentsFinishedQueryProps extends UseQueryOptions<TransferDocumentState> {
|
|
6
|
-
transferDocumentId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const putTransferDocumentsFinishedQuery= ({ transferDocumentId }: TransferDocumentsFinishedQueryProps) => {
|
|
10
|
-
const queryClient = useQueryClient();
|
|
11
|
-
return useMutation<TransferDocumentState, unknown, TransferDocumentState>((data: TransferDocumentState) => {
|
|
12
|
-
return putAuth0(`/ASTT/TransferDocuments/Finish?`, {
|
|
13
|
-
pTransferDocumentId: transferDocumentId
|
|
14
|
-
}, data);
|
|
15
|
-
}, {
|
|
16
|
-
onSuccess: (data: TransferDocumentState) => {
|
|
17
|
-
queryClient.setQueryData(
|
|
18
|
-
['TRANSFER_DOCUMENT_FINISHED_QUERY'], data);
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { TransferDocumentState } from '../../../interfaces/TransferDocumentState';
|
|
3
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export interface TransferDocumentsPartiallyQueryProps extends UseQueryOptions<TransferDocumentState> {
|
|
6
|
-
transferDocumentId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const putTransferDocumentsPartiallyQuery= ({ transferDocumentId }: TransferDocumentsPartiallyQueryProps) => {
|
|
10
|
-
const queryClient = useQueryClient();
|
|
11
|
-
return useMutation<TransferDocumentState, unknown, TransferDocumentState>((data: TransferDocumentState) => {
|
|
12
|
-
return putAuth0(`/ASTT/TransferDocuments/PartialAdding?`, {
|
|
13
|
-
pTransferDocumentId: transferDocumentId
|
|
14
|
-
}, data);
|
|
15
|
-
}, {
|
|
16
|
-
onSuccess: (data: TransferDocumentState) => {
|
|
17
|
-
queryClient.setQueryData(
|
|
18
|
-
['TRANSFER_DOCUMENT_PARTIALLY_QUERY'], data);
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { TransferDocumentState } from '../../../interfaces/TransferDocumentState';
|
|
3
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export interface TransferDocumentsStateMutateProps extends UseQueryOptions<TransferDocumentState> {
|
|
6
|
-
transferDocumentId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const putTransferDocumentsStateMutateQueryHook = ({ transferDocumentId }: TransferDocumentsStateMutateProps) => {
|
|
10
|
-
const queryClient = useQueryClient();
|
|
11
|
-
return useMutation<TransferDocumentState, unknown, TransferDocumentState>((data: TransferDocumentState) => {
|
|
12
|
-
return putAuth0(`/ASTT/TransferDocuments?`, {
|
|
13
|
-
pTransferDocumentId: transferDocumentId
|
|
14
|
-
}, data);
|
|
15
|
-
}, {
|
|
16
|
-
onSuccess: (data: TransferDocumentState) => {
|
|
17
|
-
queryClient.setQueryData(
|
|
18
|
-
['TRANSFER_PACKAGE_STATE_QUERY'], data);
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
3
|
-
import { TransferDocuments } from '../../../interfaces/TransferDocuments';
|
|
4
|
-
|
|
5
|
-
export interface UpdateDocumentIdProps extends UseQueryOptions<TransferDocuments> {
|
|
6
|
-
oldDocumentNumber: string;
|
|
7
|
-
newDocumentNumber: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const updateDocumentIdQueryHook = ({ oldDocumentNumber, newDocumentNumber }: UpdateDocumentIdProps) => {
|
|
11
|
-
const queryClient = useQueryClient();
|
|
12
|
-
return useMutation<TransferDocuments, unknown, void>(() => {
|
|
13
|
-
return putAuth0(`/ASTT/TransferDocuments/Manual?`, {
|
|
14
|
-
pOldDocumentNumber: oldDocumentNumber,
|
|
15
|
-
pNewDocumentNumber: newDocumentNumber
|
|
16
|
-
});
|
|
17
|
-
}, {
|
|
18
|
-
onSuccess: (data: TransferDocuments) => {
|
|
19
|
-
queryClient.setQueryData(
|
|
20
|
-
['UPDATE_DOCUMENT_ID_QUERY'], data);
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
3
|
-
import { TransferDocumentsDetails } from '../../../interfaces/TransferDocuments';
|
|
4
|
-
|
|
5
|
-
export interface UpdatePackageIdQueryProps extends UseQueryOptions<TransferDocumentsDetails> {
|
|
6
|
-
transferDocumentId: string;
|
|
7
|
-
oldPackageId: string;
|
|
8
|
-
newPackageId: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const updatePackageIdQuery = ({ transferDocumentId, oldPackageId, newPackageId }: UpdatePackageIdQueryProps) => {
|
|
12
|
-
const queryClient = useQueryClient();
|
|
13
|
-
return useMutation<TransferDocumentsDetails, unknown, TransferDocumentsDetails>((data: TransferDocumentsDetails) => {
|
|
14
|
-
return putAuth0(`/ASTT/TransferDocuments/Manual/Package/Id?`, {
|
|
15
|
-
pTransferDocumentId: transferDocumentId,
|
|
16
|
-
pOldPackageId: oldPackageId,
|
|
17
|
-
pNewPackageId: newPackageId
|
|
18
|
-
}, data);
|
|
19
|
-
}, {
|
|
20
|
-
onSuccess: (data: TransferDocumentsDetails) => {
|
|
21
|
-
queryClient.setQueryData(
|
|
22
|
-
['UPDATE_PACKAGE_ID_QUERY'], data);
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AsvProductsByReference, ResponseList } from "../../../interfaces";
|
|
3
|
-
import { get } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface ProductsByRefProps extends UseQueryOptions<ResponseList<"StockList", AsvProductsByReference>> {
|
|
6
|
-
reference: string;
|
|
7
|
-
sortBy?: string;
|
|
8
|
-
sortDirection?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const getProductsByRef = ({ reference, sortBy, sortDirection }: ProductsByRefProps) => {
|
|
12
|
-
return useQuery(
|
|
13
|
-
['ASV_PRODUCT_BY_REF', reference, sortBy, sortDirection],
|
|
14
|
-
() => get<ResponseList<"StockList", AsvProductsByReference>>('/ASV/Products/AllStores', {
|
|
15
|
-
pReference: reference,
|
|
16
|
-
pSortBy: sortBy,
|
|
17
|
-
pSortDirection: sortDirection
|
|
18
|
-
}),
|
|
19
|
-
{
|
|
20
|
-
keepPreviousData: true,
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AsvProductsByStore, ResponseList } from "../../../interfaces";
|
|
3
|
-
import { get } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface ProductsByStoreProps extends UseQueryOptions<ResponseList<"StockList", AsvProductsByStore>> {
|
|
6
|
-
reference: string;
|
|
7
|
-
storeCode: string;
|
|
8
|
-
hasStock?: boolean;
|
|
9
|
-
filterColor?: boolean;
|
|
10
|
-
sortBy?: string;
|
|
11
|
-
sortDirection?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const getProductsByStore = ({ reference, storeCode, hasStock, filterColor, sortBy, sortDirection }: ProductsByStoreProps) => {
|
|
15
|
-
return useQuery(
|
|
16
|
-
['ASV_PRODUCT_BY_STORE', reference, storeCode, hasStock, filterColor, sortBy, sortDirection],
|
|
17
|
-
() => get<ResponseList<"StockList", AsvProductsByStore>>('/ASV/Products', {
|
|
18
|
-
pReference: reference,
|
|
19
|
-
pStoreCode: storeCode,
|
|
20
|
-
pHasStock: hasStock,
|
|
21
|
-
pRefColor: filterColor,
|
|
22
|
-
pSortBy: sortBy,
|
|
23
|
-
pSortDirection: sortDirection
|
|
24
|
-
}),
|
|
25
|
-
{
|
|
26
|
-
keepPreviousData: true,
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AsvProductsStockDetails, ResponseList } from "../../../interfaces";
|
|
3
|
-
import { get } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface ProductsStockDetailsProps extends UseQueryOptions<AsvProductsStockDetails> {
|
|
6
|
-
reference: string;
|
|
7
|
-
storeCode: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const getProductsStockDetailsQueryHook = ({ reference, storeCode }: ProductsStockDetailsProps) => {
|
|
11
|
-
return useQuery(
|
|
12
|
-
['ASV_PRODUCT_STOCK_DETAILS', reference, storeCode],
|
|
13
|
-
() => get<AsvProductsStockDetails>('/ASV/Products/StockDetails', {
|
|
14
|
-
pReference: reference,
|
|
15
|
-
pStoreCode: storeCode
|
|
16
|
-
}),
|
|
17
|
-
{
|
|
18
|
-
keepPreviousData: true,
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Bwg } from "../../../interfaces";
|
|
3
|
-
import { getAuth0 } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface BwgAllEmployeesQueryQueryProps extends UseQueryOptions<Bwg> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
page: number;
|
|
8
|
-
records: number;
|
|
9
|
-
sortBy?: string;
|
|
10
|
-
sortDirection?: string;
|
|
11
|
-
query?: string;
|
|
12
|
-
userId?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const getBwgAllEmployeesQuery = ({ tags, page, records, sortBy, sortDirection, query, userId, ...options }: BwgAllEmployeesQueryQueryProps) => {
|
|
16
|
-
return useQuery(
|
|
17
|
-
['BWG_ALL_EMPLOYEES', tags, page, records, sortBy, sortDirection, query, userId, options],
|
|
18
|
-
() => getAuth0<Bwg>('/ABWG/BWGEmployees/AllEmployees/Omnium', {
|
|
19
|
-
pPage: page || 1,
|
|
20
|
-
pRecords: records || 50,
|
|
21
|
-
pSortBy: sortBy || 'Points',
|
|
22
|
-
pSortDirection: sortDirection || 'asc',
|
|
23
|
-
pTerms: tags,
|
|
24
|
-
pQuery: query,
|
|
25
|
-
pUserId: userId
|
|
26
|
-
}),
|
|
27
|
-
options
|
|
28
|
-
);
|
|
29
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Bwg } from "../../../interfaces";
|
|
3
|
-
import { getAuth0 } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface BwgBackOfficeQueryQueryProps extends UseQueryOptions<Bwg> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
page: number;
|
|
8
|
-
records: number;
|
|
9
|
-
sortBy?: string;
|
|
10
|
-
sortDirection?: string;
|
|
11
|
-
query?: string;
|
|
12
|
-
userId?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const getBwgBackOfficeQuery = ({ tags, page, records, sortBy, sortDirection, query, userId, ...options }: BwgBackOfficeQueryQueryProps) => {
|
|
16
|
-
return useQuery(
|
|
17
|
-
['BWG_BACK_OFFICE', tags, page, records, sortBy, sortDirection, query, userId, options],
|
|
18
|
-
() => getAuth0<Bwg>('/ABWG/BWGEmployees/BackOffice/Omnium', {
|
|
19
|
-
pPage: page || 1,
|
|
20
|
-
pRecords: records || 50,
|
|
21
|
-
pSortBy: sortBy || 'Points',
|
|
22
|
-
pSortDirection: sortDirection || 'asc',
|
|
23
|
-
pTerms: tags,
|
|
24
|
-
pQuery: query,
|
|
25
|
-
pUserId: userId
|
|
26
|
-
}),
|
|
27
|
-
options
|
|
28
|
-
);
|
|
29
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { GetMonths } from "../../../interfaces";
|
|
3
|
-
import { getAuth0 } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const getMonthsListQueryHook = () => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['MONTHS_LIST_QUERY'],
|
|
8
|
-
() => getAuth0<GetMonths[]>(`/ABWG/BWGEmployees/BackOffice`),
|
|
9
|
-
);
|
|
10
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { BwgExcel } from '../../../interfaces';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export const importABWGQuery = (integrationType: string, bodyType?: string) => {
|
|
8
|
-
const queryClient = useQueryClient();
|
|
9
|
-
return useMutation<string, unknown, BwgExcel>((data: BwgExcel | any) => {
|
|
10
|
-
return postAuth0(`/ABWG/IntegrationRequests?`, {
|
|
11
|
-
pIntegrationType: integrationType,
|
|
12
|
-
}, data, bodyType);
|
|
13
|
-
}, {
|
|
14
|
-
onSuccess: (data: string) => {
|
|
15
|
-
queryClient.setQueryData(
|
|
16
|
-
['INTEGRATION_REQUEST_QUERY'], data);
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { BwgFile } from '../../../interfaces';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const importRegulationHook = (bodyType?: string) => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<string, unknown, BwgFile>((data: BwgFile | any) => {
|
|
8
|
-
return postAuth0(`/ABWG/File`, undefined, data, bodyType);
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: string) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['IMPORT_REGULATION_QUERY'], data);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { GetMonths } from '../../../interfaces';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const publishMonthsEmployeeHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<number, unknown, GetMonths>((data: GetMonths) => {
|
|
8
|
-
return postAuth0(`/ABWG/BWGEmployees?`, {
|
|
9
|
-
pMonth: data.MonthCode,
|
|
10
|
-
pUserId: data.UserId,
|
|
11
|
-
pYear: data.Year
|
|
12
|
-
}, data);
|
|
13
|
-
}, {
|
|
14
|
-
onSuccess: (data: number) => {
|
|
15
|
-
queryClient.setQueryData(
|
|
16
|
-
['PUBLISH_MONTH_EMPLOYEE_QUERY'], data);
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { GetMonths } from '../../../interfaces';
|
|
3
|
-
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const publishMonthsManagerHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<number, unknown, GetMonths>((data: GetMonths) => {
|
|
8
|
-
return postAuth0(`/ABWG/BWGManager?`, {
|
|
9
|
-
pMonth: data.MonthCode,
|
|
10
|
-
pUserId: data.UserId,
|
|
11
|
-
pYear: data.Year
|
|
12
|
-
}, data);
|
|
13
|
-
}, {
|
|
14
|
-
onSuccess: (data: number) => {
|
|
15
|
-
queryClient.setQueryData(
|
|
16
|
-
['PUBLISH_MONTH_MANAGER_QUERY'], data);
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { EvaluationCycle } from "../../../interfaces";
|
|
3
|
-
import { getAuth0 } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const useEvaluationCycleIdQueryHook = (evaluationId: string) => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['EVALUATION_CYCLE_ID_QUERY', evaluationId],
|
|
8
|
-
() => getAuth0<EvaluationCycle>(`/APE/EvaluationCycle/${evaluationId}`),
|
|
9
|
-
{
|
|
10
|
-
enabled: !!(evaluationId),
|
|
11
|
-
},
|
|
12
|
-
);
|
|
13
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { EvaluationCycle, ResponseList } from "../../../interfaces";
|
|
3
|
-
import { getAuth0 } from "../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface EvaluationCycleProps extends UseQueryOptions<ResponseList<"EvaluationCycles", EvaluationCycle>> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
page?: number;
|
|
8
|
-
records?: number;
|
|
9
|
-
sortBy?: string;
|
|
10
|
-
sortDirection?: string;
|
|
11
|
-
query?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const useEvaluationCycleQueryHook = ({ tags, page, records, sortBy, sortDirection, query }: EvaluationCycleProps) => {
|
|
15
|
-
return useQuery(
|
|
16
|
-
['EVALUATION_CYCLE_QUERY', tags, page, records, sortBy, sortDirection, query],
|
|
17
|
-
() => getAuth0<ResponseList<"EvaluationCycles", EvaluationCycle>>('/APE/EvaluationCycle', {
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
3
|
-
import { putAuth0, postAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const useEvaluationCycleMutateHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
8
|
-
return data.Id ?
|
|
9
|
-
putAuth0(`/APE/EvaluationCycle/${data.Id}`, undefined, data) :
|
|
10
|
-
postAuth0('/APE/EvaluationCycle', undefined, data);
|
|
11
|
-
}, {
|
|
12
|
-
onSuccess: (data: EvaluationCycle) => {
|
|
13
|
-
queryClient.setQueryData(
|
|
14
|
-
['EVALUATION_CYCLE_ID_QUERY'], data);
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
3
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const activateEvaluationCycleQueryHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
8
|
-
return putAuth0(`/APE/EvaluationCycle/Activate/${data.Id}`, undefined, data)
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: EvaluationCycle) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['EVALUATION_CYCLE_ID_QUERY'], data);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
3
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const cancelEvaluationCycleQueryHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
8
|
-
return putAuth0(`/APE/EvaluationCycle/Cancel/${data.Id}`, undefined, data)
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: EvaluationCycle) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['EVALUATION_CYCLE_ID_QUERY'], data);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
3
|
-
import { toDeleteAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const deleteEvaluationCycleMutateHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
8
|
-
return toDeleteAuth0(`/APE/EvaluationCycle?pId=${data.Id}`)
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: () => {
|
|
11
|
-
queryClient.invalidateQueries(
|
|
12
|
-
['EVALUATION_CYCLE_QUERY']);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
3
|
-
import { putAuth0 } from '../../../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const finishEvaluationCycleQueryHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
8
|
-
return putAuth0(`/APE/EvaluationCycle/Finish/${data.Id}`, undefined, data)
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: EvaluationCycle) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['EVALUATION_CYCLE_ID_QUERY'], data);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { ImportData } from "../../../../interfaces";
|
|
3
|
-
import { get } from "../../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface getIntegrationByNameProps extends UseQueryOptions<ImportData> {
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const getIntegrationByName = ({ name }: getIntegrationByNameProps) => {
|
|
10
|
-
return useQuery(
|
|
11
|
-
['GET_MIMO_INTEGRATION_BY_NAME', name],
|
|
12
|
-
() => get<ImportData>('/MIMO/IntegrationData/ByName', {
|
|
13
|
-
pName: name,
|
|
14
|
-
}),
|
|
15
|
-
{
|
|
16
|
-
keepPreviousData: true,
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { ProductIntegrationHistory } from "../../../../interfaces";
|
|
3
|
-
import { get } from "../../../../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface getIntegrationProductHistoryProps extends UseQueryOptions<ProductIntegrationHistory > {
|
|
6
|
-
page: number;
|
|
7
|
-
records: number;
|
|
8
|
-
sortBy: string;
|
|
9
|
-
sortDirection: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const getIntegrationProductHistory = ({ page, records, sortBy, sortDirection }: getIntegrationProductHistoryProps) => {
|
|
13
|
-
return useQuery(
|
|
14
|
-
['GET_MIMO_INTEGRATION_PROD_HISTORY', page, records, sortBy, sortDirection],
|
|
15
|
-
() => get<ProductIntegrationHistory >('/MIMO/Shopify/Product/ProductIntegrationHistory', {
|
|
16
|
-
pPage: page,
|
|
17
|
-
pRecords: records,
|
|
18
|
-
pSortBy: sortBy,
|
|
19
|
-
pSortDirection: sortDirection,
|
|
20
|
-
}),
|
|
21
|
-
{
|
|
22
|
-
keepPreviousData: true,
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { get } from "../../../../services/ApiService";
|
|
3
|
-
import { ErrorHistoryItem } from "../../../../interfaces";
|
|
4
|
-
|
|
5
|
-
interface GetErrorHistoryProps extends UseQueryOptions<ErrorHistoryItem[]> {
|
|
6
|
-
query?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const useErrorHistory = (options?: GetErrorHistoryProps) => {
|
|
10
|
-
const { query, ...restOptions } = options || {};
|
|
11
|
-
|
|
12
|
-
return useQuery(
|
|
13
|
-
["MIMO_ERROR_HISTORY", query],
|
|
14
|
-
() =>
|
|
15
|
-
get<ErrorHistoryItem[]>(
|
|
16
|
-
"/MIMO/ErrorHistory",
|
|
17
|
-
query ? { pTerms: query } : {}
|
|
18
|
-
),
|
|
19
|
-
restOptions
|
|
20
|
-
);
|
|
21
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { get} from "../../../../services/ApiService";
|
|
3
|
-
import { IntegrationData } from "../../../../interfaces";
|
|
4
|
-
|
|
5
|
-
export const useIntegrationDataQuery = () => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['MIMO_INTEGRATION_DATA'],
|
|
8
|
-
() => get<IntegrationData[]>('/MIMO/IntegrationData/ALL'),
|
|
9
|
-
{
|
|
10
|
-
enabled: true,
|
|
11
|
-
|
|
12
|
-
retry: 1
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
};
|