@os1-platform/dispatch-mobile 1.0.8 → 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 +310 -74
- package/android/.gradle/7.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0.2/gc.properties +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +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 -0
- 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/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +0 -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 +50 -43
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +10 -48
- 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 +66 -18
- 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 +6 -16
- 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 +212 -95
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -25
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +65 -29
- 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 +74 -30
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +139 -50
- 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 +2 -17
- 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 +5 -14
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -15
- 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 +11 -36
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +73 -48
- 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 +76 -29
- 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 +138 -32
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +741 -0
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +19 -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 +43 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
- 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/{scanner → scan/sub_components}/CScanner.js +9 -29
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +109 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/{scanner/returns/ReasonDropDown.js → scan/sub_components/ERDropDown.js} +72 -55
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- 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 +762 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +333 -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 +63 -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/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 +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/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 +34 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
- 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 +0 -7
- 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 +48 -40
- 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/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.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 +17 -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 +23 -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 +15 -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 +40 -35
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +328 -272
- 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 +23 -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 +23 -37
- 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/sdk/callbacksHandler.js +26 -0
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +26 -46
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +48 -9
- 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/constants.js +17 -0
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
- 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 +11 -36
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +8 -26
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +19 -58
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +414 -29
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +208 -103
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +157 -36
- 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 +4 -0
- 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 +10 -8
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +58 -25
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +67 -27
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +15 -16
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -23
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +30 -17
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +17 -13
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +17 -20
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +43 -31
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +10 -19
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +105 -17
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +16 -14
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +14 -11
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +38 -17
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +28 -29
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +41 -19
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +121 -0
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +64 -38
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +55 -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 +24 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +129 -0
- package/lib/commonjs/utils/ApiUtils.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +111 -41
- 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 +61 -43
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +59 -11
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -21
- 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/useModal.js +53 -0
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
- 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 +87 -31
- 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/@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 +50 -32
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -5
- 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 +68 -10
- 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 +6 -7
- 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 +214 -86
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -15
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +68 -15
- 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 +75 -20
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +142 -37
- 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 +2 -6
- 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 +6 -4
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -6
- 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 +11 -11
- 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 +77 -18
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +64 -11
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +72 -11
- 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 +141 -25
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +732 -0
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js +17 -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 +33 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
- 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/{scanner → scan/sub_components}/CScanner.js +9 -16
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +101 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +107 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- 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 +726 -0
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +324 -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 +53 -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 +5 -9
- 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 +0 -2
- 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 +26 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -0
- 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 +0 -2
- 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 +46 -20
- 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/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.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 +9 -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 +16 -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 +8 -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 +9 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +334 -247
- 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 +22 -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 +23 -15
- 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/sdk/callbacksHandler.js +19 -0
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +26 -26
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +41 -7
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/constants.js +6 -0
- package/lib/module/manager/syncmanager/constants.js.map +1 -0
- 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 +11 -24
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +8 -20
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +19 -41
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +415 -22
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +209 -82
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +152 -24
- 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 +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 +9 -7
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +57 -14
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +68 -15
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +17 -6
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -8
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +32 -7
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +16 -6
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +19 -9
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +45 -19
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +3 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +104 -9
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +15 -6
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +15 -5
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +37 -9
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +30 -17
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +40 -12
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +111 -0
- package/lib/module/ui/screens/ScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +64 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +45 -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 +23 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +116 -0
- package/lib/module/utils/ApiUtils.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +110 -31
- 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 +62 -14
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +63 -3
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +86 -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/useModal.js +43 -0
- package/lib/module/utils/hooks/useModal.js.map +1 -0
- 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 +86 -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/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -7
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -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/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 +8 -7
- 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/display/DisplaySchema.d.ts +5 -5
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.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/FormSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +3 -3
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
- 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/httpRequest/HttpRequestETSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +17 -11
- 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/completePayment/CompletePaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- 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/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 +16 -0
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +86 -0
- package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +94 -0
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/{scanner → scan/sub_components}/CScanner.d.ts +1 -1
- 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/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +37 -0
- 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/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 +6 -6
- 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 +9 -0
- 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 +10 -5
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +7 -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 +3 -0
- package/lib/typescript/events/EventListener.d.ts +5 -0
- package/lib/typescript/events/constants.d.ts +7 -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 +12 -9
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +38 -17
- 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 +0 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +1 -0
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +80 -4
- package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/database.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/document/models.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +15 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +4 -2
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +6 -3
- package/lib/typescript/models/DispatchModels.d.ts +59 -5
- 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 +44 -20
- package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
- package/lib/typescript/models/sdk.d.ts +12 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +2 -2
- package/lib/typescript/network/NetworkUtils.d.ts +1 -5
- package/lib/typescript/styles/SdkColors.d.ts +2 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +50 -5
- 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 +3 -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 +3 -0
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +14 -0
- package/lib/typescript/utils/ApiUtils.d.ts +61 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +10 -4
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -3
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
- package/lib/typescript/utils/storage.d.ts +32 -0
- package/package.json +26 -26
- package/tsconfig.json +9 -9
- package/file_unzip.js +0 -5
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -28
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -32
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -193
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -20
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -49
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -107
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -317
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -276
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -118
- 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/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 -158
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -9
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -38
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -86
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -287
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -80
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -253
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -93
- 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/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 -3
- 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/mobile-execution-lib-0.6.4.tgz +0 -0
|
@@ -1,41 +1,62 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IDispatchExecutor, IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
2
|
+
import { ExecutionTaskID } from '../../models/execTasks/ETConfig';
|
|
2
3
|
import type { ETSummary } from '../../models/execTasks/ETBaseModels';
|
|
3
|
-
import
|
|
4
|
+
import DispatchSdkCache from '../sdk/DispatchSdkCache';
|
|
5
|
+
import type { BaseETProps, JobObjectiveType, stateParams } 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
|
+
};
|
|
15
|
+
cache: DispatchSdkCache;
|
|
5
16
|
get stateKeys(): string[];
|
|
6
17
|
set stateKeys(value: string[]);
|
|
7
|
-
get mappedStates(): Map<string,
|
|
8
|
-
set mappedStates(value: Map<string,
|
|
18
|
+
get mappedStates(): Map<string, IDispatch.IExecutionTaskQueryResponse>;
|
|
19
|
+
set mappedStates(value: Map<string, IDispatch.IExecutionTaskQueryResponse>);
|
|
9
20
|
private static instance;
|
|
10
|
-
private dispatchExecutor;
|
|
11
21
|
private successRoute;
|
|
12
22
|
private failureRoute;
|
|
13
23
|
private _stateKeys;
|
|
14
24
|
_jobObjectives: JobObjectiveType[] | null;
|
|
15
25
|
private _mappedStates;
|
|
26
|
+
private _mappedStatesData;
|
|
16
27
|
/**
|
|
17
28
|
* Call this function when dispatch data is fetched successfully in client app
|
|
18
29
|
* @param dispatchID
|
|
19
30
|
* @param jobs
|
|
20
|
-
* @param
|
|
31
|
+
* @param dispatchWorkflows
|
|
21
32
|
* @param maxTaskReattempt
|
|
22
33
|
*/
|
|
23
|
-
initDispatchExecutor(dispatchID: string, jobs: Job[],
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
initDispatchExecutor(dispatchID: string, jobs: IDispatchExecutor.Job[], dispatchWorkflows: {
|
|
35
|
+
[id: string]: IDispatchExecutor.Workflow;
|
|
36
|
+
}, maxTaskReattempt?: number): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param mergedObjectiveId
|
|
40
|
+
* @returns IExecutionTaskQueryResponse {
|
|
41
|
+
* mergedObjectiveId: string;
|
|
42
|
+
* taskName: string;
|
|
43
|
+
* taskId: string;
|
|
44
|
+
* input: any;
|
|
45
|
+
* }
|
|
46
|
+
*/
|
|
47
|
+
queryNextET(mergedObjectiveId: Array<string>, statusFilter: IDispatchExecutor.ExecutionStatus[]): Promise<IDispatch.IExecutionTaskQueryResponse[]>;
|
|
48
|
+
private updateScanETOutputSharedPreference;
|
|
49
|
+
private updatePendingSharedPreference;
|
|
50
|
+
sendETOutput(etOutput: any, states: any, isMergedObjectiveBasedOutput?: boolean): Promise<void>;
|
|
51
|
+
private findPrefixKey;
|
|
29
52
|
static getInstance(): DispatchStateContainer;
|
|
30
|
-
fetchObjectiveState(objRef: string, jobID: string): string;
|
|
31
53
|
setSuccessRoute(route: string): void;
|
|
32
54
|
getSuccessRoute(): string | null;
|
|
33
55
|
setFailureRoute(route: string): void;
|
|
34
56
|
getFailureRoute(): string | null;
|
|
35
57
|
getObjectiveSummary(jobObjective: JobObjectiveType): Promise<ETSummary[]>;
|
|
36
|
-
navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID:
|
|
37
|
-
|
|
38
|
-
moveToNextET(baseETProps: BaseETProps, etStates: stateWithObjRef[], navigation: any, isLastTask?: boolean): Promise<void>;
|
|
58
|
+
navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID: ExecutionTaskID, baseETProps: BaseETProps, isLastTask?: boolean, isMergeObjectiveBasedOutput?: boolean): Promise<void>;
|
|
59
|
+
moveToNextET(etOutput: any, baseETProps: BaseETProps, states: stateParams, navigation: any, isLastTask?: boolean): Promise<void>;
|
|
39
60
|
private saveAndProceedToNextET;
|
|
40
|
-
saveAndProceed(baseETProps: BaseETProps, etOutput: any,
|
|
61
|
+
saveAndProceed(baseETProps: BaseETProps, etOutput: any, states: stateParams, navigation: any, isLastTask?: boolean, isMergedObjectiveBasedOutput?: boolean): Promise<void>;
|
|
41
62
|
}
|
|
@@ -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
|
+
}
|
|
File without changes
|
|
@@ -8,6 +8,7 @@ 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;
|
|
11
12
|
};
|
|
12
13
|
setObjectInCache(keyName: string, obj: any): Promise<void>;
|
|
13
14
|
getObjectFromCache(keyName: string): Promise<any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare class CallbacksHandler {
|
|
2
|
+
private _callbackToFetchPhoneNumbers;
|
|
3
|
+
init(phoneCallback: (sdsIds: string[]) => Promise<{
|
|
4
|
+
key: string;
|
|
5
|
+
value: string[];
|
|
6
|
+
}>): void;
|
|
7
|
+
getPhoneNumbers(sdsIds: string[]): Promise<{
|
|
8
|
+
key: string;
|
|
9
|
+
value: string[];
|
|
10
|
+
} | null>;
|
|
11
|
+
}
|
|
12
|
+
declare const callbackHandler: CallbacksHandler;
|
|
13
|
+
export default callbackHandler;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { SdkSyncType } from '../../models/DispatchModels';
|
|
2
|
-
import type { DocumentRow, EventRow } from './DBConfig';
|
|
2
|
+
import type { BulkEvent, DocumentRow, EventRow } from './DBConfig';
|
|
3
3
|
export default class AppSyncManager {
|
|
4
4
|
private constructor();
|
|
5
5
|
private static instance;
|
|
6
6
|
isSyncActive: boolean;
|
|
7
|
+
isForceStartEnabled: boolean;
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
* @param forceSync - true/false - if true resets the retry count key and start the sync
|
|
@@ -21,4 +22,5 @@ export default class AppSyncManager {
|
|
|
21
22
|
getAllEvents(dispatchID?: string): Promise<EventRow[]>;
|
|
22
23
|
getAllDocuments(dispatchID?: string): Promise<DocumentRow[]>;
|
|
23
24
|
startSDKSyncManager(): void;
|
|
25
|
+
pushToQueue(pushData: BulkEvent): Promise<boolean>;
|
|
24
26
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
2
|
+
export type ExecEngineSyncType = IDispatch.SyncType;
|
|
3
|
+
export declare enum DispatchSyncType {
|
|
4
|
+
DEFAULT = "DEFAULT",
|
|
5
|
+
DISPATCH_UPDATE = "DISPATCH_UPDATE"
|
|
6
|
+
}
|
|
1
7
|
export declare const DATABASE_NAME = "DISPATCH_DB";
|
|
2
8
|
export declare const EVENTS_TABLE = "EVENTS_TABLE";
|
|
3
9
|
export declare const REASONS_TABLE = "REASONS_TABLE";
|
|
10
|
+
export declare const EVENT_CODES_TABLE = "EVENT_CODES_TABLE";
|
|
4
11
|
export declare const EVENTS_COLUMNS: {
|
|
5
12
|
ID: string;
|
|
6
13
|
SEQUENCE: string;
|
|
@@ -8,9 +15,10 @@ export declare const EVENTS_COLUMNS: {
|
|
|
8
15
|
SYNCED: string;
|
|
9
16
|
CONFIG: string;
|
|
10
17
|
SYNC_TYPE: string;
|
|
11
|
-
|
|
18
|
+
META: string;
|
|
12
19
|
SYNC_ERROR: string;
|
|
13
20
|
DISPATCH_ID: string;
|
|
21
|
+
DATA_LENGTH: string;
|
|
14
22
|
};
|
|
15
23
|
export declare const DOCUMENT_TABLE = "DOCUMENTS_TABLE";
|
|
16
24
|
export declare const DOCUMENT_COLUMNS: {
|
|
@@ -30,7 +38,7 @@ export declare const DOCUMENT_COLUMNS: {
|
|
|
30
38
|
JOB_ID: string;
|
|
31
39
|
OBJECTIVE_REF: string;
|
|
32
40
|
};
|
|
33
|
-
export
|
|
41
|
+
export type DocumentRow = {
|
|
34
42
|
id: number;
|
|
35
43
|
data: string;
|
|
36
44
|
base64: boolean;
|
|
@@ -47,12 +55,12 @@ export declare type DocumentRow = {
|
|
|
47
55
|
job_id: string;
|
|
48
56
|
objective_ref: string;
|
|
49
57
|
};
|
|
50
|
-
export
|
|
58
|
+
export type EventRow = {
|
|
51
59
|
id: number;
|
|
52
60
|
payload: string;
|
|
53
61
|
synced: boolean;
|
|
54
62
|
config: string;
|
|
55
|
-
sync_type:
|
|
63
|
+
sync_type: ExecEngineSyncType | DispatchSyncType;
|
|
56
64
|
objective_ref: string;
|
|
57
65
|
sync_error: string;
|
|
58
66
|
dispatch_id: string;
|
|
@@ -75,3 +83,71 @@ export interface ReasonsRow {
|
|
|
75
83
|
reasonCode: string;
|
|
76
84
|
isSystemDefined: boolean;
|
|
77
85
|
}
|
|
86
|
+
export interface EventsRow {
|
|
87
|
+
description: string;
|
|
88
|
+
successEvent: boolean;
|
|
89
|
+
eventCode: string;
|
|
90
|
+
}
|
|
91
|
+
export declare const EventColumns: {
|
|
92
|
+
CODE: string;
|
|
93
|
+
DESCRIPTION: string;
|
|
94
|
+
SUCCESS_EVENT: string;
|
|
95
|
+
};
|
|
96
|
+
export interface BulkEvent {
|
|
97
|
+
syncType: ExecEngineSyncType | DispatchSyncType;
|
|
98
|
+
dispatchId: string;
|
|
99
|
+
data: any;
|
|
100
|
+
meta?: any;
|
|
101
|
+
}
|
|
102
|
+
export interface WFUpdateBulkEventData {
|
|
103
|
+
[customETName: string]: EventETData;
|
|
104
|
+
}
|
|
105
|
+
export interface EventETData {
|
|
106
|
+
output: any;
|
|
107
|
+
}
|
|
108
|
+
export interface WIUpdateOutputPayload {
|
|
109
|
+
dispatchId: string;
|
|
110
|
+
updatedBy: any;
|
|
111
|
+
workflows: Array<WorkflowUpdatePayload>;
|
|
112
|
+
}
|
|
113
|
+
export interface WorkflowUpdatePayload {
|
|
114
|
+
status: string;
|
|
115
|
+
timestamp: number;
|
|
116
|
+
attemptId: 1;
|
|
117
|
+
code: string;
|
|
118
|
+
data: any;
|
|
119
|
+
meta?: any;
|
|
120
|
+
__unmerged?: Array<UnmergedData>;
|
|
121
|
+
}
|
|
122
|
+
export interface UnmergedData {
|
|
123
|
+
workflowInstanceId: string;
|
|
124
|
+
jobId: string;
|
|
125
|
+
data?: any;
|
|
126
|
+
}
|
|
127
|
+
export interface CustodyData {
|
|
128
|
+
dispatchId: string;
|
|
129
|
+
jobId: string;
|
|
130
|
+
custodyEntity: string;
|
|
131
|
+
custodyLocationId: string;
|
|
132
|
+
custodyEntityAmount: number;
|
|
133
|
+
custodyEntityId: string;
|
|
134
|
+
}
|
|
135
|
+
export declare const WORKFLOW_INSTANCE_TABLE = "WF_INSTANCE_TABLE";
|
|
136
|
+
export declare const WORKFLOW_INSTANCE_COLUMNS: {
|
|
137
|
+
WORKFLOW_INSTANCE_ID: string;
|
|
138
|
+
MERGED_WORKFLOW_INSTANCE_ID: string;
|
|
139
|
+
JOB_ID: string;
|
|
140
|
+
SCANNABLE_ID: string;
|
|
141
|
+
INITIAL_MERGED_WORKFLOW_INSTANCE_ID: string;
|
|
142
|
+
STATUS: string;
|
|
143
|
+
JOB_WF_ID: string;
|
|
144
|
+
DISPLAY_DATA: string;
|
|
145
|
+
WORKFLOW_ID: string;
|
|
146
|
+
};
|
|
147
|
+
export interface SyncManagerPayload {
|
|
148
|
+
data: {
|
|
149
|
+
action: ExecEngineSyncType | DispatchSyncType;
|
|
150
|
+
payload: any;
|
|
151
|
+
};
|
|
152
|
+
length: number;
|
|
153
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const BULK_DATA_LIMIT = 1000;
|
|
2
|
+
export declare const LAST_SYNCED_EVENT_ID = "lastSyncedEventId";
|
|
3
|
+
export declare const SHARED_PREFERENCE_DISPATCH_ID = "sharedPreferenceDispatchId";
|
|
4
|
+
export declare const SHARED_PREFERENCE_SCAN_OUTPUT = "scanETMappedOutput";
|
|
5
|
+
export declare const SCAN_MERGED_OBJ_ID_OUTPUT = "scanMergedObjectiveIDs";
|
|
@@ -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>;
|
|
@@ -5,7 +5,7 @@ export default class DocumentManager {
|
|
|
5
5
|
private constructor();
|
|
6
6
|
static getInstance(): Promise<DocumentManager>;
|
|
7
7
|
init(): Promise<void>;
|
|
8
|
-
insertDocument(fmsFolderID: string | null, desc: string, dspID: string,
|
|
8
|
+
insertDocument(fmsFolderID: string | null, desc: string, dspID: string, base64: boolean, fileName: string, fileType: string, data?: string | null, filePath?: string | null, priority?: number): Promise<SQLResultSet>;
|
|
9
9
|
getAllDocuments(dispatchID?: string): Promise<DocumentRow[]>;
|
|
10
10
|
getAllUnsyncedDocs(): Promise<DocumentRow[]>;
|
|
11
11
|
deleteAllSyncedDocuments(dispatchID: string): Promise<SQLResultSet>;
|
|
@@ -14,7 +14,7 @@ export default class DocumentSyncManager {
|
|
|
14
14
|
static getInstance(): DocumentSyncManager;
|
|
15
15
|
startDocumentSync(): Promise<void>;
|
|
16
16
|
isSyncPending(): Promise<boolean>;
|
|
17
|
-
insertDocument(fmsFolderID: string | null, data: string | null, base64: boolean, desc: string, dspID: string,
|
|
17
|
+
insertDocument(fmsFolderID: string | null, data: string | null, base64: boolean, desc: string, dspID: string, filePath: string | null, fileType: string, fileName: string, priority?: number): Promise<SQLResultSet>;
|
|
18
18
|
forceDocumentSync(): Promise<void>;
|
|
19
19
|
private updateDocument;
|
|
20
20
|
private updateDocError;
|
|
@@ -1,16 +1,29 @@
|
|
|
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
|
+
private getWFIPayload;
|
|
11
|
+
private getCustodyPayload;
|
|
12
|
+
private getJobRemovalPayload;
|
|
13
|
+
private getDispatchUpdatePayload;
|
|
14
|
+
private _modifyEventData;
|
|
15
|
+
private splitData;
|
|
16
|
+
insertQueueEvent(_eventData: BulkEvent): Promise<void>;
|
|
17
|
+
insertBulkEvent(_eventData: BulkEvent): Promise<void>;
|
|
8
18
|
getAllEvents(dispatchID?: string): Promise<EventRow[]>;
|
|
9
19
|
getAllUnsyncedEvents(): Promise<EventRow[]>;
|
|
10
|
-
deleteAllEvents(): Promise<
|
|
20
|
+
deleteAllEvents(): Promise<boolean>;
|
|
11
21
|
updateError(id: number, syncError: string): Promise<void>;
|
|
12
22
|
markEventSynced(id: number): Promise<void>;
|
|
13
23
|
getWorkflowUpdateEvents(syncType: string): Promise<EventRow[]>;
|
|
24
|
+
getJobRemovalEvents(syncType: string): Promise<EventRow[]>;
|
|
14
25
|
getCustodyBatch(dispatchID: string): Promise<EventRow[]>;
|
|
15
26
|
getObjectiveDetails(objectiveRef: string): Promise<EventRow[]>;
|
|
27
|
+
getRowToSync(id: string, dispatchId: string): Promise<EventRow[]>;
|
|
28
|
+
getBulkRowsToSync(id: string, dispatchId: string): Promise<EventRow[]>;
|
|
16
29
|
}
|
|
@@ -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,7 +13,6 @@ export default class EventsSyncManager {
|
|
|
13
13
|
initSyncManager(baseURL: string, retryCount: number): void;
|
|
14
14
|
static getInstance(): EventsSyncManager;
|
|
15
15
|
startSync(): Promise<void>;
|
|
16
|
-
startCustodyScans(custodyScans: EventRow[]): Promise<void>;
|
|
17
16
|
private updateEventError;
|
|
18
17
|
/**
|
|
19
18
|
* force sync events who retry count >3 This function can be called from app UI to sync the events forcefully
|
|
@@ -22,9 +21,12 @@ export default class EventsSyncManager {
|
|
|
22
21
|
isSyncPending(): Promise<boolean>;
|
|
23
22
|
private markEventSynced;
|
|
24
23
|
insertEvent(sequence: number, payload: string, dspID: string, syncType: string, objectiveRef: string, config?: string): Promise<void>;
|
|
24
|
+
insertBulkEvent(_bulkData: BulkEvent): Promise<void>;
|
|
25
|
+
insertQueueEvent(_pushData: BulkEvent): Promise<void>;
|
|
25
26
|
private checkForInitialization;
|
|
26
27
|
getObjectiveSummary(objectiveRef: string): Promise<any>;
|
|
27
28
|
private syncEventToServer;
|
|
29
|
+
private syncBulkEventToServer;
|
|
28
30
|
getAllEvents(dspID?: string): Promise<EventRow[]>;
|
|
29
31
|
clearEventsDB(): Promise<void>;
|
|
30
32
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import HttpClient from '../../../network/client';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { DispatchSyncType, EventRow } from '../DBConfig';
|
|
3
|
+
import NetworkClient from '../../../network/NetworkClient';
|
|
4
|
+
import { ExecEngineSyncType } from '../DBConfig';
|
|
4
5
|
export default class SyncHttpClient extends HttpClient {
|
|
6
|
+
protected readonly networkInstance: NetworkClient;
|
|
5
7
|
constructor(baseURL: string);
|
|
6
|
-
syncEvent(eventRow: EventRow[], syncType:
|
|
8
|
+
syncEvent(eventRow: EventRow[], syncType: ExecEngineSyncType | DispatchSyncType): Promise<boolean | null>;
|
|
9
|
+
syncBulkEvent(eventRow: EventRow[]): Promise<boolean | null>;
|
|
7
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IDispatch, IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
2
2
|
export interface BaseETProps {
|
|
3
3
|
showProgress: (loading: boolean) => void;
|
|
4
4
|
}
|
|
@@ -9,9 +9,63 @@ 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
|
-
export interface
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
export interface endEvent {
|
|
16
|
+
taskId: string;
|
|
17
|
+
nextTaskId: string;
|
|
18
|
+
timestamp: number;
|
|
19
|
+
customData?: any;
|
|
20
|
+
etData: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
meta?: any;
|
|
24
|
+
}
|
|
25
|
+
export interface onScanEvent {
|
|
26
|
+
taskId: string;
|
|
27
|
+
timestamp: number;
|
|
28
|
+
customData?: any;
|
|
29
|
+
etData: {
|
|
30
|
+
eventCode: string;
|
|
31
|
+
reasonCode: string;
|
|
32
|
+
success: boolean;
|
|
33
|
+
endTime: number;
|
|
34
|
+
scannedData: {
|
|
35
|
+
jobId: string;
|
|
36
|
+
scanValue: string;
|
|
37
|
+
shipmentFlow: string;
|
|
38
|
+
groupId: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
meta?: any;
|
|
42
|
+
}
|
|
43
|
+
export interface onScanRemoveEvent {
|
|
44
|
+
taskId: string;
|
|
45
|
+
timestamp: number;
|
|
46
|
+
customData?: any;
|
|
47
|
+
etData: {
|
|
48
|
+
scannedData: {
|
|
49
|
+
scanValue: string;
|
|
50
|
+
}[];
|
|
51
|
+
};
|
|
52
|
+
meta?: any;
|
|
53
|
+
}
|
|
54
|
+
export interface startEvent {
|
|
55
|
+
timestamp: number;
|
|
56
|
+
taskId: string;
|
|
57
|
+
customData?: any;
|
|
58
|
+
etData: {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export interface stateParams {
|
|
63
|
+
next_states: IDispatch.IExecutionTaskQueryResponse;
|
|
64
|
+
rootMetaData: {
|
|
65
|
+
meta: any;
|
|
66
|
+
customEventsData?: any;
|
|
67
|
+
statusFilter: IDispatchExecutor.ExecutionStatus[];
|
|
68
|
+
prefixedMergedObjectiveId: string;
|
|
69
|
+
};
|
|
70
|
+
has_multiple_ets?: boolean;
|
|
17
71
|
}
|
|
@@ -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,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ExecutionTaskID } from './ETConfig';
|
|
2
|
+
export type BaseETResponse = {
|
|
3
|
+
id: ExecutionTaskID;
|
|
4
|
+
mergedObjectiveIds: Array<string>;
|
|
2
5
|
/**
|
|
3
6
|
* Success flag for the operation performed by user
|
|
4
7
|
*/
|
|
@@ -19,24 +22,18 @@ export declare type BaseETResponse = {
|
|
|
19
22
|
/**
|
|
20
23
|
* Epoch timestamp for the start of task
|
|
21
24
|
*/
|
|
22
|
-
startTime?: number;
|
|
23
25
|
/**
|
|
24
26
|
* Epoch timestamp for the end of task
|
|
25
27
|
*/
|
|
26
|
-
endTime?: number;
|
|
27
28
|
/**
|
|
28
29
|
* Location at start of task
|
|
29
30
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
* Longitude
|
|
37
|
-
*/
|
|
38
|
-
longitude?: string;
|
|
39
|
-
};
|
|
31
|
+
/**
|
|
32
|
+
* Latitude
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* Longitude
|
|
36
|
+
*/
|
|
40
37
|
/**
|
|
41
38
|
* Unique identifier of user performing the action
|
|
42
39
|
*/
|
|
@@ -50,24 +47,45 @@ export interface UserData {
|
|
|
50
47
|
/**
|
|
51
48
|
* Title of instruction
|
|
52
49
|
*/
|
|
53
|
-
export
|
|
50
|
+
export type Title = string;
|
|
54
51
|
/**
|
|
55
52
|
* Message of instruction
|
|
56
53
|
*/
|
|
57
|
-
export
|
|
54
|
+
export type Message = string;
|
|
58
55
|
/**
|
|
59
56
|
* Can go back
|
|
60
57
|
*/
|
|
61
|
-
export
|
|
62
|
-
export
|
|
58
|
+
export type CanGoBack = boolean;
|
|
59
|
+
export type BaseETRequest = {
|
|
63
60
|
title: Title;
|
|
64
61
|
message?: Message;
|
|
65
62
|
canGoBack?: CanGoBack;
|
|
66
|
-
applicableReasons?: ApplicableReasons;
|
|
63
|
+
applicableReasons?: ApplicableReasons | NewApplicableReasons;
|
|
64
|
+
taskMeta?: {
|
|
65
|
+
[k: string]: any;
|
|
66
|
+
};
|
|
67
|
+
wfMeta?: {
|
|
68
|
+
[k: string]: any;
|
|
69
|
+
};
|
|
70
|
+
navigation?: any;
|
|
71
|
+
route?: any;
|
|
72
|
+
taskName: string;
|
|
73
|
+
mergedObjectiveId: Array<string>;
|
|
67
74
|
};
|
|
68
|
-
export
|
|
75
|
+
export type ApplicableReasons = {
|
|
69
76
|
[k: string]: string[];
|
|
70
|
-
}
|
|
77
|
+
};
|
|
78
|
+
export type NewApplicableReasons = {
|
|
79
|
+
success: {
|
|
80
|
+
[k: string]: string[];
|
|
81
|
+
};
|
|
82
|
+
failure: {
|
|
83
|
+
[k: string]: string[];
|
|
84
|
+
};
|
|
85
|
+
goBack?: {
|
|
86
|
+
[k: string]: string[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
71
89
|
export interface ETSummary {
|
|
72
90
|
name: string;
|
|
73
91
|
eventCode: string;
|
|
@@ -79,3 +97,9 @@ export interface CompleteSummary {
|
|
|
79
97
|
objectiveRef: string;
|
|
80
98
|
jobObjectiveSummary: ETSummary[];
|
|
81
99
|
}
|
|
100
|
+
export interface ObjectiveSummary {
|
|
101
|
+
entityCode: string;
|
|
102
|
+
eventCode: string;
|
|
103
|
+
reasonCode: string;
|
|
104
|
+
reasonCodeDesc?: string;
|
|
105
|
+
}
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import type { EventCodes } from './ReasonCodes';
|
|
1
2
|
export interface DispatchSDKConfig {
|
|
2
3
|
tenantID: string;
|
|
3
4
|
userID: string;
|
|
4
5
|
userName: string;
|
|
5
6
|
tenantBaseURL: string;
|
|
7
|
+
headers?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
6
10
|
enableLogging?: boolean;
|
|
7
11
|
syncRetryCount?: number;
|
|
8
12
|
accessToken: string;
|
|
@@ -16,6 +20,14 @@ export interface DispatchSDKConfig {
|
|
|
16
20
|
description: string;
|
|
17
21
|
interval: number;
|
|
18
22
|
};
|
|
23
|
+
eventMapping?: EventCodes[];
|
|
24
|
+
debugLevelLog?: Boolean;
|
|
25
|
+
callbacks?: {
|
|
26
|
+
fetchPhoneNumbersCallback?: (sdsIds: string[]) => Promise<{
|
|
27
|
+
key: string;
|
|
28
|
+
value: string[];
|
|
29
|
+
}>;
|
|
30
|
+
};
|
|
19
31
|
}
|
|
20
32
|
export declare enum ENVIRONMENT {
|
|
21
33
|
DEV = "dev",
|