@os1-platform/dispatch-mobile 2.1.13 → 2.1.15
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/android/.gradle/7.5/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5/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/config.properties +2 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +8 -3
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +1 -1
- package/android/.idea/other.xml +263 -0
- package/android/build.gradle +1 -1
- package/android/gradle.properties +4 -4
- package/android/src/main/AndroidManifest.xml +10 -6
- package/android/src/main/java/com/dispatchsdk/sync/SyncManagerService.kt +7 -1
- package/lib/commonjs/@types/assets/index.d.js.map +1 -1
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentryModels.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/CompletedWFSchema.js.map +1 -1
- 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/cancellation/CancellationSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplaySchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormSchema.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.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +3 -0
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +9 -6
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +66 -27
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +4 -2
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
- 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/verifyInput/VerifyInputSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +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.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/EventListener.js.map +1 -1
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/events/interface.js.map +1 -1
- package/lib/commonjs/icons/ScanIcon.js.map +1 -1
- package/lib/commonjs/icons/file.js.map +1 -1
- package/lib/commonjs/icons/interface.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/locale/Str.js.map +1 -1
- package/lib/commonjs/locale/i18n.js.map +1 -1
- package/lib/commonjs/locale/util.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +9 -3
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +0 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/models.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/ReasonCodes.js.map +1 -1
- package/lib/commonjs/models/auth.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/execution.js.map +1 -1
- package/lib/commonjs/models/fcm.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/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/res/strings.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.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +9 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +9 -1
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/Constants.js +9 -0
- package/lib/commonjs/utils/Constants.js.map +1 -0
- package/lib/commonjs/utils/Enums.js +12 -0
- package/lib/commonjs/utils/Enums.js.map +1 -0
- 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.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- 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.map +1 -1
- package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -1
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/module/analytics/sentry/SentryModels.js.map +1 -1
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/CompletedWFSchema.js.map +1 -1
- 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/cancellation/CancellationSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplaySchema.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormSchema.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.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +3 -0
- 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.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +9 -6
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +67 -28
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/scan/utils.js +4 -2
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -1
- 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/verifyInput/VerifyInputSchema.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/lib/module/components/widgets/GoBackModal.js.map +1 -1
- package/lib/module/components/widgets/IconButton.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/widgets/Toaster.js.map +1 -1
- package/lib/module/config/DispatchSDKConfig.js.map +1 -1
- package/lib/module/constants/apiConstants.js.map +1 -1
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/constants/statuscode.js.map +1 -1
- package/lib/module/errors/BaseError.js.map +1 -1
- package/lib/module/errors/ErrorCodes.js.map +1 -1
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/events/EventListener.js.map +1 -1
- package/lib/module/events/constants.js.map +1 -1
- package/lib/module/events/index.js.map +1 -1
- package/lib/module/events/interface.js.map +1 -1
- package/lib/module/icons/ScanIcon.js.map +1 -1
- package/lib/module/icons/file.js.map +1 -1
- package/lib/module/icons/interface.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/locale/Str.js.map +1 -1
- package/lib/module/locale/i18n.js.map +1 -1
- package/lib/module/locale/util.js.map +1 -1
- 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.map +1 -1
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- 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.map +1 -1
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +9 -3
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +0 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/models.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/ReasonCodes.js.map +1 -1
- package/lib/module/models/auth.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/execution.js.map +1 -1
- package/lib/module/models/fcm.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/Queries.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/res/strings.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.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +9 -1
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +9 -1
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- 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.map +1 -1
- package/lib/module/utils/ApiUtils.js.map +1 -1
- package/lib/module/utils/Constants.js +3 -0
- package/lib/module/utils/Constants.js.map +1 -0
- package/lib/module/utils/Enums.js +6 -0
- package/lib/module/utils/Enums.js.map +1 -0
- 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.map +1 -1
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- 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.map +1 -1
- package/lib/module/utils/hooks/useTimer.js.map +1 -1
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +2 -0
- package/lib/typescript/utils/Constants.d.ts +1 -0
- package/lib/typescript/utils/Enums.d.ts +4 -0
- package/package.json +7 -7
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +36 -31
- package/src/components/executiontasks/scan/ScanET.tsx +23 -23
- package/src/components/executiontasks/scan/interfaces.ts +2 -0
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +107 -80
- package/src/components/executiontasks/scan/utils.ts +4 -1
- package/src/manager/syncmanager/document/DocumentManager.ts +15 -6
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +45 -46
- package/src/ui/screens/DeliverScreen.tsx +9 -7
- package/src/ui/screens/FormsScreen.tsx +14 -7
- package/src/ui/screens/ImageCaptureScreen.tsx +1 -1
- package/src/utils/Constants.ts +2 -0
- package/src/utils/Enums.ts +4 -0
- package/src/utils/storage.ts +9 -9
|
@@ -42,7 +42,7 @@ export default class DocumentSyncManager {
|
|
|
42
42
|
this._retries = value;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
private constructor() {}
|
|
45
|
+
private constructor() { }
|
|
46
46
|
|
|
47
47
|
public init(baseURL: string, retryCount: number) {
|
|
48
48
|
if (isEmptyOrBlank(baseURL))
|
|
@@ -80,7 +80,7 @@ export default class DocumentSyncManager {
|
|
|
80
80
|
screenName: cta,
|
|
81
81
|
cta: cta,
|
|
82
82
|
extraParams: {
|
|
83
|
-
msg:'No data to sync'
|
|
83
|
+
msg: 'No data to sync'
|
|
84
84
|
},
|
|
85
85
|
});
|
|
86
86
|
Logger.getInstance().logEvent(
|
|
@@ -97,7 +97,7 @@ export default class DocumentSyncManager {
|
|
|
97
97
|
screenName: cta,
|
|
98
98
|
cta: cta,
|
|
99
99
|
extraParams: {
|
|
100
|
-
msg:'No Network'
|
|
100
|
+
msg: 'No Network'
|
|
101
101
|
},
|
|
102
102
|
});
|
|
103
103
|
Logger.getInstance().logEvent(
|
|
@@ -114,7 +114,7 @@ export default class DocumentSyncManager {
|
|
|
114
114
|
screenName: cta,
|
|
115
115
|
cta: cta,
|
|
116
116
|
extraParams: {
|
|
117
|
-
msg:flattenObject(error)
|
|
117
|
+
msg: flattenObject(error)
|
|
118
118
|
},
|
|
119
119
|
});
|
|
120
120
|
Logger.getInstance().logEvent(
|
|
@@ -138,7 +138,7 @@ export default class DocumentSyncManager {
|
|
|
138
138
|
screenName: cta,
|
|
139
139
|
cta: cta,
|
|
140
140
|
extraParams: {
|
|
141
|
-
msg:flattenObject(extraParameters)
|
|
141
|
+
msg: flattenObject(extraParameters)
|
|
142
142
|
},
|
|
143
143
|
});
|
|
144
144
|
Logger.getInstance().logEvent(
|
|
@@ -156,7 +156,7 @@ export default class DocumentSyncManager {
|
|
|
156
156
|
screenName: cta,
|
|
157
157
|
cta: cta,
|
|
158
158
|
extraParams: {
|
|
159
|
-
msg:'sync already in progress or max count reached'
|
|
159
|
+
msg: 'sync already in progress or max count reached'
|
|
160
160
|
},
|
|
161
161
|
});
|
|
162
162
|
Logger.getInstance().logEvent(
|
|
@@ -206,7 +206,7 @@ export default class DocumentSyncManager {
|
|
|
206
206
|
if (!this.docManager) {
|
|
207
207
|
this.docManager = await DocumentManager.getInstance();
|
|
208
208
|
}
|
|
209
|
-
console.log('insertDocument1:',fmsFolderID);
|
|
209
|
+
console.log('insertDocument1:', fmsFolderID);
|
|
210
210
|
let insertResponse = await this.docManager?.insertDocument(
|
|
211
211
|
fmsFolderID,
|
|
212
212
|
desc,
|
|
@@ -229,7 +229,7 @@ export default class DocumentSyncManager {
|
|
|
229
229
|
screenName: cta,
|
|
230
230
|
cta: cta,
|
|
231
231
|
extraParams: {
|
|
232
|
-
msg:'INIT DOC SYNC AGAIN'
|
|
232
|
+
msg: 'INIT DOC SYNC AGAIN'
|
|
233
233
|
},
|
|
234
234
|
});
|
|
235
235
|
Logger.getInstance().logEvent(
|
|
@@ -294,7 +294,7 @@ export default class DocumentSyncManager {
|
|
|
294
294
|
screenName: cta,
|
|
295
295
|
cta: cta,
|
|
296
296
|
extraParams: {
|
|
297
|
-
msg:flattenObject(extraParameters)
|
|
297
|
+
msg: flattenObject(extraParameters)
|
|
298
298
|
},
|
|
299
299
|
});
|
|
300
300
|
Logger.getInstance().logEvent(
|
|
@@ -304,7 +304,7 @@ export default class DocumentSyncManager {
|
|
|
304
304
|
);
|
|
305
305
|
// Calling update method for attempt count and sync to update event row of type POD_DOC
|
|
306
306
|
await eventsManager.markPODDocEventSynced(sync, attempt, podId);
|
|
307
|
-
if(sync == 1){
|
|
307
|
+
if (sync == 1) {
|
|
308
308
|
const lastSyncedEventId = await Storage.getInstance().getSharedItem(
|
|
309
309
|
LAST_SYNCED_EVENT_ID
|
|
310
310
|
);
|
|
@@ -323,7 +323,7 @@ export default class DocumentSyncManager {
|
|
|
323
323
|
screenName: cta,
|
|
324
324
|
cta: cta,
|
|
325
325
|
extraParams: {
|
|
326
|
-
msg:flattenObject(err)
|
|
326
|
+
msg: flattenObject(err)
|
|
327
327
|
},
|
|
328
328
|
});
|
|
329
329
|
Logger.getInstance().logEvent(
|
|
@@ -334,7 +334,7 @@ export default class DocumentSyncManager {
|
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
// This function is updating processed_file_path column for the base64 overlayed data and overlayed image file for POD. Also if it is base 64 then it is also storing temprary file path in file_path as original bae64 image.
|
|
338
338
|
private async updateDocumentProcessedPath(
|
|
339
339
|
documentRow: DocumentRow,
|
|
340
340
|
origialFilePath: String,
|
|
@@ -355,7 +355,7 @@ export default class DocumentSyncManager {
|
|
|
355
355
|
screenName: cta,
|
|
356
356
|
cta: cta,
|
|
357
357
|
extraParams: {
|
|
358
|
-
msg:flattenObject(err)
|
|
358
|
+
msg: flattenObject(err)
|
|
359
359
|
},
|
|
360
360
|
});
|
|
361
361
|
Logger.getInstance().logEvent(
|
|
@@ -378,7 +378,7 @@ export default class DocumentSyncManager {
|
|
|
378
378
|
screenName: cta,
|
|
379
379
|
cta: cta,
|
|
380
380
|
extraParams: {
|
|
381
|
-
msg:flattenObject(err)
|
|
381
|
+
msg: flattenObject(err)
|
|
382
382
|
},
|
|
383
383
|
});
|
|
384
384
|
Logger.getInstance().logEvent(
|
|
@@ -407,9 +407,9 @@ export default class DocumentSyncManager {
|
|
|
407
407
|
let cta = 'processImageData-started';
|
|
408
408
|
let extra = {
|
|
409
409
|
msg: 'processImageData-started',
|
|
410
|
-
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
|
|
411
|
-
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
|
|
412
|
-
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
|
|
410
|
+
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
|
|
411
|
+
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
|
|
412
|
+
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
|
|
413
413
|
};
|
|
414
414
|
fireEventWithScreenName({
|
|
415
415
|
severityLevel: SeverityLevelValue.LOG,
|
|
@@ -431,7 +431,7 @@ export default class DocumentSyncManager {
|
|
|
431
431
|
let lng = objGeoStamp.lng; // Longitude
|
|
432
432
|
let accuracy = objGeoStamp.accuracy; // Location accuracy
|
|
433
433
|
let strDMS = latlngToDms(`${lat}, ${lng}`); // Location in degree format
|
|
434
|
-
let strDMSWithAccuracy = strDMS;
|
|
434
|
+
let strDMSWithAccuracy = strDMS;
|
|
435
435
|
if (accuracy !== '') {
|
|
436
436
|
strDMSWithAccuracy = strDMS + ' (Accuracy: ' + accuracy + 'm)'; // Appedning accuracy in location
|
|
437
437
|
}
|
|
@@ -444,7 +444,7 @@ export default class DocumentSyncManager {
|
|
|
444
444
|
src: documentRow.file_path,
|
|
445
445
|
scale: 1,
|
|
446
446
|
},
|
|
447
|
-
watermarkTexts: [
|
|
447
|
+
watermarkTexts: [
|
|
448
448
|
{
|
|
449
449
|
text: `${dateTime}\n${strDMSWithAccuracy}`, //Overlay text
|
|
450
450
|
position: {
|
|
@@ -463,7 +463,7 @@ export default class DocumentSyncManager {
|
|
|
463
463
|
},
|
|
464
464
|
],
|
|
465
465
|
scale: 0,
|
|
466
|
-
quality: 100,
|
|
466
|
+
quality: 100,
|
|
467
467
|
filename: pFilePath,
|
|
468
468
|
saveFormat: ImageFormat.jpg, // Saving in jpeg format
|
|
469
469
|
};
|
|
@@ -480,15 +480,15 @@ export default class DocumentSyncManager {
|
|
|
480
480
|
documentRow.file_path, //original file path catprued from camera
|
|
481
481
|
completeFilePath // completeFilePath is the path with file:// of processed file
|
|
482
482
|
);
|
|
483
|
-
documentRow.processed_file_path = completeFilePath;
|
|
483
|
+
documentRow.processed_file_path = completeFilePath;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
let cta = 'processImageData-completed';
|
|
487
487
|
let extra = {
|
|
488
488
|
msg: 'processImageData-completed',
|
|
489
|
-
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
|
|
490
|
-
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
|
|
491
|
-
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
|
|
489
|
+
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
|
|
490
|
+
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
|
|
491
|
+
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
|
|
492
492
|
};
|
|
493
493
|
fireEventWithScreenName({
|
|
494
494
|
severityLevel: SeverityLevelValue.LOG,
|
|
@@ -507,7 +507,6 @@ export default class DocumentSyncManager {
|
|
|
507
507
|
|
|
508
508
|
// This function will generate overlay base64 data and update documents table for processed_file_path columns with overlayed base64 data.
|
|
509
509
|
private async processBase64Data(documentRow: DocumentRow) {
|
|
510
|
-
// If base64 overlayed data already existing then do not generate it again.
|
|
511
510
|
if (
|
|
512
511
|
documentRow.processed_file_path === null ||
|
|
513
512
|
documentRow.processed_file_path === ''
|
|
@@ -515,9 +514,9 @@ export default class DocumentSyncManager {
|
|
|
515
514
|
let cta = 'processBase64Data-started';
|
|
516
515
|
let extra = {
|
|
517
516
|
msg: 'processBase64Data-started',
|
|
518
|
-
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
|
|
519
|
-
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
|
|
520
|
-
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
|
|
517
|
+
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
|
|
518
|
+
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
|
|
519
|
+
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
|
|
521
520
|
};
|
|
522
521
|
fireEventWithScreenName({
|
|
523
522
|
severityLevel: SeverityLevelValue.LOG,
|
|
@@ -553,7 +552,7 @@ export default class DocumentSyncManager {
|
|
|
553
552
|
let lng = objGeoStamp.lng; // Longitude
|
|
554
553
|
let accuracy = objGeoStamp.accuracy; // Location accuracy
|
|
555
554
|
let strDMS = latlngToDms(`${lat}, ${lng}`); // Location in degree format
|
|
556
|
-
let strDMSWithAccuracy = strDMS;
|
|
555
|
+
let strDMSWithAccuracy = strDMS;
|
|
557
556
|
if (accuracy !== '') {
|
|
558
557
|
strDMSWithAccuracy = strDMS + ' (Accuracy: ' + accuracy + 'm)'; // Appedning accuracy in location
|
|
559
558
|
}
|
|
@@ -603,9 +602,9 @@ export default class DocumentSyncManager {
|
|
|
603
602
|
let cta = 'processBase64Data-completed';
|
|
604
603
|
let extra = {
|
|
605
604
|
msg: 'processBase64Data-completed',
|
|
606
|
-
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
|
|
607
|
-
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
|
|
608
|
-
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
|
|
605
|
+
fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
|
|
606
|
+
dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
|
|
607
|
+
dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
|
|
609
608
|
};
|
|
610
609
|
fireEventWithScreenName({
|
|
611
610
|
severityLevel: SeverityLevelValue.LOG,
|
|
@@ -636,15 +635,15 @@ export default class DocumentSyncManager {
|
|
|
636
635
|
let docRow = documentRow;
|
|
637
636
|
let cta = 'uploadDocToServer-geoStamp';
|
|
638
637
|
let geoStampAvailable = false
|
|
639
|
-
if(documentRow.geo_timestamp && documentRow.geo_timestamp.length != 0){
|
|
638
|
+
if (documentRow.geo_timestamp && documentRow.geo_timestamp.length != 0) {
|
|
640
639
|
geoStampAvailable = true;
|
|
641
640
|
docRow = await this.processPODData(documentRow);
|
|
642
641
|
}
|
|
643
642
|
let extra = {
|
|
644
643
|
msg: geoStampAvailable ? "geoStamp availale" : 'geoStamp not availale',
|
|
645
|
-
fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4): '',
|
|
646
|
-
dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4): '',
|
|
647
|
-
dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9): ''
|
|
644
|
+
fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4) : '',
|
|
645
|
+
dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4) : '',
|
|
646
|
+
dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9) : ''
|
|
648
647
|
};
|
|
649
648
|
fireEventWithScreenName({
|
|
650
649
|
severityLevel: SeverityLevelValue.LOG,
|
|
@@ -662,13 +661,13 @@ export default class DocumentSyncManager {
|
|
|
662
661
|
|
|
663
662
|
let extraParameters = {
|
|
664
663
|
fmsID: fmsID ?? '',
|
|
665
|
-
fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4): '',
|
|
666
|
-
dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4): '',
|
|
667
|
-
dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9): ''
|
|
664
|
+
fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4) : '',
|
|
665
|
+
dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4) : '',
|
|
666
|
+
dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9) : ''
|
|
668
667
|
};
|
|
669
668
|
// TODO: SOLELY DEPENDS ON FMS_ID WHICH IS WRONG => IT SHOULD BE Response.status = 202
|
|
670
669
|
if (fmsID) {
|
|
671
|
-
|
|
670
|
+
// Calling function updating document row along with attempt count and sync as true.
|
|
672
671
|
await this.updateDocumentWithAttempt(
|
|
673
672
|
documentRow,
|
|
674
673
|
fmsID,
|
|
@@ -676,7 +675,7 @@ export default class DocumentSyncManager {
|
|
|
676
675
|
1
|
|
677
676
|
);
|
|
678
677
|
this._retries = 0;
|
|
679
|
-
|
|
678
|
+
// await this.updateDocument(docRow, fmsID);
|
|
680
679
|
} else {
|
|
681
680
|
// Calling function updating document row withalong attempt count and sync as false.
|
|
682
681
|
await this.updateDocumentWithAttempt(
|
|
@@ -703,8 +702,8 @@ export default class DocumentSyncManager {
|
|
|
703
702
|
await this.updateDocError(docRow, 'Unexpected Error');
|
|
704
703
|
}
|
|
705
704
|
} catch (error: any) {
|
|
706
|
-
|
|
707
|
-
|
|
705
|
+
// Calling function updating document row withalong attempt count and sync as false.
|
|
706
|
+
await this.updateDocumentWithAttempt(
|
|
708
707
|
documentRow,
|
|
709
708
|
'',
|
|
710
709
|
this._retries + 1,
|
|
@@ -738,8 +737,8 @@ export default class DocumentSyncManager {
|
|
|
738
737
|
}
|
|
739
738
|
}
|
|
740
739
|
|
|
741
|
-
private async startSyncAfterMaxRetry(extraParameters:any, error:any){
|
|
742
|
-
if(this.retries >= this.maxRetryCount){
|
|
740
|
+
private async startSyncAfterMaxRetry(extraParameters: any, error: any) {
|
|
741
|
+
if (this.retries >= this.maxRetryCount) {
|
|
743
742
|
let cta = 'startSyncAfterMaxRetry-max-retry-reached'
|
|
744
743
|
fireEventWithScreenName({
|
|
745
744
|
severityLevel: SeverityLevelValue.LOG,
|
|
@@ -757,7 +756,7 @@ export default class DocumentSyncManager {
|
|
|
757
756
|
this.docManager = await DocumentManager.getInstance();
|
|
758
757
|
}
|
|
759
758
|
let documentRows: DocumentRow[] =
|
|
760
|
-
|
|
759
|
+
await this.docManager.getUnsyncedDocument();
|
|
761
760
|
if (documentRows?.length > 0) {
|
|
762
761
|
await this.docManager.updateDocPriority(documentRows[0].id, documentRows[0].priority + 1);
|
|
763
762
|
this._retries = 0;
|
|
@@ -10,15 +10,11 @@ import CancelOrderDialog from '../../components/widgets/CancelOrderDialog';
|
|
|
10
10
|
import { onTaskStart } from '../../utils/ExecTaskUtils';
|
|
11
11
|
import { DispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
12
12
|
import Storage from '../../utils/storage';
|
|
13
|
-
import {
|
|
14
|
-
SCAN_MERGED_OBJ_ID_OUTPUT,
|
|
15
|
-
SHARED_PREFERENCE_SCAN_OUTPUT,
|
|
16
|
-
} from '../../manager/syncmanager/constants';
|
|
17
13
|
import { GO_BACK_EVENT_CODE } from '../../constants/constants';
|
|
18
14
|
import Helper from '../../utils/helper';
|
|
19
15
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
20
16
|
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
21
|
-
import
|
|
17
|
+
import { PROGRESS_GROUP } from '../../utils/Constants';
|
|
22
18
|
|
|
23
19
|
const DeliverScreen = ({
|
|
24
20
|
navigation,
|
|
@@ -69,8 +65,14 @@ const DeliverScreen = ({
|
|
|
69
65
|
}
|
|
70
66
|
|
|
71
67
|
const getMergedReturnPackageCount = async () => {
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
let progressGroup = null;
|
|
69
|
+
try {
|
|
70
|
+
progressGroup = await Storage.getInstance().getSharedItem(PROGRESS_GROUP, false);
|
|
71
|
+
} catch (error) {
|
|
72
|
+
progressGroup = null;
|
|
73
|
+
}
|
|
74
|
+
const count = await DispatchExecutor.getShipmentsCountForDeliverET(
|
|
75
|
+
mergedObjectiveId, progressGroup
|
|
74
76
|
);
|
|
75
77
|
setReturnPackageCount(count.totalCount);
|
|
76
78
|
setShipCount(count.shipCount);
|
|
@@ -16,7 +16,8 @@ import { AjvError } from '@rjsf/core';
|
|
|
16
16
|
import Helper from '../../utils/helper';
|
|
17
17
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
18
18
|
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
19
|
-
import
|
|
19
|
+
import { PROGRESS_GROUP } from '../../utils/Constants';
|
|
20
|
+
import Storage from '../../utils/storage';
|
|
20
21
|
|
|
21
22
|
const FormsScreen = ({
|
|
22
23
|
route,
|
|
@@ -48,12 +49,18 @@ const FormsScreen = ({
|
|
|
48
49
|
);
|
|
49
50
|
|
|
50
51
|
if (route.params[RouteParams.ROOT_META_DATA]) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
//Call objectiveDetails fn and fetch sds ids
|
|
53
|
+
let progressGroup = null;
|
|
54
|
+
try {
|
|
55
|
+
progressGroup = await Storage.getInstance().getSharedItem(PROGRESS_GROUP, false);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
progressGroup = null;
|
|
58
|
+
}
|
|
59
|
+
const { contact } = await dispatchExecutor.getObjectiveTaskDetails(
|
|
60
|
+
mergedObjectiveId[0],
|
|
61
|
+
progressGroup,
|
|
62
|
+
route.params[RouteParams.ROOT_META_DATA].statusFilter
|
|
63
|
+
);
|
|
57
64
|
|
|
58
65
|
// run callback to get corresponding phone numbers
|
|
59
66
|
const phoneNumbers = await callbackHandler.getPhoneNumbers(contact);
|
|
@@ -33,7 +33,7 @@ const ImageCaptureScreen = ({
|
|
|
33
33
|
useEffect(() => {
|
|
34
34
|
(async () => {
|
|
35
35
|
//fire sentry event
|
|
36
|
-
fireEventWithScreenName({severityLevel:SeverityLevelValue.LOG, eventName:SentryEventNameSdkConstants.CAPTURE_IMAGE_ET_OPENED, screenName:ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN});
|
|
36
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.CAPTURE_IMAGE_ET_OPENED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN });
|
|
37
37
|
//
|
|
38
38
|
onTaskStart(
|
|
39
39
|
route.params[RouteParams.NEXT_STATES],
|
package/src/utils/storage.ts
CHANGED
|
@@ -203,13 +203,13 @@ class Storage {
|
|
|
203
203
|
/**
|
|
204
204
|
* Shared preferences
|
|
205
205
|
*/
|
|
206
|
-
async setSharedItem(key: string, value: string, prefix:boolean = true): Promise<void> {
|
|
206
|
+
async setSharedItem(key: string, value: string, prefix: boolean = true): Promise<void> {
|
|
207
207
|
if (Platform.OS === 'android') {
|
|
208
208
|
await SharedPreferencesModule.setItem(key, value);
|
|
209
209
|
} else {
|
|
210
|
-
if(prefix){
|
|
210
|
+
if (prefix) {
|
|
211
211
|
await this.setItem(key, value);
|
|
212
|
-
}else{
|
|
212
|
+
} else {
|
|
213
213
|
await AsyncStorage.setItem(key, value);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
@@ -225,14 +225,14 @@ class Storage {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
async getSharedItem(key: string, prefix:boolean = true): Promise<any> {
|
|
228
|
+
async getSharedItem(key: string, prefix: boolean = true): Promise<any> {
|
|
229
229
|
if (Platform.OS === 'android') {
|
|
230
230
|
return await SharedPreferencesModule.getItem(key);
|
|
231
231
|
} else {
|
|
232
|
-
if(prefix){
|
|
232
|
+
if (prefix) {
|
|
233
233
|
let item = await this.getItem(key);
|
|
234
234
|
return item;
|
|
235
|
-
}else{
|
|
235
|
+
} else {
|
|
236
236
|
let item = await AsyncStorage.getItem(key);
|
|
237
237
|
return item;
|
|
238
238
|
}
|
|
@@ -280,13 +280,13 @@ class Storage {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
async removeSharedItem(key: string, prefix:boolean = true): Promise<void> {
|
|
283
|
+
async removeSharedItem(key: string, prefix: boolean = true): Promise<void> {
|
|
284
284
|
if (Platform.OS === 'android') {
|
|
285
285
|
await SharedPreferencesModule.removeItem(key);
|
|
286
286
|
} else {
|
|
287
|
-
if(prefix){
|
|
287
|
+
if (prefix) {
|
|
288
288
|
await this.deleteItem(key);
|
|
289
|
-
}else{
|
|
289
|
+
} else {
|
|
290
290
|
await AsyncStorage.removeItem(key);
|
|
291
291
|
}
|
|
292
292
|
}
|