@os1-platform/dispatch-mobile 1.0.8 → 1.3.11
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 +116 -48
- package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.8/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +13 -0
- package/android/.idea/misc.xml +4 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +131 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +0 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +46 -39
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +14 -24
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +64 -16
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +68 -26
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +4 -13
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +61 -28
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +62 -18
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +112 -28
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -16
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +4 -13
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +0 -12
- 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 +7 -35
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +74 -49
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -17
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +60 -19
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +843 -0
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +29 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +103 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +74 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +115 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +134 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +373 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +3 -21
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +4 -9
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +7 -36
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -5
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -9
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -14
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +1 -40
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -17
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -28
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +334 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +59 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/IconButton.js +34 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +38 -38
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +0 -2
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js +15 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +7 -3
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js +3 -5
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -8
- package/lib/commonjs/errors/BaseError.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js +7 -6
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +27 -0
- package/lib/commonjs/events/EventDispatcher.js.map +1 -0
- package/lib/commonjs/events/EventListener.js +20 -0
- package/lib/commonjs/events/EventListener.js.map +1 -0
- package/lib/commonjs/events/constants.js +13 -0
- package/lib/commonjs/events/constants.js.map +1 -0
- package/lib/commonjs/events/index.js +11 -0
- package/lib/commonjs/events/index.js.map +1 -0
- package/lib/commonjs/events/interface.js +2 -0
- package/lib/commonjs/events/interface.js.map +1 -0
- package/lib/commonjs/index.js +9 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +527 -177
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +27 -0
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/commonjs/manager/location/LocationManager.js +3 -20
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -36
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +12 -46
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +13 -7
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +28 -12
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +0 -19
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +3 -20
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +3 -52
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +59 -25
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +77 -90
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +27 -19
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js +4 -5
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/ReasonCodes.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js +4 -5
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +7 -35
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +2 -13
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +10 -8
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js +0 -2
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +6 -21
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/res/strings.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -15
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +3 -8
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +7 -7
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +42 -18
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +36 -27
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +6 -15
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +0 -19
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +6 -15
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +7 -12
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +6 -16
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +6 -18
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +14 -16
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +36 -15
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +7 -13
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +5 -10
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +27 -14
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +11 -23
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +9 -13
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +8 -27
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +268 -0
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +21 -30
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +49 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +9 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +115 -0
- package/lib/commonjs/utils/ApiUtils.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +93 -31
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +10 -29
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +3 -19
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -31
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +25 -40
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +35 -16
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +50 -25
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +0 -5
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useTimer.js +44 -0
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +6 -18
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +53 -32
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +8 -11
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/components/dispatch/DispatchExecNavigator.js +46 -28
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +66 -9
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +69 -16
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +4 -3
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +64 -14
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +62 -8
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +114 -14
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -5
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +4 -2
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +0 -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 +7 -10
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -6
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +63 -11
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -10
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +61 -10
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +833 -0
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js +2 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scan/constants.js +7 -0
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/module/components/executiontasks/scan/interfaces.js +21 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +94 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +66 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +105 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +124 -0
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +358 -0
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/CScanner.js +3 -8
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +3 -3
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +6 -18
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -2
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -5
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -3
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +1 -19
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -7
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -15
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +325 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +49 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +4 -8
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/IconButton.js +26 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +0 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +36 -18
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +84 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -1
- package/lib/module/config/DispatchSDKConfig.js +3 -4
- package/lib/module/config/DispatchSDKConfig.js.map +1 -1
- package/lib/module/constants/apiConstants.js +7 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +4 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/constants/statuscode.js +3 -5
- package/lib/module/constants/statuscode.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -6
- package/lib/module/errors/BaseError.js.map +1 -1
- package/lib/module/errors/ErrorCodes.js +5 -5
- package/lib/module/errors/ErrorCodes.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +19 -0
- package/lib/module/events/EventDispatcher.js.map +1 -0
- package/lib/module/events/EventListener.js +13 -0
- package/lib/module/events/EventListener.js.map +1 -0
- package/lib/module/events/constants.js +6 -0
- package/lib/module/events/constants.js.map +1 -0
- package/lib/module/events/index.js +3 -0
- package/lib/module/events/index.js.map +1 -0
- package/lib/module/events/interface.js +2 -0
- package/lib/module/events/interface.js.map +1 -0
- package/lib/module/index.js +4 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +529 -151
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +20 -0
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/module/manager/location/LocationManager.js +3 -14
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +8 -14
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js +12 -26
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +9 -5
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/database.js +27 -3
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +0 -7
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +3 -14
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +3 -35
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +59 -18
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +77 -68
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +26 -11
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js +3 -4
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/ReasonCodes.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +22 -29
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js +3 -4
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +3 -18
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js +6 -26
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +2 -6
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +10 -3
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +7 -17
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/res/strings.js.map +1 -1
- package/lib/module/resources/Login.js +4 -13
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js +3 -6
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +6 -6
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +41 -7
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +36 -14
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +7 -4
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +0 -3
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +7 -4
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +5 -4
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +7 -4
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +7 -7
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +3 -1
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +34 -6
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +5 -4
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +5 -3
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +25 -5
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +12 -10
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +7 -5
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/RTScanScreen.js +9 -13
- package/lib/module/ui/screens/RTScanScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +259 -0
- package/lib/module/ui/screens/ScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +22 -9
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +39 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +9 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +101 -0
- package/lib/module/utils/ApiUtils.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +92 -21
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +9 -21
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -15
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +2 -15
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +25 -10
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +35 -4
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +50 -7
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +0 -3
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useTimer.js +37 -0
- package/lib/module/utils/hooks/useTimer.js.map +1 -0
- package/lib/module/utils/loginHelper.js +6 -16
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +51 -29
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +8 -6
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -2
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +7 -7
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +1 -1
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +16 -11
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +70 -0
- package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +41 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +8 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +1 -2
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +1 -1
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
- package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
- package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
- package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +9 -5
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
- package/lib/typescript/constants/apiConstants.d.ts +6 -0
- package/lib/typescript/constants/constants.d.ts +4 -2
- package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
- package/lib/typescript/events/EventDispatcher.d.ts +5 -0
- package/lib/typescript/events/EventListener.d.ts +5 -0
- package/lib/typescript/events/constants.d.ts +5 -0
- package/lib/typescript/events/index.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -0
- package/lib/typescript/index.d.ts +5 -4
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +21 -8
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
- package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +6 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +1 -0
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +22 -2
- package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +5 -1
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +5 -1
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +3 -1
- package/lib/typescript/models/DispatchModels.d.ts +56 -1
- package/lib/typescript/models/ReasonCodes.d.ts +5 -0
- package/lib/typescript/models/auth.d.ts +1 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +27 -8
- package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
- package/lib/typescript/models/sdk.d.ts +5 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
- package/lib/typescript/network/NetworkUtils.d.ts +1 -5
- package/lib/typescript/styles/SdkColors.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +36 -0
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -1
- package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +8 -0
- package/lib/typescript/utils/ApiUtils.d.ts +61 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +7 -2
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/SyncManagerUtils.d.ts +3 -1
- package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
- package/lib/typescript/utils/storage.d.ts +17 -0
- package/package.json +23 -24
- package/tsconfig.json +9 -8
- package/file_unzip.js +0 -5
- package/mobile-execution-lib-0.6.4.tgz +0 -0
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
* Longitude
|
|
3
3
|
*/
|
|
4
4
|
import type { BaseETRequest, BaseETResponse } from '../../../models/execTasks/ETBaseModels';
|
|
5
|
-
export
|
|
5
|
+
export type Longitude = string;
|
|
6
6
|
/**
|
|
7
7
|
* Latitude
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type Latitude = string;
|
|
10
10
|
/**
|
|
11
11
|
* Accuracy in meters of the geolocation
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type Accuracy = number | null;
|
|
14
14
|
/**
|
|
15
15
|
* Boolean key to enable/disable geofencing feature
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type GeofencingEnabled = boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Radius in meters around the verifyLocation for geo-fencing
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type Radius = number;
|
|
22
22
|
/**
|
|
23
23
|
* Boolean key to enable manual override the geo-fencing feature
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export type Override = boolean;
|
|
26
26
|
/**
|
|
27
27
|
* Any manual instruction to display for the Operator to work on
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
30
|
-
export
|
|
29
|
+
export type Instruction = string;
|
|
30
|
+
export type VerifyLocationInput = BaseETRequest & {
|
|
31
31
|
geolocation: GeoLocation;
|
|
32
32
|
address?: string;
|
|
33
33
|
onSubmitET: (value: VerifyLocationOutput) => void;
|
|
@@ -47,4 +47,4 @@ export interface GeoLocation {
|
|
|
47
47
|
export interface Geofencing {
|
|
48
48
|
radius: Radius;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export type VerifyLocationOutput = BaseETResponse;
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* Otp entered by user
|
|
3
3
|
*/
|
|
4
4
|
import type { BaseETResponse } from '../../../models/execTasks/ETBaseModels';
|
|
5
|
-
export
|
|
5
|
+
export type InputOtp = string;
|
|
6
6
|
/**
|
|
7
7
|
* Otp Value
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type Otp = string;
|
|
10
10
|
export interface OtpInputSchema {
|
|
11
11
|
inputCount: number;
|
|
12
12
|
inputOtp: InputOtp;
|
|
13
13
|
otp: Otp;
|
|
14
14
|
onSubmit: (output: OtpOutputSchema) => void;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type OtpOutputSchema = BaseETResponse & {
|
|
17
17
|
/**
|
|
18
18
|
* Boolean to represent result of verification
|
|
19
19
|
*/
|
|
@@ -10,11 +10,15 @@ export interface SnackbarProps {
|
|
|
10
10
|
* Text content of the Snackbar.
|
|
11
11
|
*/
|
|
12
12
|
message: string;
|
|
13
|
+
type?: SnackBarType;
|
|
13
14
|
theme: ReactNativePaper.Theme;
|
|
15
|
+
customBottom?: number;
|
|
14
16
|
}
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
export declare enum SnackBarType {
|
|
18
|
+
SUCCESS = 0,
|
|
19
|
+
FAILURE = 1
|
|
20
|
+
}
|
|
21
|
+
declare const _default: React.ComponentType<Pick<SnackbarProps, "visible" | "type" | "onDismiss" | "duration" | "message" | "customBottom"> & {
|
|
22
|
+
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), {}>;
|
|
20
24
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { KeyboardTypeOptions } from 'react-native';
|
|
3
|
+
export interface SplitTextInputProps {
|
|
4
|
+
styles: any;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (text: string) => void;
|
|
7
|
+
maxLength: number;
|
|
8
|
+
keyboardType: KeyboardTypeOptions;
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const SplitTextInput: ({ styles, value, onChange, maxLength, keyboardType, hasError, }: SplitTextInputProps) => JSX.Element;
|
|
12
|
+
export default SplitTextInput;
|
|
@@ -3,7 +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
|
|
6
|
+
export declare const DEFAULT_PICKUP_MESSAGE = "Confirm Pickup of $ order(s)";
|
|
7
7
|
export declare const DEFAULT_DELIVER_TITLE = "Drop Order";
|
|
8
|
-
export declare const DEFAULT_DELIVER_MESSAGE = "Confirm
|
|
8
|
+
export declare const DEFAULT_DELIVER_MESSAGE = "Confirm Drop of $ order(s)";
|
|
9
9
|
export declare const DEFAULT_SIGN_ET_MESSAGE = "Please capture a clear signature from the customer";
|
|
10
|
+
export declare const REASON_NOT_USED = "NOT_TO_BE_USED";
|
|
11
|
+
export declare const GO_BACK_EVENT_CODE = "E-099";
|
|
@@ -18,11 +18,13 @@ declare const enum BaseErrorCodes {
|
|
|
18
18
|
EXECUTION_ENGINE_ERROR = "100116",
|
|
19
19
|
UNEXPECTED_ERROR = "100117",
|
|
20
20
|
SYSTEM_TIME_CHECK_FAILED = "100118",
|
|
21
|
-
ACCESS_TOKEN_EXPIRED = "100119"
|
|
21
|
+
ACCESS_TOKEN_EXPIRED = "100119",
|
|
22
|
+
MULTI_OBJECTIVE_ERROR = "100119"
|
|
22
23
|
}
|
|
23
24
|
export declare const InvalidArgumentsError = "Missing or invalid arguments";
|
|
24
25
|
export declare const InvalidBaseURL = "URL is invalid";
|
|
25
26
|
export declare const SyncManagerNotInitialized = "Sync Manager is not initialized.Please call init method first";
|
|
26
27
|
export declare const AppSyncInitError = "App sync Manager not initialized.Please call initSyncManager() with valid BASE URLs from your app's index file";
|
|
27
28
|
export declare const MissingOrInvalidProps = "One or more prop(s) is missing or invalid";
|
|
29
|
+
export declare const MultiObjectiveError = "Multiple objective not allowed as enableMultiObjectiveFlow is false.";
|
|
28
30
|
export default BaseErrorCodes;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { stateWithObjRef } from '../models/DispatchModels';
|
|
2
|
+
import type { eventType } from './interface';
|
|
3
|
+
export declare const dispatchStartEvent: (customEtName: string, data: stateWithObjRef[]) => void;
|
|
4
|
+
declare const dispatchEvent: (type: eventType, customEtName: string, data: any) => void;
|
|
5
|
+
export default dispatchEvent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type eventType = 'START' | 'END' | 'BACK';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Storage from './utils/storage';
|
|
2
2
|
import type * as ETaskSchema from './components/executiontasks/ExecutionTasksIndex';
|
|
3
3
|
import * as ExecutionTask from './components/executiontasks/ExecutionTasksIndex';
|
|
4
|
-
import type { MTSInitRequest, MTSStartRequest } from '@
|
|
5
|
-
import * as MtsSdk from '@
|
|
4
|
+
import type { MTSInitRequest, MTSStartRequest } from '@foxtrotplatform/platform-coreos-mts-sdk';
|
|
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
8
|
import { SyncMethod } from './manager/syncmanager/DBConfig';
|
|
@@ -11,7 +11,7 @@ import useFCMMessage, { getFCMToken, registerBackgroundHandler, requestFirebaseP
|
|
|
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 'mobile-execution-lib';
|
|
14
|
+
import { objectiveExecutionStatus, ObjectiveNotFoundError } from '@os1-platform/mobile-execution-lib';
|
|
15
15
|
import { DispatchSDKManager } from './manager/sdk/DispatchSDKManager';
|
|
16
16
|
import Logger, { LOG_TYPE } from './utils/Logger';
|
|
17
17
|
import type { ETSummary, CompleteSummary } from './models/execTasks/ETBaseModels';
|
|
@@ -19,9 +19,10 @@ import SdkUtils from './utils/SdkUtils';
|
|
|
19
19
|
import AppSyncManager from './manager/syncmanager/AppSyncManager';
|
|
20
20
|
import type { JobObjectiveType } from './models/DispatchModels';
|
|
21
21
|
import { SdkSyncType } from './models/DispatchModels';
|
|
22
|
+
import EventListener from './events';
|
|
22
23
|
export { Storage, DispatchExecNavigator };
|
|
23
24
|
export { ETSummary, CompleteSummary };
|
|
24
|
-
export { NativeSyncManager, AppSyncManager, SdkSyncType, EventRow, DocumentRow, useFCMMessage, getFCMToken, requestFirebasePermissions, FCM, registerBackgroundHandler, DispatchStateContainer, SdkUtils, Logger, LOG_TYPE, };
|
|
25
|
+
export { NativeSyncManager, AppSyncManager, SdkSyncType, EventRow, DocumentRow, useFCMMessage, getFCMToken, requestFirebasePermissions, FCM, registerBackgroundHandler, DispatchStateContainer, SdkUtils, Logger, LOG_TYPE, EventListener, };
|
|
25
26
|
export { SyncMethod, JobObjectiveType };
|
|
26
27
|
export type { ETaskSchema };
|
|
27
28
|
export { ExecutionTask, CancelOrderDialog };
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import type { Job, state } from 'mobile-execution-lib';
|
|
1
|
+
import type { Job, state } from '@os1-platform/mobile-execution-lib';
|
|
2
2
|
import type { ETSummary } from '../../models/execTasks/ETBaseModels';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LockObjectiveState, QueryObjectiveState } from '../../models/DispatchModels';
|
|
4
|
+
import DispatchSdkCache from '../sdk/DispatchSdkCache';
|
|
5
|
+
import type { BaseETProps, JobObjectiveType, stateParams, stateWithObjRef } from '../../models/DispatchModels';
|
|
4
6
|
export default class DispatchStateContainer {
|
|
7
|
+
cacheKeys: {
|
|
8
|
+
SDK_CONFIG: string;
|
|
9
|
+
DISPATCH_ID: string;
|
|
10
|
+
FMS_FOLDER: string;
|
|
11
|
+
FIREBASE_REGISTRATION_TOKEN: string;
|
|
12
|
+
REASON_FETCH_TIME: string;
|
|
13
|
+
CURRENT_WORKING_TASK_ID: string;
|
|
14
|
+
TASK_START_TIME: string;
|
|
15
|
+
};
|
|
16
|
+
cache: DispatchSdkCache;
|
|
5
17
|
get stateKeys(): string[];
|
|
6
18
|
set stateKeys(value: string[]);
|
|
7
19
|
get mappedStates(): Map<string, stateWithObjRef[]>;
|
|
@@ -22,9 +34,10 @@ export default class DispatchStateContainer {
|
|
|
22
34
|
*/
|
|
23
35
|
initDispatchExecutor(dispatchID: string, jobs: Job[], logging: boolean, maxTaskReattempt?: number): Promise<void>;
|
|
24
36
|
bulkQueryNextET(jobObjectiveList: JobObjectiveType[]): Promise<stateWithObjRef[] | null>;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
37
|
+
bulkLockObjectiveStates(lockInput: Array<LockObjectiveState>): Promise<void>;
|
|
38
|
+
bulkQueryObjectives(queryInput: QueryObjectiveState[]): Promise<state[]>;
|
|
39
|
+
sendPendingETOutput(etOutputData: any, states: stateParams, isJobBasedOutput?: boolean): Promise<void>;
|
|
40
|
+
sendETOutput(etOutput: any, states: stateParams, isJobBasedOutput?: boolean, isPendingState?: boolean): Promise<void>;
|
|
28
41
|
saveETOutput(jobId: string, objRef: string, etState: state): Promise<void>;
|
|
29
42
|
static getInstance(): DispatchStateContainer;
|
|
30
43
|
fetchObjectiveState(objRef: string, jobID: string): string;
|
|
@@ -33,9 +46,9 @@ export default class DispatchStateContainer {
|
|
|
33
46
|
setFailureRoute(route: string): void;
|
|
34
47
|
getFailureRoute(): string | null;
|
|
35
48
|
getObjectiveSummary(jobObjective: JobObjectiveType): Promise<ETSummary[]>;
|
|
36
|
-
navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID: string, baseETProps: BaseETProps, isLastTask?: boolean): Promise<void>;
|
|
49
|
+
navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID: string, baseETProps: BaseETProps, isLastTask?: boolean, isJobBasedOutput?: boolean): Promise<void>;
|
|
37
50
|
private getJobObjectiveList;
|
|
38
|
-
moveToNextET(baseETProps: BaseETProps,
|
|
51
|
+
moveToNextET(etOutput: any, baseETProps: BaseETProps, states: stateParams, navigation: any, isLastTask?: boolean): Promise<void>;
|
|
39
52
|
private saveAndProceedToNextET;
|
|
40
|
-
saveAndProceed(baseETProps: BaseETProps, etOutput: any,
|
|
53
|
+
saveAndProceed(baseETProps: BaseETProps, etOutput: any, states: stateParams, navigation: any, isLastTask?: boolean, isJobBasedOutput?: boolean): Promise<void>;
|
|
41
54
|
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import type { EventsRow } from '../syncmanager/DBConfig';
|
|
2
|
+
export declare function getEventCodeByET(_etName: string, success: boolean, events?: {
|
|
3
|
+
[k: string]: string[];
|
|
4
|
+
} | string[]): string;
|
|
5
|
+
export default class EventCodeContainer {
|
|
6
|
+
private static instance;
|
|
7
|
+
private constructor();
|
|
8
|
+
static getInstance(): EventCodeContainer;
|
|
9
|
+
getEventCodes(applicableCodes: object): Promise<EventsRow[]>;
|
|
10
|
+
static getEventCodeFromText(eventText: string, events: EventsRow[]): string;
|
|
11
|
+
getEventByCode(code: string): Promise<EventsRow | null>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventsRow } from '../syncmanager/DBConfig';
|
|
2
|
+
import type { EventCodes } from '../../models/ReasonCodes';
|
|
3
|
+
export default class EventCodeRepo {
|
|
4
|
+
private static instance;
|
|
5
|
+
static getInstance(): EventCodeRepo;
|
|
6
|
+
saveEventCode(eventsList: EventCodes[]): Promise<void>;
|
|
7
|
+
private insertEvent;
|
|
8
|
+
private init;
|
|
9
|
+
getAllEventCodes(): Promise<EventsRow[]>;
|
|
10
|
+
deleteAll(): Promise<import("expo-sqlite").SQLResultSet>;
|
|
11
|
+
getEventsByCode(codes: string[]): Promise<EventsRow[]>;
|
|
12
|
+
getEventByCode(code: string): Promise<EventsRow[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default class JobRemovalManager {
|
|
2
|
+
private static instance;
|
|
3
|
+
private constructor();
|
|
4
|
+
static getInstance(): JobRemovalManager;
|
|
5
|
+
handleRemoval(dispatchId: string, jobs: string[]): Promise<import("@os1-platform/mobile-execution-lib/lib/typescript/interfaces").JobRemovalResult>;
|
|
6
|
+
}
|
|
@@ -8,6 +8,8 @@ export default class DispatchSdkCache {
|
|
|
8
8
|
FMS_FOLDER: string;
|
|
9
9
|
FIREBASE_REGISTRATION_TOKEN: string;
|
|
10
10
|
REASON_FETCH_TIME: string;
|
|
11
|
+
CURRENT_WORKING_TASK_ID: string;
|
|
12
|
+
TASK_START_TIME: string;
|
|
11
13
|
};
|
|
12
14
|
setObjectInCache(keyName: string, obj: any): Promise<void>;
|
|
13
15
|
getObjectFromCache(keyName: string): Promise<any>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { SyncType } from '@os1-platform/mobile-execution-lib';
|
|
1
2
|
export declare const DATABASE_NAME = "DISPATCH_DB";
|
|
2
3
|
export declare const EVENTS_TABLE = "EVENTS_TABLE";
|
|
3
4
|
export declare const REASONS_TABLE = "REASONS_TABLE";
|
|
5
|
+
export declare const EVENT_CODES_TABLE = "EVENT_CODES_TABLE";
|
|
4
6
|
export declare const EVENTS_COLUMNS: {
|
|
5
7
|
ID: string;
|
|
6
8
|
SEQUENCE: string;
|
|
@@ -30,7 +32,7 @@ export declare const DOCUMENT_COLUMNS: {
|
|
|
30
32
|
JOB_ID: string;
|
|
31
33
|
OBJECTIVE_REF: string;
|
|
32
34
|
};
|
|
33
|
-
export
|
|
35
|
+
export type DocumentRow = {
|
|
34
36
|
id: number;
|
|
35
37
|
data: string;
|
|
36
38
|
base64: boolean;
|
|
@@ -47,7 +49,7 @@ export declare type DocumentRow = {
|
|
|
47
49
|
job_id: string;
|
|
48
50
|
objective_ref: string;
|
|
49
51
|
};
|
|
50
|
-
export
|
|
52
|
+
export type EventRow = {
|
|
51
53
|
id: number;
|
|
52
54
|
payload: string;
|
|
53
55
|
synced: boolean;
|
|
@@ -75,3 +77,21 @@ export interface ReasonsRow {
|
|
|
75
77
|
reasonCode: string;
|
|
76
78
|
isSystemDefined: boolean;
|
|
77
79
|
}
|
|
80
|
+
export interface EventsRow {
|
|
81
|
+
description: string;
|
|
82
|
+
successEvent: boolean;
|
|
83
|
+
eventCode: string;
|
|
84
|
+
}
|
|
85
|
+
export declare const EventColumns: {
|
|
86
|
+
CODE: string;
|
|
87
|
+
DESCRIPTION: string;
|
|
88
|
+
SUCCESS_EVENT: string;
|
|
89
|
+
};
|
|
90
|
+
export interface BulkEvent {
|
|
91
|
+
syncType: SyncType;
|
|
92
|
+
dispatchId: string;
|
|
93
|
+
data: string;
|
|
94
|
+
config: string;
|
|
95
|
+
sequence: number;
|
|
96
|
+
meta?: any;
|
|
97
|
+
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { SQLResultSet } from 'expo-sqlite';
|
|
2
|
+
export interface ExecQuery {
|
|
3
|
+
query: string;
|
|
4
|
+
args: any[];
|
|
5
|
+
}
|
|
2
6
|
export declare function executeQuery(query: string, args: any[]): Promise<SQLResultSet>;
|
|
7
|
+
export declare function executeBulkQuery(_queryData: ExecQuery[]): Promise<boolean>;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { EventRow } from '../DBConfig';
|
|
1
|
+
import { BulkEvent, EventRow } from '../DBConfig';
|
|
2
2
|
export default class ETEventsManager {
|
|
3
3
|
private static instance;
|
|
4
|
+
private maxRetryCount;
|
|
5
|
+
private _retries;
|
|
4
6
|
private constructor();
|
|
5
7
|
static getInstance(): Promise<ETEventsManager>;
|
|
6
8
|
private static init;
|
|
7
9
|
insertEvent(sequence: number, payload: string, dspID: string, syncType: string, objectiveRef: string, config?: string): Promise<void>;
|
|
10
|
+
insertBulkEvent(_eventData: BulkEvent[]): Promise<void>;
|
|
8
11
|
getAllEvents(dispatchID?: string): Promise<EventRow[]>;
|
|
9
12
|
getAllUnsyncedEvents(): Promise<EventRow[]>;
|
|
10
13
|
deleteAllEvents(): Promise<import("expo-sqlite").SQLResultSet>;
|
|
11
14
|
updateError(id: number, syncError: string): Promise<void>;
|
|
12
15
|
markEventSynced(id: number): Promise<void>;
|
|
13
16
|
getWorkflowUpdateEvents(syncType: string): Promise<EventRow[]>;
|
|
17
|
+
getJobRemovalEvents(syncType: string): Promise<EventRow[]>;
|
|
14
18
|
getCustodyBatch(dispatchID: string): Promise<EventRow[]>;
|
|
15
19
|
getObjectiveDetails(objectiveRef: string): Promise<EventRow[]>;
|
|
16
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventRow } from '../DBConfig';
|
|
1
|
+
import type { BulkEvent, EventRow } from '../DBConfig';
|
|
2
2
|
export default class EventsSyncManager {
|
|
3
3
|
private syncHttpClient;
|
|
4
4
|
private static instance;
|
|
@@ -13,6 +13,9 @@ export default class EventsSyncManager {
|
|
|
13
13
|
initSyncManager(baseURL: string, retryCount: number): void;
|
|
14
14
|
static getInstance(): EventsSyncManager;
|
|
15
15
|
startSync(): Promise<void>;
|
|
16
|
+
private WorkflowUpdateEvent;
|
|
17
|
+
private CustodyBatchEvent;
|
|
18
|
+
private JobRemovalEvent;
|
|
16
19
|
startCustodyScans(custodyScans: EventRow[]): Promise<void>;
|
|
17
20
|
private updateEventError;
|
|
18
21
|
/**
|
|
@@ -22,6 +25,7 @@ export default class EventsSyncManager {
|
|
|
22
25
|
isSyncPending(): Promise<boolean>;
|
|
23
26
|
private markEventSynced;
|
|
24
27
|
insertEvent(sequence: number, payload: string, dspID: string, syncType: string, objectiveRef: string, config?: string): Promise<void>;
|
|
28
|
+
insertBulkEvent(_bulkData: BulkEvent[]): Promise<void>;
|
|
25
29
|
private checkForInitialization;
|
|
26
30
|
getObjectiveSummary(objectiveRef: string): Promise<any>;
|
|
27
31
|
private syncEventToServer;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import HttpClient from '../../../network/client';
|
|
2
2
|
import type { EventRow } from '../DBConfig';
|
|
3
|
-
import
|
|
3
|
+
import NetworkClient from '../../../network/NetworkClient';
|
|
4
|
+
import { SyncType } from '@os1-platform/mobile-execution-lib';
|
|
4
5
|
export default class SyncHttpClient extends HttpClient {
|
|
6
|
+
protected readonly networkInstance: NetworkClient;
|
|
5
7
|
constructor(baseURL: string);
|
|
6
8
|
syncEvent(eventRow: EventRow[], syncType: SyncType): Promise<boolean | null>;
|
|
7
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { state } from 'mobile-execution-lib';
|
|
1
|
+
import type { state } from '@os1-platform/mobile-execution-lib';
|
|
2
2
|
export interface BaseETProps {
|
|
3
3
|
showProgress: (loading: boolean) => void;
|
|
4
4
|
}
|
|
@@ -9,9 +9,64 @@ export declare enum SdkSyncType {
|
|
|
9
9
|
export interface JobObjectiveType {
|
|
10
10
|
objectiveId: string;
|
|
11
11
|
jobId: string;
|
|
12
|
+
groupId?: string;
|
|
13
|
+
additionalData?: any;
|
|
12
14
|
}
|
|
13
15
|
export interface stateWithObjRef {
|
|
14
16
|
nextState: state;
|
|
15
17
|
objRef: string;
|
|
16
18
|
jobId: string;
|
|
19
|
+
groupId?: string;
|
|
20
|
+
additionalData?: any;
|
|
21
|
+
}
|
|
22
|
+
export interface endEvent {
|
|
23
|
+
taskId: string;
|
|
24
|
+
nextTaskId: string;
|
|
25
|
+
timestamp: number;
|
|
26
|
+
groupId?: string;
|
|
27
|
+
etData: {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
workflowInstanceId: string;
|
|
30
|
+
additionalData?: any;
|
|
31
|
+
success?: boolean;
|
|
32
|
+
eventCode?: string;
|
|
33
|
+
reasonCode?: string;
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
meta?: any;
|
|
38
|
+
}
|
|
39
|
+
export interface startEvent {
|
|
40
|
+
timestamp: number;
|
|
41
|
+
taskId: string;
|
|
42
|
+
groupId?: string;
|
|
43
|
+
etData: {
|
|
44
|
+
[key: string]: {
|
|
45
|
+
workflowInstanceId: string;
|
|
46
|
+
additionalData?: any;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface stateParams {
|
|
52
|
+
next_states: stateWithObjRef[];
|
|
53
|
+
pending_states?: stateWithObjRef[];
|
|
54
|
+
rootMetaData?: {
|
|
55
|
+
meta: any;
|
|
56
|
+
};
|
|
57
|
+
completed_states?: stateWithObjRef[];
|
|
58
|
+
pending_states_output?: any;
|
|
59
|
+
}
|
|
60
|
+
export interface QueryObjectiveState {
|
|
61
|
+
objectiveRef: string;
|
|
62
|
+
jobId: string;
|
|
63
|
+
}
|
|
64
|
+
export interface LockObjectiveState {
|
|
65
|
+
objectiveRef: string;
|
|
66
|
+
jobId: string;
|
|
67
|
+
state: state;
|
|
68
|
+
}
|
|
69
|
+
export interface LockPendingObjectiveState {
|
|
70
|
+
jobId: string;
|
|
71
|
+
_state: state;
|
|
17
72
|
}
|
|
@@ -26,7 +26,7 @@ export interface RefreshTokenPayload {
|
|
|
26
26
|
appName: string;
|
|
27
27
|
applicationSecret: string;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type LoginType = 'mobilePassword' | 'mobileOtp' | 'mPin' | 'usernamePassword' | 'clientCredential';
|
|
30
30
|
export interface Headers {
|
|
31
31
|
requestId: string;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BaseETResponse = {
|
|
2
2
|
/**
|
|
3
3
|
* Success flag for the operation performed by user
|
|
4
4
|
*/
|
|
@@ -41,6 +41,10 @@ export declare type BaseETResponse = {
|
|
|
41
41
|
* Unique identifier of user performing the action
|
|
42
42
|
*/
|
|
43
43
|
userDetails: UserData;
|
|
44
|
+
/**
|
|
45
|
+
* Check if ETs are executed in merged form
|
|
46
|
+
*/
|
|
47
|
+
isMerged?: boolean;
|
|
44
48
|
};
|
|
45
49
|
};
|
|
46
50
|
export interface UserData {
|
|
@@ -50,24 +54,39 @@ export interface UserData {
|
|
|
50
54
|
/**
|
|
51
55
|
* Title of instruction
|
|
52
56
|
*/
|
|
53
|
-
export
|
|
57
|
+
export type Title = string;
|
|
54
58
|
/**
|
|
55
59
|
* Message of instruction
|
|
56
60
|
*/
|
|
57
|
-
export
|
|
61
|
+
export type Message = string;
|
|
58
62
|
/**
|
|
59
63
|
* Can go back
|
|
60
64
|
*/
|
|
61
|
-
export
|
|
62
|
-
export
|
|
65
|
+
export type CanGoBack = boolean;
|
|
66
|
+
export type BaseETRequest = {
|
|
63
67
|
title: Title;
|
|
64
68
|
message?: Message;
|
|
65
69
|
canGoBack?: CanGoBack;
|
|
66
|
-
applicableReasons?: ApplicableReasons;
|
|
70
|
+
applicableReasons?: ApplicableReasons | NewApplicableReasons;
|
|
71
|
+
taskMeta?: {
|
|
72
|
+
[k: string]: any;
|
|
73
|
+
};
|
|
74
|
+
wfMeta?: {
|
|
75
|
+
[k: string]: any;
|
|
76
|
+
};
|
|
77
|
+
navigation?: any;
|
|
67
78
|
};
|
|
68
|
-
export
|
|
79
|
+
export type ApplicableReasons = {
|
|
69
80
|
[k: string]: string[];
|
|
70
|
-
}
|
|
81
|
+
};
|
|
82
|
+
export type NewApplicableReasons = {
|
|
83
|
+
success: {
|
|
84
|
+
[k: string]: string[];
|
|
85
|
+
};
|
|
86
|
+
failure: {
|
|
87
|
+
[k: string]: string[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
71
90
|
export interface ETSummary {
|
|
72
91
|
name: string;
|
|
73
92
|
eventCode: string;
|
|
@@ -16,7 +16,8 @@ export declare enum ExecutionTaskID {
|
|
|
16
16
|
DISPLAY = "etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44",
|
|
17
17
|
VERIFY_INPUT = "etask:6fc10a60-a144-5798-97f3-1f12e77f56e2",
|
|
18
18
|
DELIVER_CASH = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe",
|
|
19
|
-
HTTP_REQUEST_ET = "etask:e148b862-8368-5586-b29d-1eda95ffc8c4"
|
|
19
|
+
HTTP_REQUEST_ET = "etask:e148b862-8368-5586-b29d-1eda95ffc8c4",
|
|
20
|
+
VALIDATE_OTP_ET = "etask:8d5b96f3-7342-5e25-a57f-30004f53de17"
|
|
20
21
|
}
|
|
21
22
|
export declare enum ExecutionTaskName {
|
|
22
23
|
DELIVER = "Deliver",
|
|
@@ -36,7 +37,8 @@ export declare enum ExecutionTaskName {
|
|
|
36
37
|
DISPLAY = "Display",
|
|
37
38
|
VERIFY_INPUT = "Verifying Input",
|
|
38
39
|
DELIVER_CASH = "Drop Cash",
|
|
39
|
-
HTTP_REQUEST_ET = "Network Request"
|
|
40
|
+
HTTP_REQUEST_ET = "Network Request",
|
|
41
|
+
VALIDATE_OTP_ET = "Validate OTP"
|
|
40
42
|
}
|
|
41
43
|
export declare enum CustomScreens {
|
|
42
44
|
REMARK_SCREEN = "REMARKS_SCREEN"
|
|
@@ -59,7 +61,8 @@ export declare enum EntityCode {
|
|
|
59
61
|
DISPLAY = "0013",
|
|
60
62
|
VERIFY_INPUT = "0020",
|
|
61
63
|
DELIVER_CASH = "0022",
|
|
62
|
-
HTTP_REQUEST_ET = "0023"
|
|
64
|
+
HTTP_REQUEST_ET = "0023",
|
|
65
|
+
VALIDATE_OTP_ET = "0052"
|
|
63
66
|
}
|
|
64
67
|
export declare enum BaseEventCodes {
|
|
65
68
|
ENTITY_SUCCESS = "E-010",
|
|
@@ -82,5 +85,6 @@ export declare enum FinalETName {
|
|
|
82
85
|
VERIFY_LOCATION = "etask:7f3897da-3a1f-5736-b8e5-5d9f131b13cd",
|
|
83
86
|
DISPLAY = "etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44",
|
|
84
87
|
VERIFY_INPUT = "etask:6fc10a60-a144-5798-97f3-1f12e77f56e2",
|
|
85
|
-
DELIVER_CASH = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe"
|
|
88
|
+
DELIVER_CASH = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe",
|
|
89
|
+
VALIDATE_OTP_ET = "Validate OTP"
|
|
86
90
|
}
|