@os1-platform/dispatch-mobile 1.3.11 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +198 -30
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +6 -1
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +6 -1
- package/android/local.properties +1 -1
- package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
- package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
- package/lib/commonjs/@types/assets/index.d.js +2 -0
- package/lib/commonjs/@types/assets/index.d.js.map +1 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +4 -4
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +0 -28
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +35 -35
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
- package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +2 -2
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +187 -112
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +37 -34
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +52 -52
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +71 -66
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +34 -34
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +54 -54
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +112 -47
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +326 -428
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +13 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +15 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +548 -159
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +52 -53
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/commonjs/components/utils/index.js +14 -0
- package/lib/commonjs/components/utils/index.js.map +1 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +88 -0
- package/lib/commonjs/components/widgets/Card.js.map +1 -0
- package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +74 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -4
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +3 -1
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js +2 -2
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +1 -5
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/constants.js +3 -1
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/interface.js.map +1 -1
- package/lib/commonjs/index.js +32 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +315 -609
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +21 -25
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -2
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +15 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +36 -3
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js +17 -0
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +377 -26
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +150 -37
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +4 -2
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +38 -7
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +11 -3
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -4
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +26 -4
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +11 -2
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +13 -6
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +39 -15
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +0 -7
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +95 -28
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +10 -2
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +10 -2
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +26 -18
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +22 -11
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +34 -8
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +72 -219
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +13 -7
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +20 -5
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +16 -2
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +33 -25
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +37 -4
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +64 -35
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -46
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +53 -0
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +37 -2
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/@types/assets/index.d.js +2 -0
- package/lib/module/@types/assets/index.d.js.map +1 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js +4 -4
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +1 -5
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +38 -37
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
- package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +2 -2
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +189 -114
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +39 -36
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +53 -52
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +73 -68
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +3 -3
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +36 -36
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +55 -54
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +35 -34
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +35 -35
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +114 -49
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +332 -433
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js +16 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js +12 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +528 -160
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +54 -55
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/module/components/utils/index.js +8 -0
- package/lib/module/components/utils/index.js.map +1 -0
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +80 -0
- package/lib/module/components/widgets/Card.js.map +1 -0
- package/lib/module/components/widgets/GoBackModal.js +40 -0
- package/lib/module/components/widgets/GoBackModal.js.map +1 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +92 -0
- package/lib/module/components/widgets/ModalWidget.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +66 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -0
- package/lib/module/components/widgets/SnackBarCustom.js +12 -4
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.js.map +1 -0
- package/lib/module/constants/apiConstants.js +3 -1
- package/lib/module/constants/apiConstants.js.map +1 -1
- package/lib/module/constants/constants.js +2 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +0 -3
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/events/constants.js +3 -1
- package/lib/module/events/constants.js.map +1 -1
- package/lib/module/events/interface.js.map +1 -1
- package/lib/module/index.js +6 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +319 -610
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +21 -19
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +2 -2
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +19 -0
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +15 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +32 -2
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/constants.js +6 -0
- package/lib/module/manager/syncmanager/constants.js.map +1 -0
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +377 -25
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +147 -34
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +4 -2
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +39 -8
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +12 -4
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -5
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +27 -5
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +12 -3
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +14 -7
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +42 -16
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +1 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +96 -29
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +11 -3
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +11 -3
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +27 -19
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +23 -12
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +36 -10
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +74 -222
- package/lib/module/ui/screens/ScanScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +14 -8
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +19 -5
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +17 -2
- package/lib/module/utils/ApiUtils.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +33 -25
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +37 -4
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +64 -35
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +82 -46
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useModal.js +43 -0
- package/lib/module/utils/hooks/useModal.js.map +1 -0
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +37 -2
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +3 -8
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
- package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +1 -0
- package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +25 -9
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +54 -1
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +29 -13
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
- package/lib/typescript/components/utils/index.d.ts +2 -0
- package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/Card.d.ts +17 -0
- package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
- package/lib/typescript/components/widgets/IconButton.d.ts +2 -2
- package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +2 -2
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +1 -0
- package/lib/typescript/constants/constants.d.ts +2 -2
- package/lib/typescript/events/EventDispatcher.d.ts +0 -2
- package/lib/typescript/events/constants.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -1
- package/lib/typescript/index.d.ts +8 -6
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +27 -19
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -6
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +0 -1
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +2 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +63 -7
- package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +11 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +3 -5
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +4 -3
- package/lib/typescript/models/DispatchModels.d.ts +40 -41
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +21 -16
- package/lib/typescript/models/sdk.d.ts +7 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
- package/lib/typescript/styles/SdkColors.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +16 -7
- package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +1 -2
- package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ScanScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +10 -4
- package/lib/typescript/utils/ExecTaskUtils.d.ts +5 -4
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -5
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/storage.d.ts +15 -0
- package/package.json +5 -4
- package/tsconfig.json +0 -1
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.idea/workspace.xml +0 -131
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -26
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +0 -134
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +0 -105
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -27
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -164
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -15
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -40
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -93
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -278
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -83
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -248
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -99
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +0 -124
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/CScanner.js +0 -96
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -146
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -7
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -33
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -83
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -269
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -73
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -238
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -89
- package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +0 -8
- package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +0 -7
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
- package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -2
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
- package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
- package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
- package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
- /package/android/.gradle/{6.8 → 7.0.2}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{6.8 → 7.0.2}/gc.properties +0 -0
- /package/android/.gradle/{configuration-cache → 7.2/dependencies-accessors}/gc.properties +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PathParams, QueryParams } from '../../../utils/ApiUtils';
|
|
2
2
|
import type { BaseETRequest, BaseETResponse } from '../../../models/execTasks/ETBaseModels';
|
|
3
3
|
import type { Headers, HTTPMethod, HTTPRequestBody } from '../httpRequest/HttpRequestETSchema';
|
|
4
|
+
import { BaseETProps } from '../../../models/DispatchModels';
|
|
4
5
|
export type ScanType = Array<ScannerType>;
|
|
5
6
|
export type ScannerType = 'QRCODE' | 'aztec' | 'codabar' | 'code39' | 'code93' | 'code128' | 'datamatrix' | 'ean13' | 'ean8' | 'itf14' | 'pdf417' | 'upc_e';
|
|
6
7
|
export type ScanMode = 'SINGLE' | 'MULTI';
|
|
@@ -37,7 +38,7 @@ export interface DefaultERC {
|
|
|
37
38
|
export interface ScannedInput {
|
|
38
39
|
scanType: ScanType;
|
|
39
40
|
}
|
|
40
|
-
export type ScannerInput = BaseETRequest & {
|
|
41
|
+
export type ScannerInput = BaseETRequest & AdditionData & {
|
|
41
42
|
scannedInput: ScannedInput;
|
|
42
43
|
scanMode: ScanMode;
|
|
43
44
|
scanCountLimit?: MaxScanCount;
|
|
@@ -46,25 +47,40 @@ export type ScannerInput = BaseETRequest & {
|
|
|
46
47
|
defaultERC: DefaultERC;
|
|
47
48
|
ercSelector?: ERCode[];
|
|
48
49
|
exitOnError?: boolean;
|
|
50
|
+
scanToMerge?: boolean;
|
|
49
51
|
meta?: {
|
|
50
52
|
[k: string]: any;
|
|
51
53
|
};
|
|
52
54
|
persistData: boolean;
|
|
53
55
|
onSubmitET: (scanETOutput: ScannerOutput) => void;
|
|
54
|
-
};
|
|
56
|
+
} & BaseETProps;
|
|
55
57
|
export interface ScanData {
|
|
56
58
|
value: string;
|
|
57
59
|
validated?: boolean;
|
|
58
60
|
timestamp: number;
|
|
59
61
|
}
|
|
60
62
|
export interface ScannerOutput {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
[mergedObjectiveId: string]: {
|
|
64
|
+
output: BaseETResponse;
|
|
65
|
+
count: number;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface AdditionData {
|
|
69
|
+
wfMeta: any;
|
|
70
|
+
mergedObjectiveId: string;
|
|
64
71
|
}
|
|
65
|
-
export interface
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
export interface IWIMappingUpdate {
|
|
73
|
+
data: {
|
|
74
|
+
scanned: number;
|
|
75
|
+
total: number;
|
|
76
|
+
mwId: string;
|
|
77
|
+
jobId: string;
|
|
78
|
+
displayInfo: any;
|
|
79
|
+
previousMWID: string;
|
|
69
80
|
};
|
|
70
81
|
}
|
|
82
|
+
export declare enum DeliverState {
|
|
83
|
+
CANCELLED = "CANCELLED",
|
|
84
|
+
DELIVERE_LATER = "DELIVER_LATER",
|
|
85
|
+
DELIVER_NOW = "DELIVER_NOW"
|
|
86
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { SnackBarType } from 'src/components/widgets/SnackBarCustom';
|
|
2
|
+
import { ScannerOutput } from './ScanSchema';
|
|
3
|
+
import { IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
1
4
|
export declare enum ExpoBarcodeTypes {
|
|
2
5
|
QRCODE = "QRCODE",
|
|
3
6
|
aztec = "aztec",
|
|
@@ -27,7 +30,7 @@ export interface ScannedItemData {
|
|
|
27
30
|
}
|
|
28
31
|
export interface MergedScan {
|
|
29
32
|
value: string;
|
|
30
|
-
|
|
33
|
+
mergedObjectiveId?: string;
|
|
31
34
|
validated?: boolean;
|
|
32
35
|
timestamp?: number;
|
|
33
36
|
scanStatus?: SCAN_STATUS;
|
|
@@ -39,3 +42,53 @@ export interface BlindScan {
|
|
|
39
42
|
maxCount: number;
|
|
40
43
|
scannedCount: number;
|
|
41
44
|
}
|
|
45
|
+
export declare enum PROCEED_STATUS {
|
|
46
|
+
DELIVER_NOW = "DELIVER_NOW",
|
|
47
|
+
DELIVER_LATER = "DELIVER_LATER"
|
|
48
|
+
}
|
|
49
|
+
export declare enum SummaryPageTabs {
|
|
50
|
+
ALL = "All",
|
|
51
|
+
PENDING = "Pending",
|
|
52
|
+
DELIVERED = "Delivered",
|
|
53
|
+
UNDELIVERED = "Undelivered"
|
|
54
|
+
}
|
|
55
|
+
export interface DisplaySummary {
|
|
56
|
+
scanId: string;
|
|
57
|
+
eventCode: string;
|
|
58
|
+
reasonCode: string;
|
|
59
|
+
clientName?: string;
|
|
60
|
+
orderId?: string;
|
|
61
|
+
prefixedMergedObjectiveId: string;
|
|
62
|
+
lastStatus: IDispatchExecutor.ExecutionStatus;
|
|
63
|
+
}
|
|
64
|
+
export type ListItem = DisplaySummary & {
|
|
65
|
+
index: number;
|
|
66
|
+
};
|
|
67
|
+
export interface SummaryDisplayData {
|
|
68
|
+
data: DisplaySummary[];
|
|
69
|
+
totalCount: number;
|
|
70
|
+
}
|
|
71
|
+
export interface ADD_SCAN {
|
|
72
|
+
status: boolean;
|
|
73
|
+
message: string;
|
|
74
|
+
type: SnackBarType;
|
|
75
|
+
exit?: boolean;
|
|
76
|
+
data?: any;
|
|
77
|
+
}
|
|
78
|
+
export interface SCAN_MERGED_OBJ_ID_INTEFACE {
|
|
79
|
+
[prefixedMergedObjectiveId: string]: SCANNED_RECORD;
|
|
80
|
+
}
|
|
81
|
+
export interface SCANNED_RECORD {
|
|
82
|
+
success: string[];
|
|
83
|
+
failure: string[];
|
|
84
|
+
pending: string[];
|
|
85
|
+
}
|
|
86
|
+
export interface SHARED_PREF_SCAN_OUTPUT_INTERFACE {
|
|
87
|
+
[prefixedMergedObjectiveId: string]: ScannerOutput;
|
|
88
|
+
}
|
|
89
|
+
export interface TabRecord {
|
|
90
|
+
[SummaryPageTabs.ALL]: number;
|
|
91
|
+
[SummaryPageTabs.PENDING]: number;
|
|
92
|
+
[SummaryPageTabs.DELIVERED]: number;
|
|
93
|
+
[SummaryPageTabs.UNDELIVERED]: number;
|
|
94
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalHookProps } from '../../../utils/hooks/useModal';
|
|
3
|
+
interface UndeliveredShipmentModalInput {
|
|
4
|
+
pendingCount: number;
|
|
5
|
+
primaryButtonPress: () => any;
|
|
6
|
+
secondaryButtonPress: () => any;
|
|
7
|
+
primaryButtonStyles: any;
|
|
8
|
+
secondaryButtonStyles: any;
|
|
9
|
+
renderAdditionalButton: () => JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export declare const undeliveredShipmentModal: (input: UndeliveredShipmentModalInput) => ModalHookProps;
|
|
12
|
+
interface ERCModalInput {
|
|
13
|
+
renderChildren: () => JSX.Element;
|
|
14
|
+
primaryButtonPress: () => any;
|
|
15
|
+
secondaryButtonPress: () => any;
|
|
16
|
+
primaryButtonStyles: any;
|
|
17
|
+
secondaryButtonStyles: any;
|
|
18
|
+
}
|
|
19
|
+
export declare const ercModal: (input: ERCModalInput) => ModalHookProps;
|
|
20
|
+
interface RemoveShipmentModalInput {
|
|
21
|
+
primaryButtonPress: () => any;
|
|
22
|
+
secondaryButtonPress: () => any;
|
|
23
|
+
subTitleStyle: any;
|
|
24
|
+
primaryButtonStyles: any;
|
|
25
|
+
secondaryButtonStyles: any;
|
|
26
|
+
}
|
|
27
|
+
export declare const removeShipmentModal: (input: RemoveShipmentModalInput) => ModalHookProps;
|
|
28
|
+
interface EditERCModalInput {
|
|
29
|
+
renderChildren: () => JSX.Element;
|
|
30
|
+
buttonStyles: any;
|
|
31
|
+
primaryButtonPress: () => any;
|
|
32
|
+
secondaryButtonPress: () => any;
|
|
33
|
+
primaryButtonStyles: any;
|
|
34
|
+
secondaryButtonStyles: any;
|
|
35
|
+
}
|
|
36
|
+
export declare const editERCModal: (input: EditERCModalInput) => ModalHookProps;
|
|
37
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<(props: CScannerProps) => JSX.Element>;
|
|
2
|
+
declare const _default: React.MemoExoticComponent<(props: CScannerProps) => React.JSX.Element>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export interface CScannerProps {
|
|
5
5
|
barCodeTypes: any[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ercItem } from './ERDropDown';
|
|
2
|
-
import type { DefaultERC, ERCode } from '
|
|
2
|
+
import type { DefaultERC, ERCode } from '../ScanSchema';
|
|
3
3
|
export declare function getErcDropDownItems(type: 'EVENT' | 'REASON', list: ERCode[], eventCode?: string): Promise<ercItem[] | []>;
|
|
4
4
|
export declare function getDefaultERCLabel(defaultERC: DefaultERC): Promise<{
|
|
5
5
|
eventCode: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<(props: DropDownPickerProps) => JSX.Element>;
|
|
2
|
+
declare const _default: React.MemoExoticComponent<(props: DropDownPickerProps) => React.JSX.Element>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export interface DropDownPickerProps {
|
|
5
5
|
title: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PROCEED_STATUS } from '../interfaces';
|
|
3
|
+
import { ercItem } from './ERDropDown';
|
|
4
|
+
import { ERCode, ScannerInput, ScannerOutput } from '../ScanSchema';
|
|
5
|
+
interface SummaryPageProps {
|
|
6
|
+
shipmentCount: {
|
|
7
|
+
scannedCount: number;
|
|
8
|
+
totalCount: number;
|
|
9
|
+
};
|
|
10
|
+
updateShipmentCount: (scannedCountChanged: number, totalCountChanged: number, type?: 'SCAN' | 'REMOVE') => any;
|
|
11
|
+
handleSubmitET: (status: PROCEED_STATUS, count: number, erc?: {
|
|
12
|
+
ec: string;
|
|
13
|
+
rc: string;
|
|
14
|
+
}) => void;
|
|
15
|
+
ercSelector: ERCode[];
|
|
16
|
+
eventCodeItems: ercItem[];
|
|
17
|
+
scanProps: ScannerInput;
|
|
18
|
+
mergedScanETOutput: ScannerOutput;
|
|
19
|
+
}
|
|
20
|
+
declare const SummaryPage: (props: SummaryPageProps) => React.JSX.Element;
|
|
21
|
+
export default SummaryPage;
|
|
@@ -1,21 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { ADD_SCAN, MergedScan, SCAN_MERGED_OBJ_ID_INTEFACE, SHARED_PREF_SCAN_OUTPUT_INTERFACE, SummaryDisplayData, SummaryPageTabs, TabRecord } from './interfaces';
|
|
2
|
+
import { DefaultERC, DeliverState, IWIMappingUpdate, ScanData, ScanMode, ScannerInput, ScannerOutput, Validation } from './ScanSchema';
|
|
3
3
|
import type { ercItem } from './sub_components/ERDropDown';
|
|
4
|
-
import
|
|
4
|
+
import { BaseETResponse } from '../ExecutionTasksIndex';
|
|
5
|
+
import { eventType } from '../../../events/interface';
|
|
6
|
+
import { SnackBarType } from '../../../components/widgets/SnackBarCustom';
|
|
5
7
|
export declare function getBarCodeTypes(input: ScannerInput): any[];
|
|
6
8
|
export declare function checkForValidation(scannedInput: string, validation: Validation): Promise<boolean>;
|
|
7
9
|
export declare function getShipmentData(selectedIndex: number, scansMap: Map<string, MergedScan>): [string[], string[]];
|
|
8
10
|
export declare function getScannedItemCount(scansMap: Map<string, MergedScan>): number;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* -> for blind with maxScanCount: output will be set incrementaly, based on the maxScanCount of each ET of job
|
|
13
|
-
* -> for blind without maxScanCount: output will be set in the first objective
|
|
14
|
-
*/
|
|
15
|
-
export declare function getScanETOutput(scansMap: Map<string, MergedScan>, selectedValidationIndex: number, blindData: Map<string, BlindScan>, scanMode: ScanMode, scanCountLimit: number | undefined, defaultERC: DefaultERC, isMultiObjectiveEnable: boolean, applicableCodes?: ApplicableReasons | NewApplicableReasons, isErcSelector?: boolean, isCancelled?: boolean): Promise<{
|
|
16
|
-
etData: etData;
|
|
17
|
-
pendingEtData?: etData;
|
|
18
|
-
}>;
|
|
11
|
+
export declare function getMappingCount(scanOutput: ScannerOutput, wiMappingUpdate: IWIMappingUpdate): number;
|
|
12
|
+
export declare function getUpdatedScanETOutput(scanOutput: ScannerOutput, wiMappingUpdate: IWIMappingUpdate, success: boolean, eventCode: string, reasonCode: string, route: any, scannedData: any): Promise<ScannerOutput>;
|
|
13
|
+
export declare function getScanETOutput(mergeScannedOutput: ScannerOutput, mergedObjectiveId: Array<string>, ercItems: ercItem[], defaultERC: DefaultERC, deliverState: DeliverState, isPartial: boolean, count: number): Promise<ScannerOutput>;
|
|
19
14
|
export declare function getScannedItems(scanValue: MergedScan): ScanData[];
|
|
20
15
|
export declare function isETCompleted(validation: Validation, scansMap: Map<string, MergedScan>, scanMode: ScanMode, isMultiObjectiveEnable: boolean, scannedShipmentCount?: number, singleModeCount?: number, allowMultiObjectivePartial?: boolean): boolean;
|
|
21
16
|
export declare function isReplacement(scan: string, scansMap: Map<string, MergedScan>, selectedEventCode: ercItem | undefined, selectedReason: ercItem | undefined): boolean;
|
|
17
|
+
export declare function getEventType(eventList: Array<ercItem>, eventCode: string): boolean;
|
|
18
|
+
export declare function getScanMappedOutput(): Promise<SHARED_PREF_SCAN_OUTPUT_INTERFACE>;
|
|
19
|
+
export declare function triggerScanEvent(type: eventType, route: any, scannedData: any, etOutput?: BaseETResponse): void;
|
|
20
|
+
export declare function getScanData(activeTab: SummaryPageTabs, scanProps: ScannerInput, limit: number, offset: number, scan?: string): Promise<SummaryDisplayData>;
|
|
21
|
+
export declare function addScans(scan: string, scanProps: ScannerInput, scanOutput: ScannerOutput, ercItems: ercItem[], eventCode: ercItem, reasonCode?: ercItem): Promise<ADD_SCAN>;
|
|
22
|
+
export declare function removeScan(taskName: string, scans: Array<string>, route: any, scanOutput: ScannerOutput): Promise<void>;
|
|
23
|
+
export declare function updateSharedPreference(eventType: boolean, mergedObjectiveId: string, prefixedMergedObjectiveId: string): Promise<void>;
|
|
24
|
+
export declare function updatePendingSharedPreference(eventType: boolean, prefixedMergedObjectiveId: string): Promise<void>;
|
|
25
|
+
export declare const getTabCount: (scanProps: ScannerInput) => Promise<TabRecord>;
|
|
26
|
+
export declare const clearScanOutput: (prefixedMergedObjectiveId: string) => Promise<any[]>;
|
|
27
|
+
export declare function getScanMergedObjectID(): Promise<SCAN_MERGED_OBJ_ID_INTEFACE | null>;
|
|
28
|
+
export declare function getScanMergedOutput(): Promise<ScannerOutput | null>;
|
|
29
|
+
export declare const getErrorMessage: (scan: string, error: {
|
|
30
|
+
errorCode: number;
|
|
31
|
+
message: string;
|
|
32
|
+
}) => {
|
|
33
|
+
type: SnackBarType;
|
|
34
|
+
message: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const getSplitIds: (scanOutput: ScannerOutput) => string[];
|
|
37
|
+
export declare function filterERCItems(eventCodeItems: ercItem[], type: 'SUCCESS' | 'FAILURE'): ercItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { ValidateOTPInput } from './ValidateOTPSchema';
|
|
3
|
-
declare const ValidateOTPET: (props: ValidateOTPInput) => JSX.Element | null;
|
|
3
|
+
declare const ValidateOTPET: (props: ValidateOTPInput) => React.JSX.Element | null;
|
|
4
4
|
export default ValidateOTPET;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CaptureInput } from '../ValidateOTPSchema';
|
|
3
3
|
export interface OTPInputProps {
|
|
4
4
|
input: CaptureInput;
|
|
@@ -8,5 +8,5 @@ export interface OTPInputProps {
|
|
|
8
8
|
setHasError: (hasError: boolean) => void;
|
|
9
9
|
setErrorMessage: (errorMessage: string) => void;
|
|
10
10
|
}
|
|
11
|
-
declare const OTPInput: (props: OTPInputProps) => JSX.Element;
|
|
11
|
+
declare const OTPInput: (props: OTPInputProps) => React.JSX.Element;
|
|
12
12
|
export default OTPInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { VerifyLocationInput } from './VerifyLocSchema';
|
|
3
|
-
declare const VerifyLocationET: (props: VerifyLocationInput) => JSX.Element;
|
|
3
|
+
declare const VerifyLocationET: (props: VerifyLocationInput) => React.JSX.Element;
|
|
4
4
|
export default VerifyLocationET;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { OtpInputSchema } from './VerifyOtpSchema';
|
|
3
|
-
declare const VerifyOtpET: (props: OtpInputSchema) => JSX.Element;
|
|
3
|
+
declare const VerifyOtpET: (props: OtpInputSchema) => React.JSX.Element;
|
|
4
4
|
export default VerifyOtpET;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Otp entered by user
|
|
3
3
|
*/
|
|
4
|
-
import type { BaseETResponse } from '../../../models/execTasks/ETBaseModels';
|
|
4
|
+
import type { BaseETRequest, BaseETResponse } from '../../../models/execTasks/ETBaseModels';
|
|
5
5
|
export type InputOtp = string;
|
|
6
6
|
/**
|
|
7
7
|
* Otp Value
|
|
8
8
|
*/
|
|
9
9
|
export type Otp = string;
|
|
10
|
-
export
|
|
10
|
+
export type OtpInputSchema = BaseETRequest & {
|
|
11
11
|
inputCount: number;
|
|
12
12
|
inputOtp: InputOtp;
|
|
13
13
|
otp: Otp;
|
|
14
14
|
onSubmit: (output: OtpOutputSchema) => void;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
export type OtpOutputSchema = BaseETResponse & {
|
|
17
17
|
/**
|
|
18
18
|
* Boolean to represent result of verification
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CancelOrderDialog: (props: CancelDialogProps) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const CancelOrderDialog: (props: CancelDialogProps) => React.JSX.Element;
|
|
3
3
|
export default CancelOrderDialog;
|
|
4
4
|
export interface CancelDialogProps {
|
|
5
5
|
visible: boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CardProps {
|
|
3
|
+
title: string;
|
|
4
|
+
renderAdditionalHeader?: () => JSX.Element;
|
|
5
|
+
Body: JSX.Element;
|
|
6
|
+
editConfig?: {
|
|
7
|
+
props: any;
|
|
8
|
+
onEdit: (props: any) => void;
|
|
9
|
+
};
|
|
10
|
+
selectConfig?: {
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
props: any;
|
|
13
|
+
onSelect: (props: any) => void;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const Card: (props: CardProps) => React.JSX.Element;
|
|
17
|
+
export default Card;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface GoBackModalProps {
|
|
3
|
+
showModal: boolean;
|
|
4
|
+
setShowModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
onSuccess: () => any;
|
|
6
|
+
onFailure: () => any;
|
|
7
|
+
}
|
|
8
|
+
declare const GoBackModal: (props: GoBackModalProps) => React.JSX.Element;
|
|
9
|
+
export default GoBackModal;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const IconButton: ({ title, onPress, icon, style, textStyles, }: {
|
|
3
3
|
title: string;
|
|
4
4
|
onPress: (e: any) => void;
|
|
5
5
|
icon?: any;
|
|
6
6
|
style?: any;
|
|
7
7
|
textStyles?: any;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export default IconButton;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onPress: (() => void) | (() => Promise<any>);
|
|
7
|
+
styles?: ViewStyle;
|
|
8
|
+
labelStyles?: TextStyle;
|
|
9
|
+
}
|
|
10
|
+
interface TitleProps {
|
|
11
|
+
label: string;
|
|
12
|
+
styles?: TextStyle;
|
|
13
|
+
}
|
|
14
|
+
export interface ModalProps {
|
|
15
|
+
showModal: boolean;
|
|
16
|
+
dismissable?: boolean;
|
|
17
|
+
title: TitleProps;
|
|
18
|
+
subTitle?: TitleProps;
|
|
19
|
+
contentContainerStyle?: ViewStyle;
|
|
20
|
+
modalStyle?: ViewStyle;
|
|
21
|
+
bodyStyle?: ViewStyle;
|
|
22
|
+
renderChildren?: () => JSX.Element;
|
|
23
|
+
buttonStyle?: ViewStyle;
|
|
24
|
+
primaryButton: ButtonProps;
|
|
25
|
+
secondaryButton: ButtonProps;
|
|
26
|
+
renderAdditionalButtons?: () => JSX.Element;
|
|
27
|
+
renderAdditionalHeader?: () => JSX.Element;
|
|
28
|
+
}
|
|
29
|
+
declare const ModalWidget: (props: ModalProps) => React.JSX.Element;
|
|
30
|
+
export default ModalWidget;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ProgressDialog: (props: ProgressDialogProps) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ProgressDialog: (props: ProgressDialogProps) => React.JSX.Element;
|
|
3
3
|
export default ProgressDialog;
|
|
4
4
|
export interface ProgressDialogProps {
|
|
5
5
|
visible: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SearchBarProps {
|
|
3
|
+
searchText: string;
|
|
4
|
+
setSearchText: (searchText: string) => void;
|
|
5
|
+
onChangeSearch: (searchText: string) => any;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
onClear: () => any;
|
|
8
|
+
}
|
|
9
|
+
declare const SearchBar: (props: SearchBarProps) => React.JSX.Element;
|
|
10
|
+
export default SearchBar;
|
|
@@ -16,9 +16,10 @@ export interface SnackbarProps {
|
|
|
16
16
|
}
|
|
17
17
|
export declare enum SnackBarType {
|
|
18
18
|
SUCCESS = 0,
|
|
19
|
-
FAILURE = 1
|
|
19
|
+
FAILURE = 1,
|
|
20
|
+
WARNING = 2
|
|
20
21
|
}
|
|
21
22
|
declare const _default: React.ComponentType<Pick<SnackbarProps, "visible" | "type" | "onDismiss" | "duration" | "message" | "customBottom"> & {
|
|
22
23
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
23
|
-
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<SnackbarProps> & (({ visible, duration, onDismiss, message, theme, type, customBottom, }: SnackbarProps) => JSX.Element | null), {}>;
|
|
24
|
+
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<SnackbarProps> & (({ visible, duration, onDismiss, message, theme, type, customBottom, }: SnackbarProps) => React.JSX.Element | null), {}>;
|
|
24
25
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { KeyboardTypeOptions } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export interface SplitTextInputProps {
|
|
4
4
|
styles: any;
|
|
5
5
|
value: string;
|
|
@@ -8,5 +8,5 @@ export interface SplitTextInputProps {
|
|
|
8
8
|
keyboardType: KeyboardTypeOptions;
|
|
9
9
|
hasError: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare const SplitTextInput: ({ styles, value, onChange, maxLength, keyboardType, hasError, }: SplitTextInputProps) => JSX.Element;
|
|
11
|
+
declare const SplitTextInput: ({ styles, value, onChange, maxLength, keyboardType, hasError, }: SplitTextInputProps) => React.JSX.Element;
|
|
12
12
|
export default SplitTextInput;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Tab {
|
|
3
|
+
title: string;
|
|
4
|
+
count: number;
|
|
5
|
+
titleStyle?: any;
|
|
6
|
+
}
|
|
7
|
+
interface TabsComponentProps {
|
|
8
|
+
tabs: Array<Tab>;
|
|
9
|
+
initialTab: Tab;
|
|
10
|
+
onTabChange: (currentTab: string) => void;
|
|
11
|
+
renderTabItem: (tab: Tab) => JSX.Element;
|
|
12
|
+
renderBody: (currentTab: string) => JSX.Element | null;
|
|
13
|
+
}
|
|
14
|
+
declare const TabsComponent: (props: TabsComponentProps) => React.JSX.Element;
|
|
15
|
+
export default TabsComponent;
|
|
@@ -3,9 +3,9 @@ export declare const DEFAULT_NOTIFICATION_TITLE = "Dispatch Sync Manager";
|
|
|
3
3
|
export declare const DEFAULT_NOTIFICATION_DESCRIPTION = "Syncing Events & Files";
|
|
4
4
|
export declare const DEFAULT_INTERVAL = 10000;
|
|
5
5
|
export declare const DEFAULT_PICKUP_TITLE = "Pickup Order";
|
|
6
|
-
export declare const DEFAULT_PICKUP_MESSAGE = "Confirm Pickup of $
|
|
6
|
+
export declare const DEFAULT_PICKUP_MESSAGE = "Confirm Pickup of $ orders";
|
|
7
7
|
export declare const DEFAULT_DELIVER_TITLE = "Drop Order";
|
|
8
|
-
export declare const DEFAULT_DELIVER_MESSAGE = "Confirm Drop of $
|
|
8
|
+
export declare const DEFAULT_DELIVER_MESSAGE = "Confirm Drop of $ orders";
|
|
9
9
|
export declare const DEFAULT_SIGN_ET_MESSAGE = "Please capture a clear signature from the customer";
|
|
10
10
|
export declare const REASON_NOT_USED = "NOT_TO_BE_USED";
|
|
11
11
|
export declare const GO_BACK_EVENT_CODE = "E-099";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { stateWithObjRef } from '../models/DispatchModels';
|
|
2
1
|
import type { eventType } from './interface';
|
|
3
|
-
export declare const dispatchStartEvent: (customEtName: string, data: stateWithObjRef[]) => void;
|
|
4
2
|
declare const dispatchEvent: (type: eventType, customEtName: string, data: any) => void;
|
|
5
3
|
export default dispatchEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type eventType = 'START' | 'END' | 'BACK';
|
|
1
|
+
export type eventType = 'START' | 'END' | 'BACK' | 'ON_SCAN' | 'ON_SCAN_REMOVE';
|
|
@@ -5,28 +5,30 @@ import type { MTSInitRequest, MTSStartRequest } from '@foxtrotplatform/platform-
|
|
|
5
5
|
import * as MtsSdk from '@foxtrotplatform/platform-coreos-mts-sdk';
|
|
6
6
|
import NativeSyncManager from './manager/syncmanager/NativeSyncManager';
|
|
7
7
|
import type { DocumentRow, EventRow } from './manager/syncmanager/DBConfig';
|
|
8
|
-
import { SyncMethod } from './manager/syncmanager/DBConfig';
|
|
8
|
+
import { SyncMethod, DispatchSyncType } from './manager/syncmanager/DBConfig';
|
|
9
9
|
import CancelOrderDialog from './components/widgets/CancelOrderDialog';
|
|
10
10
|
import useFCMMessage, { getFCMToken, registerBackgroundHandler, requestFirebasePermissions } from './utils/fcm/FcmUtils';
|
|
11
11
|
import FCM from './utils/fcm/FCM';
|
|
12
12
|
import DispatchExecNavigator from './components/dispatch/DispatchExecNavigator';
|
|
13
13
|
import DispatchStateContainer from './manager/dispatch/DispatchStateContainer';
|
|
14
|
-
import { objectiveExecutionStatus, ObjectiveNotFoundError } from '@os1-platform/mobile-execution-lib';
|
|
15
14
|
import { DispatchSDKManager } from './manager/sdk/DispatchSDKManager';
|
|
16
15
|
import Logger, { LOG_TYPE } from './utils/Logger';
|
|
17
|
-
import type { ETSummary, CompleteSummary } from './models/execTasks/ETBaseModels';
|
|
16
|
+
import type { ETSummary, CompleteSummary, ObjectiveSummary } from './models/execTasks/ETBaseModels';
|
|
18
17
|
import SdkUtils from './utils/SdkUtils';
|
|
19
18
|
import AppSyncManager from './manager/syncmanager/AppSyncManager';
|
|
20
|
-
import type { JobObjectiveType } from './models/DispatchModels';
|
|
19
|
+
import type { JobObjectiveType, endEvent, startEvent, onScanRemoveEvent, onScanEvent } from './models/DispatchModels';
|
|
21
20
|
import { SdkSyncType } from './models/DispatchModels';
|
|
22
21
|
import EventListener from './events';
|
|
22
|
+
import { BaseEvents } from './events/constants';
|
|
23
|
+
import { DispatchExecutor, IDispatch, IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
24
|
+
export { DispatchExecutor, IDispatch, IDispatchExecutor };
|
|
23
25
|
export { Storage, DispatchExecNavigator };
|
|
24
|
-
export { ETSummary, CompleteSummary };
|
|
26
|
+
export { ETSummary, CompleteSummary, ObjectiveSummary, DispatchSyncType };
|
|
27
|
+
export { BaseEvents, endEvent, startEvent, onScanRemoveEvent, onScanEvent };
|
|
25
28
|
export { NativeSyncManager, AppSyncManager, SdkSyncType, EventRow, DocumentRow, useFCMMessage, getFCMToken, requestFirebasePermissions, FCM, registerBackgroundHandler, DispatchStateContainer, SdkUtils, Logger, LOG_TYPE, EventListener, };
|
|
26
29
|
export { SyncMethod, JobObjectiveType };
|
|
27
30
|
export type { ETaskSchema };
|
|
28
31
|
export { ExecutionTask, CancelOrderDialog };
|
|
29
|
-
export { objectiveExecutionStatus, ObjectiveNotFoundError };
|
|
30
32
|
export { DispatchSDKManager };
|
|
31
33
|
export type { MTSStartRequest, MTSInitRequest };
|
|
32
34
|
export { MtsSdk };
|