@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
|
@@ -4,29 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.renderItem = exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _reactNativePaper = require("react-native-paper");
|
|
13
|
-
|
|
14
10
|
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
15
|
-
|
|
16
11
|
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
17
|
-
|
|
18
12
|
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
19
|
-
|
|
20
13
|
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
-
|
|
22
14
|
var _utils = require("../../../utils/utils");
|
|
23
|
-
|
|
24
15
|
var _constants = require("../../../constants/constants");
|
|
25
|
-
|
|
16
|
+
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
17
|
+
var _GoBackModal = _interopRequireDefault(require("../../../components/widgets/GoBackModal"));
|
|
18
|
+
var _utils2 = require("../../../components/utils");
|
|
19
|
+
var _native = require("@react-navigation/native");
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
23
|
const ListItem = _ref => {
|
|
31
24
|
let {
|
|
32
25
|
lineItem
|
|
@@ -39,7 +32,6 @@ const ListItem = _ref => {
|
|
|
39
32
|
style: _CommonStyles.DeliverPickupStyles.itemTextStyle
|
|
40
33
|
}, `Order ID: ${lineItem.skuId}`));
|
|
41
34
|
};
|
|
42
|
-
|
|
43
35
|
const renderItem = _ref2 => {
|
|
44
36
|
let {
|
|
45
37
|
item
|
|
@@ -48,63 +40,116 @@ const renderItem = _ref2 => {
|
|
|
48
40
|
lineItem: item
|
|
49
41
|
});
|
|
50
42
|
};
|
|
51
|
-
|
|
52
43
|
exports.renderItem = renderItem;
|
|
53
|
-
|
|
54
44
|
const getMessage = (returnPackageCount, message) => {
|
|
55
45
|
try {
|
|
56
46
|
const msg = message || _constants.DEFAULT_DELIVER_MESSAGE;
|
|
57
|
-
return returnPackageCount && returnPackageCount
|
|
47
|
+
return returnPackageCount && returnPackageCount >= 1 ? msg.replace('$', (returnPackageCount === null || returnPackageCount === void 0 ? void 0 : returnPackageCount.toString()) || '') : msg.replace('$', '');
|
|
58
48
|
} catch (error) {
|
|
59
49
|
return message || '';
|
|
60
50
|
}
|
|
61
51
|
};
|
|
62
|
-
|
|
63
52
|
const DeliverET = props => {
|
|
64
53
|
const [pkgCount, setPkgCount] = (0, _react.useState)(props.confirmShipments ? '' : `${props.returnPackageCount}`);
|
|
65
54
|
const [inputError, setInputError] = (0, _react.useState)('');
|
|
66
55
|
const [disableYes, setDisableYes] = (0, _react.useState)(false);
|
|
67
56
|
const [disableConfirm, setDisableConfirm] = (0, _react.useState)(false);
|
|
57
|
+
const [showBackModal, setShowBackModal] = (0, _react.useState)(false);
|
|
58
|
+
(0, _react.useEffect)(() => setPkgCount(`${props.returnPackageCount}`), [props.returnPackageCount]);
|
|
59
|
+
const [showDeliverModal, setshowDeliverModal] = (0, _react.useState)(true);
|
|
68
60
|
|
|
61
|
+
// Handle back-button click when scanList was being viewed
|
|
62
|
+
(0, _native.useFocusEffect)(_react.default.useCallback(() => {
|
|
63
|
+
const onBackPress = () => {
|
|
64
|
+
var _props$taskMeta;
|
|
65
|
+
if ((_props$taskMeta = props.taskMeta) !== null && _props$taskMeta !== void 0 && _props$taskMeta.enableGoBack && (0, _utils2.hasGoBackConnector)(props.applicableReasons)) {
|
|
66
|
+
setShowBackModal(true);
|
|
67
|
+
return true;
|
|
68
|
+
} else {
|
|
69
|
+
props.navigation.goBack();
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
_reactNative.BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
74
|
+
return () => _reactNative.BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
75
|
+
}, []));
|
|
76
|
+
(0, _react.useLayoutEffect)(() => {
|
|
77
|
+
props.navigation.setOptions({
|
|
78
|
+
title: props.title,
|
|
79
|
+
headerLeft: () => {
|
|
80
|
+
return /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
81
|
+
onPress: () => {
|
|
82
|
+
var _props$taskMeta2;
|
|
83
|
+
if ((_props$taskMeta2 = props.taskMeta) !== null && _props$taskMeta2 !== void 0 && _props$taskMeta2.enableGoBack && (0, _utils2.hasGoBackConnector)(props.applicableReasons)) setShowBackModal(true);else props.navigation.goBack();
|
|
84
|
+
},
|
|
85
|
+
name: "arrow-back",
|
|
86
|
+
color: 'black',
|
|
87
|
+
size: 25,
|
|
88
|
+
style: {
|
|
89
|
+
paddingRight: 15,
|
|
90
|
+
paddingTop: 5
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}, [props.navigation, props.title]);
|
|
96
|
+
const renderModal = () => {
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(_GoBackModal.default, {
|
|
98
|
+
showModal: showBackModal,
|
|
99
|
+
setShowModal: setShowBackModal,
|
|
100
|
+
onSuccess: async () => {
|
|
101
|
+
props.onSubmitET({
|
|
102
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, false, _constants.GO_BACK_EVENT_CODE, '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.DELIVER))
|
|
103
|
+
});
|
|
104
|
+
setShowBackModal(false);
|
|
105
|
+
},
|
|
106
|
+
onFailure: () => setShowBackModal(false)
|
|
107
|
+
});
|
|
108
|
+
};
|
|
69
109
|
if (props.confirmCustodyExchange) {
|
|
70
|
-
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
|
-
style:
|
|
72
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
73
|
-
visible:
|
|
74
|
-
|
|
75
|
-
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, renderModal()), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
111
|
+
style: styles.container
|
|
112
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
|
|
113
|
+
visible: showDeliverModal,
|
|
114
|
+
onRequestClose: () => {
|
|
115
|
+
var _props$taskMeta3;
|
|
116
|
+
if ((_props$taskMeta3 = props.taskMeta) !== null && _props$taskMeta3 !== void 0 && _props$taskMeta3.enableGoBack && (0, _utils2.hasGoBackConnector)(props.applicableReasons)) {
|
|
117
|
+
setshowDeliverModal(false);
|
|
118
|
+
setShowBackModal(true);
|
|
119
|
+
return true;
|
|
120
|
+
} else {
|
|
121
|
+
setshowDeliverModal(false);
|
|
122
|
+
props.navigation.goBack();
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
127
|
+
style: styles.modalView
|
|
128
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
129
|
+
style: styles.modalStyle
|
|
76
130
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
77
|
-
style: _CommonStyles.DeliverPickupStyles.modalView
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
79
|
-
style: _CommonStyles.DeliverPickupStyles.titleText
|
|
80
|
-
}, props.title || _constants.DEFAULT_DELIVER_TITLE), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
81
131
|
style: {
|
|
82
|
-
|
|
83
|
-
marginBottom: 15,
|
|
84
|
-
flexDirection: 'row'
|
|
132
|
+
alignItems: 'center'
|
|
85
133
|
}
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.
|
|
134
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
87
135
|
style: {
|
|
88
|
-
|
|
89
|
-
fontStyle: 'normal',
|
|
90
|
-
fontWeight: '400',
|
|
91
|
-
fontSize: 14,
|
|
92
|
-
flex: 1,
|
|
93
|
-
textAlign: 'left',
|
|
94
|
-
lineHeight: 28,
|
|
95
|
-
color: '#111111'
|
|
136
|
+
paddingHorizontal: 60
|
|
96
137
|
}
|
|
138
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
139
|
+
style: _CommonStyles.DeliverPickupStyles.titleText
|
|
140
|
+
}, props.title || _constants.DEFAULT_DELIVER_TITLE)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
141
|
+
style: styles.returnView
|
|
142
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
143
|
+
style: styles.subTitle
|
|
97
144
|
}, 'Expected Shipments'), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
145
|
+
style: styles.title
|
|
146
|
+
}, props.returnPackageCount)), props.confirmShipments ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
98
147
|
style: {
|
|
99
|
-
|
|
100
|
-
fontSize: 14,
|
|
101
|
-
lineHeight: 28,
|
|
102
|
-
fontStyle: 'normal',
|
|
103
|
-
color: '#111111',
|
|
104
|
-
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
|
|
148
|
+
flexDirection: 'row'
|
|
105
149
|
}
|
|
106
|
-
},
|
|
150
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, {
|
|
107
151
|
style: {
|
|
152
|
+
flex: 1,
|
|
108
153
|
fontSize: 14,
|
|
109
154
|
lineHeight: 24,
|
|
110
155
|
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
|
|
@@ -121,11 +166,13 @@ const DeliverET = props => {
|
|
|
121
166
|
setInputError('');
|
|
122
167
|
setPkgCount(text);
|
|
123
168
|
}
|
|
124
|
-
}), !(0, _utils.isEmptyOrBlank)(inputError) && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
169
|
+
})) : null, !(0, _utils.isEmptyOrBlank)(inputError) && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
125
170
|
style: {
|
|
126
171
|
color: '#B00020'
|
|
127
172
|
}
|
|
128
|
-
}, inputError), /*#__PURE__*/_react.default.createElement(
|
|
173
|
+
}, inputError)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
174
|
+
style: styles.bottomButtons
|
|
175
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
129
176
|
disabled: disableConfirm,
|
|
130
177
|
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
131
178
|
marginTop: 20
|
|
@@ -135,63 +182,133 @@ const DeliverET = props => {
|
|
|
135
182
|
mode: 'contained',
|
|
136
183
|
onPress: async () => {
|
|
137
184
|
if (!(0, _utils.isEmptyOrBlank)(pkgCount) && !Number.isNaN(+pkgCount)) {
|
|
185
|
+
var _props$applicableReas;
|
|
138
186
|
if (+pkgCount !== props.returnPackageCount) {
|
|
139
187
|
setInputError(`Package count should be equal to ${props.returnPackageCount}`);
|
|
140
188
|
return;
|
|
141
189
|
}
|
|
142
|
-
|
|
143
190
|
setDisableConfirm(true);
|
|
144
|
-
props.onSubmitET({
|
|
191
|
+
props.onSubmitET({
|
|
192
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, true, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.success), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.DELIVER)),
|
|
145
193
|
remark: `${pkgCount} Packages returned`
|
|
146
194
|
});
|
|
147
195
|
} else setInputError('Please enter valid count.');
|
|
148
196
|
}
|
|
149
|
-
}, "Confirm"))))));
|
|
150
|
-
} else
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
197
|
+
}, "Confirm")))))));
|
|
198
|
+
} else {
|
|
199
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, renderModal()), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
200
|
+
style: styles.container
|
|
201
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
|
|
202
|
+
visible: showDeliverModal,
|
|
203
|
+
onRequestClose: () => {
|
|
204
|
+
var _props$taskMeta4;
|
|
205
|
+
if ((_props$taskMeta4 = props.taskMeta) !== null && _props$taskMeta4 !== void 0 && _props$taskMeta4.enableGoBack && (0, _utils2.hasGoBackConnector)(props.applicableReasons)) {
|
|
206
|
+
setshowDeliverModal(false);
|
|
207
|
+
setShowBackModal(true);
|
|
208
|
+
return true;
|
|
209
|
+
} else {
|
|
210
|
+
setshowDeliverModal(false);
|
|
211
|
+
props.navigation.goBack();
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
216
|
+
style: styles.modalView
|
|
217
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
218
|
+
style: styles.modalStyle
|
|
219
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
220
|
+
style: styles.modalBody
|
|
221
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
222
|
+
style: _CommonStyles.DeliverPickupStyles.titleText
|
|
223
|
+
}, props.title || _constants.DEFAULT_DELIVER_TITLE), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
224
|
+
style: _CommonStyles.DeliverPickupStyles.messageText
|
|
225
|
+
}, getMessage(props.returnPackageCount, props.message)), props.returnPackageCount === 1 && props.items.length ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
226
|
+
style: {
|
|
227
|
+
justifyContent: 'center'
|
|
228
|
+
}
|
|
229
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
230
|
+
style: _CommonStyles.DeliverPickupStyles.itemTextStyle
|
|
231
|
+
}, `Order ID: ${props.items[0].skuId}`)) : null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
232
|
+
style: styles.bottomButtons
|
|
233
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
234
|
+
disabled: disableYes,
|
|
235
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
236
|
+
marginTop: 20
|
|
237
|
+
}],
|
|
238
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
239
|
+
uppercase: false,
|
|
240
|
+
mode: 'contained',
|
|
241
|
+
onPress: async () => {
|
|
242
|
+
var _props$applicableReas2;
|
|
243
|
+
setDisableYes(true);
|
|
244
|
+
props.onSubmitET({
|
|
245
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, true, (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.success), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.DELIVER)),
|
|
246
|
+
remark: ''
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
}, "Confirm"), props.restrictCancel === true ? null : /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
250
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
251
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
252
|
+
marginTop: 10
|
|
253
|
+
}],
|
|
254
|
+
mode: 'outlined',
|
|
255
|
+
uppercase: false,
|
|
256
|
+
onPress: async () => {
|
|
257
|
+
var _props$applicableReas3;
|
|
258
|
+
props.onSubmitET({
|
|
259
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, false, (_props$applicableReas3 = props.applicableReasons) === null || _props$applicableReas3 === void 0 ? void 0 : _props$applicableReas3.failure), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.DELIVER))
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}, "Cancel")))))));
|
|
263
|
+
}
|
|
193
264
|
};
|
|
194
|
-
|
|
195
265
|
var _default = DeliverET;
|
|
196
266
|
exports.default = _default;
|
|
267
|
+
const styles = _reactNative.StyleSheet.create({
|
|
268
|
+
container: {
|
|
269
|
+
flex: 1
|
|
270
|
+
},
|
|
271
|
+
modalView: {
|
|
272
|
+
flex: 1,
|
|
273
|
+
justifyContent: 'center',
|
|
274
|
+
alignItems: 'center',
|
|
275
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)'
|
|
276
|
+
},
|
|
277
|
+
modalStyle: {
|
|
278
|
+
backgroundColor: 'white',
|
|
279
|
+
padding: 20,
|
|
280
|
+
borderRadius: 8,
|
|
281
|
+
elevation: 5
|
|
282
|
+
},
|
|
283
|
+
modalBody: {
|
|
284
|
+
paddingHorizontal: 40,
|
|
285
|
+
alignItems: 'center'
|
|
286
|
+
},
|
|
287
|
+
bottomButtons: {
|
|
288
|
+
marginTop: 12
|
|
289
|
+
},
|
|
290
|
+
returnView: {
|
|
291
|
+
marginTop: 15,
|
|
292
|
+
marginBottom: 15,
|
|
293
|
+
flexDirection: 'row'
|
|
294
|
+
},
|
|
295
|
+
subTitle: {
|
|
296
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
297
|
+
fontStyle: 'normal',
|
|
298
|
+
fontWeight: '400',
|
|
299
|
+
fontSize: 14,
|
|
300
|
+
flex: 1,
|
|
301
|
+
textAlign: 'left',
|
|
302
|
+
lineHeight: 28,
|
|
303
|
+
color: '#111111'
|
|
304
|
+
},
|
|
305
|
+
title: {
|
|
306
|
+
textAlign: 'right',
|
|
307
|
+
fontSize: 14,
|
|
308
|
+
lineHeight: 28,
|
|
309
|
+
fontStyle: 'normal',
|
|
310
|
+
color: '#111111',
|
|
311
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
|
|
312
|
+
}
|
|
313
|
+
});
|
|
197
314
|
//# sourceMappingURL=SLDeliverET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ListItem","lineItem","justifyContent","DeliverPickupStyles","itemTextStyle","skuId","renderItem","item","getMessage","returnPackageCount","message","msg","DEFAULT_DELIVER_MESSAGE","replace","toString","error","DeliverET","props","pkgCount","setPkgCount","useState","confirmShipments","inputError","setInputError","disableYes","setDisableYes","disableConfirm","setDisableConfirm","confirmCustodyExchange","mainContainer","modalContent","modalView","titleText","title","DEFAULT_DELIVER_TITLE","marginTop","marginBottom","flexDirection","fontFamily","Fonts","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","flex","textAlign","lineHeight","color","IBMPlexSans_600SemiBold","isEmptyOrBlank","text","CommonStyles","nextButton","nextButtonLabel","Number","isNaN","onSubmitET","getBaseETResponse","EntityCode","DELIVER","getEventCodeByET","ExecutionTaskID","remark","messageText","flatList","items","cancelButtonLabel","cancelButton"],"sources":["SLDeliverET.tsx"],"sourcesContent":["import type { DeliverETInput } from './DeliverETInput';\nimport { FlatList, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Modal, Portal, Provider, TextInput } 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 { isEmptyOrBlank } from '../../../utils/utils';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_DELIVER_MESSAGE,\n DEFAULT_DELIVER_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\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst getMessage = (\n returnPackageCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_DELIVER_MESSAGE;\n return returnPackageCount && returnPackageCount > 1\n ? msg.replace('$', returnPackageCount?.toString() || '')\n : msg.replace('$', '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nconst DeliverET = (props: DeliverETInput) => {\n const [pkgCount, setPkgCount] = useState(\n props.confirmShipments ? '' : `${props.returnPackageCount}`\n );\n const [inputError, setInputError] = useState('');\n const [disableYes, setDisableYes] = useState(false);\n const [disableConfirm, setDisableConfirm] = useState(false);\n\n if (props.confirmCustodyExchange) {\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_DELIVER_TITLE}\n </Text>\n <View\n style={{\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n }}\n >\n <Text\n style={{\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 >\n {'Expected Shipments'}\n </Text>\n <Text\n style={{\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n }}\n >\n {props.returnPackageCount}\n </Text>\n </View>\n {props.confirmShipments && (\n <TextInput\n style={{\n fontSize: 14,\n lineHeight: 24,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n multiline={false}\n autoComplete={'off'}\n label={`Shipment(s) handed over`}\n value={pkgCount}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setPkgCount(text);\n }}\n />\n )}\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n <Button\n disabled={disableConfirm}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n if (!isEmptyOrBlank(pkgCount) && !Number.isNaN(+pkgCount)) {\n if (+pkgCount !== props.returnPackageCount) {\n setInputError(\n `Package count should be equal to ${props.returnPackageCount}`\n );\n return;\n }\n setDisableConfirm(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: `${pkgCount} Packages returned`,\n });\n } else setInputError('Please enter valid count.');\n }}\n >\n Confirm\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n } else\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_DELIVER_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.returnPackageCount, props.message)}\n </Text>\n\n {props.returnPackageCount === 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={disableYes}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n setDisableYes(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: '',\n });\n }}\n >\n Yes\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n uppercase={false}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER, false),\n ''\n )),\n });\n }}\n >\n No\n </Button>\n </View>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AA1B,CAFT;IAGE,UAAU,EAAEgB,0BAAA,CAAaE,eAH3B;IAIE,SAAS,EAAE,KAJb;IAKE,IAAI,EAAE,WALR;IAME,OAAO,EAAE,YAAY;MACnB5B,aAAa,CAAC,IAAD,CAAb;MACAR,KAAK,CAACuC,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAER,IAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0C,IAA1C,CAHQ,EAIR,EAJQ,CAAV,CADe;QAOfG,MAAM,EAAE;MAPO,CAAjB;IASD;EAjBH,SAhBF,eAqCE,6BAAC,wBAAD;IACE,UAAU,EAAEX,0BAAA,CAAae,iBAD3B;IAEE,KAAK,EAAE,CAACf,0BAAA,CAAagB,YAAd,EAA4B;MAAEhC,SAAS,EAAE;IAAb,CAA5B,CAFT;IAGE,IAAI,EAAE,UAHR;IAIE,SAAS,EAAE,KAJb;IAKE,OAAO,EAAE,YAAY;MACnBlB,KAAK,CAACuC,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAER,KAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0C,KAA1C,CAHQ,EAIR,EAJQ,CAAV;MADe,CAAjB;IAQD;EAdH,QArCF,CALF,CADF,CADF,CADF,CADF;AAsEH,CA1LD;;eA4Le3C,S"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativePaper","_CommonStyles","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_utils","_constants","_MaterialIcons","_interopRequireDefault","_GoBackModal","_utils2","_native","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ListItem","_ref","lineItem","createElement","View","style","justifyContent","Text","DeliverPickupStyles","itemTextStyle","skuId","renderItem","_ref2","item","exports","getMessage","returnPackageCount","message","msg","DEFAULT_DELIVER_MESSAGE","replace","toString","error","DeliverET","props","pkgCount","setPkgCount","useState","confirmShipments","inputError","setInputError","disableYes","setDisableYes","disableConfirm","setDisableConfirm","showBackModal","setShowBackModal","useEffect","showDeliverModal","setshowDeliverModal","useFocusEffect","React","useCallback","onBackPress","_props$taskMeta","taskMeta","enableGoBack","hasGoBackConnector","applicableReasons","navigation","goBack","BackHandler","addEventListener","removeEventListener","useLayoutEffect","setOptions","title","headerLeft","onPress","_props$taskMeta2","name","color","size","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","onSubmitET","getBaseETResponse","EntityCode","DELIVER","GO_BACK_EVENT_CODE","mergedObjectiveId","ExecutionTaskID","onFailure","confirmCustodyExchange","Provider","Portal","styles","container","Modal","visible","onRequestClose","_props$taskMeta3","modalView","modalStyle","alignItems","paddingHorizontal","titleText","DEFAULT_DELIVER_TITLE","returnView","subTitle","flexDirection","TextInput","flex","fontSize","lineHeight","fontFamily","Fonts","IBMPlexSans_400Regular","multiline","autoComplete","label","value","mode","isEmptyOrBlank","selectionColor","keyboardType","onChangeText","text","bottomButtons","Button","disabled","CommonStyles","nextButton","marginTop","labelStyle","nextButtonLabel","uppercase","Number","isNaN","_props$applicableReas","getEventCodeByET","success","remark","_props$taskMeta4","modalBody","messageText","items","length","_props$applicableReas2","restrictCancel","cancelButtonLabel","cancelButton","_props$applicableReas3","failure","_default","StyleSheet","create","backgroundColor","padding","borderRadius","elevation","marginBottom","fontStyle","fontWeight","textAlign","IBMPlexSans_600SemiBold"],"sources":["SLDeliverET.tsx"],"sourcesContent":["import type { DeliverETInput } from './DeliverETInput';\nimport {\n BackHandler,\n FlatList,\n Text,\n View,\n Modal,\n StyleSheet,\n} from 'react-native';\nimport React, { useState, useLayoutEffect, useEffect } from 'react';\nimport { Button, Portal, Provider, TextInput } 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 { isEmptyOrBlank } from '../../../utils/utils';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_DELIVER_MESSAGE,\n DEFAULT_DELIVER_TITLE,\n GO_BACK_EVENT_CODE,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport GoBackModal from '../../../components/widgets/GoBackModal';\nimport { hasGoBackConnector } from '../../../components/utils';\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\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst getMessage = (\n returnPackageCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_DELIVER_MESSAGE;\n return returnPackageCount && returnPackageCount >= 1\n ? msg.replace('$', returnPackageCount?.toString() || '')\n : msg.replace('$', '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nconst DeliverET = (props: DeliverETInput) => {\n const [pkgCount, setPkgCount] = useState(\n props.confirmShipments ? '' : `${props.returnPackageCount}`\n );\n const [inputError, setInputError] = useState('');\n const [disableYes, setDisableYes] = useState(false);\n const [disableConfirm, setDisableConfirm] = useState(false);\n\n const [showBackModal, setShowBackModal] = useState(false);\n useEffect(\n () => setPkgCount(`${props.returnPackageCount}`),\n [props.returnPackageCount]\n );\n\n const [showDeliverModal, setshowDeliverModal] = useState(true);\n\n // Handle back-button click when scanList was being viewed\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\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.DELIVER,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.DELIVER\n )),\n });\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n if (props.confirmCustodyExchange) {\n return (\n <Provider>\n <Portal>{renderModal()}</Portal>\n <View style={styles.container}>\n <Modal\n visible={showDeliverModal}\n onRequestClose={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setshowDeliverModal(false);\n setShowBackModal(true);\n return true;\n } else {\n setshowDeliverModal(false);\n props.navigation.goBack();\n return true;\n }\n }}\n >\n <View style={styles.modalView}>\n <View style={styles.modalStyle}>\n <View style={{ alignItems: 'center' }}>\n <View style={{ paddingHorizontal: 60 }}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n </View>\n <View style={styles.returnView}>\n <Text style={styles.subTitle}>{'Expected Shipments'}</Text>\n <Text style={styles.title}>{props.returnPackageCount}</Text>\n </View>\n {props.confirmShipments ? (\n <View\n style={{\n flexDirection: 'row',\n }}\n >\n <TextInput\n style={{\n flex: 1,\n fontSize: 14,\n lineHeight: 24,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n multiline={false}\n autoComplete={'off'}\n label={`Shipment(s) handed over`}\n value={pkgCount}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setPkgCount(text);\n }}\n />\n </View>\n ) : null}\n\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n </View>\n\n <View style={styles.bottomButtons}>\n <Button\n disabled={disableConfirm}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n if (\n !isEmptyOrBlank(pkgCount) &&\n !Number.isNaN(+pkgCount)\n ) {\n if (+pkgCount !== props.returnPackageCount) {\n setInputError(\n `Package count should be equal to ${props.returnPackageCount}`\n );\n return;\n }\n setDisableConfirm(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(\n ExecutionTaskID.DELIVER,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.DELIVER\n )),\n remark: `${pkgCount} Packages returned`,\n });\n } else setInputError('Please enter valid count.');\n }}\n >\n Confirm\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n </View>\n </Provider>\n );\n } else {\n return (\n <Provider>\n <Portal>{renderModal()}</Portal>\n <View style={styles.container}>\n <Modal\n visible={showDeliverModal}\n onRequestClose={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setshowDeliverModal(false);\n setShowBackModal(true);\n return true;\n } else {\n setshowDeliverModal(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_DELIVER_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.returnPackageCount, props.message)}\n </Text>\n\n {props.returnPackageCount === 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={disableYes}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n setDisableYes(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(\n ExecutionTaskID.DELIVER,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.DELIVER\n )),\n remark: '',\n });\n }}\n >\n Confirm\n </Button>\n {props.restrictCancel === true ? null : (\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n uppercase={false}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(\n ExecutionTaskID.DELIVER,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.DELIVER\n )),\n });\n }}\n >\n Cancel\n </Button>\n )}\n </View>\n </View>\n </View>\n </Modal>\n </View>\n </Provider>\n );\n }\n};\n\nexport default DeliverET;\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":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AAKA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AAIA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,IAAAS,UAAA,GAAAT,OAAA;AAKA,IAAAU,cAAA,GAAAC,sBAAA,CAAAX,OAAA;AACA,IAAAY,YAAA,GAAAD,sBAAA,CAAAX,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AAA0D,SAAAW,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAjB,wBAAAa,GAAA,EAAAI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object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
13
|
-
|
|
14
10
|
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
15
|
-
|
|
16
11
|
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
17
|
-
|
|
18
12
|
var _reactNativePaper = require("react-native-paper");
|
|
19
|
-
|
|
20
13
|
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
21
|
-
|
|
22
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
const [modalVisible, setModalVisible] = (0, _react.useState)(etProps.showDialog);
|
|
16
|
+
const DisplayModalET = props => {
|
|
17
|
+
const [modalVisible, setModalVisible] = (0, _react.useState)(props.showDialog);
|
|
28
18
|
const sendEtOutput = (0, _react.useCallback)(async success => {
|
|
19
|
+
var _props$applicableReas, _props$applicableReas2;
|
|
29
20
|
setModalVisible(false);
|
|
30
|
-
|
|
21
|
+
const _appRC = success ? (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.success : (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.failure;
|
|
22
|
+
props.onSubmit({
|
|
23
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DISPLAY, success, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DISPLAY, success, _appRC), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.DISPLAY))
|
|
31
24
|
});
|
|
32
|
-
}, [
|
|
25
|
+
}, [props]);
|
|
33
26
|
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
34
27
|
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
35
28
|
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
@@ -38,23 +31,23 @@ const DisplayModalET = etProps => {
|
|
|
38
31
|
contentContainerStyle: _CommonStyles.DeliverPickupStyles.modalContent
|
|
39
32
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
40
33
|
style: _CommonStyles.DeliverPickupStyles.modalView
|
|
41
|
-
},
|
|
34
|
+
}, props.displayType === 'WARNING' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
42
35
|
style: styles.warningTitle
|
|
43
|
-
},
|
|
36
|
+
}, props.title, "!"), props.displayType === 'ALERT' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
44
37
|
style: styles.alertTitle
|
|
45
|
-
},
|
|
38
|
+
}, props.title), props.displayType === 'MESSAGE' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
46
39
|
style: styles.messageTitle
|
|
47
|
-
},
|
|
40
|
+
}, props.title), props.text && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Paragraph, {
|
|
48
41
|
style: styles.messageText
|
|
49
|
-
},
|
|
42
|
+
}, props.text), props.message && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Text, {
|
|
50
43
|
style: [styles.messageText]
|
|
51
|
-
},
|
|
44
|
+
}, props.message), props.image && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
52
45
|
style: styles.imageView
|
|
53
46
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
54
47
|
source: {
|
|
55
48
|
width: 200,
|
|
56
49
|
height: 300,
|
|
57
|
-
uri:
|
|
50
|
+
uri: props.image
|
|
58
51
|
}
|
|
59
52
|
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
60
53
|
style: styles.buttons
|
|
@@ -69,7 +62,7 @@ const DisplayModalET = etProps => {
|
|
|
69
62
|
await sendEtOutput(true);
|
|
70
63
|
},
|
|
71
64
|
testID: "primary"
|
|
72
|
-
},
|
|
65
|
+
}, props.positiveBtn), props.negativeBtn && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
73
66
|
uppercase: false,
|
|
74
67
|
mode: 'outlined',
|
|
75
68
|
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
@@ -80,12 +73,10 @@ const DisplayModalET = etProps => {
|
|
|
80
73
|
await sendEtOutput(false);
|
|
81
74
|
},
|
|
82
75
|
testID: "secondary"
|
|
83
|
-
},
|
|
76
|
+
}, props.negativeBtn)))))));
|
|
84
77
|
};
|
|
85
|
-
|
|
86
78
|
var _default = DisplayModalET;
|
|
87
79
|
exports.default = _default;
|
|
88
|
-
|
|
89
80
|
const styles = _reactNative.StyleSheet.create({
|
|
90
81
|
warningTitle: {
|
|
91
82
|
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|