@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","FlatList","StyleSheet","Text","TouchableOpacity","View","CommonStyles","Fonts","Button","SCAN_STATUS","FIcon","getScannedItemCount","getScannedItemStatus","getScannerETOutput","SCAN_ACTIONS","RTReasonSelection","showToast","StatusView","props","styles","wbnStatusView","backgroundColor","iconColor","color","marginStart","text","ItemStatus","itemStatusView","text1","status","text2","count","ScannedItemStatus","scanStatus","ACCEPTED","REJECTED","TO_BE_SCANNED","Item","Component","render","rowItem","flex","flexDirection","marginEnd","data","value","fontSize","fontFamily","IBMPlexSans_500Medium","refreshList","reasonCode","CHANGE_STATUS","DELETE","ScanList","reasonSelectionPage","showReasonSelectionPage","renderItem","item","filterList","handleSubmit","preSelectReasonCode","scans","length","scanList","totalScanned","onSubmitET","scanMode","scanCountLimit","mainContainer","marginTop","justifyContent","marginBottom","nextButton","nextButtonLabel","create","padding","alignItems","IBMPlexSans_400Regular","textAlign","IBMPlexSans_600SemiBold","itemStatus","borderRightWidth","borderRightColor","paddingEnd","paddingStart","paddingTop","paddingBottom","borderRadius","topContainer","bottomContainer"],"sources":["ScanList.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport {\n FlatList,\n StyleSheet,\n Text,\n TouchableOpacity,\n View,\n} from 'react-native';\nimport {\n CommonStyles,\n Fonts,\n} from '../../../../styles/executionTasks/CommonStyles';\nimport { Button } from 'react-native-paper';\nimport type { ScannedItemData, ScannerInput } from '../ScannerSchema';\nimport { SCAN_STATUS } from '../ScannerSchema';\nimport FIcon from 'react-native-vector-icons/FontAwesome';\nimport {\n getScannedItemCount,\n getScannedItemStatus,\n getScannerETOutput,\n SCAN_ACTIONS,\n} from '../ScannerUtils';\nimport RTReasonSelection from './RTReasonSelection';\nimport type { ReasonItem } from './ReasonDropDown';\nimport { showToast } from '../../../widgets/Toaster';\n\ninterface ItemStatusProps {\n status: string;\n count: number;\n}\ninterface WbnStatusProps {\n scanStatus: SCAN_STATUS;\n text: string;\n}\nconst StatusView = (props: StatusProps) => {\n return (\n <View\n style={[styles.wbnStatusView, { backgroundColor: props.backgroundColor }]}\n >\n <FIcon name={'circle'} color={props.iconColor} />\n <Text style={{ color: props.color, marginStart: 5 }}>{props.text}</Text>\n </View>\n );\n};\n\nconst ItemStatus = (props: ItemStatusProps) => {\n return (\n <View style={styles.itemStatusView}>\n <Text style={styles.text1}>{props.status}</Text>\n <Text style={styles.text2}>{props.count}</Text>\n </View>\n );\n};\n\nconst ScannedItemStatus = (props: WbnStatusProps) => {\n switch (props.scanStatus) {\n case SCAN_STATUS.ACCEPTED:\n return (\n <StatusView\n text={props.text}\n color={'#10B981'}\n backgroundColor={'#ECFDF5'}\n iconColor={'#10B981'}\n />\n );\n case SCAN_STATUS.REJECTED:\n return (\n <StatusView\n text={props.text}\n color={'#DC2626'}\n backgroundColor={'#FEF2F2'}\n iconColor={'#DC2626'}\n />\n );\n case SCAN_STATUS.TO_BE_SCANNED:\n return (\n <StatusView\n text={props.text}\n color={'#999999'}\n backgroundColor={'#F9F9F9'}\n iconColor={'#999999'}\n />\n );\n default:\n return null;\n }\n};\n\nclass Item extends React.Component<any, any> {\n render() {\n return (\n <View style={styles.rowItem}>\n <View style={{ flex: 1, flexDirection: 'row' }}>\n <Text style={{ marginEnd: 20 }}>{this.props.data.value}</Text>\n <ScannedItemStatus\n scanStatus={this.props.data.scanStatus}\n text={getScannedItemStatus(this.props.data.scanStatus)}\n />\n </View>\n {this.props.data.scanStatus !== SCAN_STATUS.TO_BE_SCANNED && (\n <TouchableOpacity>\n <Text\n style={{\n fontSize: 16,\n color: '#5B80F7',\n fontFamily: Fonts.IBMPlexSans_500Medium,\n }}\n onPress={() => {\n this.props.refreshList(\n this.props.data.value,\n this.props.data.reasonCode\n ? SCAN_ACTIONS.CHANGE_STATUS\n : SCAN_ACTIONS.DELETE\n );\n }}\n >\n {'Undo'}\n </Text>\n </TouchableOpacity>\n )}\n </View>\n );\n }\n}\n\nconst ScanList = (props: ScanListProps) => {\n const [reasonSelectionPage, showReasonSelectionPage] = useState(false);\n const renderItem = ({ item }: { item: ScannedItemData }) => (\n <Item data={item} refreshList={props.filterList} />\n );\n\n const handleSubmit = async () => {\n if (props.preSelectReasonCode && props.scans && props.scans.length > 0) {\n if (props.scanList && props.scanList.length > 0) {\n const totalScanned =\n getScannedItemCount(props.scanList, SCAN_STATUS.ACCEPTED) +\n getScannedItemCount(props.scanList, SCAN_STATUS.REJECTED);\n if (totalScanned === props.scans.length) {\n props.onSubmitET(props.scanList);\n } else {\n showReasonSelectionPage(true);\n }\n } else {\n showToast('No shipments scanned!');\n }\n } else {\n if (props.scanMode === 'SINGLE') {\n if (props.scanList && props.scanList.length > 0) {\n props.onSubmitET(await getScannerETOutput(props.scanList));\n } else {\n showToast(`Nothing scanned yet`);\n }\n } else {\n if (props.scanCountLimit && props.scanCountLimit > 0) {\n if (props.scanList && props.scanList.length <= props.scanCountLimit) {\n props.onSubmitET(await getScannerETOutput(props.scanList));\n } else {\n showToast(`Max Scans count reached`);\n }\n } else {\n if (props.scanList && props.scanList.length > 0) {\n props.onSubmitET(await getScannerETOutput(props.scanList));\n } else {\n showToast(`Nothing scanned yet`);\n }\n }\n }\n }\n };\n if (reasonSelectionPage) {\n return (\n <RTReasonSelection\n {...props}\n showReasonSelectionPage={showReasonSelectionPage}\n />\n );\n } else\n return (\n <View style={CommonStyles.mainContainer}>\n <View\n style={{\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n marginTop: 10,\n }}\n >\n <ItemStatus\n status={'Completed'}\n count={getScannedItemCount(props.scanList, SCAN_STATUS.ACCEPTED)}\n />\n {props.preSelectReasonCode && (\n <ItemStatus\n status={'Rejected'}\n count={getScannedItemCount(props.scanList, SCAN_STATUS.REJECTED)}\n />\n )}\n {props.scans && props.scans.length >= 0 && (\n <ItemStatus\n status={'To be scanned'}\n count={getScannedItemCount(\n props.scanList,\n SCAN_STATUS.TO_BE_SCANNED\n )}\n />\n )}\n </View>\n <View style={{ flex: 1 }}>\n <FlatList\n data={props.scanList}\n renderItem={renderItem}\n keyExtractor={(item) => item.value}\n />\n </View>\n <View\n style={{\n justifyContent: 'flex-end',\n marginStart: 10,\n marginEnd: 10,\n marginBottom: 10,\n }}\n >\n <Text>{`${\n getScannedItemCount(props.scanList, SCAN_STATUS.REJECTED) +\n getScannedItemCount(props.scanList, SCAN_STATUS.ACCEPTED)\n } shipments scanned. If you have more please continue scanning.`}</Text>\n <Button\n onPress={async () => {\n await handleSubmit();\n }}\n style={[CommonStyles.nextButton, { marginTop: 10 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n >\n {'Complete Scan'}\n </Button>\n </View>\n </View>\n );\n};\nexport default ScanList;\n\nexport type ScanListProps = ScannerInput & {\n reasons: ReasonItem[];\n scanList: ScannedItemData[] | undefined;\n filterList: (shipment: string, action: SCAN_ACTIONS) => void;\n};\n\nexport interface StatusProps {\n text: string;\n color: string;\n backgroundColor: string;\n iconColor: string;\n}\n\nconst styles = StyleSheet.create({\n rowItem: {\n padding: 14,\n flexDirection: 'row',\n backgroundColor: '#ffffff',\n alignItems: 'center',\n marginTop: 10,\n marginStart: 10,\n marginEnd: 10,\n },\n\n text1: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontSize: 18,\n textAlign: 'center',\n },\n text2: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 18,\n textAlign: 'center',\n },\n itemStatus: {},\n itemStatusView: {\n backgroundColor: '#ffffff',\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n padding: 8,\n borderRightWidth: 0.6,\n borderRightColor: '#E4E4E4',\n },\n wbnStatusView: {\n flexDirection: 'row',\n paddingEnd: 6,\n paddingStart: 6,\n paddingTop: 3,\n paddingBottom: 3,\n borderRadius: 10,\n alignItems: 'center',\n justifyContent: 'center',\n },\n topContainer: {\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n marginTop: 10,\n },\n bottomContainer: {\n justifyContent: 'flex-end',\n marginStart: 10,\n marginEnd: 10,\n marginBottom: 10,\n },\n});\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AAEA,SACEC,QADF,EAEEC,UAFF,EAGEC,IAHF,EAIEC,gBAJF,EAKEC,IALF,QAMO,cANP;AAOA,SACEC,YADF,EAEEC,KAFF,QAGO,gDAHP;AAIA,SAASC,MAAT,QAAuB,oBAAvB;AAEA,SAASC,WAAT,QAA4B,kBAA5B;AACA,OAAOC,KAAP,MAAkB,uCAAlB;AACA,SACEC,mBADF,EAEEC,oBAFF,EAGEC,kBAHF,EAIEC,YAJF,QAKO,iBALP;AAMA,OAAOC,i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
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
|
-
import withBaseDispatchScreen from './WithBaseDispatchScreen';
|
|
4
|
-
import RTScan from '../../components/executiontasks/scanner/returns/RTScan';
|
|
5
|
-
import { RouteParams } from '../uiConfig/RouteParams';
|
|
6
|
-
import React, { useEffect, useState } from 'react';
|
|
7
|
-
import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
|
|
8
|
-
import { BaseEventCodes, EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
|
|
9
|
-
import { getBaseETResponse } from '../../utils/ExecTaskUtils';
|
|
10
|
-
import Logger, { LOG_TYPE } from '../../utils/Logger';
|
|
11
|
-
const instance = DispatchStateContainer.getInstance();
|
|
12
|
-
const TAG = 'RTScanScreen';
|
|
13
|
-
|
|
14
|
-
function getAllShipments(etInputList) {
|
|
15
|
-
const shipmentsMap = new Map();
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
if (!etInputList || etInputList.length === 0) return shipmentsMap;else {
|
|
19
|
-
etInputList.forEach(item => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
const key = item.nextState.data.input.shipment[0] ?? '';
|
|
22
|
-
shipmentsMap.set(key, item);
|
|
23
|
-
});
|
|
24
|
-
return shipmentsMap;
|
|
25
|
-
}
|
|
26
|
-
} catch (error) {
|
|
27
|
-
return shipmentsMap;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const RTScanScreen = _ref => {
|
|
32
|
-
let {
|
|
33
|
-
route,
|
|
34
|
-
navigation,
|
|
35
|
-
baseETProps
|
|
36
|
-
} = _ref;
|
|
37
|
-
const [scanItemsMap, setScanItemMap] = useState(undefined);
|
|
38
|
-
const [scanItems, setScanItem] = useState(undefined);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
baseETProps.showProgress(true);
|
|
41
|
-
setScanItemMap(_prev => {
|
|
42
|
-
const map = getAllShipments(route.params[RouteParams.NEXT_STATES]);
|
|
43
|
-
setScanItem(Array.from(map.keys()));
|
|
44
|
-
return map;
|
|
45
|
-
});
|
|
46
|
-
baseETProps.showProgress(false);
|
|
47
|
-
}, [baseETProps, route.params]);
|
|
48
|
-
return /*#__PURE__*/React.createElement(RTScan, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
|
|
49
|
-
scans: scanItems,
|
|
50
|
-
onSubmitET: async scanETOutput => {
|
|
51
|
-
try {
|
|
52
|
-
baseETProps.showProgress(true);
|
|
53
|
-
|
|
54
|
-
if (Array.isArray(scanETOutput)) {
|
|
55
|
-
const promises = [];
|
|
56
|
-
|
|
57
|
-
for (const scanOut of scanETOutput) {
|
|
58
|
-
if (scanOut) {
|
|
59
|
-
const etOutput = {
|
|
60
|
-
scans: [{
|
|
61
|
-
value: scanOut.value,
|
|
62
|
-
timestamp: scanOut.timestamp ?? Date.now(),
|
|
63
|
-
validated: scanOut.validated
|
|
64
|
-
}],
|
|
65
|
-
...(await getBaseETResponse(EntityCode.SCAN, scanOut.success ?? false, scanOut.success ? BaseEventCodes.ENTITY_SUCCESS : BaseEventCodes.ENTITY_FAILURE, scanOut.reasonCode ?? ''))
|
|
66
|
-
};
|
|
67
|
-
const jobObjective = scanItemsMap === null || scanItemsMap === void 0 ? void 0 : scanItemsMap.get(scanOut.value);
|
|
68
|
-
|
|
69
|
-
if (jobObjective) {
|
|
70
|
-
jobObjective.nextState.data.output = { ...etOutput
|
|
71
|
-
};
|
|
72
|
-
promises.push(instance.saveETOutput(jobObjective.jobId, jobObjective.objRef, jobObjective.nextState));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
await Promise.all(promises);
|
|
78
|
-
await instance.moveToNextET(baseETProps, Array.from((scanItemsMap === null || scanItemsMap === void 0 ? void 0 : scanItemsMap.values()) ?? []), navigation, false);
|
|
79
|
-
} else {
|
|
80
|
-
await instance.navigateToNextTask(navigation, route, scanETOutput, scanETOutput.success, EntityCode.SCAN, ExecutionTaskID.SCAN, baseETProps, false);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
baseETProps.showProgress(false);
|
|
84
|
-
} catch (error) {
|
|
85
|
-
baseETProps.showProgress(false);
|
|
86
|
-
Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}));
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export default withBaseDispatchScreen(RTScanScreen);
|
|
93
|
-
//# sourceMappingURL=RTScanScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["withBaseDispatchScreen","RTScan","RouteParams","React","useEffect","useState","DispatchStateContainer","BaseEventCodes","EntityCode","ExecutionTaskID","getBaseETResponse","Logger","LOG_TYPE","instance","getInstance","TAG","getAllShipments","etInputList","shipmentsMap","Map","length","forEach","item","key","nextState","data","input","shipment","set","error","RTScanScreen","route","navigation","baseETProps","scanItemsMap","setScanItemMap","undefined","scanItems","setScanItem","showProgress","_prev","map","params","NEXT_STATES","Array","from","keys","scanETOutput","isArray","promises","scanOut","etOutput","scans","value","timestamp","Date","now","validated","SCAN","success","ENTITY_SUCCESS","ENTITY_FAILURE","reasonCode","jobObjective","get","output","push","saveETOutput","jobId","objRef","Promise","all","moveToNextET","values","navigateToNextTask","logEvent","message","SDK_ERROR"],"sources":["RTScanScreen.tsx"],"sourcesContent":["import withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport RTScan from '../../components/executiontasks/scanner/returns/RTScan';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport React, { useEffect, useState } from 'react';\nimport type { BaseETProps, stateWithObjRef } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport {\n BaseEventCodes,\n EntityCode,\n ExecutionTaskID,\n} from '../../models/execTasks/ETConfig';\nimport type { ScannerOutput } from '../../components/executiontasks/scanner/ScannerSchema';\nimport { getBaseETResponse } from '../../utils/ExecTaskUtils';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\n\nconst instance = DispatchStateContainer.getInstance();\nconst TAG = 'RTScanScreen';\nfunction getAllShipments(etInputList: stateWithObjRef[]) {\n const shipmentsMap: Map<string, stateWithObjRef> = new Map<\n string,\n stateWithObjRef\n >();\n try {\n if (!etInputList || etInputList.length === 0) return shipmentsMap;\n else {\n etInputList.forEach((item) => {\n // @ts-ignore\n const key: string = item.nextState.data.input.shipment[0] ?? '';\n shipmentsMap.set(key, item);\n });\n return shipmentsMap;\n }\n } catch (error: any) {\n return shipmentsMap;\n }\n}\n\nconst RTScanScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [scanItemsMap, setScanItemMap] = useState<\n Map<string, stateWithObjRef> | undefined\n >(undefined);\n const [scanItems, setScanItem] = useState<string[] | undefined>(undefined);\n useEffect(() => {\n baseETProps.showProgress(true);\n setScanItemMap((_prev) => {\n const map = getAllShipments(route.params[RouteParams.NEXT_STATES]);\n setScanItem(Array.from(map.keys()));\n return map;\n });\n baseETProps.showProgress(false);\n }, [baseETProps, route.params]);\n\n return (\n <RTScan\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n scans={scanItems}\n onSubmitET={async (scanETOutput) => {\n try {\n baseETProps.showProgress(true);\n if (Array.isArray(scanETOutput)) {\n const promises: any[] = [];\n for (const scanOut of scanETOutput) {\n if (scanOut) {\n const etOutput: ScannerOutput = {\n scans: [\n {\n value: scanOut.value,\n timestamp: scanOut.timestamp ?? Date.now(),\n validated: scanOut.validated,\n },\n ],\n ...(await getBaseETResponse(\n EntityCode.SCAN,\n scanOut.success ?? false,\n scanOut.success\n ? BaseEventCodes.ENTITY_SUCCESS\n : BaseEventCodes.ENTITY_FAILURE,\n scanOut.reasonCode ?? ''\n )),\n };\n\n const jobObjective = scanItemsMap?.get(scanOut.value);\n if (jobObjective) {\n jobObjective.nextState.data.output = { ...(etOutput as any) };\n promises.push(\n instance.saveETOutput(\n jobObjective.jobId,\n jobObjective.objRef,\n jobObjective.nextState\n )\n );\n }\n }\n }\n await Promise.all(promises);\n await instance.moveToNextET(\n baseETProps,\n Array.from(scanItemsMap?.values() ?? []),\n navigation,\n false\n );\n } else {\n await instance.navigateToNextTask(\n navigation,\n route,\n scanETOutput,\n scanETOutput.success,\n EntityCode.SCAN,\n ExecutionTaskID.SCAN,\n baseETProps,\n false\n );\n }\n baseETProps.showProgress(false);\n } catch (error: any) {\n baseETProps.showProgress(false);\n Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);\n }\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(RTScanScreen);\n"],"mappings":";;AAAA,OAAOA,sBAAP,MAAmC,0BAAnC;AACA,OAAOC,MAAP,MAAmB,wDAAnB;AACA,SAASC,WAAT,QAA4B,yBAA5B;AACA,OAAOC,KAAP,IAAgBC,SAAhB,EAA2BC,QAA3B,QAA2C,OAA3C;AAEA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,SACEC,cADF,EAEEC,UAFF,EAGEC,eAHF,QAIO,iCAJP;AAMA,SAASC,iBAAT,QAAkC,2BAAlC;AACA,OAAOC,MAAP,IAAiBC,QAAjB,QAAiC,oBAAjC;AAEA,MAAMC,QAAQ,GAAGP,sBAAsB,CAACQ,WAAvB,EAAjB;AACA,MAAMC,GAAG,GAAG,cAAZ;;AACA,SAASC,eAAT,CAAyBC,WAAzB,EAAyD;EACvD,MAAMC,YAA0C,GAAG,IAAIC,GAAJ,EAAnD;;EAIA,IAAI;IACF,IAAI,CAACF,WAAD,IAAgBA,WAAW,CAACG,MAAZ,KAAuB,CAA3C,EAA8C,OAAOF,YAAP,CAA9C,KACK;MACHD,WAAW,CAACI,O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zC,UAHI,EAIJ,KAJI,CAAN;QAMD,CA1CD,MA0CO;UACL,MAAMnB,QAAQ,CAAC6D,kBAAT,CACJ1C,UADI,EAEJD,KAFI,EAGJgB,YAHI,EAIJA,YAAY,CAACY,OAJT,EAKJnD,UAAU,CAACkD,IALP,EAMJjD,eAAe,CAACiD,IANZ,EAOJzB,WAPI,EAQJ,KARI,CAAN;QAUD;;QACDA,WAAW,CAACM,YAAZ,CAAyB,KAAzB;MACD,CAzDD,CAyDE,OAAOV,KAAP,EAAmB;QACnBI,WAAW,CAACM,YAAZ,CAAyB,KAAzB;QACA5B,MAAM,CAACG,WAAP,GAAqB6D,QAArB,CAA8B5D,GAA9B,EAAmCc,KAAK,CAAC+C,OAAzC,EAAkDhE,QAAQ,CAACiE,SAA3D;MACD;IACF;EAjEH,GADF;AAqED,CA5FD;;AA8FA,eAAe7E,sBAAsB,CAAC8B,YAAD,CAArC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type of scan
|
|
3
|
-
*/
|
|
4
|
-
import type { BaseETRequest, BaseETResponse } from '../../../models/execTasks/ETBaseModels';
|
|
5
|
-
import type { Headers, HTTPMethod } from '../httpRequest/HttpRequestETSchema';
|
|
6
|
-
export declare type ScanType = 'BARCODE' | 'QRCODE';
|
|
7
|
-
/**
|
|
8
|
-
* Mode of scanning
|
|
9
|
-
*/
|
|
10
|
-
export declare type ScanMode = 'SINGLE' | 'MULTI';
|
|
11
|
-
/**
|
|
12
|
-
* Max limit of items to be scanned in multi-scan mode
|
|
13
|
-
*/
|
|
14
|
-
export declare type MaxScanCount = number;
|
|
15
|
-
/**
|
|
16
|
-
* Regex to validate scanned strings
|
|
17
|
-
*/
|
|
18
|
-
export declare type ValidationRegex = string;
|
|
19
|
-
export declare type ScannerInput = BaseETRequest & {
|
|
20
|
-
scanType: ScanType;
|
|
21
|
-
scanMode: ScanMode;
|
|
22
|
-
preSelectReasonCode?: boolean;
|
|
23
|
-
scans?: string[];
|
|
24
|
-
scanCountLimit?: MaxScanCount;
|
|
25
|
-
onSubmitET: (scanETOutput: ScannerOutput | ScannedItemData[]) => void;
|
|
26
|
-
validation?: API | ValidationRegex;
|
|
27
|
-
};
|
|
28
|
-
export interface API {
|
|
29
|
-
uri: string;
|
|
30
|
-
timeout?: number;
|
|
31
|
-
httpMethod: HTTPMethod;
|
|
32
|
-
headers?: Headers[];
|
|
33
|
-
responseJsonLogic: object;
|
|
34
|
-
}
|
|
35
|
-
export interface ScanData {
|
|
36
|
-
/**
|
|
37
|
-
* Value of scanned item
|
|
38
|
-
*/
|
|
39
|
-
value: string;
|
|
40
|
-
/**
|
|
41
|
-
* Boolean to denote if scan was validate successfully
|
|
42
|
-
*/
|
|
43
|
-
validated?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Epoch timestamp for the scan
|
|
46
|
-
*/
|
|
47
|
-
timestamp: number;
|
|
48
|
-
}
|
|
49
|
-
export interface ScannedItemData {
|
|
50
|
-
/**
|
|
51
|
-
* Value of scanned item
|
|
52
|
-
*/
|
|
53
|
-
value: string;
|
|
54
|
-
/**
|
|
55
|
-
* Boolean to denote if scan was validate successfully
|
|
56
|
-
*/
|
|
57
|
-
validated?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Epoch timestamp for the scan
|
|
60
|
-
*/
|
|
61
|
-
timestamp?: number;
|
|
62
|
-
reasonCode?: string;
|
|
63
|
-
reasonText?: string;
|
|
64
|
-
success?: boolean;
|
|
65
|
-
scanStatus: SCAN_STATUS;
|
|
66
|
-
}
|
|
67
|
-
export declare enum SCAN_STATUS {
|
|
68
|
-
ACCEPTED = 0,
|
|
69
|
-
REJECTED = 1,
|
|
70
|
-
TO_BE_SCANNED = 2,
|
|
71
|
-
NONE = 3
|
|
72
|
-
}
|
|
73
|
-
export declare type ScannerOutput = BaseETResponse & {
|
|
74
|
-
scans: ScanData[];
|
|
75
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { API, ScanData, ScanMode, ScannedItemData, ScannerInput, ScannerOutput } from './ScannerSchema';
|
|
2
|
-
import { SCAN_STATUS } from './ScannerSchema';
|
|
3
|
-
export declare function checkForValidation(data: string, validationRule: API | string | undefined, shipments: string[] | undefined): Promise<any>;
|
|
4
|
-
export declare function isScannedAlready(value: string, scansMap?: Map<string, ScannedItemData>): boolean;
|
|
5
|
-
export declare function getBarCodeTypes(input: ScannerInput): any[];
|
|
6
|
-
export declare function getScannerETOutput(scanList: ScannedItemData[]): Promise<ScannerOutput>;
|
|
7
|
-
export declare function canScanMore(scanMode: ScanMode, size: number, limit?: number): boolean;
|
|
8
|
-
export declare function getScannedList(rtScans?: ScannedItemData[]): ScanData[];
|
|
9
|
-
export declare function getItemsToBeScanned(scansMap?: Map<string, ScannedItemData>): ScannedItemData[];
|
|
10
|
-
export declare enum SCAN_ACTIONS {
|
|
11
|
-
DELETE = 0,
|
|
12
|
-
CHANGE_STATUS = 1
|
|
13
|
-
}
|
|
14
|
-
export declare function getScannedItemCount(scannedList: ScannedItemData[] | undefined, status: SCAN_STATUS): number;
|
|
15
|
-
export declare function getScannedItemStatus(scanStatus: SCAN_STATUS): "" | "To be Scanned" | "Completed" | "Rejected";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { ScanListProps } from './ScanList';
|
|
3
|
-
declare const RTReasonSelection: (props: RTReasonSelectionProps) => JSX.Element;
|
|
4
|
-
export default RTReasonSelection;
|
|
5
|
-
declare type RTReasonSelectionProps = ScanListProps & {
|
|
6
|
-
showReasonSelectionPage: (show: boolean) => void;
|
|
7
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<(props: DropDownPickerProps) => JSX.Element>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export interface DropDownPickerProps {
|
|
5
|
-
style: object;
|
|
6
|
-
items: ReasonItem[];
|
|
7
|
-
selectedReason?: ReasonItem;
|
|
8
|
-
onItemChange: (selectedReason: ReasonItem | null) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface ReasonItem {
|
|
11
|
-
reasonText: string;
|
|
12
|
-
reasonCode: string;
|
|
13
|
-
success: boolean;
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { ScannedItemData, ScannerInput } from '../ScannerSchema';
|
|
3
|
-
import { SCAN_ACTIONS } from '../ScannerUtils';
|
|
4
|
-
import type { ReasonItem } from './ReasonDropDown';
|
|
5
|
-
declare const ScanList: (props: ScanListProps) => JSX.Element;
|
|
6
|
-
export default ScanList;
|
|
7
|
-
export declare type ScanListProps = ScannerInput & {
|
|
8
|
-
reasons: ReasonItem[];
|
|
9
|
-
scanList: ScannedItemData[] | undefined;
|
|
10
|
-
filterList: (shipment: string, action: SCAN_ACTIONS) => void;
|
|
11
|
-
};
|
|
12
|
-
export interface StatusProps {
|
|
13
|
-
text: string;
|
|
14
|
-
color: string;
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
iconColor: string;
|
|
17
|
-
}
|
|
Binary file
|