@os1-platform/dispatch-mobile 1.3.11 → 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 +198 -30
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +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 -2
- 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/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +6 -1
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +6 -1
- package/android/local.properties +1 -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 +4 -4
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +0 -28
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +35 -35
- 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 +2 -2
- 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 +187 -112
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +37 -34
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +52 -52
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +71 -66
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- 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 +6 -3
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +34 -34
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +54 -54
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +112 -47
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +326 -428
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +13 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +15 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- 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/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- 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 +548 -159
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +52 -53
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.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 +12 -4
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +3 -1
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js +2 -2
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +1 -5
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/constants.js +3 -1
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/interface.js.map +1 -1
- package/lib/commonjs/index.js +32 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +315 -609
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +21 -25
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -2
- 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 +15 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +36 -3
- package/lib/commonjs/manager/syncmanager/DBConfig.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.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +377 -26
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +150 -37
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.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/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +4 -2
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +38 -7
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +11 -3
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -4
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +26 -4
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +11 -2
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +13 -6
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +39 -15
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +0 -7
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +95 -28
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +10 -2
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +10 -2
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +26 -18
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +22 -11
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +34 -8
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +72 -219
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +13 -7
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +20 -5
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +16 -2
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +33 -25
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +37 -4
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +64 -35
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -46
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- 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/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +37 -2
- package/lib/commonjs/utils/storage.js.map +1 -1
- 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 +4 -4
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +1 -5
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +38 -37
- 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 +2 -2
- 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 +189 -114
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +39 -36
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +53 -52
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +73 -68
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +3 -3
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- 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 +6 -3
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +36 -36
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +55 -54
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +35 -34
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +35 -35
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +114 -49
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +332 -433
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js +16 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js +12 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- 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/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- 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 +528 -160
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +54 -55
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
- 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.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.map +1 -1
- 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.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 +12 -4
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.js.map +1 -0
- package/lib/module/constants/apiConstants.js +3 -1
- package/lib/module/constants/apiConstants.js.map +1 -1
- package/lib/module/constants/constants.js +2 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +0 -3
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/events/constants.js +3 -1
- package/lib/module/events/constants.js.map +1 -1
- package/lib/module/events/interface.js.map +1 -1
- package/lib/module/index.js +6 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +319 -610
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +21 -19
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +2 -2
- 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 +15 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +32 -2
- package/lib/module/manager/syncmanager/DBConfig.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.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +377 -25
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +147 -34
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.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/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +4 -2
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +39 -8
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +12 -4
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -5
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +27 -5
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +12 -3
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +14 -7
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +42 -16
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +1 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +96 -29
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +11 -3
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +11 -3
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +27 -19
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +23 -12
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +36 -10
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +74 -222
- package/lib/module/ui/screens/ScanScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +14 -8
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +19 -5
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +17 -2
- package/lib/module/utils/ApiUtils.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +33 -25
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +37 -4
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +64 -35
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +82 -46
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- 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/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +37 -2
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +3 -8
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
- 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 +1 -0
- 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/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.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/widgets/DateTimeWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +2 -2
- 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/imageCapture/CaptureSchema.d.ts +1 -0
- 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/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- 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 +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +25 -9
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +54 -1
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +29 -13
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +3 -2
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +2 -2
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +1 -0
- package/lib/typescript/constants/constants.d.ts +2 -2
- package/lib/typescript/events/EventDispatcher.d.ts +0 -2
- package/lib/typescript/events/constants.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -1
- package/lib/typescript/index.d.ts +8 -6
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +27 -19
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -6
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +0 -1
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +2 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +63 -7
- package/lib/typescript/manager/syncmanager/constants.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/events/ETEventsManager.d.ts +11 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +3 -5
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +4 -3
- package/lib/typescript/models/DispatchModels.d.ts +40 -41
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +21 -16
- package/lib/typescript/models/sdk.d.ts +7 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
- package/lib/typescript/styles/SdkColors.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +16 -7
- 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 +1 -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 +2 -2
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +10 -4
- package/lib/typescript/utils/ExecTaskUtils.d.ts +5 -4
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -5
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/storage.d.ts +15 -0
- package/package.json +5 -4
- package/tsconfig.json +0 -1
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.idea/workspace.xml +0 -131
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -26
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +0 -134
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +0 -105
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -27
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -164
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -15
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -40
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -93
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -278
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -83
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -248
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -99
- 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/scan/sub_components/ScanList.js +0 -124
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/CScanner.js +0 -96
- 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 -146
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -7
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -33
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -83
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -269
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -73
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -238
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -89
- 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/scan/sub_components/ScanList.d.ts +0 -8
- package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +0 -7
- 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 -2
- 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/android/.gradle/{6.8 → 7.0.2}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{6.8 → 7.0.2}/gc.properties +0 -0
- /package/android/.gradle/{configuration-cache → 7.2/dependencies-accessors}/gc.properties +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const withBaseDispatchScreen: (WrappedComponent: any) => (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const withBaseDispatchScreen: (WrappedComponent: any) => (props: any) => React.JSX.Element;
|
|
3
3
|
export default withBaseDispatchScreen;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
1
2
|
export declare const RouteParams: {
|
|
2
3
|
NEXT_STATES: string;
|
|
3
4
|
REASONS: string;
|
|
@@ -5,12 +6,17 @@ export declare const RouteParams: {
|
|
|
5
6
|
ET_SUCCESS_RESPONSE: string;
|
|
6
7
|
CURRENT_ET_NAME: string;
|
|
7
8
|
IS_LAST_ET: string;
|
|
8
|
-
PENDING_STATES: string;
|
|
9
9
|
EVENT_CODES: string;
|
|
10
10
|
APPLICABLE_CODES: string;
|
|
11
|
-
|
|
11
|
+
IS_MERGED_OBJ_BASED_OUTPUT: string;
|
|
12
12
|
ROOT_META_DATA: string;
|
|
13
|
-
COMPLETED_STATES: string;
|
|
14
|
-
PENDING_STATES_OUTPUT: string;
|
|
15
13
|
CANCEL_EVENT: string;
|
|
14
|
+
HAS_MULTIPLE_ET: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function getDataFromNextState(nextState: IDispatch.IExecutionTaskQueryResponse): {
|
|
17
|
+
input: any;
|
|
18
|
+
taskMeta: any;
|
|
19
|
+
mergedObjectiveId: string[];
|
|
20
|
+
wfMeta: any;
|
|
21
|
+
taskName: string;
|
|
16
22
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { BaseETResponse } from '../models/execTasks/ETBaseModels';
|
|
2
2
|
import type { CompletedWFResponse } from '../components/executiontasks/CompletedWFSchema';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
3
|
+
import { ExecutionTaskID } from '../models/execTasks/ETConfig';
|
|
4
|
+
import { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
5
|
+
export declare function getBaseETResponse(entityCode: string, success: boolean, eventCode: string, reasonCode: string, mergedObjectiveIds: Array<string>, taskId: ExecutionTaskID): Promise<BaseETResponse>;
|
|
6
|
+
export declare function getObjectiveCompleteResp(entityCode: string, success: boolean, eventCode: string, reasonCode: string, mergedObjectiveId: Array<string>, taskId: ExecutionTaskID): Promise<CompletedWFResponse>;
|
|
6
7
|
export declare function getEntityCodeByET(etId: string): string;
|
|
7
8
|
/**
|
|
8
9
|
* This function will be called on start of every execution task and is being used in ET screens components.
|
|
9
10
|
* @param eventData nextState: state | objRef: string | jobId: string
|
|
10
11
|
*/
|
|
11
|
-
export declare function onTaskStart(eventData:
|
|
12
|
+
export declare function onTaskStart(eventData: IDispatch.IExecutionTaskQueryResponse, customData: any, triggerEvent?: boolean): void;
|
|
12
13
|
export declare function handleDynamicValues(jsonInput: any, dataBlob: any): any;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function pushBulkEventForSync(pushData: BulkEvent[]): Promise<boolean>;
|
|
1
|
+
import type { BulkEvent, ExecEngineSyncType } from '../manager/syncmanager/DBConfig';
|
|
2
|
+
export declare function pushEventForSync(syncType: ExecEngineSyncType, dspID: string, data: string, config: any, sequence: number, meta?: any): Promise<boolean>;
|
|
3
|
+
export declare function pushBulkEventForSync(pushData: BulkEvent): Promise<boolean>;
|
|
5
4
|
/**
|
|
6
5
|
* clears synced events from Sync & Document manager
|
|
7
6
|
* @param dspID
|
|
8
7
|
* @private
|
|
9
8
|
*/
|
|
10
9
|
export declare function clearCache(dspID: string): Promise<void>;
|
|
11
|
-
export declare function insertDocumentInDB(fileName: string, fmsFolderName: string,
|
|
10
|
+
export declare function insertDocumentInDB(fileName: string, fmsFolderName: string, base64Image: string | null, imageDesc: string, filePath: string | null): Promise<number | undefined>;
|
|
12
11
|
export declare function createFmsFolder(dispatchID: string): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { ModalProps } from '../../components/widgets/ModalWidget';
|
|
4
|
+
export type ModalHookProps = Omit<ModalProps, 'showModal'>;
|
|
5
|
+
declare const useModal: (props: ModalHookProps) => [() => void, () => void, () => JSX.Element, any];
|
|
6
|
+
export default useModal;
|
|
@@ -62,5 +62,20 @@ declare class Storage {
|
|
|
62
62
|
deleteItem(key: string): Promise<void>;
|
|
63
63
|
deleteMultiple(keys: string[]): Promise<void>;
|
|
64
64
|
getAllKeys(prefix: string): Promise<string[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Shared preferences
|
|
67
|
+
*/
|
|
68
|
+
setSharedItem(key: string, value: string): Promise<void>;
|
|
69
|
+
setSharedItems(items: {
|
|
70
|
+
key: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[]): Promise<void>;
|
|
73
|
+
getSharedItem(key: string): Promise<string>;
|
|
74
|
+
getSharedItems(key: string[]): Promise<string[][]>;
|
|
75
|
+
getSharedAll(): Promise<[][]>;
|
|
76
|
+
getAllSharedKeys(): Promise<string[]>;
|
|
77
|
+
clearShared(): Promise<void>;
|
|
78
|
+
removeSharedItem(key: string): Promise<void>;
|
|
79
|
+
removeSharedItems(key: string[]): Promise<void>;
|
|
65
80
|
}
|
|
66
81
|
export default Storage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os1-platform/dispatch-mobile",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Dispatch SDK React Native Package",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"eslint": "^7.32.0",
|
|
84
84
|
"eslint-config-prettier": "^7.0.0",
|
|
85
85
|
"eslint-plugin-prettier": "^3.1.3",
|
|
86
|
-
"expo": "~
|
|
86
|
+
"expo": "~47.0.13",
|
|
87
87
|
"expo-barcode-scanner": "~11.2.1",
|
|
88
88
|
"expo-blur": "~11.0.0",
|
|
89
89
|
"expo-camera": "~12.1.2",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"expo-image-manipulator": "~10.1.2",
|
|
93
93
|
"expo-image-picker": "~11.0.3",
|
|
94
94
|
"expo-location": "~13.0.4",
|
|
95
|
-
"expo-sqlite": "~
|
|
95
|
+
"expo-sqlite": "~11.0.0",
|
|
96
96
|
"graphql": "^16.2.0",
|
|
97
97
|
"husky": "^4.2.5",
|
|
98
98
|
"jest": "^26.6.3",
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
]
|
|
246
246
|
},
|
|
247
247
|
"dependencies": {
|
|
248
|
-
"@os1-platform/
|
|
248
|
+
"@os1-platform/platform-coreos-execution-engine-sdk": "^1.0.0",
|
|
249
249
|
"@rjsf/core": "^2.0.0",
|
|
250
250
|
"decompress": "^4.2.1",
|
|
251
251
|
"json-logic-js": "^2.0.1",
|
|
@@ -254,6 +254,7 @@
|
|
|
254
254
|
"lodash": "^4.17.21",
|
|
255
255
|
"react-native-otp-textinput": "0.0.8",
|
|
256
256
|
"react-native-svg": "^13.6.0",
|
|
257
|
+
"recyclerlistview": "^4.2.0",
|
|
257
258
|
"rjsf-native": "^1.0.14"
|
|
258
259
|
}
|
|
259
260
|
}
|
package/tsconfig.json
CHANGED
|
Binary file
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="AndroidLayouts">
|
|
4
|
-
<shared>
|
|
5
|
-
<config />
|
|
6
|
-
</shared>
|
|
7
|
-
</component>
|
|
8
|
-
<component name="AutoImportSettings">
|
|
9
|
-
<option name="autoReloadType" value="NONE" />
|
|
10
|
-
</component>
|
|
11
|
-
<component name="ChangeListManager">
|
|
12
|
-
<list default="true" id="9e0b05bf-ee06-4169-bdda-4954b118eea2" name="Changes" comment="">
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt" afterDir="false" />
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/../example/env.json" beforeDir="false" afterPath="$PROJECT_DIR$/../example/env.json" afterDir="false" />
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/../example/src/TaskDetail.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/../example/src/TaskDetail.tsx" afterDir="false" />
|
|
16
|
-
<change beforePath="$PROJECT_DIR$/../src/manager/dispatch/DispatchStateContainer.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/../src/manager/dispatch/DispatchStateContainer.tsx" afterDir="false" />
|
|
17
|
-
<change beforePath="$PROJECT_DIR$/../src/manager/sdk/DispatchSDKManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../src/manager/sdk/DispatchSDKManager.ts" afterDir="false" />
|
|
18
|
-
<change beforePath="$PROJECT_DIR$/../src/models/sdk.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../src/models/sdk.ts" afterDir="false" />
|
|
19
|
-
<change beforePath="$PROJECT_DIR$/../src/utils/storage.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../src/utils/storage.ts" afterDir="false" />
|
|
20
|
-
</list>
|
|
21
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
22
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
23
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
24
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
25
|
-
</component>
|
|
26
|
-
<component name="ExternalProjectsData">
|
|
27
|
-
<projectState path="$PROJECT_DIR$">
|
|
28
|
-
<ProjectState />
|
|
29
|
-
</projectState>
|
|
30
|
-
</component>
|
|
31
|
-
<component name="ExternalProjectsManager">
|
|
32
|
-
<system id="GRADLE">
|
|
33
|
-
<state>
|
|
34
|
-
<task path="$PROJECT_DIR$">
|
|
35
|
-
<activation />
|
|
36
|
-
</task>
|
|
37
|
-
<projects_view>
|
|
38
|
-
<tree_state>
|
|
39
|
-
<expand>
|
|
40
|
-
<path>
|
|
41
|
-
<item name="" type="6a2764b6:ExternalProjectsStructure$RootNode" />
|
|
42
|
-
<item name="android" type="f1a62948:ProjectNode" />
|
|
43
|
-
</path>
|
|
44
|
-
<path>
|
|
45
|
-
<item name="" type="6a2764b6:ExternalProjectsStructure$RootNode" />
|
|
46
|
-
<item name="android" type="f1a62948:ProjectNode" />
|
|
47
|
-
<item name="Tasks" type="e4a08cd1:TasksNode" />
|
|
48
|
-
</path>
|
|
49
|
-
<path>
|
|
50
|
-
<item name="" type="6a2764b6:ExternalProjectsStructure$RootNode" />
|
|
51
|
-
<item name="android" type="f1a62948:ProjectNode" />
|
|
52
|
-
<item name="Tasks" type="e4a08cd1:TasksNode" />
|
|
53
|
-
<item name="other" type="c8890929:TasksNode$1" />
|
|
54
|
-
</path>
|
|
55
|
-
</expand>
|
|
56
|
-
<select />
|
|
57
|
-
</tree_state>
|
|
58
|
-
</projects_view>
|
|
59
|
-
</state>
|
|
60
|
-
</system>
|
|
61
|
-
</component>
|
|
62
|
-
<component name="FileTemplateManagerImpl">
|
|
63
|
-
<option name="RECENT_TEMPLATES">
|
|
64
|
-
<list>
|
|
65
|
-
<option value="Class" />
|
|
66
|
-
<option value="Kotlin Class" />
|
|
67
|
-
</list>
|
|
68
|
-
</option>
|
|
69
|
-
</component>
|
|
70
|
-
<component name="Git.Settings">
|
|
71
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
|
72
|
-
</component>
|
|
73
|
-
<component name="MarkdownSettingsMigration">
|
|
74
|
-
<option name="stateVersion" value="1" />
|
|
75
|
-
</component>
|
|
76
|
-
<component name="ProjectId" id="2RbHAcMjtvDnyVAejISeOEfpT5m" />
|
|
77
|
-
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
|
78
|
-
<ConfirmationsSetting value="1" id="Add" />
|
|
79
|
-
</component>
|
|
80
|
-
<component name="ProjectViewState">
|
|
81
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
82
|
-
<option name="showLibraryContents" value="true" />
|
|
83
|
-
</component>
|
|
84
|
-
<component name="PropertiesComponent">{
|
|
85
|
-
"keyToString": {
|
|
86
|
-
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
87
|
-
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
88
|
-
"RunOnceActivity.cidr.known.project.marker": "true",
|
|
89
|
-
"cidr.known.project.marker": "true",
|
|
90
|
-
"last_opened_file_path": "/Users/delhivery/Documents/coreos_projects/platform-coreos-dispatch-sdk/android"
|
|
91
|
-
}
|
|
92
|
-
}</component>
|
|
93
|
-
<component name="RecentsManager">
|
|
94
|
-
<key name="android.template.656734805">
|
|
95
|
-
<recent name="com.dispatchsdk" />
|
|
96
|
-
</key>
|
|
97
|
-
</component>
|
|
98
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
99
|
-
<component name="TaskManager">
|
|
100
|
-
<task active="true" id="Default" summary="Default task">
|
|
101
|
-
<changelist id="9e0b05bf-ee06-4169-bdda-4954b118eea2" name="Changes" comment="" />
|
|
102
|
-
<created>1687511723592</created>
|
|
103
|
-
<option name="number" value="Default" />
|
|
104
|
-
<option name="presentableId" value="Default" />
|
|
105
|
-
<updated>1687511723592</updated>
|
|
106
|
-
</task>
|
|
107
|
-
<servers />
|
|
108
|
-
</component>
|
|
109
|
-
<component name="Vcs.Log.Tabs.Properties">
|
|
110
|
-
<option name="TAB_STATES">
|
|
111
|
-
<map>
|
|
112
|
-
<entry key="MAIN">
|
|
113
|
-
<value>
|
|
114
|
-
<State />
|
|
115
|
-
</value>
|
|
116
|
-
</entry>
|
|
117
|
-
</map>
|
|
118
|
-
</option>
|
|
119
|
-
</component>
|
|
120
|
-
<component name="XDebuggerManager">
|
|
121
|
-
<breakpoint-manager>
|
|
122
|
-
<breakpoints>
|
|
123
|
-
<line-breakpoint enabled="true" type="kotlin-line">
|
|
124
|
-
<url>file://$PROJECT_DIR$/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt</url>
|
|
125
|
-
<line>74</line>
|
|
126
|
-
<option name="timeStamp" value="1" />
|
|
127
|
-
</line-breakpoint>
|
|
128
|
-
</breakpoints>
|
|
129
|
-
</breakpoint-manager>
|
|
130
|
-
</component>
|
|
131
|
-
</project>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getJobIDs = getJobIDs;
|
|
7
|
-
exports.getObjectiveRefs = getObjectiveRefs;
|
|
8
|
-
function getJobIDs(nextStates) {
|
|
9
|
-
let result = [];
|
|
10
|
-
if (!nextStates || nextStates.length === 0) return result;else {
|
|
11
|
-
nextStates.forEach(s => {
|
|
12
|
-
result.push(s.jobId);
|
|
13
|
-
});
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function getObjectiveRefs(nextStates) {
|
|
18
|
-
let result = [];
|
|
19
|
-
if (!nextStates || nextStates.length === 0) return result;else {
|
|
20
|
-
nextStates.forEach(s => {
|
|
21
|
-
result.push(s.objRef);
|
|
22
|
-
});
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=DoodleUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getJobIDs","nextStates","result","length","forEach","s","push","jobId","getObjectiveRefs","objRef"],"sources":["DoodleUtils.ts"],"sourcesContent":["import type { stateWithObjRef } from '../../../models/DispatchModels';\n\nexport function getJobIDs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.jobId);\n });\n return result;\n }\n}\n\nexport function getObjectiveRefs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.objRef);\n });\n return result;\n }\n}\n"],"mappings":";;;;;;;AAEO,SAASA,SAASA,CAACC,UAA6B,EAAY;EACjE,IAAIC,MAAgB,GAAG,EAAE;EACzB,IAAI,CAACD,UAAU,IAAIA,UAAU,CAACE,MAAM,KAAK,CAAC,EAAE,OAAOD,MAAM,CAAC,KACrD;IACHD,UAAU,CAACG,OAAO,CAAEC,CAAC,IAAK;MACxBH,MAAM,CAACI,IAAI,CAACD,CAAC,CAACE,KAAK,CAAC;IACtB,CAAC,CAAC;IACF,OAAOL,MAAM;EACf;AACF;AAEO,SAASM,gBAAgBA,CAACP,UAA6B,EAAY;EACxE,IAAIC,MAAgB,GAAG,EAAE;EACzB,IAAI,CAACD,UAAU,IAAIA,UAAU,CAACE,MAAM,KAAK,CAAC,EAAE,OAAOD,MAAM,CAAC,KACrD;IACHD,UAAU,CAACG,OAAO,CAAEC,CAAC,IAAK;MACxBH,MAAM,CAACI,IAAI,CAACD,CAAC,CAACI,MAAM,CAAC;IACvB,CAAC,CAAC;IACF,OAAOP,MAAM;EACf;AACF"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
10
|
-
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
11
|
-
var _IconButton = _interopRequireDefault(require("../../../widgets/IconButton"));
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
const ListItem = _ref => {
|
|
16
|
-
let {
|
|
17
|
-
lineItem
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
20
|
-
style: styles.rowItem
|
|
21
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
22
|
-
style: {
|
|
23
|
-
marginEnd: 20
|
|
24
|
-
}
|
|
25
|
-
}, `#${lineItem}`));
|
|
26
|
-
};
|
|
27
|
-
const renderItem = _ref2 => {
|
|
28
|
-
let {
|
|
29
|
-
item
|
|
30
|
-
} = _ref2;
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(ListItem, {
|
|
32
|
-
lineItem: item
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
const ICON_SIZE = 12;
|
|
36
|
-
const ScanList = _ref3 => {
|
|
37
|
-
let {
|
|
38
|
-
pending,
|
|
39
|
-
scanned,
|
|
40
|
-
validation
|
|
41
|
-
} = _ref3;
|
|
42
|
-
const [showPendingList, setShowPendingList] = (0, _react.useState)(true);
|
|
43
|
-
const [showScannedList, setShowScannedList] = (0, _react.useState)(() => validation.selectedIndex === 0 ? false : true);
|
|
44
|
-
const pendingIconName = showPendingList ? 'caretup' : 'caretdown';
|
|
45
|
-
const scannedIconName = showScannedList ? 'caretup' : 'caretdown';
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
47
|
-
style: {
|
|
48
|
-
flex: 1
|
|
49
|
-
}
|
|
50
|
-
}, validation.selectedIndex === 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
51
|
-
title: `PENDING SHIPMENTS (${pending.length})`,
|
|
52
|
-
style: styles.listHeader,
|
|
53
|
-
onPress: () => {
|
|
54
|
-
setShowPendingList(showPendingList => !showPendingList);
|
|
55
|
-
setShowScannedList(showScannedList => {
|
|
56
|
-
if (showScannedList && pending.length > 0) return !showScannedList;else return showScannedList;
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
textStyles: styles.headerText,
|
|
60
|
-
icon: /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
|
|
61
|
-
name: `${pendingIconName}`,
|
|
62
|
-
size: ICON_SIZE,
|
|
63
|
-
color: "black"
|
|
64
|
-
})
|
|
65
|
-
}), showPendingList && pending.length > 0 ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
66
|
-
style: pending.length >= 9 ? styles.list : {
|
|
67
|
-
marginTop: 12
|
|
68
|
-
}
|
|
69
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
70
|
-
data: pending,
|
|
71
|
-
renderItem: renderItem,
|
|
72
|
-
keyExtractor: item => item
|
|
73
|
-
})) : null) : null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
74
|
-
title: `SCANNED SHIPMENTS (${scanned.length})`,
|
|
75
|
-
style: styles.listHeader,
|
|
76
|
-
onPress: () => {
|
|
77
|
-
setShowScannedList(showScannedList => !showScannedList);
|
|
78
|
-
if (validation.selectedIndex === 0) {
|
|
79
|
-
setShowPendingList(showPendingList => {
|
|
80
|
-
if (showPendingList && scanned.length > 0) return !showPendingList;else return showPendingList;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
textStyles: styles.headerText,
|
|
85
|
-
icon: /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
|
|
86
|
-
name: `${scannedIconName}`,
|
|
87
|
-
size: ICON_SIZE,
|
|
88
|
-
color: "black"
|
|
89
|
-
})
|
|
90
|
-
}), showScannedList && scanned.length > 0 ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
91
|
-
style: scanned.length >= 9 ? styles.list : {
|
|
92
|
-
marginTop: 12
|
|
93
|
-
}
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
95
|
-
data: scanned,
|
|
96
|
-
renderItem: renderItem,
|
|
97
|
-
keyExtractor: item => item
|
|
98
|
-
})) : null));
|
|
99
|
-
};
|
|
100
|
-
var _default = ScanList;
|
|
101
|
-
exports.default = _default;
|
|
102
|
-
const styles = _reactNative.StyleSheet.create({
|
|
103
|
-
list: {
|
|
104
|
-
flex: 1,
|
|
105
|
-
marginTop: 12
|
|
106
|
-
},
|
|
107
|
-
rowItem: {
|
|
108
|
-
paddingHorizontal: 10,
|
|
109
|
-
paddingVertical: 18,
|
|
110
|
-
flexDirection: 'row',
|
|
111
|
-
alignItems: 'center',
|
|
112
|
-
marginTop: 8,
|
|
113
|
-
backgroundColor: '#ffffff'
|
|
114
|
-
},
|
|
115
|
-
headerText: {
|
|
116
|
-
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
117
|
-
fontStyle: 'normal',
|
|
118
|
-
fontWeight: '400',
|
|
119
|
-
fontSize: 14,
|
|
120
|
-
textAlign: 'left',
|
|
121
|
-
lineHeight: 18,
|
|
122
|
-
color: '#9D9D9D',
|
|
123
|
-
letterSpacing: 0.25
|
|
124
|
-
},
|
|
125
|
-
listHeader: {
|
|
126
|
-
paddingHorizontal: 10,
|
|
127
|
-
paddingVertical: 18,
|
|
128
|
-
flexDirection: 'row',
|
|
129
|
-
alignItems: 'center',
|
|
130
|
-
backgroundColor: '#fbfbfb',
|
|
131
|
-
marginTop: 8
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
//# sourceMappingURL=ScanList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_vectorIcons","_CommonStyles","_IconButton","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ListItem","_ref","lineItem","createElement","View","style","styles","rowItem","Text","marginEnd","renderItem","_ref2","item","ICON_SIZE","ScanList","_ref3","pending","scanned","validation","showPendingList","setShowPendingList","useState","showScannedList","setShowScannedList","selectedIndex","pendingIconName","scannedIconName","flex","Fragment","title","length","listHeader","onPress","textStyles","headerText","icon","AntDesign","name","size","color","list","marginTop","FlatList","data","keyExtractor","_default","exports","StyleSheet","create","paddingHorizontal","paddingVertical","flexDirection","alignItems","backgroundColor","fontFamily","Fonts","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","textAlign","lineHeight","letterSpacing"],"sources":["ScanList.tsx"],"sourcesContent":["import { View, Text, FlatList, StyleSheet } from 'react-native';\nimport React, { useState } from 'react';\nimport { AntDesign } from '@expo/vector-icons';\nimport { Fonts } from '../../../../styles/executionTasks/CommonStyles';\nimport IconButton from '../../../widgets/IconButton';\nimport type { Validation } from '../ScanSchema';\n\nconst ListItem = ({ lineItem }: { lineItem: string }) => (\n <View style={styles.rowItem}>\n <Text style={{ marginEnd: 20 }}>{`#${lineItem}`}</Text>\n </View>\n);\n\nconst renderItem = ({ item }: { item: string }) => <ListItem lineItem={item} />;\n\nconst ICON_SIZE = 12;\n\nconst ScanList = ({\n pending,\n scanned,\n validation,\n}: {\n pending: string[];\n scanned: string[];\n validation: Validation;\n}) => {\n const [showPendingList, setShowPendingList] = useState(true);\n const [showScannedList, setShowScannedList] = useState(() =>\n validation.selectedIndex === 0 ? false : true\n );\n\n const pendingIconName = showPendingList ? 'caretup' : 'caretdown';\n const scannedIconName = showScannedList ? 'caretup' : 'caretdown';\n\n return (\n <View style={{ flex: 1 }}>\n {validation.selectedIndex === 0 ? (\n <>\n <IconButton\n title={`PENDING SHIPMENTS (${pending.length})`}\n style={styles.listHeader}\n onPress={() => {\n setShowPendingList((showPendingList) => !showPendingList);\n setShowScannedList((showScannedList) => {\n if (showScannedList && pending.length > 0)\n return !showScannedList;\n else return showScannedList;\n });\n }}\n textStyles={styles.headerText}\n icon={\n <AntDesign\n name={`${pendingIconName}`}\n size={ICON_SIZE}\n color=\"black\"\n />\n }\n />\n {showPendingList && pending.length > 0 ? (\n <View style={pending.length >= 9 ? styles.list : { marginTop: 12 }}>\n <FlatList\n data={pending}\n renderItem={renderItem}\n keyExtractor={(item) => item}\n />\n </View>\n ) : null}\n </>\n ) : null}\n <>\n <IconButton\n title={`SCANNED SHIPMENTS (${scanned.length})`}\n style={styles.listHeader}\n onPress={() => {\n setShowScannedList((showScannedList) => !showScannedList);\n if (validation.selectedIndex === 0) {\n setShowPendingList((showPendingList) => {\n if (showPendingList && scanned.length > 0)\n return !showPendingList;\n else return showPendingList;\n });\n }\n }}\n textStyles={styles.headerText}\n icon={\n <AntDesign\n name={`${scannedIconName}`}\n size={ICON_SIZE}\n color=\"black\"\n />\n }\n />\n {showScannedList && scanned.length > 0 ? (\n <View style={scanned.length >= 9 ? styles.list : { marginTop: 12 }}>\n <FlatList\n data={scanned}\n renderItem={renderItem}\n keyExtractor={(item) => item}\n />\n </View>\n ) : null}\n </>\n </View>\n );\n};\n\nexport default ScanList;\n\nconst styles = StyleSheet.create({\n list: {\n flex: 1,\n marginTop: 12,\n },\n rowItem: {\n paddingHorizontal: 10,\n paddingVertical: 18,\n flexDirection: 'row',\n alignItems: 'center',\n marginTop: 8,\n backgroundColor: '#ffffff',\n },\n headerText: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n textAlign: 'left',\n lineHeight: 18,\n color: '#9D9D9D',\n letterSpacing: 0.25,\n },\n listHeader: {\n paddingHorizontal: 10,\n paddingVertical: 18,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#fbfbfb',\n marginTop: 8,\n },\n});\n"],"mappings":"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"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _expoCamera = require("expo-camera");
|
|
10
|
-
var _utils = require("../../../utils/utils");
|
|
11
|
-
var _CaptureUtils = require("../imageCapture/CaptureUtils");
|
|
12
|
-
var _reactNativePaper = require("react-native-paper");
|
|
13
|
-
var _expoBlur = require("expo-blur");
|
|
14
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
15
|
-
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
function Hint(_ref) {
|
|
19
|
-
let {
|
|
20
|
-
children
|
|
21
|
-
} = _ref;
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_expoBlur.BlurView, {
|
|
23
|
-
style: styles.hint,
|
|
24
|
-
intensity: 50,
|
|
25
|
-
tint: "dark"
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
27
|
-
style: styles.headerText
|
|
28
|
-
}, children));
|
|
29
|
-
}
|
|
30
|
-
const CScanner = props => {
|
|
31
|
-
const [isVisible, setVisible] = (0, _react.useState)(true);
|
|
32
|
-
const [hasPermission, setHasPermission] = (0, _react.useState)(null);
|
|
33
|
-
const {
|
|
34
|
-
bottom
|
|
35
|
-
} = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
36
|
-
(0, _react.useEffect)(() => {
|
|
37
|
-
(async () => {
|
|
38
|
-
let response = await (0, _CaptureUtils.checkCameraPermissionUtil)();
|
|
39
|
-
setHasPermission(response);
|
|
40
|
-
})();
|
|
41
|
-
}, []);
|
|
42
|
-
const _handleBarCodeScanned = scan => {
|
|
43
|
-
if (!(0, _utils.isEmptyOrBlank)(scan.data)) {
|
|
44
|
-
setVisible(false);
|
|
45
|
-
props.onScanned(scan.data);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
if (!hasPermission) {
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
50
|
-
style: {
|
|
51
|
-
flex: 1,
|
|
52
|
-
justifyContent: 'center',
|
|
53
|
-
alignItems: 'center'
|
|
54
|
-
}
|
|
55
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, null, 'No Permissions for Camera. Please provide camera permissions from app\
|
|
56
|
-
settings.'));
|
|
57
|
-
}
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
59
|
-
style: styles.container
|
|
60
|
-
}, isVisible ? /*#__PURE__*/_react.default.createElement(_expoCamera.Camera, {
|
|
61
|
-
barCodeScannerSettings: {
|
|
62
|
-
barCodeTypes: props.barCodeTypes
|
|
63
|
-
},
|
|
64
|
-
onBarCodeScanned: _handleBarCodeScanned,
|
|
65
|
-
style: _reactNative.StyleSheet.absoluteFill
|
|
66
|
-
}) : null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
67
|
-
style: [styles.header, {
|
|
68
|
-
bottom: 16 + bottom
|
|
69
|
-
}]
|
|
70
|
-
}, /*#__PURE__*/_react.default.createElement(Hint, null, 'or \nScan Shipment ID')));
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// exporting Scanner as Pure Component
|
|
74
|
-
var _default = /*#__PURE__*/(0, _react.memo)(CScanner);
|
|
75
|
-
exports.default = _default;
|
|
76
|
-
const styles = _reactNative.StyleSheet.create({
|
|
77
|
-
container: {
|
|
78
|
-
flex: 1,
|
|
79
|
-
backgroundColor: '#000',
|
|
80
|
-
justifyContent: 'center',
|
|
81
|
-
alignItems: 'center'
|
|
82
|
-
},
|
|
83
|
-
hint: {
|
|
84
|
-
paddingHorizontal: 16,
|
|
85
|
-
paddingVertical: 20,
|
|
86
|
-
overflow: 'hidden',
|
|
87
|
-
justifyContent: 'center',
|
|
88
|
-
alignItems: 'center'
|
|
89
|
-
},
|
|
90
|
-
headerText: {
|
|
91
|
-
color: '#fff',
|
|
92
|
-
backgroundColor: 'transparent',
|
|
93
|
-
textAlign: 'center',
|
|
94
|
-
fontSize: 16,
|
|
95
|
-
fontWeight: '500'
|
|
96
|
-
},
|
|
97
|
-
header: {
|
|
98
|
-
position: 'absolute',
|
|
99
|
-
left: 0,
|
|
100
|
-
right: 0,
|
|
101
|
-
alignItems: 'center',
|
|
102
|
-
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
//# sourceMappingURL=CScanner.js.map
|