@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Text","StyleSheet","TextInput","TouchableOpacity","BackHandler","React","useEffect","useRef","useState","useLayoutEffect","DeliverState","CommonStyles","Fonts","ProgressDialog","PLEASE_WAIT","CScanner","checkForValidation","clearScanOutput","getBarCodeTypes","getErrorMessage","getEventType","getScanETOutput","getScanMappedOutput","getSplitIds","getUpdatedScanETOutput","triggerScanEvent","updateSharedPreference","SnackBarCustom","SnackBarType","Button","Modal","Portal","Provider","useFocusEffect","isEmptyOrBlank","PROCEED_STATUS","getBaseETResponse","EntityCode","ExecutionTaskID","EMPTY_AWB","ER_MISSING","INVALID_SHIPMENT","ERDropDown","getErcDropDownItems","GO_BACK_EVENT_CODE","Icon","DispatchExecutor","SummaryPage","RouteParams","BULK_DATA_LIMIT","AntDesign","GoBackModal","hasGoBackConnector","ScanET","props","_props$wfMeta","_props$additionalMult","_props$meta","prefixedMergedObjectiveId","route","params","ROOT_META_DATA","isScreenLoaded","setIsScreenLoaded","ercSelectorLoaded","shipmentCountLoaded","previousDataLoaded","isErcSelector","ercSelector","isMultiObjectiveEnable","wfMeta","enableMultiObjectiveFlow","allowMultiObjectivePartial","additionalMultiConfig","validationType","SINGLE_MODE_COUNT","meta","singleModeCount","showScanList","setShowScanList","showProgress","setShowProgress","showScanner","setShowScanner","scanText","setScanText","snackBar","setSnackBar","show","type","SUCCESS","message","scansMap","setScansMap","Map","scannedInput","setScannedInput","refInput","selectedReason","setSelectedReason","selectedEventCode","setSelectedEventCode","reasonItems","setReasonItems","eventCodeItems","setEventCodeItems","showBackModal","setShowBackModal","showUnscannedShipmentModal","setShowUnscannedShipmentModal","shipmentCount","setShipmentCount","scannedCount","totalCount","mergedScanETOutput","setMergedScanETOutput","fetchShipmentCount","_shipmentCount","getScannedShipmentsCount","mergedObjectiveId","error","fetchPreviousScannedData","scanOutput","fetchERC","response","fetchAllData","Promise","all","navigation","setOptions","title","headerLeft","createElement","onPress","_props$taskMeta","taskMeta","enableGoBack","applicableReasons","name","color","size","style","paddingRight","paddingTop","code","length","undefined","addScans","handleSubmitET","status","count","erc","DELIVER_LATER","goBack","etOutput","defaultERC","DELIVERE_LATER","onSubmitET","eventCode","ec","reasonCode","rc","DELIVER_NOW","hasNextPage","offset","limit","scans","data","scannedData","filterWFIData","taskName","forEach","scan","push","groupId","displayInfo","jobId","shipmentFlow","scanValue","scannableId","output","_handleBarCodeScanned","updateShipmentCount","scannedCountChanged","totalCountChanged","arguments","currentIds","Set","FAILURE","replace","isValidated","validation","eventType","result","updateWIMapping","scanToMerge","subTitle","WARNING","_scanOutput","isScan","scanId","mwId","scanned","total","exitOnError","CANCELLED","renderActionButtons","labelStyle","nextButtonLabel","nextButton","uppercase","useCallback","onBackPress","addEventListener","removeEventListener","timeout","setTimeout","clearTimeout","renderModal","showModal","setShowModal","onSuccess","SCAN","onFailure","renderUnscannedShipmentModal","visible","dismissable","contentContainerStyle","styles","modalContent","marginStart","marginEnd","modalView","justifyContent","alignItems","marginBottom","titleText","unscannedShipmentModalSubText","textAlign","marginTop","cancelButton","height","borderRadius","removeShipment","cancelButtonLabel","renderShipmentCount","scanMode","selectedIndex","scanCountLimit","mainContainer","scanProps","label","flex","marginHorizontal","items","onItemChange","eventItem","marginVertical","disabled","reasonItem","addShipmentStyle","returnKeyType","ref","onSubmitEditing","value","onChangeText","borderBottomColor","borderBottomWidth","fontSize","fontFamily","IBMPlexSans_600SemiBold","placeholder","alignSelf","paddingVertical","paddingHorizontal","borderWidth","borderColor","IBMPlexSans_500Medium","lineHeight","cameraContainer","barCodeTypes","onScanned","onDismiss","customBottom","bottomView","create","backgroundColor","zIndex","flexDirection","paddingBottom","addButtonLabel","fontWeight","letterSpacing","fontStyle","centerView","alignContent","padding","subText","bottomButtons","modalDefaultERCStyle","IBMPlexSans_400Regular"],"sources":["ScanET.tsx"],"sourcesContent":["import {\n View,\n Text,\n StyleSheet,\n TextInput,\n TouchableOpacity,\n BackHandler,\n} from 'react-native';\nimport React, { useEffect, useRef, useState, useLayoutEffect } from 'react';\nimport { DeliverState, type ScannerInput } from './ScanSchema';\nimport {\n CommonStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport ProgressDialog from '../../widgets/ProgressDialog';\nimport { PLEASE_WAIT } from '../../../res/strings';\nimport CScanner from './sub_components/CScanner';\nimport {\n checkForValidation,\n clearScanOutput,\n getBarCodeTypes,\n getErrorMessage,\n getEventType,\n getScanETOutput,\n getScanMappedOutput,\n getScannedItemCount,\n getShipmentData,\n getSplitIds,\n getUpdatedScanETOutput,\n isETCompleted,\n isReplacement,\n triggerScanEvent,\n updatePendingSharedPreference,\n updateSharedPreference,\n} from './utils';\nimport SnackBarCustom, { SnackBarType } from '../../widgets/SnackBarCustom';\nimport { Button, Modal, Portal, Provider } from 'react-native-paper';\nimport { useFocusEffect } from '@react-navigation/native';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport {\n BlindScan,\n MergedScan,\n PROCEED_STATUS,\n SCAN_STATUS,\n} from './interfaces';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n ADD_SHIPMENT,\n EMPTY_AWB,\n ER_MISSING,\n INVALID_SHIPMENT,\n MAX_SHIPMENT_REACHED,\n SHIPMENT_ALREADY_ADDED,\n} from './constants';\nimport ERDropDown, { ercItem } from './sub_components/ERDropDown';\nimport {\n getDefaultERCLabel,\n getErcDropDownItems,\n} from './sub_components/DropDownUtils';\nimport {\n GO_BACK_EVENT_CODE,\n REASON_NOT_USED,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport type { ScannerOutput } from './ScanSchema';\nimport {\n DispatchExecutor,\n IDispatch,\n} from '@os1-platform/platform-coreos-execution-engine-sdk';\nimport SummaryPage from './sub_components/SummaryPage';\nimport { RouteParams } from '../../../ui/uiConfig/RouteParams';\nimport { BULK_DATA_LIMIT } from '../../../manager/syncmanager/constants';\nimport { AntDesign } from '@expo/vector-icons';\nimport GoBackModal from '../../../components/widgets/GoBackModal';\nimport { hasGoBackConnector } from '../../../components/utils';\n\n/**\n *\n * @param props interface ScannerInput\n * @returns JSX\n *\n * props has key validation which defines different UI cases\n * validation: interface Validation\n *\n * when validation.selectedIndex === 0 => Receives validation.logic as array of scans\n * when validation.selectedIndex === 1 => Receives validation.logic as validation regex\n * when validation.selectedIndex === 0 => Receives validation.logic as API\n */\n\nconst ScanET = (props: ScannerInput) => {\n const prefixedMergedObjectiveId =\n props.route.params[RouteParams.ROOT_META_DATA].prefixedMergedObjectiveId;\n\n const [isScreenLoaded, setIsScreenLoaded] = useState({\n ercSelectorLoaded: false,\n shipmentCountLoaded: false,\n previousDataLoaded: false,\n });\n const isErcSelector = props.ercSelector ? true : false;\n const isMultiObjectiveEnable = props.wfMeta?.enableMultiObjectiveFlow;\n const allowMultiObjectivePartial =\n (isMultiObjectiveEnable === true &&\n props.additionalMultiConfig?.validationType === 'SUBSET_OF_LIST') ||\n false;\n\n const SINGLE_MODE_COUNT: number = props.meta?.singleModeCount || 1;\n const [showScanList, setShowScanList] = useState(false); // To show shipments List\n const [showProgress, setShowProgress] = useState(false); // To pause implementation while a barcode was scanned\n const [showScanner, setShowScanner] = useState(true); // To show the barcode scanner on screen and refresh on successful scan\n const [scanText, setScanText] = useState(''); // Show scan text\n const [snackBar, setSnackBar] = useState({\n show: false,\n type: SnackBarType.SUCCESS,\n message: '',\n });\n\n /**\n * scansMap: is used to add the scanned shipment related data on each scan.\n * scansMap data structure (MergedScan) is the same format as the output of scanET alongwith jobId,\n * which is used to create the final output of the ET and pass the scanned id to each merged objective.\n */\n\n const [scansMap, setScansMap] = useState<Map<string, MergedScan>>(new Map());\n\n const [scannedInput, setScannedInput] = useState<string>(''); // state to capture scan\n const refInput = useRef<TextInput>(null);\n const [selectedReason, setSelectedReason] = useState<ercItem>(); // reason code from ercSelector\n const [selectedEventCode, setSelectedEventCode] = useState<ercItem>(); // reason code from ercSelector\n const [reasonItems, setReasonItems] = useState<ercItem[]>(); // list of reason codes\n const [eventCodeItems, setEventCodeItems] = useState<ercItem[]>(); // list of event codes\n\n const [showBackModal, setShowBackModal] = useState(false);\n const [showUnscannedShipmentModal, setShowUnscannedShipmentModal] =\n useState(false);\n\n const [shipmentCount, setShipmentCount] = useState({\n scannedCount: 0,\n totalCount: 0,\n });\n const [mergedScanETOutput, setMergedScanETOutput] = useState<ScannerOutput>(\n {}\n );\n\n const fetchShipmentCount = async () => {\n try {\n const _shipmentCount = await DispatchExecutor.getScannedShipmentsCount(\n props.mergedObjectiveId\n );\n if (_shipmentCount) {\n setShipmentCount({\n scannedCount: _shipmentCount.scannedCount || 0,\n totalCount: _shipmentCount.totalCount || 0,\n });\n // setIsScreenLoaded((isScreenLoaded) => ({\n // ...isScreenLoaded,\n // shipmentCountLoaded: true,\n // }));\n }\n } catch (error) {}\n };\n\n const fetchPreviousScannedData = async () => {\n try {\n const scanOutput = (await getScanMappedOutput()) || {};\n setMergedScanETOutput(scanOutput[prefixedMergedObjectiveId] || {});\n } catch (error) {}\n };\n\n const fetchERC = async () => {\n if (props.ercSelector) {\n try {\n let response = await getErcDropDownItems(\n 'EVENT',\n props.ercSelector || []\n );\n setEventCodeItems(response);\n setSelectedEventCode(response[0]);\n } catch (error) {}\n }\n };\n\n const fetchAllData = async () => {\n try {\n await Promise.all([\n fetchERC(),\n fetchPreviousScannedData(),\n fetchShipmentCount(),\n ]);\n } catch (error) {\n } finally {\n setIsScreenLoaded({\n ercSelectorLoaded: true,\n previousDataLoaded: true,\n shipmentCountLoaded: true,\n });\n }\n };\n\n useEffect(() => {\n fetchAllData();\n }, []);\n\n useEffect(() => props.showProgress(true), []);\n useEffect(() => {\n if (\n isScreenLoaded.ercSelectorLoaded &&\n isScreenLoaded.previousDataLoaded &&\n isScreenLoaded.shipmentCountLoaded\n ) {\n props.showProgress(false);\n }\n }, [isScreenLoaded]);\n\n // const [defaultERCLabel, setDefaultERCLabel] = useState({\n // eventCode: '',\n // reasonCode: '',\n // });\n // const fetchLabel = async () => {\n // const { eventCode, reasonCode } = await getDefaultERCLabel(\n // props.defaultERC\n // );\n // setDefaultERCLabel({ eventCode, reasonCode });\n // };\n // useEffect(() => {\n // fetchLabel();\n // }, [props.defaultERC]);\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 {\n if (showScanList) setShowScanList(false);\n else setShowUnscannedShipmentModal(true);\n }\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, showScanList]);\n\n useEffect(() => {\n selectedEventCode?.code &&\n (async () => {\n let response = await getErcDropDownItems(\n 'REASON',\n props.ercSelector || [],\n selectedEventCode?.code\n );\n if (response.length) {\n setReasonItems(response);\n setSelectedReason(response[0]);\n } else {\n setReasonItems([]);\n setSelectedReason(undefined);\n }\n })();\n }, [selectedEventCode?.code]);\n\n useEffect(() => {\n scannedInput &&\n (async () => {\n await addScans();\n setScannedInput('');\n })();\n }, [scannedInput]);\n\n const handleSubmitET = async (\n status: PROCEED_STATUS,\n count: number,\n erc: { ec: string; rc: string } | undefined\n ) => {\n if (status === PROCEED_STATUS.DELIVER_LATER) {\n if (shipmentCount.scannedCount === 0) {\n props.navigation.goBack();\n } else {\n const etOutput = await getScanETOutput(\n mergedScanETOutput,\n props.mergedObjectiveId,\n eventCodeItems || [],\n props.defaultERC,\n DeliverState.DELIVERE_LATER,\n true,\n count\n );\n props.onSubmitET(etOutput);\n }\n } else {\n if (shipmentCount.scannedCount < shipmentCount.totalCount) {\n if (erc) {\n const prefixedMergedObjectiveId =\n props.route.params[RouteParams.ROOT_META_DATA]\n .prefixedMergedObjectiveId;\n\n const etOutput = await getScanETOutput(\n mergedScanETOutput,\n props.mergedObjectiveId,\n eventCodeItems || [],\n { eventCode: erc.ec, reasonCode: erc.rc },\n DeliverState.DELIVER_NOW,\n true,\n count\n );\n\n let hasNextPage = true;\n let offset = 0;\n const limit = BULK_DATA_LIMIT;\n let scans: IDispatch.IQueryWFIResponse = { data: [], totalCount: 0 };\n\n const scannedData: any = [];\n do {\n scans = await DispatchExecutor.filterWFIData(\n props.taskName,\n [prefixedMergedObjectiveId],\n limit,\n offset\n );\n\n scans.data.forEach((scan) => {\n scannedData.push({\n groupId: scan.displayInfo.groupId,\n jobId: scan.jobId,\n shipmentFlow: scan.displayInfo.shipmentFlow,\n scanValue: scan.scannableId,\n });\n });\n\n offset += limit;\n hasNextPage = scans.totalCount - offset + 1 > 0;\n } while (hasNextPage);\n\n triggerScanEvent(\n 'ON_SCAN',\n props.route,\n scannedData,\n etOutput['default'].output\n );\n\n // UPDATE PENDING IN SHARED PREFERENCE MERGED_SCAN_OUTPUT\n // updatePendingSharedPreference(eventType, prefixedMergedObjectiveId);\n\n props.onSubmitET(etOutput);\n }\n } else {\n if (shipmentCount.totalCount === 0) props.navigation.goBack();\n else {\n const etOutput = await getScanETOutput(\n mergedScanETOutput,\n props.mergedObjectiveId,\n eventCodeItems || [],\n props.defaultERC,\n DeliverState.DELIVER_NOW,\n false,\n count\n );\n props.onSubmitET(etOutput);\n }\n }\n }\n };\n\n const _handleBarCodeScanned = async (scan: string) => {\n if (!isEmptyOrBlank(scan)) {\n setShowScanner(false);\n setScannedInput(scan);\n }\n };\n\n const updateShipmentCount = async (\n scannedCountChanged: number,\n totalCountChanged: number,\n type: 'SCAN' | 'REMOVE' = 'SCAN'\n ) => {\n if (type === 'SCAN') {\n // UPDATE THE Count\n setShipmentCount((_shipmentCount) => {\n return {\n scannedCount: _shipmentCount.scannedCount + scannedCountChanged,\n totalCount: _shipmentCount.totalCount + totalCountChanged,\n };\n });\n } else {\n const currentIds = [\n ...new Set([\n ...props.mergedObjectiveId,\n ...getSplitIds(mergedScanETOutput),\n prefixedMergedObjectiveId,\n ]),\n ];\n const _shipmentCount = await DispatchExecutor.getScannedShipmentsCount(\n currentIds\n );\n if (_shipmentCount) {\n setShipmentCount({\n scannedCount: _shipmentCount.scannedCount || 0,\n totalCount: _shipmentCount.totalCount || 0,\n });\n // setIsScreenLoaded((isScreenLoaded) => ({\n // ...isScreenLoaded,\n // shipmentCountLoaded: true,\n // }));\n }\n }\n };\n\n const addScans = async () => {\n const scan = scannedInput;\n if (isEmptyOrBlank(scan)) {\n // showToast('Empty AWB Code');\n setSnackBar({\n show: true,\n message: EMPTY_AWB,\n type: SnackBarType.FAILURE,\n });\n return;\n }\n\n if (isErcSelector && (!selectedEventCode || !selectedEventCode.code)) {\n // showToast('Empty AWB Code');\n setSnackBar({\n show: true,\n message: ER_MISSING.replace('<shipment_id>', scan),\n type: SnackBarType.FAILURE,\n });\n return;\n }\n\n setShowProgress(true);\n let isValidated = await checkForValidation(scan, props.validation);\n\n if (isValidated) {\n // NEW CODE\n try {\n const eventType = getEventType(\n eventCodeItems || [],\n selectedEventCode?.code || ''\n );\n\n const result = await DispatchExecutor.updateWIMapping(\n prefixedMergedObjectiveId,\n scan,\n {\n ec: selectedEventCode?.code || '',\n rc: selectedReason?.code || '',\n },\n props.scanToMerge || false\n );\n\n if ('data' in result) {\n const data: IDispatch.MappingUpdateResponse = result.data;\n const {\n message: { title, subTitle },\n } = data;\n if (subTitle) {\n setSnackBar({\n show: true,\n message: `#${scan}\\n${title}\\n${subTitle}`,\n type: SnackBarType.WARNING,\n });\n } else {\n setSnackBar({\n show: true,\n message: `#${scan}\\nShipment updated successfully!`,\n type: SnackBarType.SUCCESS,\n });\n }\n\n setScanText('');\n\n const _scanOutput = await getUpdatedScanETOutput(\n mergedScanETOutput,\n result,\n eventType,\n selectedEventCode?.code || '',\n selectedReason?.code || '',\n props.route,\n {\n jobId: data.jobId,\n displayInfo: data.displayInfo,\n isScan: true,\n scanId: scan,\n }\n );\n\n // UPDATE SHARED PREFERENCE\n updateSharedPreference(\n eventType,\n data.mwId,\n prefixedMergedObjectiveId\n );\n\n // UPDATE SCAN OUTPUT\n setMergedScanETOutput(_scanOutput);\n\n // UPDATE THE Count\n setShipmentCount((_shipmentCount) => {\n return {\n scannedCount: _shipmentCount.scannedCount + data.scanned,\n totalCount: _shipmentCount.totalCount + data.total,\n };\n });\n }\n } catch (error: any) {\n if (props.exitOnError) {\n setShowProgress(false);\n\n const etOutput = await getScanETOutput(\n mergedScanETOutput,\n props.mergedObjectiveId,\n eventCodeItems || [],\n props.defaultERC,\n DeliverState.CANCELLED,\n false,\n 0\n );\n\n props.onSubmitET(etOutput);\n } else {\n setSnackBar({\n show: true,\n ...getErrorMessage(scan, error),\n });\n }\n }\n } else {\n if (props.exitOnError) {\n setShowProgress(false);\n const etOutput = await getScanETOutput(\n mergedScanETOutput,\n props.mergedObjectiveId,\n eventCodeItems || [],\n props.defaultERC,\n DeliverState.CANCELLED,\n false,\n 0\n );\n\n props.onSubmitET(etOutput);\n } else {\n setSnackBar({\n show: true,\n message: INVALID_SHIPMENT,\n type: SnackBarType.FAILURE,\n });\n }\n }\n\n setShowProgress(false);\n };\n\n const renderActionButtons = () => {\n // NEW CODE\n return (\n <View>\n <Button\n labelStyle={CommonStyles.nextButtonLabel}\n style={CommonStyles.nextButton}\n uppercase={false}\n onPress={() => {\n setSnackBar({\n show: false,\n message: '',\n type: SnackBarType.SUCCESS,\n });\n setShowScanList(!showScanList);\n }}\n >\n {`View Summary`}\n </Button>\n </View>\n );\n };\n\n // Handle back-button click when scanList was being viewed\n useFocusEffect(\n React.useCallback(() => {\n const onBackPress = () => {\n if (showScanList) {\n setShowScanList(false);\n return true;\n } else {\n setShowUnscannedShipmentModal(true);\n // props.navigation.goBack();\n return true;\n }\n };\n BackHandler.addEventListener('hardwareBackPress', onBackPress);\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', onBackPress);\n }, [showScanList])\n );\n\n useEffect(() => {\n if (showScanList) {\n props.navigation.setOptions({\n title: 'Summary',\n });\n } else {\n props.navigation.setOptions({\n title: `${props.title}`,\n });\n }\n }, [showScanList]);\n\n useEffect(() => {\n let timeout: ReturnType<typeof setTimeout>;\n if (!showScanner) {\n timeout = setTimeout(() => {\n setShowScanner(true);\n }, 500);\n }\n return () => {\n clearTimeout(timeout);\n };\n }, [showScanner]);\n\n const renderModal = () => {\n return (\n <GoBackModal\n showModal={showBackModal}\n setShowModal={setShowBackModal}\n onSuccess={async () => {\n const output = await getBaseETResponse(\n EntityCode.SCAN,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.SCAN\n );\n const _scanOutput = {\n ['default']: { output, count: shipmentCount.totalCount },\n };\n props.onSubmitET(_scanOutput);\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n // TODO: Modify to Modal Widget\n const renderUnscannedShipmentModal = () => {\n return (\n <Portal>\n <Modal\n visible={showUnscannedShipmentModal}\n dismissable={true}\n contentContainerStyle={[\n styles.modalContent,\n { marginStart: 40, marginEnd: 40 },\n ]}\n >\n <View style={styles.modalView}>\n <View\n style={{\n justifyContent: 'center',\n alignItems: 'center',\n marginBottom: 10,\n }}\n >\n <AntDesign name=\"exclamationcircleo\" size={40} color=\"#D97706\" />\n </View>\n <Text style={styles.titleText}>{'Exit scan flow?'}</Text>\n <Text\n style={[\n styles.unscannedShipmentModalSubText,\n { textAlign: 'center' },\n ]}\n >\n {'All the progress made will be lost'}\n </Text>\n\n <Button\n labelStyle={CommonStyles.nextButtonLabel}\n style={{ ...CommonStyles.nextButton, marginTop: 20 }}\n uppercase={false}\n onPress={() => setShowUnscannedShipmentModal(false)}\n >\n Continue Scanning\n </Button>\n <TouchableOpacity\n style={{\n ...CommonStyles.cancelButton,\n marginTop: 10,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n }}\n onPress={async () => {\n setSnackBar({\n show: false,\n message: '',\n type: SnackBarType.SUCCESS,\n });\n\n // Clear Scan\n await Promise.all([\n clearScanOutput(prefixedMergedObjectiveId),\n DispatchExecutor.removeShipment(prefixedMergedObjectiveId),\n ]);\n\n props.navigation.goBack();\n }}\n >\n <Text style={CommonStyles.cancelButtonLabel}>Exit Scan Flow</Text>\n </TouchableOpacity>\n </View>\n </Modal>\n </Portal>\n );\n };\n\n const renderShipmentCount = () => {\n return (\n <View\n style={{\n justifyContent: 'flex-end',\n marginStart: 10,\n marginEnd: 10,\n marginBottom: 10,\n }}\n >\n {isMultiObjectiveEnable ||\n props.scanMode === 'SINGLE' ||\n props.validation.selectedIndex === 0 ||\n props.scanCountLimit ? (\n <Text>{`${shipmentCount.scannedCount}/${shipmentCount.totalCount} shipments scanned.`}</Text>\n ) : props.validation.selectedIndex === 1 ||\n props.validation.selectedIndex === 2 ? (\n <Text>{`${shipmentCount.scannedCount} shipments scanned.`}</Text>\n ) : null}\n </View>\n );\n };\n\n if (showScanList) {\n return (\n <Provider>\n {renderModal()}\n <View style={CommonStyles.mainContainer}>\n <SummaryPage\n ercSelector={props.ercSelector || []}\n eventCodeItems={eventCodeItems ?? []}\n handleSubmitET={handleSubmitET}\n shipmentCount={shipmentCount}\n updateShipmentCount={updateShipmentCount}\n scanProps={props}\n mergedScanETOutput={mergedScanETOutput}\n />\n </View>\n </Provider>\n );\n } else {\n return (\n <Provider>\n <View style={CommonStyles.mainContainer}>\n {renderModal()}\n {renderUnscannedShipmentModal()}\n <ProgressDialog visible={showProgress} label={PLEASE_WAIT} />\n <View style={{ flex: 1 }}>\n {props.ercSelector && (\n <View style={{ marginHorizontal: 16 }}>\n <View style={{ marginBottom: 16 }}>\n <ERDropDown\n title={'Event'}\n style={{ height: 50 }}\n selectedReason={selectedEventCode}\n items={eventCodeItems ?? []}\n onItemChange={(eventItem: ercItem | null) => {\n if (eventItem !== null) setSelectedEventCode(eventItem);\n }}\n />\n </View>\n <View style={{ marginVertical: 16 }}>\n <ERDropDown\n title={'Reason'}\n style={{ height: 50 }}\n selectedReason={selectedReason}\n disabled={\n !reasonItems || !reasonItems?.length ? true : false\n }\n items={reasonItems ?? []}\n onItemChange={(reasonItem: ercItem | null) => {\n if (reasonItem !== null) setSelectedReason(reasonItem);\n }}\n />\n </View>\n </View>\n )}\n <View style={styles.addShipmentStyle}>\n <TextInput\n returnKeyType={'done'}\n ref={refInput}\n onSubmitEditing={async () => {\n setScannedInput(scanText);\n }}\n value={scanText}\n onChangeText={setScanText}\n style={{\n borderBottomColor: '#DDDDDD',\n borderBottomWidth: 1,\n marginEnd: 20,\n flex: 1,\n fontSize: 16,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n color: '#CECECE',\n }}\n placeholder={'Enter Shipment ID'}\n />\n <TouchableOpacity\n style={{\n alignSelf: 'center',\n justifyContent: 'center',\n paddingVertical: 9,\n paddingHorizontal: 17,\n borderWidth: 1,\n borderRadius: 6,\n borderColor: '#E0E3EB',\n }}\n onPress={async () => {\n setSnackBar({\n show: false,\n message: '',\n type: SnackBarType.SUCCESS,\n });\n setScannedInput(scanText);\n }}\n >\n <Text\n style={{\n fontSize: 14,\n fontFamily: Fonts.IBMPlexSans_500Medium,\n lineHeight: 20,\n color: '#3D445C',\n }}\n >\n {'APPLY'}\n </Text>\n </TouchableOpacity>\n </View>\n <View style={styles.cameraContainer}>\n {showScanner ? (\n <CScanner\n barCodeTypes={getBarCodeTypes(props)}\n onScanned={_handleBarCodeScanned}\n />\n ) : null}\n </View>\n </View>\n <View style={{ justifyContent: 'flex-end' }}>\n <SnackBarCustom\n type={snackBar.type}\n message={`${snackBar.message}`}\n visible={snackBar.show}\n onDismiss={() => {\n setSnackBar({\n show: false,\n message: '',\n type: SnackBarType.SUCCESS,\n });\n }}\n customBottom={20}\n />\n </View>\n <View style={styles.bottomView}>\n {renderShipmentCount()}\n {renderActionButtons()}\n </View>\n </View>\n </Provider>\n );\n }\n};\n\nexport default ScanET;\n\nconst styles = StyleSheet.create({\n cameraContainer: {\n flex: 1,\n backgroundColor: '#000',\n justifyContent: 'center',\n alignItems: 'center',\n zIndex: -1,\n },\n addShipmentStyle: {\n marginTop: 32,\n marginBottom: 10,\n marginHorizontal: 16,\n flexDirection: 'row',\n zIndex: -1,\n },\n bottomView: {\n paddingBottom: 16,\n justifyContent: 'flex-end',\n marginVertical: 10,\n marginHorizontal: 16,\n },\n addButtonLabel: {\n color: '#3D445C',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 16,\n fontWeight: '600',\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n centerView: {\n flex: 1,\n justifyContent: 'center',\n alignContent: 'center',\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n marginBottom: 10,\n },\n subText: {\n justifyContent: 'center',\n fontFamily: 'IBMPlexSans_400Regular',\n fontStyle: 'normal',\n fontSize: 14,\n letterSpacing: 0.25,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n marginBottom: 10,\n },\n bottomButtons: {\n justifyContent: 'space-between',\n flexDirection: 'row',\n marginTop: 8,\n },\n unscannedShipmentModalSubText: {\n justifyContent: 'center',\n fontFamily: 'IBMPlexSans_400Regular',\n fontStyle: 'normal',\n fontSize: 14,\n letterSpacing: 0.25,\n lineHeight: 20,\n color: '#000000',\n marginBottom: 10,\n },\n modalDefaultERCStyle: {\n color: '#A3AAC2',\n fontSize: 14,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n },\n});\n"],"mappings":"AAAA,SACEA,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,SAAS,EACTC,gBAAgB,EAChBC,WAAW,QACN,cAAc;AACrB,OAAOC,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,eAAe,QAAQ,OAAO;AAC3E,SAASC,YAAY,QAA2B,cAAc;AAC9D,SACEC,YAAY,EACZC,KAAK,QACA,6CAA6C;AACpD,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,WAAW,QAAQ,sBAAsB;AAClD,OAAOC,QAAQ,MAAM,2BAA2B;AAChD,SACEC,kBAAkB,EAClBC,eAAe,EACfC,eAAe,EACfC,eAAe,EACfC,YAAY,EACZC,eAAe,EACfC,mBAAmB,EAGnBC,WAAW,EACXC,sBAAsB,EAG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EAChB,CAAC;EACDgE,oBAAoB,EAAE;IACpBhK,KAAK,EAAE,SAAS;IAChBiI,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAEjQ,KAAK,CAACgS;EACpB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Type of scan to support barcode scanner types
|
|
2
|
+
|
|
3
|
+
// Mode of scanning
|
|
4
|
+
|
|
5
|
+
// Max limit of items to be scanned in multi-scan mode
|
|
6
|
+
|
|
7
|
+
// Scans input from the payload
|
|
8
|
+
|
|
9
|
+
// Regex to validate scanned strings
|
|
10
|
+
|
|
11
|
+
export let DeliverState = /*#__PURE__*/function (DeliverState) {
|
|
12
|
+
DeliverState["CANCELLED"] = "CANCELLED";
|
|
13
|
+
DeliverState["DELIVERE_LATER"] = "DELIVER_LATER";
|
|
14
|
+
DeliverState["DELIVER_NOW"] = "DELIVER_NOW";
|
|
15
|
+
return DeliverState;
|
|
16
|
+
}({});
|
|
17
|
+
//# sourceMappingURL=ScanSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DeliverState"],"sources":["ScanSchema.ts"],"sourcesContent":["import type { PathParams, QueryParams } from '../../../utils/ApiUtils';\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\nimport type {\n Headers,\n HTTPMethod,\n HTTPRequestBody,\n} from '../httpRequest/HttpRequestETSchema';\nimport { BaseETProps } from '../../../models/DispatchModels';\n\nexport type ScanType = Array<ScannerType>; // Type of scan to support barcode scanner types\n\nexport type ScannerType =\n | 'QRCODE'\n | 'aztec'\n | 'codabar'\n | 'code39'\n | 'code93'\n | 'code128'\n | 'datamatrix'\n | 'ean13'\n | 'ean8'\n | 'itf14'\n | 'pdf417'\n | 'upc_e';\n\nexport type ScanMode = 'SINGLE' | 'MULTI'; // Mode of scanning\n\nexport type MaxScanCount = number; // Max limit of items to be scanned in multi-scan mode\n\nexport type Scans = Array<string>; // Scans input from the payload\n\nexport type ValidationRegex = string; // Regex to validate scanned strings\n\nexport interface API {\n uri: string;\n timeout?: number;\n httpMethod: HTTPMethod;\n headers?: Headers[];\n requestBody?: HTTPRequestBody;\n queryParams?: QueryParams[];\n pathParams?: PathParams[];\n responseJsonLogic: object;\n errorJsonLogic: object;\n}\n\nexport interface Validation {\n selectedIndex: number;\n logic: Scans | ValidationRegex | API;\n}\n\nexport type MultiAdditionalConfig = 'ALL_OR_NONE' | 'SUBSET_OF_LIST';\n\nexport interface AdditionalMultiConfig {\n validationType: MultiAdditionalConfig;\n}\n\nexport interface ERCode {\n eventCode: string;\n reasonCode?: string[];\n}\n\nexport interface DefaultERC {\n eventCode: string;\n reasonCode?: string;\n}\n\nexport interface ScannedInput {\n scanType: ScanType;\n}\n\nexport type ScannerInput = BaseETRequest &\n AdditionData & {\n scannedInput: ScannedInput;\n scanMode: ScanMode;\n scanCountLimit?: MaxScanCount;\n validation: Validation;\n additionalMultiConfig?: AdditionalMultiConfig;\n defaultERC: DefaultERC;\n ercSelector?: ERCode[];\n exitOnError?: boolean;\n scanToMerge?: boolean;\n meta?: { [k: string]: any };\n persistData: boolean;\n onSubmitET: (scanETOutput: ScannerOutput) => void;\n } & BaseETProps;\n\nexport interface ScanData {\n value: string; // Value of scanned item\n validated?: boolean; // Boolean to denote if scan was validate successfully\n timestamp: number; // Epoch timestamp for the scan\n}\n\nexport interface ScannerOutput {\n // Key can be 'default' also when default erc needs to be applied for rest of the workflowInstance\n [mergedObjectiveId: string]: { output: BaseETResponse; count: number };\n}\n\nexport interface AdditionData {\n wfMeta: any;\n mergedObjectiveId: string;\n}\n\nexport interface IWIMappingUpdate {\n data: {\n scanned: number;\n total: number;\n mwId: string;\n jobId: string;\n displayInfo: any;\n previousMWID: string;\n };\n}\n\nexport enum DeliverState {\n CANCELLED = 'CANCELLED',\n DELIVERE_LATER = 'DELIVER_LATER',\n DELIVER_NOW = 'DELIVER_NOW',\n}\n"],"mappings":"AAY2C;;AAgBA;;AAER;;AAEA;;AAEG;;AAkFtC,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const MAX_SHIPMENT_REACHED = `Max count of allowed shipments reached`;
|
|
2
|
+
export const EMPTY_AWB = `Empty Shipment ID`;
|
|
3
|
+
export const SHIPMENT_ALREADY_ADDED = `Shipment #<shipment_id> already added`;
|
|
4
|
+
export const ADD_SHIPMENT = `Shipment #<shipment_id> scanned successfully`;
|
|
5
|
+
export const INVALID_SHIPMENT = `Scanned Shipment is not a part of this order`;
|
|
6
|
+
export const ER_MISSING = `Select Event code from drodown to scan shipment #<shipment_id>`;
|
|
7
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MAX_SHIPMENT_REACHED","EMPTY_AWB","SHIPMENT_ALREADY_ADDED","ADD_SHIPMENT","INVALID_SHIPMENT","ER_MISSING"],"sources":["constants.ts"],"sourcesContent":["export const MAX_SHIPMENT_REACHED = `Max count of allowed shipments reached`;\nexport const EMPTY_AWB = `Empty Shipment ID`;\nexport const SHIPMENT_ALREADY_ADDED = `Shipment #<shipment_id> already added`;\nexport const ADD_SHIPMENT = `Shipment #<shipment_id> scanned successfully`;\nexport const INVALID_SHIPMENT = `Scanned Shipment is not a part of this order`;\nexport const ER_MISSING = `Select Event code from drodown to scan shipment #<shipment_id>`;\n"],"mappings":"AAAA,OAAO,MAAMA,oBAAoB,GAAI,wCAAuC;AAC5E,OAAO,MAAMC,SAAS,GAAI,mBAAkB;AAC5C,OAAO,MAAMC,sBAAsB,GAAI,uCAAsC;AAC7E,OAAO,MAAMC,YAAY,GAAI,8CAA6C;AAC1E,OAAO,MAAMC,gBAAgB,GAAI,8CAA6C;AAC9E,OAAO,MAAMC,UAAU,GAAI,gEAA+D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export let ExpoBarcodeTypes = /*#__PURE__*/function (ExpoBarcodeTypes) {
|
|
2
|
+
ExpoBarcodeTypes["QRCODE"] = "QRCODE";
|
|
3
|
+
ExpoBarcodeTypes["aztec"] = "aztec";
|
|
4
|
+
ExpoBarcodeTypes["codabar"] = "codabar";
|
|
5
|
+
ExpoBarcodeTypes["code39"] = "code39";
|
|
6
|
+
ExpoBarcodeTypes["code93"] = "code93";
|
|
7
|
+
ExpoBarcodeTypes["code128"] = "code128";
|
|
8
|
+
ExpoBarcodeTypes["datamatrix"] = "datamatrix";
|
|
9
|
+
ExpoBarcodeTypes["ean13"] = "ean13";
|
|
10
|
+
ExpoBarcodeTypes["ean8"] = "ean8";
|
|
11
|
+
ExpoBarcodeTypes["itf14"] = "itf14";
|
|
12
|
+
ExpoBarcodeTypes["pdf417"] = "pdf417";
|
|
13
|
+
ExpoBarcodeTypes["upc_e"] = "upc_e";
|
|
14
|
+
return ExpoBarcodeTypes;
|
|
15
|
+
}({});
|
|
16
|
+
export let SCAN_STATUS = /*#__PURE__*/function (SCAN_STATUS) {
|
|
17
|
+
SCAN_STATUS[SCAN_STATUS["SCANNED"] = 0] = "SCANNED";
|
|
18
|
+
SCAN_STATUS[SCAN_STATUS["FAILED"] = 1] = "FAILED";
|
|
19
|
+
return SCAN_STATUS;
|
|
20
|
+
}({});
|
|
21
|
+
export let PROCEED_STATUS = /*#__PURE__*/function (PROCEED_STATUS) {
|
|
22
|
+
PROCEED_STATUS["DELIVER_NOW"] = "DELIVER_NOW";
|
|
23
|
+
PROCEED_STATUS["DELIVER_LATER"] = "DELIVER_LATER";
|
|
24
|
+
return PROCEED_STATUS;
|
|
25
|
+
}({});
|
|
26
|
+
export let SummaryPageTabs = /*#__PURE__*/function (SummaryPageTabs) {
|
|
27
|
+
SummaryPageTabs["ALL"] = "All";
|
|
28
|
+
SummaryPageTabs["PENDING"] = "Pending";
|
|
29
|
+
SummaryPageTabs["DELIVERED"] = "Delivered";
|
|
30
|
+
SummaryPageTabs["UNDELIVERED"] = "Undelivered";
|
|
31
|
+
return SummaryPageTabs;
|
|
32
|
+
}({});
|
|
33
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ExpoBarcodeTypes","SCAN_STATUS","PROCEED_STATUS","SummaryPageTabs"],"sources":["interfaces.ts"],"sourcesContent":["import { SnackBarType } from 'src/components/widgets/SnackBarCustom';\nimport { ScannerOutput } from './ScanSchema';\nimport { IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';\n\nexport enum ExpoBarcodeTypes {\n QRCODE = 'QRCODE',\n aztec = 'aztec',\n codabar = 'codabar',\n code39 = 'code39',\n code93 = 'code93',\n code128 = 'code128',\n datamatrix = 'datamatrix',\n ean13 = 'ean13',\n ean8 = 'ean8',\n itf14 = 'itf14',\n pdf417 = 'pdf417',\n upc_e = 'upc_e',\n}\n\nexport enum SCAN_STATUS {\n SCANNED,\n FAILED,\n}\n\nexport interface ScannedItemData {\n value: string; // Value of scanned item\n validated?: boolean; // Boolean to denote if scan was validate successfully\n timestamp?: number; // Epoch timestamp for the scan\n reasonCode?: string;\n reasonText?: string;\n success?: boolean;\n scanStatus: SCAN_STATUS;\n}\n\nexport interface MergedScan {\n value: string;\n mergedObjectiveId?: string;\n validated?: boolean;\n timestamp?: number;\n scanStatus?: SCAN_STATUS;\n eventCode?: string;\n reasonCode?: string;\n success?: boolean;\n}\n\nexport interface BlindScan {\n maxCount: number;\n scannedCount: number;\n}\n\nexport enum PROCEED_STATUS {\n DELIVER_NOW = 'DELIVER_NOW',\n DELIVER_LATER = 'DELIVER_LATER',\n}\n\nexport enum SummaryPageTabs {\n ALL = 'All',\n PENDING = 'Pending',\n DELIVERED = 'Delivered',\n UNDELIVERED = 'Undelivered',\n}\n\nexport interface DisplaySummary {\n scanId: string;\n eventCode: string;\n reasonCode: string;\n clientName?: string;\n orderId?: string;\n prefixedMergedObjectiveId: string;\n lastStatus: IDispatchExecutor.ExecutionStatus;\n}\n\nexport type ListItem = DisplaySummary & {\n index: number;\n};\n\nexport interface SummaryDisplayData {\n data: DisplaySummary[];\n totalCount: number;\n}\n\nexport interface ADD_SCAN {\n status: boolean;\n message: string;\n type: SnackBarType;\n exit?: boolean;\n data?: any;\n}\n\nexport interface SCAN_MERGED_OBJ_ID_INTEFACE {\n [prefixedMergedObjectiveId: string]: SCANNED_RECORD;\n}\n\nexport interface SCANNED_RECORD {\n success: string[]; // Array merged objective ids which are of success type\n failure: string[]; // Array merged objective ids which are of failure type\n pending: string[]; // Array merged objective ids which are of pending type\n}\n\nexport interface SHARED_PREF_SCAN_OUTPUT_INTERFACE {\n [prefixedMergedObjectiveId: string]: ScannerOutput;\n}\n\nexport interface TabRecord {\n [SummaryPageTabs.ALL]: number;\n [SummaryPageTabs.PENDING]: number;\n [SummaryPageTabs.DELIVERED]: number;\n [SummaryPageTabs.UNDELIVERED]: number;\n}\n"],"mappings":"AAIA,WAAYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAe5B,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AA+BvB,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAK1B,WAAYC,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export const undeliveredShipmentModal = input => {
|
|
2
|
+
return {
|
|
3
|
+
title: {
|
|
4
|
+
label: 'Pending Shipments!'
|
|
5
|
+
},
|
|
6
|
+
subTitle: {
|
|
7
|
+
label: `You still have ${input.pendingCount} unscanned shipment!`,
|
|
8
|
+
styles: {
|
|
9
|
+
textAlign: 'center'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
primaryButton: {
|
|
13
|
+
label: 'Deliver at different location',
|
|
14
|
+
onPress: input.primaryButtonPress,
|
|
15
|
+
styles: input.primaryButtonStyles
|
|
16
|
+
},
|
|
17
|
+
secondaryButton: {
|
|
18
|
+
label: 'Mark as Undelivered',
|
|
19
|
+
onPress: input.secondaryButtonPress,
|
|
20
|
+
styles: input.secondaryButtonStyles
|
|
21
|
+
},
|
|
22
|
+
renderAdditionalButtons: input.renderAdditionalButton
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export const ercModal = input => {
|
|
26
|
+
return {
|
|
27
|
+
contentContainerStyle: {
|
|
28
|
+
marginStart: 40,
|
|
29
|
+
marginEnd: 40
|
|
30
|
+
},
|
|
31
|
+
title: {
|
|
32
|
+
label: 'Mark as Undelivered'
|
|
33
|
+
},
|
|
34
|
+
subTitle: {
|
|
35
|
+
label: `The shipments shall be updated with the following status:`
|
|
36
|
+
},
|
|
37
|
+
renderChildren: input.renderChildren,
|
|
38
|
+
primaryButton: {
|
|
39
|
+
label: 'Proceed',
|
|
40
|
+
onPress: input.primaryButtonPress,
|
|
41
|
+
styles: input.primaryButtonStyles
|
|
42
|
+
},
|
|
43
|
+
secondaryButton: {
|
|
44
|
+
label: 'Cancel',
|
|
45
|
+
onPress: input.secondaryButtonPress,
|
|
46
|
+
styles: input.secondaryButtonStyles
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export const removeShipmentModal = input => {
|
|
51
|
+
return {
|
|
52
|
+
title: {
|
|
53
|
+
label: 'Remove Shipment'
|
|
54
|
+
},
|
|
55
|
+
subTitle: {
|
|
56
|
+
label: `Are you sure you want to remove this shipment?`,
|
|
57
|
+
styles: input.subTitleStyle
|
|
58
|
+
},
|
|
59
|
+
primaryButton: {
|
|
60
|
+
label: 'Proceed to Remove',
|
|
61
|
+
onPress: input.primaryButtonPress,
|
|
62
|
+
styles: input.primaryButtonStyles
|
|
63
|
+
},
|
|
64
|
+
secondaryButton: {
|
|
65
|
+
label: 'Cancel',
|
|
66
|
+
onPress: input.secondaryButtonPress,
|
|
67
|
+
styles: input.secondaryButtonStyles
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export const editERCModal = input => {
|
|
72
|
+
return {
|
|
73
|
+
title: {
|
|
74
|
+
label: 'Update'
|
|
75
|
+
},
|
|
76
|
+
contentContainerStyle: {
|
|
77
|
+
marginStart: 40,
|
|
78
|
+
marginEnd: 40
|
|
79
|
+
},
|
|
80
|
+
renderChildren: input.renderChildren,
|
|
81
|
+
buttonStyle: input.buttonStyles,
|
|
82
|
+
primaryButton: {
|
|
83
|
+
label: 'Update',
|
|
84
|
+
onPress: input.primaryButtonPress,
|
|
85
|
+
styles: input.primaryButtonStyles
|
|
86
|
+
},
|
|
87
|
+
secondaryButton: {
|
|
88
|
+
label: 'Cancel',
|
|
89
|
+
onPress: input.secondaryButtonPress,
|
|
90
|
+
styles: input.secondaryButtonStyles
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=modalConstant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["undeliveredShipmentModal","input","title","label","subTitle","pendingCount","styles","textAlign","primaryButton","onPress","primaryButtonPress","primaryButtonStyles","secondaryButton","secondaryButtonPress","secondaryButtonStyles","renderAdditionalButtons","renderAdditionalButton","ercModal","contentContainerStyle","marginStart","marginEnd","renderChildren","removeShipmentModal","subTitleStyle","editERCModal","buttonStyle","buttonStyles"],"sources":["modalConstant.ts"],"sourcesContent":["import { ModalHookProps } from '../../../utils/hooks/useModal';\n\ninterface UndeliveredShipmentModalInput {\n pendingCount: number;\n primaryButtonPress: () => any;\n secondaryButtonPress: () => any;\n primaryButtonStyles: any;\n secondaryButtonStyles: any;\n renderAdditionalButton: () => JSX.Element;\n}\n\nexport const undeliveredShipmentModal = (\n input: UndeliveredShipmentModalInput\n): ModalHookProps => {\n return {\n title: { label: 'Pending Shipments!' },\n subTitle: {\n label: `You still have ${input.pendingCount} unscanned shipment!`,\n styles: { textAlign: 'center' },\n },\n primaryButton: {\n label: 'Deliver at different location',\n onPress: input.primaryButtonPress,\n styles: input.primaryButtonStyles,\n },\n secondaryButton: {\n label: 'Mark as Undelivered',\n onPress: input.secondaryButtonPress,\n styles: input.secondaryButtonStyles,\n },\n renderAdditionalButtons: input.renderAdditionalButton,\n };\n};\n\ninterface ERCModalInput {\n renderChildren: () => JSX.Element;\n primaryButtonPress: () => any;\n secondaryButtonPress: () => any;\n primaryButtonStyles: any;\n secondaryButtonStyles: any;\n}\n\nexport const ercModal = (input: ERCModalInput): ModalHookProps => {\n return {\n contentContainerStyle: { marginStart: 40, marginEnd: 40 },\n title: { label: 'Mark as Undelivered' },\n subTitle: {\n label: `The shipments shall be updated with the following status:`,\n },\n renderChildren: input.renderChildren,\n primaryButton: {\n label: 'Proceed',\n onPress: input.primaryButtonPress,\n styles: input.primaryButtonStyles,\n },\n secondaryButton: {\n label: 'Cancel',\n onPress: input.secondaryButtonPress,\n styles: input.secondaryButtonStyles,\n },\n };\n};\n\ninterface RemoveShipmentModalInput {\n primaryButtonPress: () => any;\n secondaryButtonPress: () => any;\n subTitleStyle: any;\n primaryButtonStyles: any;\n secondaryButtonStyles: any;\n}\n\nexport const removeShipmentModal = (\n input: RemoveShipmentModalInput\n): ModalHookProps => {\n return {\n title: { label: 'Remove Shipment' },\n subTitle: {\n label: `Are you sure you want to remove this shipment?`,\n styles: input.subTitleStyle,\n },\n primaryButton: {\n label: 'Proceed to Remove',\n onPress: input.primaryButtonPress,\n styles: input.primaryButtonStyles,\n },\n secondaryButton: {\n label: 'Cancel',\n onPress: input.secondaryButtonPress,\n styles: input.secondaryButtonStyles,\n },\n };\n};\n\ninterface EditERCModalInput {\n renderChildren: () => JSX.Element;\n buttonStyles: any;\n primaryButtonPress: () => any;\n secondaryButtonPress: () => any;\n primaryButtonStyles: any;\n secondaryButtonStyles: any;\n}\n\nexport const editERCModal = (input: EditERCModalInput): ModalHookProps => {\n return {\n title: { label: 'Update' },\n contentContainerStyle: { marginStart: 40, marginEnd: 40 },\n renderChildren: input.renderChildren,\n buttonStyle: input.buttonStyles,\n primaryButton: {\n label: 'Update',\n onPress: input.primaryButtonPress,\n styles: input.primaryButtonStyles,\n },\n secondaryButton: {\n label: 'Cancel',\n onPress: input.secondaryButtonPress,\n styles: input.secondaryButtonStyles,\n },\n };\n};\n"],"mappings":"AAWA,OAAO,MAAMA,wBAAwB,GACnCC,KAAoC,IACjB;EACnB,OAAO;IACLC,KAAK,EAAE;MAAEC,KAAK,EAAE;IAAqB,CAAC;IACtCC,QAAQ,EAAE;MACRD,KAAK,EAAG,kBAAiBF,KAAK,CAACI,YAAa,sBAAqB;MACjEC,MAAM,EAAE;QAAEC,SAAS,EAAE;MAAS;IAChC,CAAC;IACDC,aAAa,EAAE;MACbL,KAAK,EAAE,+BAA+B;MACtCM,OAAO,EAAER,KAAK,CAACS,kBAAkB;MACjCJ,MAAM,EAAEL,KAAK,CAACU;IAChB,CAAC;IACDC,eAAe,EAAE;MACfT,KAAK,EAAE,qBAAqB;MAC5BM,OAAO,EAAER,KAAK,CAACY,oBAAoB;MACnCP,MAAM,EAAEL,KAAK,CAACa;IAChB,CAAC;IACDC,uBAAuB,EAAEd,KAAK,CAACe;EACjC,CAAC;AACH,CAAC;AAUD,OAAO,MAAMC,QAAQ,GAAIhB,KAAoB,IAAqB;EAChE,OAAO;IACLiB,qBAAqB,EAAE;MAAEC,WAAW,EAAE,EAAE;MAAEC,SAAS,EAAE;IAAG,CAAC;IACzDlB,KAAK,EAAE;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CJ,MAAM,EAAEL,KAAK,CAACU;IAChB,CAAC;IACDC,eAAe,EAAE;MACfT,KAAK,EAAE,QAAQ;MACfM,OAAO,EAAER,KAAK,CAACY,oBAAoB;MACnCP,MAAM,EAAEL,KAAK,CAACa;IAChB;EACF,CAAC;AACH,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { memo, useEffect, useState } from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import { Camera } from 'expo-camera';
|
|
4
|
-
import { isEmptyOrBlank } from '
|
|
5
|
-
import { checkCameraPermissionUtil } from '
|
|
4
|
+
import { isEmptyOrBlank } from '../../../../utils/utils';
|
|
5
|
+
import { checkCameraPermissionUtil } from '../../imageCapture/CaptureUtils';
|
|
6
6
|
import { Title } from 'react-native-paper';
|
|
7
7
|
import { BlurView } from 'expo-blur';
|
|
8
8
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
9
|
-
import { Fonts } from '
|
|
10
|
-
|
|
9
|
+
import { Fonts } from '../../../../styles/executionTasks/CommonStyles';
|
|
11
10
|
function Hint(_ref) {
|
|
12
11
|
let {
|
|
13
12
|
children
|
|
@@ -20,12 +19,11 @@ function Hint(_ref) {
|
|
|
20
19
|
style: styles.headerText
|
|
21
20
|
}, children));
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
const CScanner = props => {
|
|
25
23
|
const [isVisible, setVisible] = useState(true);
|
|
26
24
|
const [hasPermission, setHasPermission] = useState(null);
|
|
27
25
|
const {
|
|
28
|
-
|
|
26
|
+
top
|
|
29
27
|
} = useSafeAreaInsets();
|
|
30
28
|
useEffect(() => {
|
|
31
29
|
(async () => {
|
|
@@ -33,14 +31,12 @@ const CScanner = props => {
|
|
|
33
31
|
setHasPermission(response);
|
|
34
32
|
})();
|
|
35
33
|
}, []);
|
|
36
|
-
|
|
37
34
|
const _handleBarCodeScanned = scan => {
|
|
38
35
|
if (!isEmptyOrBlank(scan.data)) {
|
|
39
36
|
setVisible(false);
|
|
40
37
|
props.onScanned(scan.data);
|
|
41
38
|
}
|
|
42
39
|
};
|
|
43
|
-
|
|
44
40
|
if (!hasPermission) {
|
|
45
41
|
return /*#__PURE__*/React.createElement(View, {
|
|
46
42
|
style: {
|
|
@@ -51,10 +47,7 @@ const CScanner = props => {
|
|
|
51
47
|
}, /*#__PURE__*/React.createElement(Title, null, 'No Permissions for Camera. Please provide camera permissions from app\
|
|
52
48
|
settings.'));
|
|
53
49
|
}
|
|
54
|
-
|
|
55
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
56
|
-
style: styles.container
|
|
57
|
-
}, isVisible ? /*#__PURE__*/React.createElement(Camera, {
|
|
50
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isVisible ? /*#__PURE__*/React.createElement(Camera, {
|
|
58
51
|
barCodeScannerSettings: {
|
|
59
52
|
barCodeTypes: props.barCodeTypes
|
|
60
53
|
},
|
|
@@ -62,12 +55,12 @@ const CScanner = props => {
|
|
|
62
55
|
style: StyleSheet.absoluteFill
|
|
63
56
|
}) : null, /*#__PURE__*/React.createElement(View, {
|
|
64
57
|
style: [styles.header, {
|
|
65
|
-
|
|
58
|
+
top: 16 + top
|
|
66
59
|
}]
|
|
67
|
-
}, /*#__PURE__*/React.createElement(Hint, null, 'or \nScan
|
|
68
|
-
};
|
|
69
|
-
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Hint, null, 'or \nScan Shipment ID')));
|
|
61
|
+
};
|
|
70
62
|
|
|
63
|
+
// exporting Scanner as Pure Component
|
|
71
64
|
export default /*#__PURE__*/memo(CScanner);
|
|
72
65
|
const styles = StyleSheet.create({
|
|
73
66
|
container: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useState","StyleSheet","Text","View","Camera","isEmptyOrBlank","checkCameraPermissionUtil","Title","BlurView","useSafeAreaInsets","Fonts","Hint","_ref","children","createElement","style","styles","hint","intensity","tint","headerText","CScanner","props","isVisible","setVisible","hasPermission","setHasPermission","top","response","_handleBarCodeScanned","scan","data","onScanned","flex","justifyContent","alignItems","Fragment","barCodeScannerSettings","barCodeTypes","onBarCodeScanned","absoluteFill","header","create","container","backgroundColor","paddingHorizontal","paddingVertical","overflow","color","textAlign","fontSize","fontWeight","position","left","right","fontFamily","IBMPlexSans_600SemiBold"],"sources":["CScanner.tsx"],"sourcesContent":["import React, { memo, useEffect, useState } from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\nimport { BarCodeScanningResult, Camera } from 'expo-camera';\nimport { isEmptyOrBlank } from '../../../../utils/utils';\nimport { checkCameraPermissionUtil } from '../../imageCapture/CaptureUtils';\nimport { Title } from 'react-native-paper';\nimport { BlurView } from 'expo-blur';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { Fonts } from '../../../../styles/executionTasks/CommonStyles';\n\nfunction Hint({ children }: { children: string }) {\n return (\n <BlurView style={styles.hint} intensity={50} tint=\"dark\">\n <Text style={styles.headerText}>{children}</Text>\n </BlurView>\n );\n}\nconst CScanner = (props: CScannerProps) => {\n const [isVisible, setVisible] = useState(true);\n const [hasPermission, setHasPermission] = useState<boolean | null>(null);\n const { top } = useSafeAreaInsets();\n\n useEffect(() => {\n (async () => {\n let response = await checkCameraPermissionUtil();\n setHasPermission(response);\n })();\n }, []);\n\n const _handleBarCodeScanned = (scan: BarCodeScanningResult) => {\n if (!isEmptyOrBlank(scan.data)) {\n setVisible(false);\n props.onScanned(scan.data);\n }\n };\n\n if (!hasPermission) {\n return (\n <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>\n <Title>\n {\n 'No Permissions for Camera. Please provide camera permissions from app\\\n settings.'\n }\n </Title>\n </View>\n );\n }\n return (\n <>\n {isVisible ? (\n <Camera\n barCodeScannerSettings={{\n barCodeTypes: props.barCodeTypes,\n }}\n onBarCodeScanned={_handleBarCodeScanned}\n style={StyleSheet.absoluteFill}\n />\n ) : null}\n <View style={[styles.header, { top: 16 + top }]}>\n <Hint>{'or \\nScan Shipment ID'}</Hint>\n </View>\n </>\n );\n};\n\n// exporting Scanner as Pure Component\nexport default memo(CScanner);\n\nexport interface CScannerProps {\n barCodeTypes: any[];\n onScanned: (value: string) => void;\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#000',\n justifyContent: 'center',\n alignItems: 'center',\n },\n hint: {\n paddingHorizontal: 16,\n paddingVertical: 20,\n overflow: 'hidden',\n justifyContent: 'center',\n alignItems: 'center',\n },\n\n headerText: {\n color: '#fff',\n backgroundColor: 'transparent',\n textAlign: 'center',\n fontSize: 16,\n fontWeight: '500',\n },\n header: {\n position: 'absolute',\n left: 0,\n right: 0,\n alignItems: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACxD,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAAgCC,MAAM,QAAQ,aAAa;AAC3D,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,yBAAyB,QAAQ,iCAAiC;AAC3E,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,QAAQ,QAAQ,WAAW;AACpC,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,KAAK,QAAQ,gDAAgD;AAEtE,SAASC,IAAIA,CAAAC,IAAA,EAAqC;EAAA,IAApC;IAAEC;EAA+B,CAAC,GAAAD,IAAA;EAC9C,oBACEf,KAAA,CAAAiB,aAAA,CAACN,QAAQ;IAACO,KAAK,EAAEC,MAAM,CAACC,IAAK;IAACC,SAAS,EAAE,EAAG;IAACC,IAAI,EAAC;EAAM,gBACtDtB,KAAA,CAAAiB,aAAA,CAACZ,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACI;EAAW,GAAEP,QAAe,CACxC,CAAC;AAEf;AACA,MAAMQ,QAAQ,GAAIC,KAA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,CAACyB,MAAM,EAAE;MAAEd,GAAG,EAAE,EAAE,GAAGA;IAAI,CAAC;EAAE,gBAC9C9B,KAAA,CAAAiB,aAAA,CAACH,IAAI,QAAE,uBAA8B,CACjC,CACN,CAAC;AAEP,CAAC;;AAED;AACA,4BAAeb,IAAI,CAACuB,QAAQ,CAAC;AAO7B,MAAML,MAAM,GAAGf,UAAU,CAACyC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTV,IAAI,EAAE,CAAC;IACPW,eAAe,EAAE,MAAM;IACvBV,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDlB,IAAI,EAAE;IACJ4B,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBC,QAAQ,EAAE,QAAQ;IAClBb,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EAEDf,UAAU,EAAE;IACV4B,KAAK,EAAE,MAAM;IACbJ,eAAe,EAAE,aAAa;IAC9BK,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDV,MAAM,EAAE;IACNW,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRnB,UAAU,EAAE,QAAQ;IACpBoB,UAAU,EAAE7C,KAAK,CAAC8C;EACpB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import ReasonCodeContainer from '../../../../manager/dispatchCodes/ReasonCodeContainer';
|
|
2
|
+
import EventCodeContainer from '../../../../manager/dispatchCodes/EventCodeContainer';
|
|
3
|
+
import EventCodeRepo from '../../../../manager/dispatchCodes/EventCodeRepo';
|
|
4
|
+
import ReasonCodeRepo from '../../../../manager/dispatchCodes/ReasonCodeRepo';
|
|
5
|
+
export async function getErcDropDownItems(type, list, eventCode) {
|
|
6
|
+
if (!list) return [];
|
|
7
|
+
let erc = [];
|
|
8
|
+
if (type === 'EVENT') {
|
|
9
|
+
const eventCodesList = list.map(erc => erc.eventCode);
|
|
10
|
+
const eventCodes = await EventCodeRepo.getInstance().getEventsByCode(eventCodesList);
|
|
11
|
+
erc = eventCodes.map(eventCode => ({
|
|
12
|
+
text: eventCode.description ?? `NO DESCRIPTION FOUND for ${eventCode}`,
|
|
13
|
+
code: eventCode.eventCode,
|
|
14
|
+
success: eventCode.successEvent
|
|
15
|
+
})).sort((a, b) => {
|
|
16
|
+
// Sort by success (true first, false second)
|
|
17
|
+
if (a.success !== b.success) {
|
|
18
|
+
return b.success ? 1 : -1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Sort by text in alphabetical order
|
|
22
|
+
return a.text.localeCompare(b.text);
|
|
23
|
+
});
|
|
24
|
+
// OLD CODE
|
|
25
|
+
// for (const e of list) {
|
|
26
|
+
// let eventByCode = await EventCodeContainer.getInstance().getEventByCode(
|
|
27
|
+
// e.eventCode
|
|
28
|
+
// );
|
|
29
|
+
// if (eventByCode) {
|
|
30
|
+
// erc.push({
|
|
31
|
+
// text:
|
|
32
|
+
// eventByCode?.description ??
|
|
33
|
+
// `NO DESCRIPTION FOUND for ${e.eventCode}`,
|
|
34
|
+
// code: e.eventCode,
|
|
35
|
+
// success: eventByCode.successEvent,
|
|
36
|
+
// });
|
|
37
|
+
// }
|
|
38
|
+
// erc.sort((a, b) => {
|
|
39
|
+
// // Sort by success (true first, false second)
|
|
40
|
+
// if (a.success !== b.success) {
|
|
41
|
+
// return b.success ? 1 : -1;
|
|
42
|
+
// }
|
|
43
|
+
|
|
44
|
+
// // Sort by text in alphabetical order
|
|
45
|
+
// return a.text.localeCompare(b.text);
|
|
46
|
+
// });
|
|
47
|
+
// }
|
|
48
|
+
} else if (type === 'REASON' && eventCode) {
|
|
49
|
+
const item = list.find(erc => erc.eventCode === eventCode);
|
|
50
|
+
const reasonCodesList = (item === null || item === void 0 ? void 0 : item.reasonCode) || [];
|
|
51
|
+
const reasonCodes = await ReasonCodeRepo.getInstance().getReasonsByCode(reasonCodesList);
|
|
52
|
+
erc = reasonCodes.map(code => ({
|
|
53
|
+
text: (code === null || code === void 0 ? void 0 : code.description) ?? `NO DESCRIPTION FOUND for ${code}`,
|
|
54
|
+
code: code.reasonCode,
|
|
55
|
+
success: false
|
|
56
|
+
}));
|
|
57
|
+
|
|
58
|
+
// OLD CODE
|
|
59
|
+
// for (const ev of list) {
|
|
60
|
+
// if (ev.eventCode === eventCode) {
|
|
61
|
+
// if (ev.reasonCode)
|
|
62
|
+
// for (const r of ev.reasonCode) {
|
|
63
|
+
// let reasonByCode =
|
|
64
|
+
// await ReasonCodeContainer.getInstance().getReasonByCode(r);
|
|
65
|
+
// if (reasonByCode) {
|
|
66
|
+
// erc.push({
|
|
67
|
+
// text:
|
|
68
|
+
// reasonByCode?.description ?? `NO DESCRIPTION FOUND for ${r}`,
|
|
69
|
+
// code: r,
|
|
70
|
+
// success: false,
|
|
71
|
+
// });
|
|
72
|
+
// }
|
|
73
|
+
|
|
74
|
+
// // TODO: NEEDS TO CHANGE WHEN PROPER SOLUTION WITH ORDER IS GIVEN, AS ALPHABETICAL ORDER DOESN'T SUFFICE, REF: https://dev.azure.com/DelhiveryPlatform/Solutions/_workitems/edit/15003
|
|
75
|
+
// // erc.sort((a, b) => {
|
|
76
|
+
// // // Sort by text in alphabetical order
|
|
77
|
+
// // return a.text.localeCompare(b.text);
|
|
78
|
+
// // });
|
|
79
|
+
// }
|
|
80
|
+
// break;
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return erc;
|
|
86
|
+
}
|
|
87
|
+
export async function getDefaultERCLabel(defaultERC) {
|
|
88
|
+
let eventCode = defaultERC.eventCode;
|
|
89
|
+
let reasonCode = defaultERC.reasonCode || '';
|
|
90
|
+
let eventByCode = await EventCodeContainer.getInstance().getEventByCode(defaultERC.eventCode);
|
|
91
|
+
if (eventByCode && eventByCode.description) eventCode = eventByCode.description;
|
|
92
|
+
if (defaultERC.reasonCode) {
|
|
93
|
+
let reasonByCode = await ReasonCodeContainer.getInstance().getReasonByCode(defaultERC.reasonCode);
|
|
94
|
+
if (reasonByCode && reasonByCode.description) reasonCode = reasonByCode === null || reasonByCode === void 0 ? void 0 : reasonByCode.description;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
eventCode,
|
|
98
|
+
reasonCode
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=DropDownUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ReasonCodeContainer","EventCodeContainer","EventCodeRepo","ReasonCodeRepo","getErcDropDownItems","type","list","eventCode","erc","eventCodesList","map","eventCodes","getInstance","getEventsByCode","text","description","code","success","successEvent","sort","a","b","localeCompare","item","find","reasonCodesList","reasonCode","reasonCodes","getReasonsByCode","getDefaultERCLabel","defaultERC","eventByCode","getEventByCode","reasonByCode","getReasonByCode"],"sources":["DropDownUtils.ts"],"sourcesContent":["import type { ercItem } from './ERDropDown';\nimport ReasonCodeContainer from '../../../../manager/dispatchCodes/ReasonCodeContainer';\nimport type { DefaultERC, ERCode } from '../ScanSchema';\nimport EventCodeContainer from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport EventCodeRepo from '../../../../manager/dispatchCodes/EventCodeRepo';\nimport ReasonCodeRepo from '../../../../manager/dispatchCodes/ReasonCodeRepo';\nimport { ReasonsRow } from '../../../../manager/syncmanager/DBConfig';\n\nexport async function getErcDropDownItems(\n type: 'EVENT' | 'REASON',\n list: ERCode[],\n eventCode?: string\n): Promise<ercItem[] | []> {\n if (!list) return [];\n let erc: ercItem[] = [];\n if (type === 'EVENT') {\n const eventCodesList = list.map((erc) => erc.eventCode);\n const eventCodes = await EventCodeRepo.getInstance().getEventsByCode(\n eventCodesList\n );\n erc = eventCodes\n .map((eventCode) => ({\n text: eventCode.description ?? `NO DESCRIPTION FOUND for ${eventCode}`,\n code: eventCode.eventCode,\n success: eventCode.successEvent,\n }))\n .sort((a, b) => {\n // Sort by success (true first, false second)\n if (a.success !== b.success) {\n return b.success ? 1 : -1;\n }\n\n // Sort by text in alphabetical order\n return a.text.localeCompare(b.text);\n });\n // OLD CODE\n // for (const e of list) {\n // let eventByCode = await EventCodeContainer.getInstance().getEventByCode(\n // e.eventCode\n // );\n // if (eventByCode) {\n // erc.push({\n // text:\n // eventByCode?.description ??\n // `NO DESCRIPTION FOUND for ${e.eventCode}`,\n // code: e.eventCode,\n // success: eventByCode.successEvent,\n // });\n // }\n // erc.sort((a, b) => {\n // // Sort by success (true first, false second)\n // if (a.success !== b.success) {\n // return b.success ? 1 : -1;\n // }\n\n // // Sort by text in alphabetical order\n // return a.text.localeCompare(b.text);\n // });\n // }\n } else if (type === 'REASON' && eventCode) {\n const item = list.find((erc) => erc.eventCode === eventCode);\n const reasonCodesList = item?.reasonCode || [];\n const reasonCodes = await ReasonCodeRepo.getInstance().getReasonsByCode(\n reasonCodesList\n );\n erc = reasonCodes.map((code: ReasonsRow) => ({\n text: code?.description ?? `NO DESCRIPTION FOUND for ${code}`,\n code: code.reasonCode,\n success: false,\n }));\n\n // OLD CODE\n // for (const ev of list) {\n // if (ev.eventCode === eventCode) {\n // if (ev.reasonCode)\n // for (const r of ev.reasonCode) {\n // let reasonByCode =\n // await ReasonCodeContainer.getInstance().getReasonByCode(r);\n // if (reasonByCode) {\n // erc.push({\n // text:\n // reasonByCode?.description ?? `NO DESCRIPTION FOUND for ${r}`,\n // code: r,\n // success: false,\n // });\n // }\n\n // // TODO: NEEDS TO CHANGE WHEN PROPER SOLUTION WITH ORDER IS GIVEN, AS ALPHABETICAL ORDER DOESN'T SUFFICE, REF: https://dev.azure.com/DelhiveryPlatform/Solutions/_workitems/edit/15003\n // // erc.sort((a, b) => {\n // // // Sort by text in alphabetical order\n // // return a.text.localeCompare(b.text);\n // // });\n // }\n // break;\n // }\n // }\n }\n return erc;\n}\n\nexport async function getDefaultERCLabel(defaultERC: DefaultERC) {\n let eventCode = defaultERC.eventCode;\n let reasonCode = defaultERC.reasonCode || '';\n let eventByCode = await EventCodeContainer.getInstance().getEventByCode(\n defaultERC.eventCode\n );\n if (eventByCode && eventByCode.description)\n eventCode = eventByCode.description;\n\n if (defaultERC.reasonCode) {\n let reasonByCode = await ReasonCodeContainer.getInstance().getReasonByCode(\n defaultERC.reasonCode\n );\n if (reasonByCode && reasonByCode.description)\n reasonCode = reasonByCode?.description;\n }\n\n return { eventCode, reasonCode };\n}\n"],"mappings":"AACA,OAAOA,mBAAmB,MAAM,uDAAuD;AAEvF,OAAOC,kBAAkB,MAAM,sDAAsD;AACrF,OAAOC,aAAa,MAAM,iDAAiD;AAC3E,OAAOC,cAAc,MAAM,kDAAkD;AAG7E,OAAO,eAAeC,mBAAmBA,CACvCC,IAAwB,EACxBC,IAAc,EACdC,SAAkB,EACO;EACzB,IAAI,CAACD,IAAI,EAAE,OAAO,EAAE;EACpB,IAAIE,GAAc,GAAG,EAAE;EACvB,IAAIH,IAAI,KAAK,OAAO,EAAE;IACpB,MAAMI,cAAc,GAAGH,IAAI,CAACI,GAAG,CAAEF,GAAG,IAAKA,GAAG,CAACD,SAAS,CAAC;IACvD,MAAMI,UAAU,GAAG,MAAMT,aAAa,CAACU,WAAW,CAAC,CAAC,CAACC,eAAe,CAClEJ,cACF,CAAC;IACDD,GAAG,GAAGG,UAAU,CACbD,GAAG,CAAEH,SAAS,KAAM;MACnBO,IAAI,EAAEP,SAAS,CAACQ,WAAW,IAAK,4BAA2BR,SAAU,EAAC;MACtES,IAAI,EAAET,SAAS,CAACA,SAAS;MACzBU,OAAO,EAAEV,SAAS,CAACW;IACrB,CAAC,CAAC,CAAC,CACFC,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK;MACd;MACA,IAAID,CAAC,CAACH,OAAO,KAAKI,CAAC,CAACJ,OAAO,EAAE;QAC3B,OAAOI,CAAC,CAACJ,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;MAC3B;;MAEA;MAC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