@os1-platform/dispatch-mobile 3.1.9 → 3.2.1
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 +0 -2
- package/android/.gradle/8.13/checksums/checksums.lock +0 -0
- package/android/.gradle/8.13/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.13/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.13/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{8.10.2 → 8.13}/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.13/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.idea/caches/deviceStreaming.xml +218 -12
- package/android/build.gradle +14 -15
- package/android/gradle.properties +9 -4
- package/android/src/main/AndroidManifest.xml +4 -1
- package/android/src/main/java/com/dispatchsdk/location/LocationModule.kt +3 -3
- package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +2 -3
- package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +27 -11
- package/babel.config.js +1 -1
- package/dispatch-mobile.podspec +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +1 -2
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +4 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +1 -2
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +4 -5
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +5 -6
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +3 -4
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +5 -9
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +8 -9
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +24 -25
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +1 -2
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +5 -6
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -2
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +6 -7
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -2
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +5 -6
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +13 -35
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +4 -5
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +1 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +5 -6
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +1 -2
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +5 -6
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +8 -9
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +17 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +5 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +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 +1 -2
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +6 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +13 -15
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +1 -2
- 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/components/ContactListView.js +5 -7
- package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js +5 -6
- package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js +8 -11
- package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -12
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +1 -2
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +3 -4
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +2 -2
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +4 -3
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -15
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +2 -3
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +1 -2
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/components/widgets/Timer.js +1 -2
- package/lib/commonjs/components/widgets/Timer.js.map +1 -1
- package/lib/commonjs/database/DBManager.js +112 -0
- package/lib/commonjs/database/DBManager.js.map +1 -0
- package/lib/commonjs/database/dbUpdate.json +6 -0
- package/lib/commonjs/index.js +1 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +1 -2
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +8 -9
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +5 -6
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +13 -10
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +0 -4
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -3
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +1 -2
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +6 -2
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +118 -47
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +1 -2
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +17 -22
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +86 -77
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +25 -28
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +1 -2
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +1 -2
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +1 -0
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +2 -2
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +1 -2
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +1 -2
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +1 -2
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js +1 -2
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +1 -2
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +1 -2
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +1 -2
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +1 -2
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +1 -2
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +1 -2
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +1 -2
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +1 -2
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +1 -2
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +1 -2
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +1 -2
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +1 -2
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +1 -2
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +1 -2
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/utils/Constants.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +6 -5
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +3 -2
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +1 -2
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +1 -2
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +1 -2
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
- package/lib/commonjs/utils/storage.js +1 -2
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/module/analytics/sentry/SentrySdkConstants.js +4 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +3 -3
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +2 -2
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +3 -6
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +6 -6
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +21 -21
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +3 -3
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +4 -4
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +3 -3
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +11 -32
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -2
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +4 -4
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +3 -3
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +5 -5
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js +16 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +5 -5
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +2 -2
- 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 +3 -3
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/scan/utils.js +13 -14
- 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/components/ContactListView.js +3 -4
- package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/OTPView.js +3 -3
- package/lib/module/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js +7 -9
- package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -10
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +1 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +2 -1
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +6 -8
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +1 -1
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/Timer.js.map +1 -1
- package/lib/module/database/DBManager.js +104 -0
- package/lib/module/database/DBManager.js.map +1 -0
- package/lib/module/database/dbUpdate.json +6 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +7 -7
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +4 -4
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +13 -8
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +0 -4
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +7 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +0 -2
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +5 -1
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/database.js +117 -43
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +16 -20
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +85 -75
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +20 -22
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +1 -0
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +2 -2
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/utils/Constants.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +5 -3
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +2 -0
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/typescript/babel.config.d.ts +1 -0
- package/lib/typescript/jest.config.d.ts +7 -0
- package/lib/typescript/jest.setup.d.ts +1 -0
- package/lib/typescript/scripts/bootstrap.d.ts +1 -0
- package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/{components → src/components}/executiontasks/scan/interfaces.d.ts +15 -0
- package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPSchema.d.ts +1 -1
- package/lib/typescript/{components → src/components}/widgets/CancelOrderDialog.d.ts +1 -1
- package/lib/typescript/{components → src/components}/widgets/SnackBarCustom.d.ts +3 -2
- package/lib/typescript/src/components/widgets/Timer.d.ts +6 -0
- package/lib/typescript/src/database/DBManager.d.ts +1 -0
- package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeRepo.d.ts +1 -1
- package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeRepo.d.ts +5 -3
- package/lib/typescript/{manager → src/manager}/syncmanager/DBConfig.d.ts +5 -1
- package/lib/typescript/src/manager/syncmanager/database.d.ts +31 -0
- package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentManager.d.ts +2 -3
- package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentSyncManager.d.ts +1 -2
- package/lib/typescript/{network → src/network}/GraphQLClient.d.ts +5 -5
- package/lib/typescript/{network → src/network}/NetworkClient.d.ts +3 -3
- package/lib/typescript/{network → src/network}/client.d.ts +3 -3
- package/lib/typescript/{resources → src/resources}/Login.d.ts +7 -7
- package/lib/typescript/{resources → src/resources}/network.d.ts +1 -1
- package/lib/typescript/{utils → src/utils}/ApiUtils.d.ts +2 -2
- package/lib/typescript/{utils → src/utils}/Constants.d.ts +4 -0
- package/package.json +104 -127
- package/src/components/executiontasks/cancellation/CancelET.tsx +1 -1
- package/src/components/executiontasks/captureInput/CaptureText.tsx +6 -6
- package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +2 -3
- package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +3 -7
- package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +3 -4
- package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +7 -8
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +3 -4
- package/src/components/executiontasks/doodle/SignatureET.tsx +5 -5
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +3 -4
- package/src/components/executiontasks/forms/FormGenerator.tsx +38 -55
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +2 -2
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +5 -7
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +3 -4
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +3 -4
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +3 -4
- package/src/components/executiontasks/pickup/PickupET.tsx +3 -9
- package/src/components/executiontasks/pickup/SLPickupET.tsx +3 -4
- package/src/components/executiontasks/scan/ScanET.tsx +5 -6
- package/src/components/executiontasks/scan/interfaces.ts +16 -0
- package/src/components/executiontasks/scan/sub_components/CScanner.tsx +7 -6
- package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +2 -2
- package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +0 -1
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +3 -3
- package/src/components/executiontasks/scan/utils.ts +13 -13
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +5 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +1 -1
- package/src/components/executiontasks/validateOTP/components/ContactListView.tsx +3 -11
- package/src/components/executiontasks/validateOTP/components/OTPView.tsx +3 -4
- package/src/components/executiontasks/validateOTP/components/VerificationComplete.tsx +7 -7
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +9 -17
- package/src/components/widgets/CancelOrderDialog.tsx +2 -2
- package/src/components/widgets/Card.tsx +1 -1
- package/src/components/widgets/SearchBar.tsx +2 -1
- package/src/components/widgets/SnackBarCustom.tsx +8 -10
- package/src/components/widgets/SplitTextInput.tsx +1 -1
- package/src/components/widgets/Timer.tsx +0 -1
- package/src/database/DBManager.ts +118 -0
- package/src/database/dbUpdate.json +6 -0
- package/src/manager/dispatch/DispatchStateContainer.tsx +5 -25
- package/src/manager/dispatchCodes/EventCodeRepo.ts +8 -12
- package/src/manager/dispatchCodes/ReasonCodeContainer.ts +5 -5
- package/src/manager/dispatchCodes/ReasonCodeRepo.ts +17 -15
- package/src/manager/location/LocationManager.ts +1 -8
- package/src/manager/sdk/DispatchSDKManager.ts +12 -4
- package/src/manager/sdk/callbacksHandler.ts +3 -8
- package/src/manager/syncmanager/DBConfig.ts +6 -1
- package/src/manager/syncmanager/database.ts +130 -71
- package/src/manager/syncmanager/document/DocumentManager.ts +19 -24
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +95 -82
- package/src/manager/syncmanager/events/ETEventsManager.ts +30 -35
- package/src/manager/syncmanager/events/EventsSyncManager.ts +1 -1
- package/src/models/sdk.ts +2 -6
- package/src/native/signature/SignatureCapture.tsx +4 -3
- package/src/network/client.ts +2 -2
- package/src/ui/screens/ValidateOTPScreen.tsx +2 -4
- package/src/utils/Constants.ts +6 -1
- package/src/utils/Logger.ts +2 -1
- package/src/utils/SdkUtils.ts +6 -7
- package/src/utils/SyncManagerUtils.ts +1 -0
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +2 -3
- package/android/.gradle/8.10.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.10.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.10.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.10.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.10.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.10.2/gc.properties +0 -0
- package/lib/typescript/components/widgets/Timer.d.ts +0 -7
- package/lib/typescript/manager/syncmanager/database.d.ts +0 -7
- /package/android/.gradle/{8.10.2 → 8.13}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{8.10.2 → 8.13}/fileHashes/resourceHashesCache.bin +0 -0
- /package/android/.gradle/{8.10.2/dependencies-accessors → 8.13}/gc.properties +0 -0
- /package/lib/typescript/{analytics → src/analytics}/firebase/FirebaseLogging.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsSingleton.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsUtils.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryModels.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentrySdkConstants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/dispatch/DispatchExecNavigator.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/CompletedWFSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/ExecutionTasksIndex.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancelET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancellationSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureInputSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureText.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CompletePayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CustomContactsModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/InitPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/ProcessPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverETInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/SLDeliverET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/display/DisplayModalET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/display/DisplaySchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/SLDropCash.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/FormGenerator.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/FormSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DateTimeWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DropdownWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/TimeRangeSelector.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestETSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/ImageCapture.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickpSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickupET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/SLPickupET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/constants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/modalConstant.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/CScanner.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/DropDownUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/ERDropDown.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/SummaryPage.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOtpStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/ContactListView.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/OTPView.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/VerificationComplete.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/constants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ContactCard.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/OTPInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ResendOTPButton.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyInput/VerifyInputSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/GeofenceUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocationET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/utils/Scale.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/utils/index.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/AlertDisplay.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/Card.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ConfirmCancelModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/GoBackModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/IconButton.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ModalWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ProgressDialog.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/SearchBar.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/SplitTextInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/TabsComponent.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/Toaster.d.ts +0 -0
- /package/lib/typescript/{config → src/config}/DispatchSDKConfig.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/apiConstants.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/constants.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/statuscode.d.ts +0 -0
- /package/lib/typescript/{errors → src/errors}/BaseError.d.ts +0 -0
- /package/lib/typescript/{errors → src/errors}/ErrorCodes.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/EventDispatcher.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/EventListener.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/constants.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/index.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/interface.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/CircleMark.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/FailedIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/FailureCloseIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/ScanIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/SuccessCompleteIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/file.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/index.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/interface.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/typescript/{locale → src/locale}/Str.d.ts +0 -0
- /package/lib/typescript/{locale → src/locale}/i18n.d.ts +0 -0
- /package/lib/typescript/{locale → src/locale}/util.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatch/DispatchStateContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/jobRemoval/JobRemovalManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/location/LocationManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/DispatchSDKManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/DispatchSdkCache.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/callbacksHandler.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/AppSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/NativeSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/constants.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentHttpClient.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/document/models.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/ETEventsManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/SyncHttpClient.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/DispatchModels.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/ReasonCodes.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/auth.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execTasks/ETBaseModels.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execTasks/ETConfig.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execution.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/fcm.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/sdk.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/LocationModule.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/PermissionModule.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/signature/SignatureCapture.d.ts +0 -0
- /package/lib/typescript/{network → src/network}/NetworkUtils.d.ts +0 -0
- /package/lib/typescript/{network → src/network}/Queries.d.ts +0 -0
- /package/lib/typescript/{res → src/res}/strings.d.ts +0 -0
- /package/lib/typescript/{styles → src/styles}/SdkColors.d.ts +0 -0
- /package/lib/typescript/{styles → src/styles}/executionTasks/CommonStyles.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CancellationScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CaptureInputScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CollectPaymentScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CompleteObjectiveScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DeliverScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DisplayScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DoodleScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DropCashScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ETScreensIndex.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/FormsScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/GeofenceScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/HttpRequestScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ImageCaptureScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/PaymentScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/PickupScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ScanScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/StartWorkFlowScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ValidateOTPScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/WithBaseDispatchScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/uiConfig/RouteParams.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/Enums.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/ExecTaskUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/Logger.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/NetworkUtil.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/SdkUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/SyncManagerUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/context/paymentContext.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/context/valdiateOTPContext.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/fcm/FCM.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/fcm/FcmUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/helper.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/hooks/useModal.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/hooks/useTimer.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/loginHelper.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/storage.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/utils.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useRef, useState, useLayoutEffect
|
|
1
|
+
import React, { useRef, useState, useLayoutEffect } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
BackHandler,
|
|
4
4
|
KeyboardAvoidingView,
|
|
@@ -13,7 +13,7 @@ import DateTimeWidget from './widgets/DateTimeWidget';
|
|
|
13
13
|
import TimeRangeSelector from './widgets/TimeRangeSelector';
|
|
14
14
|
import QRBarcodeScannerWidget from './widgets/QRBarcodeScannerWidget';
|
|
15
15
|
import DropdownWidget from './widgets/DropdownWidget';
|
|
16
|
-
import { Button,
|
|
16
|
+
import { Button, Provider } from 'react-native-paper';
|
|
17
17
|
import type { FormInputSchema } from './FormSchema';
|
|
18
18
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
19
19
|
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
@@ -26,13 +26,11 @@ import {
|
|
|
26
26
|
Fonts,
|
|
27
27
|
} from '../../../styles/executionTasks/CommonStyles';
|
|
28
28
|
import SdkColors, { ColorTheme } from '../../../styles/SdkColors';
|
|
29
|
-
import Icon from 'react-native-vector-icons/
|
|
29
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
30
30
|
import { GO_BACK_EVENT_CODE } from '../../../constants/constants';
|
|
31
31
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
32
32
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
33
33
|
import { useFocusEffect } from '@react-navigation/native';
|
|
34
|
-
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
35
|
-
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
36
34
|
|
|
37
35
|
const customWidgets = {
|
|
38
36
|
datePicker: DateTimeWidget,
|
|
@@ -61,9 +59,8 @@ const FormGenerator = (props: FormInputSchema) => {
|
|
|
61
59
|
return true;
|
|
62
60
|
}
|
|
63
61
|
};
|
|
64
|
-
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
65
|
-
return () =>
|
|
66
|
-
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
62
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
63
|
+
return () => backHandler.remove();
|
|
67
64
|
}, [])
|
|
68
65
|
);
|
|
69
66
|
|
|
@@ -80,9 +77,6 @@ const FormGenerator = (props: FormInputSchema) => {
|
|
|
80
77
|
)
|
|
81
78
|
setShowBackModal(true);
|
|
82
79
|
else props.navigation.goBack();
|
|
83
|
-
const cta = 'Back Arrow';
|
|
84
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.FORM_ET_SCREEN, cta: cta });
|
|
85
|
-
|
|
86
80
|
}}
|
|
87
81
|
name="arrow-back"
|
|
88
82
|
color={'black'}
|
|
@@ -125,13 +119,10 @@ const FormGenerator = (props: FormInputSchema) => {
|
|
|
125
119
|
<Provider>
|
|
126
120
|
{renderModal()}
|
|
127
121
|
<KeyboardAvoidingView style={CommonStyles.mainContainer}>
|
|
128
|
-
<
|
|
122
|
+
<View style={{ flex: 1 }}>
|
|
123
|
+
<ScrollView style={{ flex: 1}}>
|
|
129
124
|
<View
|
|
130
|
-
style={{
|
|
131
|
-
flex: 1,
|
|
132
|
-
padding: 20,
|
|
133
|
-
}}
|
|
134
|
-
>
|
|
125
|
+
style={{ flex: 1, padding: 20 }}>
|
|
135
126
|
<FormContext.Provider
|
|
136
127
|
value={{
|
|
137
128
|
...defaultProps,
|
|
@@ -222,42 +213,35 @@ const FormGenerator = (props: FormInputSchema) => {
|
|
|
222
213
|
</FormContext.Provider>
|
|
223
214
|
</View>
|
|
224
215
|
</ScrollView>
|
|
216
|
+
</View>
|
|
225
217
|
<View style={styles.bottomView}>
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
{(
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
const cta = 'Cancel';
|
|
254
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.FORM_ET_SCREEN, cta: cta });
|
|
255
|
-
|
|
256
|
-
}}
|
|
257
|
-
>
|
|
258
|
-
Cancel
|
|
259
|
-
</Button>
|
|
260
|
-
}
|
|
218
|
+
<Button
|
|
219
|
+
style={[styles.mainBtnStyles, CommonStyles.nextButton]}
|
|
220
|
+
labelStyle={CommonStyles.nextButtonLabel}
|
|
221
|
+
mode={'contained'}
|
|
222
|
+
onPress={() => {
|
|
223
|
+
if (form.current) {
|
|
224
|
+
setOnCancel(false);
|
|
225
|
+
// @ts-ignore
|
|
226
|
+
form.current.submit();
|
|
227
|
+
}
|
|
228
|
+
}}>
|
|
229
|
+
Proceed
|
|
230
|
+
</Button>
|
|
231
|
+
{(props.isSelfLoop == false) && <Button
|
|
232
|
+
style={[styles.mainBtnStyles, CommonStyles.cancelButton]}
|
|
233
|
+
labelStyle={CommonStyles.cancelButtonLabel}
|
|
234
|
+
mode={'outlined'}
|
|
235
|
+
onPress={() => {
|
|
236
|
+
if (form.current) {
|
|
237
|
+
setOnCancel(true);
|
|
238
|
+
// @ts-ignore
|
|
239
|
+
form.current.submit();
|
|
240
|
+
}
|
|
241
|
+
}}>
|
|
242
|
+
Cancel
|
|
243
|
+
</Button>
|
|
244
|
+
}
|
|
261
245
|
</View>
|
|
262
246
|
</KeyboardAvoidingView>
|
|
263
247
|
</Provider>
|
|
@@ -283,18 +267,17 @@ const styles = StyleSheet.create({
|
|
|
283
267
|
},
|
|
284
268
|
bottomView: {
|
|
285
269
|
flexDirection: 'row-reverse',
|
|
286
|
-
justifyContent: 'space-
|
|
270
|
+
justifyContent: 'space-between',
|
|
287
271
|
padding: 16,
|
|
288
272
|
backgroundColor: 'white',
|
|
289
273
|
gap: 16,
|
|
290
274
|
},
|
|
291
275
|
mainBtnStyles: {
|
|
276
|
+
flexGrow: 1,
|
|
292
277
|
display: 'flex',
|
|
293
278
|
flexDirection: 'row',
|
|
294
279
|
justifyContent: 'center',
|
|
295
280
|
alignItems: 'center',
|
|
296
|
-
flex: 1,
|
|
297
|
-
width: '100%',
|
|
298
281
|
backgroundColor: 'white',
|
|
299
282
|
},
|
|
300
283
|
});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
import type { WidgetProps } from '@rjsf/core';
|
|
11
11
|
import { useFormContext } from 'rjsf-native';
|
|
12
|
-
import
|
|
12
|
+
import AntDesign from '@react-native-vector-icons/ant-design';
|
|
13
13
|
import CScanner from '../../scan/sub_components/CScanner';
|
|
14
14
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
15
15
|
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
@@ -103,7 +103,7 @@ function ScannerDialog(props: ScannerDialogProps) {
|
|
|
103
103
|
}}
|
|
104
104
|
/>
|
|
105
105
|
<AntDesign
|
|
106
|
-
name="
|
|
106
|
+
name="close-circle"
|
|
107
107
|
size={40}
|
|
108
108
|
color="blue"
|
|
109
109
|
onPress={() => {
|
|
@@ -4,8 +4,7 @@ import * as CaptureUtils from './CaptureUtils';
|
|
|
4
4
|
import { getCaptureOutput } from './CaptureUtils';
|
|
5
5
|
import { showToast } from '../../widgets/Toaster';
|
|
6
6
|
import SdkColors, { ColorTheme } from '../../../styles/SdkColors';
|
|
7
|
-
import Icon from 'react-native-vector-icons/
|
|
8
|
-
import Iconn from 'react-native-vector-icons/MaterialIcons';
|
|
7
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
9
8
|
import { CommonStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
10
9
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
11
10
|
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
@@ -53,9 +52,8 @@ const ImageCapture = (props: any) => {
|
|
|
53
52
|
return true;
|
|
54
53
|
}
|
|
55
54
|
};
|
|
56
|
-
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
57
|
-
return () =>
|
|
58
|
-
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
55
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
56
|
+
return () => backHandler.remove();
|
|
59
57
|
}, [])
|
|
60
58
|
);
|
|
61
59
|
|
|
@@ -64,7 +62,7 @@ const ImageCapture = (props: any) => {
|
|
|
64
62
|
title: props.title,
|
|
65
63
|
headerLeft: () => {
|
|
66
64
|
return (
|
|
67
|
-
<
|
|
65
|
+
<Icon
|
|
68
66
|
onPress={() => {
|
|
69
67
|
if (
|
|
70
68
|
props.taskMeta?.enableGoBack &&
|
|
@@ -284,7 +282,7 @@ const ImageCapture = (props: any) => {
|
|
|
284
282
|
// }
|
|
285
283
|
// }, [images, props, showCapture]);
|
|
286
284
|
|
|
287
|
-
const captureImage = useCallback(async (index) => {
|
|
285
|
+
const captureImage = useCallback(async (index: number) => {
|
|
288
286
|
try {
|
|
289
287
|
let imageDataResponse = await CaptureUtils.captureImage(
|
|
290
288
|
props.resolution.breadth,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import { getPaymentValue } from '../PaymentUtils';
|
|
28
28
|
import { PaymentStyles } from '../PaymentStyles';
|
|
29
29
|
import { GO_BACK_EVENT_CODE } from '../../../../constants/constants';
|
|
30
|
-
import Icon from 'react-native-vector-icons/
|
|
30
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
31
31
|
import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
32
32
|
import { hasGoBackConnector } from '../../../../components/utils';
|
|
33
33
|
import { useFocusEffect } from '@react-navigation/native';
|
|
@@ -54,9 +54,8 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
54
54
|
return true;
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
58
|
-
return () =>
|
|
59
|
-
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
57
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
58
|
+
return () => backHandler.remove();
|
|
60
59
|
}, [])
|
|
61
60
|
);
|
|
62
61
|
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
Provider,
|
|
18
18
|
RadioButton,
|
|
19
19
|
} from 'react-native-paper';
|
|
20
|
-
import Icon from 'react-native-vector-icons/
|
|
20
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
21
21
|
import { GO_BACK_EVENT_CODE } from '../../../../constants/constants';
|
|
22
22
|
import { hasGoBackConnector } from '../../../../components/utils';
|
|
23
23
|
import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
@@ -58,9 +58,8 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
58
58
|
return true;
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
62
|
-
return () =>
|
|
63
|
-
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
61
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
62
|
+
return () => backHandler.remove();
|
|
64
63
|
}, [])
|
|
65
64
|
);
|
|
66
65
|
|
|
@@ -18,7 +18,7 @@ import { isEmptyOrBlank } from '../../../../utils/utils';
|
|
|
18
18
|
import { CommonStyles } from '../../../../styles/executionTasks/CommonStyles';
|
|
19
19
|
import { getPaymentValue } from '../PaymentUtils';
|
|
20
20
|
import { Button, Provider, TextInput } from 'react-native-paper';
|
|
21
|
-
import Icon from 'react-native-vector-icons/
|
|
21
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
22
22
|
import { GO_BACK_EVENT_CODE } from '../../../../constants/constants';
|
|
23
23
|
import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
24
24
|
import { hasGoBackConnector } from '../../../../components/utils';
|
|
@@ -49,9 +49,8 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
49
49
|
return true;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
53
|
-
return () =>
|
|
54
|
-
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
52
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
53
|
+
return () => backHandler.remove();
|
|
55
54
|
}, [])
|
|
56
55
|
);
|
|
57
56
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { View } from 'react-native';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import type { PickupETInput } from './PickpSchema';
|
|
4
4
|
import { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';
|
|
5
|
-
import {
|
|
6
|
-
CommonStyles,
|
|
7
|
-
deliverETStyles,
|
|
8
|
-
} from '../../../styles/executionTasks/CommonStyles';
|
|
5
|
+
import { CommonStyles, deliverETStyles } from '../../../styles/executionTasks/CommonStyles';
|
|
9
6
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
10
7
|
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
11
|
-
import {
|
|
12
|
-
EntityCode,
|
|
13
|
-
ExecutionTaskID,
|
|
14
|
-
} from '../../../models/execTasks/ETConfig';
|
|
8
|
+
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
15
9
|
import type { LineItem } from '../deliver/DeliverETInput';
|
|
16
10
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
17
11
|
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
DEFAULT_PICKUP_TITLE,
|
|
21
21
|
GO_BACK_EVENT_CODE,
|
|
22
22
|
} from '../../../constants/constants';
|
|
23
|
-
import Icon from 'react-native-vector-icons/
|
|
23
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
24
24
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
25
25
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
26
26
|
import { useFocusEffect } from '@react-navigation/native';
|
|
@@ -77,9 +77,8 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
77
77
|
return true;
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
81
|
-
return () =>
|
|
82
|
-
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
80
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
81
|
+
return () => backHandler.remove();
|
|
83
82
|
}, [])
|
|
84
83
|
);
|
|
85
84
|
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
GO_BACK_EVENT_CODE,
|
|
69
69
|
REASON_NOT_USED,
|
|
70
70
|
} from '../../../constants/constants';
|
|
71
|
-
import Icon from 'react-native-vector-icons/
|
|
71
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
72
72
|
import type { ScannerOutput } from './ScanSchema';
|
|
73
73
|
import {
|
|
74
74
|
DispatchExecutor,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
import SummaryPage from './sub_components/SummaryPage';
|
|
78
78
|
import { RouteParams } from '../../../ui/uiConfig/RouteParams';
|
|
79
79
|
import { BULK_DATA_LIMIT } from '../../../manager/syncmanager/constants';
|
|
80
|
-
import
|
|
80
|
+
import AntDesign from '@react-native-vector-icons/ant-design';
|
|
81
81
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
82
82
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
83
83
|
import ToggleSwitch from 'toggle-switch-react-native';
|
|
@@ -611,9 +611,8 @@ const ScanET = (props: ScannerInput) => {
|
|
|
611
611
|
return true;
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
|
-
BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
615
|
-
return () =>
|
|
616
|
-
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
614
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', onBackPress);
|
|
615
|
+
return () => backHandler.remove();
|
|
617
616
|
}, [showScanList])
|
|
618
617
|
);
|
|
619
618
|
|
|
@@ -686,7 +685,7 @@ const ScanET = (props: ScannerInput) => {
|
|
|
686
685
|
marginBottom: 10,
|
|
687
686
|
}}
|
|
688
687
|
>
|
|
689
|
-
<AntDesign name="
|
|
688
|
+
<AntDesign name="exclamation-circle" size={40} color="#D97706" />
|
|
690
689
|
</View>
|
|
691
690
|
<Text style={styles.titleText}>{'Exit scan flow?'}</Text>
|
|
692
691
|
<Text
|
|
@@ -17,6 +17,22 @@ export enum ExpoBarcodeTypes {
|
|
|
17
17
|
upc_e = 'upc_e',
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export enum BarcodeType {
|
|
21
|
+
aztec = 'aztec',
|
|
22
|
+
ean13 = 'ean13',
|
|
23
|
+
ean8 = 'ean8',
|
|
24
|
+
qr = 'qr',
|
|
25
|
+
pdf417 = 'pdf417',
|
|
26
|
+
upc_e = 'upc_e',
|
|
27
|
+
datamatrix = 'datamatrix',
|
|
28
|
+
code39 = 'code39',
|
|
29
|
+
code93 = 'code93',
|
|
30
|
+
itf14 = 'itf14',
|
|
31
|
+
codabar = 'codabar',
|
|
32
|
+
code128 = 'code128',
|
|
33
|
+
upc_a = 'upc_a'
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
export enum SCAN_STATUS {
|
|
21
37
|
SCANNED,
|
|
22
38
|
FAILED,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { memo, useEffect, useState } from 'react';
|
|
2
2
|
import { Platform, StyleSheet, Text, View } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { BarcodeScanningResult } from 'expo-camera';
|
|
4
|
+
import { CameraView } from 'expo-camera';
|
|
4
5
|
import { isEmptyOrBlank } from '../../../../utils/utils';
|
|
5
6
|
import { checkCameraPermissionUtil } from '../../imageCapture/CaptureUtils';
|
|
6
7
|
import { Title } from 'react-native-paper';
|
|
@@ -27,7 +28,7 @@ const CScanner = (props: CScannerProps) => {
|
|
|
27
28
|
})();
|
|
28
29
|
}, []);
|
|
29
30
|
|
|
30
|
-
const _handleBarCodeScanned = (scan:
|
|
31
|
+
const _handleBarCodeScanned = (scan: BarcodeScanningResult) => {
|
|
31
32
|
if (!isEmptyOrBlank(scan.data)) {
|
|
32
33
|
setVisible(false);
|
|
33
34
|
props.onScanned(scan.data);
|
|
@@ -49,11 +50,11 @@ const CScanner = (props: CScannerProps) => {
|
|
|
49
50
|
return (
|
|
50
51
|
<>
|
|
51
52
|
{isVisible ? (
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
<CameraView
|
|
54
|
+
barcodeScannerSettings={{
|
|
55
|
+
barcodeTypes: props.barCodeTypes
|
|
55
56
|
}}
|
|
56
|
-
|
|
57
|
+
onBarcodeScanned={_handleBarCodeScanned}
|
|
57
58
|
style={StyleSheet.absoluteFill}
|
|
58
59
|
/>
|
|
59
60
|
) : null}
|
|
@@ -3,8 +3,8 @@ import ReasonCodeContainer from '../../../../manager/dispatchCodes/ReasonCodeCon
|
|
|
3
3
|
import type { DefaultERC, ERCode } from '../ScanSchema';
|
|
4
4
|
import EventCodeContainer from '../../../../manager/dispatchCodes/EventCodeContainer';
|
|
5
5
|
import EventCodeRepo from '../../../../manager/dispatchCodes/EventCodeRepo';
|
|
6
|
-
import ReasonCodeRepo from '../../../../manager/dispatchCodes/ReasonCodeRepo';
|
|
7
6
|
import { ReasonsRow } from '../../../../manager/syncmanager/DBConfig';
|
|
7
|
+
import ReasonCodeRepoIns from '../../../../manager/dispatchCodes/ReasonCodeRepo';
|
|
8
8
|
|
|
9
9
|
export async function getErcDropDownItems(
|
|
10
10
|
type: 'EVENT' | 'REASON',
|
|
@@ -60,7 +60,7 @@ export async function getErcDropDownItems(
|
|
|
60
60
|
} else if (type === 'REASON' && eventCode) {
|
|
61
61
|
const item = list.find((erc) => erc.eventCode === eventCode);
|
|
62
62
|
const reasonCodesList = item?.reasonCode || [];
|
|
63
|
-
const reasonCodes = await
|
|
63
|
+
const reasonCodes = await ReasonCodeRepoIns.getReasonsByCode(
|
|
64
64
|
reasonCodesList
|
|
65
65
|
);
|
|
66
66
|
erc = reasonCodes.map((code: ReasonsRow) => ({
|
|
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { Fonts } from '../../../../styles/executionTasks/CommonStyles';
|
|
3
3
|
import { Platform, StyleSheet, Text, View } from 'react-native';
|
|
4
4
|
import DropDownPicker from 'react-native-dropdown-picker';
|
|
5
|
-
import FIcon from 'react-native-vector-icons/FontAwesome';
|
|
6
5
|
|
|
7
6
|
function getDropDownItems(erItem: ercItem[]) {
|
|
8
7
|
if (!erItem || erItem.length === 0) return [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View, Text, Dimensions, Platform } from 'react-native';
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import { Button } from 'react-native-paper';
|
|
4
|
-
import
|
|
4
|
+
import Entypo from '@react-native-vector-icons/entypo';
|
|
5
5
|
import {
|
|
6
6
|
CommonStyles,
|
|
7
7
|
Fonts,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
getTabCount,
|
|
35
35
|
removeScan,
|
|
36
36
|
} from '../utils';
|
|
37
|
-
import
|
|
37
|
+
import AntDesign from '@react-native-vector-icons/ant-design';
|
|
38
38
|
import ModalWidget from '../../../widgets/ModalWidget';
|
|
39
39
|
import SearchBar from '../../../widgets/SearchBar';
|
|
40
40
|
import { debounce } from 'lodash';
|
|
@@ -889,7 +889,7 @@ const SummaryPage = (props: SummaryPageProps) => {
|
|
|
889
889
|
prefixedMergedObjectiveId !== scan.prefixedMergedObjectiveId
|
|
890
890
|
)
|
|
891
891
|
return (
|
|
892
|
-
<AntDesign name="
|
|
892
|
+
<AntDesign name="exclamation-circle" size={16} color="#EA580C" />
|
|
893
893
|
);
|
|
894
894
|
else return <></>;
|
|
895
895
|
}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BarCodeScanner } from 'expo-barcode-scanner';
|
|
2
1
|
import {
|
|
3
2
|
ADD_SCAN,
|
|
3
|
+
BarcodeType,
|
|
4
4
|
ExpoBarcodeTypes,
|
|
5
5
|
MergedScan,
|
|
6
6
|
SCANNED_RECORD,
|
|
@@ -69,40 +69,40 @@ export function getBarCodeTypes(input: ScannerInput): any[] {
|
|
|
69
69
|
scanType.forEach((type: ScannerType) => {
|
|
70
70
|
switch (type) {
|
|
71
71
|
case ExpoBarcodeTypes.QRCODE:
|
|
72
|
-
barCodeType.push(
|
|
72
|
+
barCodeType.push(BarcodeType.qr);
|
|
73
73
|
break;
|
|
74
74
|
case ExpoBarcodeTypes.aztec:
|
|
75
|
-
barCodeType.push(
|
|
75
|
+
barCodeType.push(BarcodeType.aztec);
|
|
76
76
|
break;
|
|
77
77
|
case ExpoBarcodeTypes.codabar:
|
|
78
|
-
barCodeType.push(
|
|
78
|
+
barCodeType.push(BarcodeType.codabar);
|
|
79
79
|
break;
|
|
80
80
|
case ExpoBarcodeTypes.code128:
|
|
81
|
-
barCodeType.push(
|
|
81
|
+
barCodeType.push(BarcodeType.code128);
|
|
82
82
|
break;
|
|
83
83
|
case ExpoBarcodeTypes.code39:
|
|
84
|
-
barCodeType.push(
|
|
84
|
+
barCodeType.push(BarcodeType.code39);
|
|
85
85
|
break;
|
|
86
86
|
case ExpoBarcodeTypes.code93:
|
|
87
|
-
barCodeType.push(
|
|
87
|
+
barCodeType.push(BarcodeType.code93);
|
|
88
88
|
break;
|
|
89
89
|
case ExpoBarcodeTypes.datamatrix:
|
|
90
|
-
barCodeType.push(
|
|
90
|
+
barCodeType.push(BarcodeType.datamatrix);
|
|
91
91
|
break;
|
|
92
92
|
case ExpoBarcodeTypes.ean13:
|
|
93
|
-
barCodeType.push(
|
|
93
|
+
barCodeType.push(BarcodeType.ean13);
|
|
94
94
|
break;
|
|
95
95
|
case ExpoBarcodeTypes.ean8:
|
|
96
|
-
barCodeType.push(
|
|
96
|
+
barCodeType.push(BarcodeType.ean8);
|
|
97
97
|
break;
|
|
98
98
|
case ExpoBarcodeTypes.itf14:
|
|
99
|
-
barCodeType.push(
|
|
99
|
+
barCodeType.push(BarcodeType.itf14);
|
|
100
100
|
break;
|
|
101
101
|
case ExpoBarcodeTypes.pdf417:
|
|
102
|
-
barCodeType.push(
|
|
102
|
+
barCodeType.push(BarcodeType.pdf417);
|
|
103
103
|
break;
|
|
104
104
|
case ExpoBarcodeTypes.upc_e:
|
|
105
|
-
barCodeType.push(
|
|
105
|
+
barCodeType.push(BarcodeType.upc_e);
|
|
106
106
|
break;
|
|
107
107
|
|
|
108
108
|
default:
|
|
@@ -111,6 +111,7 @@ const ValidateOTPET: FC<ValidateOTPInput> = (props) => {
|
|
|
111
111
|
const [selectedContact, setSelectedContact] = useState<ContactTypes>(
|
|
112
112
|
contactList[0] || null
|
|
113
113
|
);
|
|
114
|
+
|
|
114
115
|
const [isContactVisited, setIsContactVisited] = useState<boolean>(
|
|
115
116
|
props.doorstepOTP
|
|
116
117
|
);
|
|
@@ -206,11 +207,15 @@ const ValidateOTPET: FC<ValidateOTPInput> = (props) => {
|
|
|
206
207
|
isSelected: index === 0, // Select the first contact by default
|
|
207
208
|
}));
|
|
208
209
|
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
209
213
|
// Update the state with the filtered contacts
|
|
210
214
|
setContactList(filteredContacts);
|
|
211
215
|
if (props.doorstepOTP) {
|
|
212
216
|
setSelectedContact(filteredContacts[0]);
|
|
213
217
|
}
|
|
218
|
+
|
|
214
219
|
}, [contacts, props.doorstepOTP, props.otpDeliveryMethod]);
|
|
215
220
|
|
|
216
221
|
// Monitor shouldNavigateBack to trigger navigation if set
|
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
BaseETResponse,
|
|
10
10
|
} from '../../../models/execTasks/ETBaseModels';
|
|
11
11
|
import type { Headers, HTTPMethod } from '../httpRequest/HttpRequestETSchema';
|
|
12
|
-
import { SnackBarType } from '
|
|
12
|
+
import { SnackBarType } from '../../widgets/SnackBarCustom';
|
|
13
13
|
|
|
14
14
|
export interface API {
|
|
15
15
|
uri: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { FC, useEffect, useLayoutEffect } from 'react';
|
|
4
4
|
import { BackHandler, FlatList, Text, View } from 'react-native';
|
|
5
5
|
import { useFocusEffect } from '@react-navigation/native';
|
|
6
|
-
import Icon from 'react-native-vector-icons/
|
|
6
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
7
7
|
|
|
8
8
|
// Styles
|
|
9
9
|
import styles from '../ValidateOtpStyles';
|
|
@@ -29,16 +29,8 @@ export const ContactListView: FC<ValidateOTPInput> = (props) => {
|
|
|
29
29
|
// Handle back-button click
|
|
30
30
|
useFocusEffect(
|
|
31
31
|
React.useCallback(() => {
|
|
32
|
-
BackHandler.addEventListener(
|
|
33
|
-
|
|
34
|
-
props.handleBackNavigation
|
|
35
|
-
);
|
|
36
|
-
return () =>
|
|
37
|
-
BackHandler.removeEventListener(
|
|
38
|
-
'hardwareBackPress',
|
|
39
|
-
props.handleBackNavigation
|
|
40
|
-
);
|
|
41
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', props.handleBackNavigation);
|
|
33
|
+
return () => backHandler.remove();
|
|
42
34
|
}, [])
|
|
43
35
|
);
|
|
44
36
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { FC, useEffect, useLayoutEffect } from 'react';
|
|
4
4
|
import { BackHandler, Text, View } from 'react-native';
|
|
5
5
|
import { useFocusEffect } from '@react-navigation/native';
|
|
6
|
-
import Icon from 'react-native-vector-icons/
|
|
6
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
7
7
|
|
|
8
8
|
// Components
|
|
9
9
|
import OTPInput from '../sub-components/OTPInput';
|
|
@@ -125,9 +125,8 @@ export const OTPView: FC<ValidateOTPInput> = (props) => {
|
|
|
125
125
|
// Handle back-button click
|
|
126
126
|
useFocusEffect(
|
|
127
127
|
React.useCallback(() => {
|
|
128
|
-
BackHandler.addEventListener('hardwareBackPress', handleBackPress);
|
|
129
|
-
return () =>
|
|
130
|
-
BackHandler.removeEventListener('hardwareBackPress', handleBackPress);
|
|
128
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', handleBackPress);
|
|
129
|
+
return () => backHandler.remove();
|
|
131
130
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
132
131
|
}, [])
|
|
133
132
|
);
|