@os1-platform/dispatch-mobile 1.0.8 → 2.0.0
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/README.md +310 -74
- package/android/.gradle/7.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0.2/gc.properties +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +0 -1
- package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
- package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
- package/lib/commonjs/@types/assets/index.d.js +2 -0
- package/lib/commonjs/@types/assets/index.d.js.map +1 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +50 -43
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +10 -48
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +66 -18
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
- package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +212 -95
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -25
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +65 -29
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +74 -30
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +139 -50
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -17
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +5 -14
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -15
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +11 -36
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +73 -48
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +76 -29
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +138 -32
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +741 -0
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +43 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/commonjs/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -29
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +109 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/{scanner/returns/ReasonDropDown.js → scan/sub_components/ERDropDown.js} +72 -55
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +762 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +333 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +63 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/commonjs/components/utils/index.js +14 -0
- package/lib/commonjs/components/utils/index.js.map +1 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +88 -0
- package/lib/commonjs/components/widgets/Card.js.map +1 -0
- package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
- package/lib/commonjs/components/widgets/IconButton.js +34 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
- package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +74 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js +48 -40
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +0 -2
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js +17 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +7 -3
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js +3 -5
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -8
- package/lib/commonjs/errors/BaseError.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js +7 -6
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +23 -0
- package/lib/commonjs/events/EventDispatcher.js.map +1 -0
- package/lib/commonjs/events/EventListener.js +20 -0
- package/lib/commonjs/events/EventListener.js.map +1 -0
- package/lib/commonjs/events/constants.js +15 -0
- package/lib/commonjs/events/constants.js.map +1 -0
- package/lib/commonjs/events/index.js +11 -0
- package/lib/commonjs/events/index.js.map +1 -0
- package/lib/commonjs/events/interface.js +2 -0
- package/lib/commonjs/events/interface.js.map +1 -0
- package/lib/commonjs/index.js +40 -35
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +328 -272
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +23 -0
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/commonjs/manager/location/LocationManager.js +3 -20
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +23 -37
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +26 -46
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +48 -9
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js +17 -0
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/database.js +28 -12
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -36
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +8 -26
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +19 -58
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +414 -29
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +208 -103
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +157 -36
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js +4 -5
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/ReasonCodes.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js +4 -5
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +7 -35
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +2 -13
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +10 -8
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js +0 -2
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +6 -21
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/res/strings.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -15
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +3 -8
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +10 -8
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +58 -25
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +67 -27
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +15 -16
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -23
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +30 -17
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +17 -13
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +17 -20
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +43 -31
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +10 -19
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +105 -17
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +16 -14
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +14 -11
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +38 -17
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +28 -29
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +41 -19
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +121 -0
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +64 -38
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +55 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +24 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +129 -0
- package/lib/commonjs/utils/ApiUtils.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +111 -41
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +10 -29
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +3 -19
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -31
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +61 -43
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +59 -11
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -21
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +0 -5
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +53 -0
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
- package/lib/commonjs/utils/hooks/useTimer.js +44 -0
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +6 -18
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +87 -31
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +8 -11
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/@types/assets/index.d.js +2 -0
- package/lib/module/@types/assets/index.d.js.map +1 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js +50 -32
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -5
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +68 -10
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
- package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +214 -86
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -15
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +68 -15
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +75 -20
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +142 -37
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -6
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +6 -4
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -6
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +11 -11
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +77 -18
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +64 -11
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +72 -11
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +141 -25
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +732 -0
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js +17 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scan/constants.js +7 -0
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/module/components/executiontasks/scan/interfaces.js +33 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/module/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -16
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +101 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +107 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +726 -0
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +324 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +53 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +5 -9
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/module/components/utils/index.js +8 -0
- package/lib/module/components/utils/index.js.map +1 -0
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +80 -0
- package/lib/module/components/widgets/Card.js.map +1 -0
- package/lib/module/components/widgets/GoBackModal.js +40 -0
- package/lib/module/components/widgets/GoBackModal.js.map +1 -0
- package/lib/module/components/widgets/IconButton.js +26 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -0
- package/lib/module/components/widgets/ModalWidget.js +92 -0
- package/lib/module/components/widgets/ModalWidget.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +0 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +66 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -0
- package/lib/module/components/widgets/SnackBarCustom.js +46 -20
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +84 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/module/components/widgets/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -1
- package/lib/module/config/DispatchSDKConfig.js +3 -4
- package/lib/module/config/DispatchSDKConfig.js.map +1 -1
- package/lib/module/constants/apiConstants.js +9 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +4 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/constants/statuscode.js +3 -5
- package/lib/module/constants/statuscode.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -6
- package/lib/module/errors/BaseError.js.map +1 -1
- package/lib/module/errors/ErrorCodes.js +5 -5
- package/lib/module/errors/ErrorCodes.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +16 -0
- package/lib/module/events/EventDispatcher.js.map +1 -0
- package/lib/module/events/EventListener.js +13 -0
- package/lib/module/events/EventListener.js.map +1 -0
- package/lib/module/events/constants.js +8 -0
- package/lib/module/events/constants.js.map +1 -0
- package/lib/module/events/index.js +3 -0
- package/lib/module/events/index.js.map +1 -0
- package/lib/module/events/interface.js +2 -0
- package/lib/module/events/interface.js.map +1 -0
- package/lib/module/index.js +9 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +334 -247
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +22 -0
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/module/manager/location/LocationManager.js +3 -14
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +23 -15
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +19 -0
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +26 -26
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +41 -7
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/constants.js +6 -0
- package/lib/module/manager/syncmanager/constants.js.map +1 -0
- package/lib/module/manager/syncmanager/database.js +27 -3
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -24
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +8 -20
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +19 -41
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +415 -22
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +209 -82
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +152 -24
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js +3 -4
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/ReasonCodes.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +22 -29
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js +3 -4
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +3 -18
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js +6 -26
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +2 -6
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +10 -3
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +7 -17
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/res/strings.js.map +1 -1
- package/lib/module/resources/Login.js +4 -13
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js +3 -6
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +9 -7
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +57 -14
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +68 -15
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +17 -6
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -8
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +32 -7
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +16 -6
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +19 -9
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +45 -19
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +3 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +104 -9
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +15 -6
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +15 -5
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +37 -9
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +30 -17
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +40 -12
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +111 -0
- package/lib/module/ui/screens/ScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +64 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +45 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +23 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +116 -0
- package/lib/module/utils/ApiUtils.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +110 -31
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +9 -21
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -15
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +2 -15
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +62 -14
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +63 -3
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +86 -7
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +0 -3
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useModal.js +43 -0
- package/lib/module/utils/hooks/useModal.js.map +1 -0
- package/lib/module/utils/hooks/useTimer.js +37 -0
- package/lib/module/utils/hooks/useTimer.js.map +1 -0
- package/lib/module/utils/loginHelper.js +6 -16
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +86 -29
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +8 -6
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -7
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
- package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +8 -7
- package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +3 -3
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
- package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +17 -11
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +86 -0
- package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +94 -0
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/{scanner → scan/sub_components}/CScanner.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +37 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
- package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
- package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +6 -6
- package/lib/typescript/components/utils/index.d.ts +2 -0
- package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/Card.d.ts +17 -0
- package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
- package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
- package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +10 -5
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +7 -0
- package/lib/typescript/constants/constants.d.ts +4 -2
- package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
- package/lib/typescript/events/EventDispatcher.d.ts +3 -0
- package/lib/typescript/events/EventListener.d.ts +5 -0
- package/lib/typescript/events/constants.d.ts +7 -0
- package/lib/typescript/events/index.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -0
- package/lib/typescript/index.d.ts +12 -9
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +38 -17
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
- package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +1 -0
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +80 -4
- package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +15 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +4 -2
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +6 -3
- package/lib/typescript/models/DispatchModels.d.ts +59 -5
- package/lib/typescript/models/ReasonCodes.d.ts +5 -0
- package/lib/typescript/models/auth.d.ts +1 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +44 -20
- package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
- package/lib/typescript/models/sdk.d.ts +12 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +2 -2
- package/lib/typescript/network/NetworkUtils.d.ts +1 -5
- package/lib/typescript/styles/SdkColors.d.ts +2 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +50 -5
- package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -2
- package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +14 -0
- package/lib/typescript/utils/ApiUtils.d.ts +61 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +10 -4
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -3
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
- package/lib/typescript/utils/storage.d.ts +32 -0
- package/package.json +26 -26
- package/tsconfig.json +9 -9
- package/file_unzip.js +0 -5
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -28
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -32
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -193
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -20
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -49
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -107
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -317
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -276
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -118
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -158
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -9
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -38
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -86
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -287
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -80
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -253
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -93
- package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
- package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
- package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
- package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
- package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
- package/mobile-execution-lib-0.6.4.tgz +0 -0
|
@@ -5,7 +5,6 @@ import { CommonStyles, deliverETStyles } from '../../../styles/executionTasks/Co
|
|
|
5
5
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
6
6
|
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
7
7
|
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
8
|
-
|
|
9
8
|
const ListItem = _ref => {
|
|
10
9
|
let {
|
|
11
10
|
lineItem
|
|
@@ -17,7 +16,6 @@ const ListItem = _ref => {
|
|
|
17
16
|
subtitle: lineItem.count ? lineItem.count + ' Qty.' : ''
|
|
18
17
|
}), lineItem.productDescription && /*#__PURE__*/React.createElement(Card.Content, null, /*#__PURE__*/React.createElement(Paragraph, null, lineItem.productDescription)));
|
|
19
18
|
};
|
|
20
|
-
|
|
21
19
|
const renderItem = _ref2 => {
|
|
22
20
|
let {
|
|
23
21
|
item
|
|
@@ -26,7 +24,6 @@ const renderItem = _ref2 => {
|
|
|
26
24
|
lineItem: item
|
|
27
25
|
});
|
|
28
26
|
};
|
|
29
|
-
|
|
30
27
|
const PickupET = props => {
|
|
31
28
|
const [remarks, setRemarks] = useState('');
|
|
32
29
|
const [disableNext, setDisableNext] = useState(false);
|
|
@@ -56,7 +53,9 @@ const PickupET = props => {
|
|
|
56
53
|
}],
|
|
57
54
|
mode: 'outlined',
|
|
58
55
|
onPress: async () => {
|
|
59
|
-
|
|
56
|
+
var _props$applicableReas;
|
|
57
|
+
props.onSubmitET({
|
|
58
|
+
...(await getBaseETResponse(EntityCode.PICKUP, false, getEventCodeByET(ExecutionTaskID.PICKUP, false, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.failure), '', props.mergedObjectiveId, ExecutionTaskID.PICKUP))
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
61
|
}, "Cancel"), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -68,10 +67,11 @@ const PickupET = props => {
|
|
|
68
67
|
}],
|
|
69
68
|
mode: 'contained',
|
|
70
69
|
onPress: async () => {
|
|
70
|
+
var _props$applicableReas2;
|
|
71
71
|
setDisableNext(true);
|
|
72
72
|
props.onSubmitET({
|
|
73
73
|
remark: remarks,
|
|
74
|
-
...(await getBaseETResponse(EntityCode.PICKUP, true, getEventCodeByET(ExecutionTaskID.PICKUP, true), ''))
|
|
74
|
+
...(await getBaseETResponse(EntityCode.PICKUP, true, getEventCodeByET(ExecutionTaskID.PICKUP, true, (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.success), '', props.mergedObjectiveId, ExecutionTaskID.PICKUP))
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
}, "Pickup"))));else {
|
|
@@ -80,6 +80,5 @@ const PickupET = props => {
|
|
|
80
80
|
}, "No Item(s) found for Pickup"));
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
-
|
|
84
83
|
export default PickupET;
|
|
85
84
|
//# sourceMappingURL=PickupET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlatList","View","React","useState","Button","Card","Paragraph","TextInput","Title","CommonStyles","deliverETStyles","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","ListItem","lineItem","item","skuId","count","productDescription","renderItem","PickupET","props","remarks","setRemarks","disableNext","setDisableNext","items","length","mainContainer","padding","message","input","text","footerButtonStyles","cancelButtonLabel","cancelButton","marginEnd","flex","onSubmitET","PICKUP","nextButtonLabel","nextButton","marginStart","remark","errorText"],"sources":["PickupET.tsx"],"sourcesContent":["import { FlatList, View } from 'react-native';\nimport React, { useState } from 'react';\nimport type { PickupETInput } from './PickpSchema';\nimport { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';\nimport {\n CommonStyles,\n deliverETStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { LineItem } from '../deliver/DeliverETInput';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <Card style={deliverETStyles.item}>\n <Card.Title\n title={lineItem.skuId}\n subtitle={lineItem.count ? lineItem.count + ' Qty.' : ''}\n />\n {lineItem.productDescription && (\n <Card.Content>\n <Paragraph>{lineItem.productDescription}</Paragraph>\n </Card.Content>\n )}\n </Card>\n);\n\nconst renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst PickupET = (props: PickupETInput) => {\n const [remarks, setRemarks] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n if (props?.items && props.items.length > 0)\n return (\n <View style={[CommonStyles.mainContainer, { padding: 10 }]}>\n <FlatList\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n <View>\n {props.message && props.message.length > 0 && (\n <Paragraph>{props.message}</Paragraph>\n )}\n <TextInput\n multiline={false}\n autoComplete={'off'}\n style={deliverETStyles.input}\n label=\"Enter Pickup remarks\"\n value={remarks}\n mode={'outlined'}\n onChangeText={(text) => setRemarks(text)}\n />\n <View style={deliverETStyles.footerButtonStyles}>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginEnd: 5, flex: 1 }]}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(ExecutionTaskID.PICKUP
|
|
1
|
+
{"version":3,"names":["FlatList","View","React","useState","Button","Card","Paragraph","TextInput","Title","CommonStyles","deliverETStyles","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","ListItem","_ref","lineItem","createElement","style","item","title","skuId","subtitle","count","productDescription","Content","renderItem","_ref2","PickupET","props","remarks","setRemarks","disableNext","setDisableNext","items","length","mainContainer","padding","data","keyExtractor","message","multiline","autoComplete","input","label","value","mode","onChangeText","text","footerButtonStyles","labelStyle","cancelButtonLabel","cancelButton","marginEnd","flex","onPress","_props$applicableReas","onSubmitET","PICKUP","applicableReasons","failure","mergedObjectiveId","disabled","nextButtonLabel","nextButton","marginStart","_props$applicableReas2","remark","success","errorText"],"sources":["PickupET.tsx"],"sourcesContent":["import { FlatList, View } from 'react-native';\nimport React, { useState } from 'react';\nimport type { PickupETInput } from './PickpSchema';\nimport { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';\nimport {\n CommonStyles,\n deliverETStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { LineItem } from '../deliver/DeliverETInput';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <Card style={deliverETStyles.item}>\n <Card.Title\n title={lineItem.skuId}\n subtitle={lineItem.count ? lineItem.count + ' Qty.' : ''}\n />\n {lineItem.productDescription && (\n <Card.Content>\n <Paragraph>{lineItem.productDescription}</Paragraph>\n </Card.Content>\n )}\n </Card>\n);\n\nconst renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst PickupET = (props: PickupETInput) => {\n const [remarks, setRemarks] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n if (props?.items && props.items.length > 0)\n return (\n <View style={[CommonStyles.mainContainer, { padding: 10 }]}>\n <FlatList\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n <View>\n {props.message && props.message.length > 0 && (\n <Paragraph>{props.message}</Paragraph>\n )}\n <TextInput\n multiline={false}\n autoComplete={'off'}\n style={deliverETStyles.input}\n label=\"Enter Pickup remarks\"\n value={remarks}\n mode={'outlined'}\n onChangeText={(text) => setRemarks(text)}\n />\n <View style={deliverETStyles.footerButtonStyles}>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginEnd: 5, flex: 1 }]}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginStart: 5, flex: 1 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableNext(true);\n props.onSubmitET({\n remark: remarks,\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n Pickup\n </Button>\n </View>\n </View>\n </View>\n );\n else {\n return (\n <View>\n <Title style={deliverETStyles.errorText}>\n No Item(s) found for Pickup\n </Title>\n </View>\n );\n }\n};\n\nexport default PickupET;\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC7C,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,MAAM,EAAEC,IAAI,EAAEC,SAAS,EAAEC,SAAS,EAAEC,KAAK,QAAQ,oBAAoB;AAC9E,SACEC,YAAY,EACZC,eAAe,QACV,6CAA6C;AACpD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,gBAAgB,QAAQ,mDAAmD;AACpF,SACEC,UAAU,EACVC,eAAe,QACV,oCAAoC;AAG3C,MAAMC,QAAQ,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAiC,CAAC,GAAAD,IAAA;EAAA,oBACpDd,KAAA,CAAAgB,aAAA,CAACb,IAAI;IAACc,KAAK,EAAET,eAAe,CAACU;EAAK,gBAChClB,KAAA,CAAAgB,aAAA,CAACb,IAAI,CAACG,KAAK;IACTa,KAAK,EAAEJ,QAAQ,CAACK,KAAM;IACtBC,QAAQ,EAAEN,QAAQ,CAACO,KAAK,GAAGP,QAAQ,CAACO,KAAK,GAAG,OAAO,GAAG;EAAG,CAC1D,CAAC,EACDP,QAAQ,CAACQ,kBAAkB,iBAC1BvB,KAAA,CAAAgB,aAAA,CAACb,IAAI,CAACqB,OAAO,qBACXxB,KAAA,CAAAgB,aAAA,CAACZ,SAAS,QAAEW,QAAQ,CAACQ,kBAA8B,CACvC,CAEZ,CAAC;AAAA,CACR;AAED,MA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M,EACjB,IAAI,EACJ/C,gBAAgB,CACdE,eAAe,CAAC6C,MAAM,EACtB,IAAI,GAAAQ,sBAAA,GACJrC,KAAK,CAAC8B,iBAAiB,cAAAO,sBAAA,uBAAvBA,sBAAA,CAAyBE,OAC3B,CAAC,EACD,EAAE,EACFvC,KAAK,CAACgC,iBAAiB,EACvBhD,eAAe,CAAC6C,MAClB,CAAC;MACH,CAAC,CAAC;IACJ;EAAE,GACH,QAEO,CACJ,CACF,CACF,CAAC,CACP,KACC;IACH,oBACEzD,KAAA,CAAAgB,aAAA,CAACjB,IAAI,qBACHC,KAAA,CAAAgB,aAAA,CAACV,KAAK;MAACW,KAAK,EAAET,eAAe,CAAC4D;IAAU,GAAC,6BAElC,CACH,CAAC;EAEX;AACF,CAAC;AAED,eAAezC,QAAQ"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React, { useState } from 'react';
|
|
3
|
-
import { Button,
|
|
4
|
-
import { CommonStyles, DeliverPickupStyles } from '../../../styles/executionTasks/CommonStyles';
|
|
1
|
+
import { BackHandler, StyleSheet, Text, View, Modal } from 'react-native';
|
|
2
|
+
import React, { useState, useLayoutEffect } from 'react';
|
|
3
|
+
import { Button, Portal, Provider } from 'react-native-paper';
|
|
4
|
+
import { CommonStyles, DeliverPickupStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
5
5
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
6
6
|
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
7
7
|
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
8
|
-
import { DEFAULT_PICKUP_MESSAGE, DEFAULT_PICKUP_TITLE } from '../../../constants/constants';
|
|
9
|
-
|
|
8
|
+
import { DEFAULT_PICKUP_MESSAGE, DEFAULT_PICKUP_TITLE, GO_BACK_EVENT_CODE } from '../../../constants/constants';
|
|
9
|
+
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
10
|
+
import { hasGoBackConnector } from '../../../components/utils';
|
|
11
|
+
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
12
|
+
import { useFocusEffect } from '@react-navigation/native';
|
|
10
13
|
const ListItem = _ref => {
|
|
11
14
|
let {
|
|
12
15
|
lineItem
|
|
@@ -19,7 +22,6 @@ const ListItem = _ref => {
|
|
|
19
22
|
style: DeliverPickupStyles.itemTextStyle
|
|
20
23
|
}, `Order ID: ${lineItem.skuId}`));
|
|
21
24
|
};
|
|
22
|
-
|
|
23
25
|
const getMessage = (pickupCount, message) => {
|
|
24
26
|
try {
|
|
25
27
|
const msg = message || DEFAULT_PICKUP_MESSAGE;
|
|
@@ -28,7 +30,6 @@ const getMessage = (pickupCount, message) => {
|
|
|
28
30
|
return message || '';
|
|
29
31
|
}
|
|
30
32
|
};
|
|
31
|
-
|
|
32
33
|
export const renderItem = _ref2 => {
|
|
33
34
|
let {
|
|
34
35
|
item
|
|
@@ -37,27 +38,94 @@ export const renderItem = _ref2 => {
|
|
|
37
38
|
lineItem: item
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
|
-
|
|
41
41
|
const SLPickupET = props => {
|
|
42
42
|
const [disableProceed, setDisableProceed] = useState(false);
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
const [showBackModal, setShowBackModal] = useState(false);
|
|
44
|
+
const [showPickupModal, setShowPickupModal] = useState(true);
|
|
45
|
+
|
|
46
|
+
// Handle back-button click
|
|
47
|
+
useFocusEffect(React.useCallback(() => {
|
|
48
|
+
const onBackPress = () => {
|
|
49
|
+
var _props$taskMeta;
|
|
50
|
+
if ((_props$taskMeta = props.taskMeta) !== null && _props$taskMeta !== void 0 && _props$taskMeta.enableGoBack && hasGoBackConnector(props.applicableReasons)) {
|
|
51
|
+
setShowBackModal(true);
|
|
52
|
+
return true;
|
|
53
|
+
} else {
|
|
54
|
+
props.navigation.goBack();
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
59
|
+
return () => BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
60
|
+
}, []));
|
|
61
|
+
useLayoutEffect(() => {
|
|
62
|
+
props.navigation.setOptions({
|
|
63
|
+
title: props.title,
|
|
64
|
+
headerLeft: () => {
|
|
65
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
66
|
+
onPress: () => {
|
|
67
|
+
var _props$taskMeta2;
|
|
68
|
+
if ((_props$taskMeta2 = props.taskMeta) !== null && _props$taskMeta2 !== void 0 && _props$taskMeta2.enableGoBack && hasGoBackConnector(props.applicableReasons)) setShowBackModal(true);else props.navigation.goBack();
|
|
69
|
+
},
|
|
70
|
+
name: "arrow-back",
|
|
71
|
+
color: 'black',
|
|
72
|
+
size: 25,
|
|
73
|
+
style: {
|
|
74
|
+
paddingRight: 15,
|
|
75
|
+
paddingTop: 5
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}, [props.navigation, props.title]);
|
|
81
|
+
const renderModal = () => {
|
|
82
|
+
return /*#__PURE__*/React.createElement(GoBackModal, {
|
|
83
|
+
showModal: showBackModal,
|
|
84
|
+
setShowModal: setShowBackModal,
|
|
85
|
+
onSuccess: async () => {
|
|
86
|
+
props.onSubmitET({
|
|
87
|
+
...(await getBaseETResponse(EntityCode.PICKUP, false, GO_BACK_EVENT_CODE, '', props.mergedObjectiveId, ExecutionTaskID.PICKUP))
|
|
88
|
+
});
|
|
89
|
+
setShowBackModal(false);
|
|
90
|
+
},
|
|
91
|
+
onFailure: () => setShowBackModal(false)
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, renderModal()), /*#__PURE__*/React.createElement(View, {
|
|
95
|
+
style: styles.container
|
|
45
96
|
}, /*#__PURE__*/React.createElement(Modal, {
|
|
46
|
-
visible:
|
|
47
|
-
|
|
48
|
-
|
|
97
|
+
visible: showPickupModal,
|
|
98
|
+
onRequestClose: () => {
|
|
99
|
+
var _props$taskMeta3;
|
|
100
|
+
if ((_props$taskMeta3 = props.taskMeta) !== null && _props$taskMeta3 !== void 0 && _props$taskMeta3.enableGoBack && hasGoBackConnector(props.applicableReasons)) {
|
|
101
|
+
setShowPickupModal(false);
|
|
102
|
+
setShowBackModal(true);
|
|
103
|
+
return true;
|
|
104
|
+
} else {
|
|
105
|
+
setShowPickupModal(false);
|
|
106
|
+
props.navigation.goBack();
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
111
|
+
style: styles.modalView
|
|
112
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
113
|
+
style: styles.modalStyle
|
|
49
114
|
}, /*#__PURE__*/React.createElement(View, {
|
|
50
|
-
style:
|
|
115
|
+
style: styles.modalBody
|
|
51
116
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
52
117
|
style: DeliverPickupStyles.titleText
|
|
53
118
|
}, props.title || DEFAULT_PICKUP_TITLE), /*#__PURE__*/React.createElement(Text, {
|
|
54
119
|
style: DeliverPickupStyles.messageText
|
|
55
|
-
}, getMessage(props.pickupCount, props.message)), props.pickupCount === 1 && /*#__PURE__*/React.createElement(
|
|
56
|
-
style:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
120
|
+
}, getMessage(props.pickupCount, props.message)), props.pickupCount === 1 && props.items.length ? /*#__PURE__*/React.createElement(View, {
|
|
121
|
+
style: {
|
|
122
|
+
justifyContent: 'center'
|
|
123
|
+
}
|
|
124
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
125
|
+
style: DeliverPickupStyles.itemTextStyle
|
|
126
|
+
}, `Order ID: ${props.items[0].skuId}`)) : null), /*#__PURE__*/React.createElement(View, {
|
|
127
|
+
style: styles.bottomButtons
|
|
128
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
61
129
|
disabled: disableProceed,
|
|
62
130
|
uppercase: false,
|
|
63
131
|
labelStyle: CommonStyles.nextButtonLabel,
|
|
@@ -66,10 +134,11 @@ const SLPickupET = props => {
|
|
|
66
134
|
}],
|
|
67
135
|
mode: 'contained',
|
|
68
136
|
onPress: async () => {
|
|
137
|
+
var _props$applicableReas;
|
|
69
138
|
setDisableProceed(true);
|
|
70
139
|
props.onSubmitET({
|
|
71
140
|
remark: '',
|
|
72
|
-
...(await getBaseETResponse(EntityCode.PICKUP, true, getEventCodeByET(ExecutionTaskID.PICKUP, true), ''))
|
|
141
|
+
...(await getBaseETResponse(EntityCode.PICKUP, true, getEventCodeByET(ExecutionTaskID.PICKUP, true, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.success), '', props.mergedObjectiveId, ExecutionTaskID.PICKUP))
|
|
73
142
|
});
|
|
74
143
|
}
|
|
75
144
|
}, "Yes"), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -81,14 +150,61 @@ const SLPickupET = props => {
|
|
|
81
150
|
mode: "outlined",
|
|
82
151
|
labelStyle: CommonStyles.cancelButtonLabel,
|
|
83
152
|
onPress: async () => {
|
|
153
|
+
var _props$applicableReas2;
|
|
84
154
|
setDisableProceed(true);
|
|
85
155
|
props.onSubmitET({
|
|
86
156
|
remark: '',
|
|
87
|
-
...(await getBaseETResponse(EntityCode.PICKUP, false, getEventCodeByET(ExecutionTaskID.PICKUP, false), ''))
|
|
157
|
+
...(await getBaseETResponse(EntityCode.PICKUP, false, getEventCodeByET(ExecutionTaskID.PICKUP, false, (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.failure), '', props.mergedObjectiveId, ExecutionTaskID.PICKUP))
|
|
88
158
|
});
|
|
89
159
|
}
|
|
90
|
-
}, "No"))))));
|
|
160
|
+
}, "No")))))));
|
|
91
161
|
};
|
|
92
|
-
|
|
93
162
|
export default SLPickupET;
|
|
163
|
+
const styles = StyleSheet.create({
|
|
164
|
+
container: {
|
|
165
|
+
flex: 1
|
|
166
|
+
},
|
|
167
|
+
modalView: {
|
|
168
|
+
flex: 1,
|
|
169
|
+
justifyContent: 'center',
|
|
170
|
+
alignItems: 'center',
|
|
171
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)'
|
|
172
|
+
},
|
|
173
|
+
modalStyle: {
|
|
174
|
+
backgroundColor: 'white',
|
|
175
|
+
padding: 20,
|
|
176
|
+
borderRadius: 8,
|
|
177
|
+
elevation: 5
|
|
178
|
+
},
|
|
179
|
+
modalBody: {
|
|
180
|
+
paddingHorizontal: 40,
|
|
181
|
+
alignItems: 'center'
|
|
182
|
+
},
|
|
183
|
+
bottomButtons: {
|
|
184
|
+
marginTop: 12
|
|
185
|
+
},
|
|
186
|
+
returnView: {
|
|
187
|
+
marginTop: 15,
|
|
188
|
+
marginBottom: 15,
|
|
189
|
+
flexDirection: 'row'
|
|
190
|
+
},
|
|
191
|
+
subTitle: {
|
|
192
|
+
fontFamily: Fonts.IBMPlexSans_400Regular,
|
|
193
|
+
fontStyle: 'normal',
|
|
194
|
+
fontWeight: '400',
|
|
195
|
+
fontSize: 14,
|
|
196
|
+
flex: 1,
|
|
197
|
+
textAlign: 'left',
|
|
198
|
+
lineHeight: 28,
|
|
199
|
+
color: '#111111'
|
|
200
|
+
},
|
|
201
|
+
title: {
|
|
202
|
+
textAlign: 'right',
|
|
203
|
+
fontSize: 14,
|
|
204
|
+
lineHeight: 28,
|
|
205
|
+
fontStyle: 'normal',
|
|
206
|
+
color: '#111111',
|
|
207
|
+
fontFamily: Fonts.IBMPlexSans_600SemiBold
|
|
208
|
+
}
|
|
209
|
+
});
|
|
94
210
|
//# sourceMappingURL=SLPickupET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlatList","Text","View","React","useState","Button","Modal","Portal","Provider","CommonStyles","DeliverPickupStyles","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","DEFAULT_PICKUP_MESSAGE","DEFAULT_PICKUP_TITLE","ListItem","lineItem","justifyContent","itemTextStyle","skuId","getMessage","pickupCount","message","msg","replace","toString","error","renderItem","item","SLPickupET","props","disableProceed","setDisableProceed","mainContainer","modalContent","modalView","titleText","title","messageText","flatList","items","nextButtonLabel","nextButton","marginTop","onSubmitET","remark","PICKUP","cancelButton","cancelButtonLabel"],"sources":["SLPickupET.tsx"],"sourcesContent":["import { FlatList, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Modal, Portal, Provider } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { PickupETInput } from './PickpSchema';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_PICKUP_MESSAGE,\n DEFAULT_PICKUP_TITLE,\n} from '../../../constants/constants';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${lineItem.skuId}`}</Text>\n </View>\n);\n\nconst getMessage = (\n pickupCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_PICKUP_MESSAGE;\n return msg.replace('$', pickupCount?.toString() || '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst SLPickupET = (props: PickupETInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_PICKUP_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.pickupCount, props.message)}\n </Text>\n {props.pickupCount === 1 && (\n <FlatList\n style={DeliverPickupStyles.flatList}\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n )}\n <Button\n disabled={disableProceed}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(ExecutionTaskID.PICKUP, true),\n ''\n )),\n });\n }}\n >\n Yes\n </Button>\n <Button\n disabled={disableProceed}\n uppercase={false}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(ExecutionTaskID.PICKUP, false),\n ''\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default SLPickupET;\n"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,IAAnB,EAAyBC,IAAzB,QAAqC,cAArC;AACA,OAAOC,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,SAASC,MAAT,EAAiBC,KAAjB,EAAwBC,MAAxB,EAAgCC,QAAhC,QAAgD,oBAAhD;AAEA,SACEC,YADF,EAEEC,mBAFF,QAGO,6CAHP;AAIA,SAASC,iBAAT,QAAkC,8BAAlC;AACA,SAASC,gBAAT,QAAiC,mDAAjC;AACA,SACEC,UADF,EAEEC,eAFF,QAGO,oCAHP;AAMA,SACEC,sBADF,EAEEC,oBAFF,QAGO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,EADO;QAEf,IAAI,MAAMpC,iBAAiB,CACzBE,UAAU,CAACmC,MADc,EAEzB,KAFyB,EAGzBpC,gBAAgB,CAACE,eAAe,CAACkC,MAAjB,EAAyB,KAAzB,CAHS,EAIzB,EAJyB,CAA3B;MAFe,CAAjB;IASD;EAjBH,QApCF,CALF,CADF,CADF,CADF,CADF;AAwED,CA1ED;;AA4EA,eAAejB,UAAf"}
|
|
1
|
+
{"version":3,"names":["BackHandler","StyleSheet","Text","View","Modal","React","useState","useLayoutEffect","Button","Portal","Provider","CommonStyles","DeliverPickupStyles","Fonts","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","DEFAULT_PICKUP_MESSAGE","DEFAULT_PICKUP_TITLE","GO_BACK_EVENT_CODE","Icon","hasGoBackConnector","GoBackModal","useFocusEffect","ListItem","_ref","lineItem","createElement","style","justifyContent","itemTextStyle","skuId","getMessage","pickupCount","message","msg","replace","toString","error","renderItem","_ref2","item","SLPickupET","props","disableProceed","setDisableProceed","showBackModal","setShowBackModal","showPickupModal","setShowPickupModal","useCallback","onBackPress","_props$taskMeta","taskMeta","enableGoBack","applicableReasons","navigation","goBack","addEventListener","removeEventListener","setOptions","title","headerLeft","onPress","_props$taskMeta2","name","color","size","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","onSubmitET","PICKUP","mergedObjectiveId","onFailure","styles","container","visible","onRequestClose","_props$taskMeta3","modalView","modalStyle","modalBody","titleText","messageText","items","length","bottomButtons","disabled","uppercase","labelStyle","nextButtonLabel","nextButton","marginTop","mode","_props$applicableReas","remark","success","cancelButton","cancelButtonLabel","_props$applicableReas2","failure","create","flex","alignItems","backgroundColor","padding","borderRadius","elevation","paddingHorizontal","returnView","marginBottom","flexDirection","subTitle","fontFamily","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","textAlign","lineHeight","IBMPlexSans_600SemiBold"],"sources":["SLPickupET.tsx"],"sourcesContent":["import { BackHandler, StyleSheet, Text, View, Modal } from 'react-native';\nimport React, { useState, useLayoutEffect } from 'react';\nimport { Button, Portal, Provider } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { PickupETInput } from './PickpSchema';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_PICKUP_MESSAGE,\n DEFAULT_PICKUP_TITLE,\n GO_BACK_EVENT_CODE,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport { hasGoBackConnector } from '../../../components/utils';\nimport GoBackModal from '../../../components/widgets/GoBackModal';\nimport { useFocusEffect } from '@react-navigation/native';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${lineItem.skuId}`}</Text>\n </View>\n);\n\nconst getMessage = (\n pickupCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_PICKUP_MESSAGE;\n return msg.replace('$', pickupCount?.toString() || '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst SLPickupET = (props: PickupETInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n const [showBackModal, setShowBackModal] = useState(false);\n const [showPickupModal, setShowPickupModal] = useState(true);\n\n // Handle back-button click\n useFocusEffect(\n React.useCallback(() => {\n const onBackPress = () => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowBackModal(true);\n return true;\n } else {\n props.navigation.goBack();\n return true;\n }\n };\n BackHandler.addEventListener('hardwareBackPress', onBackPress);\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', onBackPress);\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n )\n setShowBackModal(true);\n else props.navigation.goBack();\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n }, [props.navigation, props.title]);\n\n const renderModal = () => {\n return (\n <GoBackModal\n showModal={showBackModal}\n setShowModal={setShowBackModal}\n onSuccess={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n return (\n <Provider>\n <Portal>{renderModal()}</Portal>\n <View style={styles.container}>\n <Modal\n visible={showPickupModal}\n onRequestClose={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowPickupModal(false);\n setShowBackModal(true);\n return true;\n } else {\n setShowPickupModal(false);\n props.navigation.goBack();\n return true;\n }\n }}\n >\n <View style={styles.modalView}>\n <View style={styles.modalStyle}>\n <View style={styles.modalBody}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_PICKUP_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.pickupCount, props.message)}\n </Text>\n {props.pickupCount === 1 && props.items.length ? (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${props.items[0].skuId}`}</Text>\n </View>\n ) : null}\n </View>\n <View style={styles.bottomButtons}>\n <Button\n disabled={disableProceed}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n Yes\n </Button>\n <Button\n disabled={disableProceed}\n uppercase={false}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n </View>\n </Provider>\n );\n};\n\nexport default SLPickupET;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n modalView: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n modalStyle: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 8,\n elevation: 5,\n },\n modalBody: {\n paddingHorizontal: 40,\n alignItems: 'center',\n },\n bottomButtons: {\n marginTop: 12,\n },\n returnView: {\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n },\n subTitle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n },\n title: {\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC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