@os1-platform/dispatch-mobile 3.1.9 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/android/.gradle/8.13/checksums/checksums.lock +0 -0
- package/android/.gradle/8.13/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.13/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.13/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{8.10.2 → 8.13}/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.13/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.idea/caches/deviceStreaming.xml +218 -12
- package/android/build.gradle +14 -15
- package/android/gradle.properties +9 -4
- package/android/src/main/AndroidManifest.xml +4 -1
- package/android/src/main/java/com/dispatchsdk/location/LocationModule.kt +3 -3
- package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +2 -3
- package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +27 -11
- package/babel.config.js +1 -1
- package/dispatch-mobile.podspec +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +1 -2
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +4 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +1 -2
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +4 -5
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +5 -6
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +3 -4
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +5 -9
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +8 -9
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +24 -25
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +1 -2
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +5 -6
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -2
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +6 -7
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -2
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +5 -6
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +13 -35
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +4 -5
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +1 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +5 -6
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +1 -2
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +5 -6
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +8 -9
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +17 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +5 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +1 -2
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +6 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +13 -15
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js +5 -7
- package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js +5 -6
- package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js +8 -11
- package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -12
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +1 -2
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +3 -4
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +2 -2
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +4 -3
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -15
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +2 -3
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +1 -2
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/components/widgets/Timer.js +1 -2
- package/lib/commonjs/components/widgets/Timer.js.map +1 -1
- package/lib/commonjs/database/DBManager.js +112 -0
- package/lib/commonjs/database/DBManager.js.map +1 -0
- package/lib/commonjs/database/dbUpdate.json +6 -0
- package/lib/commonjs/index.js +1 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +1 -2
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +8 -9
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +5 -6
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +13 -10
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +0 -4
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -3
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +1 -2
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +6 -2
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +118 -47
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +1 -2
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +17 -22
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +86 -77
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +25 -28
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +1 -2
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +1 -2
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +1 -0
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +2 -2
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +1 -2
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +1 -2
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +1 -2
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js +1 -2
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +1 -2
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +1 -2
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +1 -2
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +1 -2
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +1 -2
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +1 -2
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +1 -2
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +1 -2
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +1 -2
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +1 -2
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +1 -2
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +1 -2
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +1 -2
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +1 -2
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/utils/Constants.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +6 -5
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +3 -2
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +1 -2
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +1 -2
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +1 -2
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
- package/lib/commonjs/utils/storage.js +1 -2
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/module/analytics/sentry/SentrySdkConstants.js +4 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +3 -3
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +2 -2
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +3 -6
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +6 -6
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +21 -21
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +3 -3
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +4 -4
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +3 -3
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +11 -32
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -2
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +4 -4
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +3 -3
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +5 -5
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js +16 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +5 -5
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +2 -2
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +3 -3
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/scan/utils.js +13 -14
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js +3 -4
- package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/OTPView.js +3 -3
- package/lib/module/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js +7 -9
- package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -10
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +1 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +2 -1
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +6 -8
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +1 -1
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/Timer.js.map +1 -1
- package/lib/module/database/DBManager.js +104 -0
- package/lib/module/database/DBManager.js.map +1 -0
- package/lib/module/database/dbUpdate.json +6 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +7 -7
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +4 -4
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +13 -8
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +0 -4
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +7 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +0 -2
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +5 -1
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/database.js +117 -43
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +16 -20
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +85 -75
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +20 -22
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +1 -0
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +2 -2
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/utils/Constants.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +5 -3
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +2 -0
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/typescript/babel.config.d.ts +1 -0
- package/lib/typescript/jest.config.d.ts +7 -0
- package/lib/typescript/jest.setup.d.ts +1 -0
- package/lib/typescript/scripts/bootstrap.d.ts +1 -0
- package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/{components → src/components}/executiontasks/scan/interfaces.d.ts +15 -0
- package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPSchema.d.ts +1 -1
- package/lib/typescript/{components → src/components}/widgets/CancelOrderDialog.d.ts +1 -1
- package/lib/typescript/{components → src/components}/widgets/SnackBarCustom.d.ts +3 -2
- package/lib/typescript/src/components/widgets/Timer.d.ts +6 -0
- package/lib/typescript/src/database/DBManager.d.ts +1 -0
- package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeRepo.d.ts +1 -1
- package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeRepo.d.ts +5 -3
- package/lib/typescript/{manager → src/manager}/syncmanager/DBConfig.d.ts +5 -1
- package/lib/typescript/src/manager/syncmanager/database.d.ts +31 -0
- package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentManager.d.ts +2 -3
- package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentSyncManager.d.ts +1 -2
- package/lib/typescript/{network → src/network}/GraphQLClient.d.ts +5 -5
- package/lib/typescript/{network → src/network}/NetworkClient.d.ts +3 -3
- package/lib/typescript/{network → src/network}/client.d.ts +3 -3
- package/lib/typescript/{resources → src/resources}/Login.d.ts +7 -7
- package/lib/typescript/{resources → src/resources}/network.d.ts +1 -1
- package/lib/typescript/{utils → src/utils}/ApiUtils.d.ts +2 -2
- package/lib/typescript/{utils → src/utils}/Constants.d.ts +4 -0
- package/package.json +104 -127
- package/src/components/executiontasks/cancellation/CancelET.tsx +1 -1
- package/src/components/executiontasks/captureInput/CaptureText.tsx +6 -6
- package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +2 -3
- package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +3 -7
- package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +3 -4
- package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +7 -8
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +3 -4
- package/src/components/executiontasks/doodle/SignatureET.tsx +5 -5
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +3 -4
- package/src/components/executiontasks/forms/FormGenerator.tsx +38 -55
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +2 -2
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +5 -7
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +3 -4
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +3 -4
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +3 -4
- package/src/components/executiontasks/pickup/PickupET.tsx +3 -9
- package/src/components/executiontasks/pickup/SLPickupET.tsx +3 -4
- package/src/components/executiontasks/scan/ScanET.tsx +5 -6
- package/src/components/executiontasks/scan/interfaces.ts +16 -0
- package/src/components/executiontasks/scan/sub_components/CScanner.tsx +7 -6
- package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +2 -2
- package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +0 -1
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +3 -3
- package/src/components/executiontasks/scan/utils.ts +13 -13
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +5 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +1 -1
- package/src/components/executiontasks/validateOTP/components/ContactListView.tsx +3 -11
- package/src/components/executiontasks/validateOTP/components/OTPView.tsx +3 -4
- package/src/components/executiontasks/validateOTP/components/VerificationComplete.tsx +7 -7
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +9 -17
- package/src/components/widgets/CancelOrderDialog.tsx +2 -2
- package/src/components/widgets/Card.tsx +1 -1
- package/src/components/widgets/SearchBar.tsx +2 -1
- package/src/components/widgets/SnackBarCustom.tsx +8 -10
- package/src/components/widgets/SplitTextInput.tsx +1 -1
- package/src/components/widgets/Timer.tsx +0 -1
- package/src/database/DBManager.ts +118 -0
- package/src/database/dbUpdate.json +6 -0
- package/src/manager/dispatch/DispatchStateContainer.tsx +5 -25
- package/src/manager/dispatchCodes/EventCodeRepo.ts +8 -12
- package/src/manager/dispatchCodes/ReasonCodeContainer.ts +5 -5
- package/src/manager/dispatchCodes/ReasonCodeRepo.ts +17 -15
- package/src/manager/location/LocationManager.ts +1 -8
- package/src/manager/sdk/DispatchSDKManager.ts +12 -4
- package/src/manager/sdk/callbacksHandler.ts +3 -8
- package/src/manager/syncmanager/DBConfig.ts +6 -1
- package/src/manager/syncmanager/database.ts +130 -71
- package/src/manager/syncmanager/document/DocumentManager.ts +19 -24
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +95 -82
- package/src/manager/syncmanager/events/ETEventsManager.ts +30 -35
- package/src/manager/syncmanager/events/EventsSyncManager.ts +1 -1
- package/src/models/sdk.ts +2 -6
- package/src/native/signature/SignatureCapture.tsx +4 -3
- package/src/network/client.ts +2 -2
- package/src/ui/screens/ValidateOTPScreen.tsx +2 -4
- package/src/utils/Constants.ts +6 -1
- package/src/utils/Logger.ts +2 -1
- package/src/utils/SdkUtils.ts +6 -7
- package/src/utils/SyncManagerUtils.ts +1 -0
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +2 -3
- package/android/.gradle/8.10.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.10.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.10.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.10.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.10.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.10.2/gc.properties +0 -0
- package/lib/typescript/components/widgets/Timer.d.ts +0 -7
- package/lib/typescript/manager/syncmanager/database.d.ts +0 -7
- /package/android/.gradle/{8.10.2 → 8.13}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{8.10.2 → 8.13}/fileHashes/resourceHashesCache.bin +0 -0
- /package/android/.gradle/{8.10.2/dependencies-accessors → 8.13}/gc.properties +0 -0
- /package/lib/typescript/{analytics → src/analytics}/firebase/FirebaseLogging.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsSingleton.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsUtils.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryModels.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentrySdkConstants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/dispatch/DispatchExecNavigator.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/CompletedWFSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/ExecutionTasksIndex.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancelET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancellationSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureInputSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureText.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CompletePayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CustomContactsModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/InitPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/ProcessPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverETInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/SLDeliverET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/display/DisplayModalET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/display/DisplaySchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/SLDropCash.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/FormGenerator.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/FormSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DateTimeWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DropdownWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/TimeRangeSelector.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestETSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/ImageCapture.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickpSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickupET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/SLPickupET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/constants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/modalConstant.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/CScanner.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/DropDownUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/ERDropDown.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/SummaryPage.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOtpStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/ContactListView.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/OTPView.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/VerificationComplete.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/constants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ContactCard.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/OTPInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ResendOTPButton.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyInput/VerifyInputSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/GeofenceUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocationET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/utils/Scale.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/utils/index.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/AlertDisplay.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/Card.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ConfirmCancelModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/GoBackModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/IconButton.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ModalWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ProgressDialog.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/SearchBar.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/SplitTextInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/TabsComponent.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/Toaster.d.ts +0 -0
- /package/lib/typescript/{config → src/config}/DispatchSDKConfig.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/apiConstants.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/constants.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/statuscode.d.ts +0 -0
- /package/lib/typescript/{errors → src/errors}/BaseError.d.ts +0 -0
- /package/lib/typescript/{errors → src/errors}/ErrorCodes.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/EventDispatcher.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/EventListener.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/constants.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/index.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/interface.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/CircleMark.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/FailedIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/FailureCloseIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/ScanIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/SuccessCompleteIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/file.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/index.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/interface.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/typescript/{locale → src/locale}/Str.d.ts +0 -0
- /package/lib/typescript/{locale → src/locale}/i18n.d.ts +0 -0
- /package/lib/typescript/{locale → src/locale}/util.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatch/DispatchStateContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/jobRemoval/JobRemovalManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/location/LocationManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/DispatchSDKManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/DispatchSdkCache.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/callbacksHandler.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/AppSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/NativeSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/constants.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentHttpClient.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/document/models.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/ETEventsManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/SyncHttpClient.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/DispatchModels.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/ReasonCodes.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/auth.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execTasks/ETBaseModels.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execTasks/ETConfig.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execution.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/fcm.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/sdk.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/LocationModule.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/PermissionModule.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/signature/SignatureCapture.d.ts +0 -0
- /package/lib/typescript/{network → src/network}/NetworkUtils.d.ts +0 -0
- /package/lib/typescript/{network → src/network}/Queries.d.ts +0 -0
- /package/lib/typescript/{res → src/res}/strings.d.ts +0 -0
- /package/lib/typescript/{styles → src/styles}/SdkColors.d.ts +0 -0
- /package/lib/typescript/{styles → src/styles}/executionTasks/CommonStyles.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CancellationScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CaptureInputScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CollectPaymentScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CompleteObjectiveScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DeliverScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DisplayScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DoodleScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DropCashScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ETScreensIndex.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/FormsScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/GeofenceScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/HttpRequestScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ImageCaptureScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/PaymentScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/PickupScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ScanScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/StartWorkFlowScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ValidateOTPScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/WithBaseDispatchScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/uiConfig/RouteParams.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/Enums.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/ExecTaskUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/Logger.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/NetworkUtil.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/SdkUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/SyncManagerUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/context/paymentContext.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/context/valdiateOTPContext.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/fcm/FCM.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/fcm/FcmUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/helper.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/hooks/useModal.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/hooks/useTimer.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/loginHelper.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/storage.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/utils.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EventsSyncManager","IDispatch","SyncType","Logger","LOG_TYPE","DispatchSdkCache","DocumentSyncManager","flattenObject","isEmptyOrBlank","BaseError","ErrorCodes","GraphQLClient","AppSyncManager","Storage","POD_DOC","DocumentManager","keys","KEYS","cache","getInstance","TAG","pushEventForSync","syncType","dspID","data","config","sequence","meta","insertEvent","jobId","objectiveReference","JSON","stringify","startSDKSyncManager","error","logEvent","errorMessage","message","SDK_ERROR","pushBulkEventForSync","pushData","insertBulkEvent","clearCache","prevDspID","getKeyFromCache","DISPATCH_ID","clearEventsDB","then","catch","clearShared","deleteItem","FMS_FOLDER","docManager","truncateDocumentTable","SDK_WARNING","insertDocumentInDB","fileName","fmsFolderName","base64Image","imageDesc","filePath","dateTime","lat","lng","accuracy","geoTimeStamp","geoTimeStampStr","console","log","processedFilePath","response","insertDocument","insertId","extraParameters","insertPODDocEvent","undefined","createFmsFolder","dispatchID","folderName","Date","toISOString","slice","split","join","fmsFolder","_response$data","createFolder","id","SDK_INFO","setKeyInCache","FMS_FOLDER_CREATION_ERROR","_error$graphQLErrors$","graphQLErrors","length","code","FMS_GRAPHQL_API_ERROR"],"sources":["SyncManagerUtils.ts"],"sourcesContent":["import EventsSyncManager from '../manager/syncmanager/events/EventsSyncManager';\nimport { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';\nconst SyncType = IDispatch.SyncType;\nimport Logger, { LOG_TYPE } from './Logger';\nimport DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport DocumentSyncManager from '../manager/syncmanager/document/DocumentSyncManager';\nimport { flattenObject, isEmptyOrBlank } from './utils';\nimport { BaseError } from '../errors/BaseError';\nimport ErrorCodes from '../errors/ErrorCodes';\nimport GraphQLClient from '../network/GraphQLClient';\nimport AppSyncManager from '../manager/syncmanager/AppSyncManager';\nimport type {\n BulkEvent,\n ExecEngineSyncType,\n} from '../manager/syncmanager/DBConfig';\nimport Storage from './storage';\nimport { POD_DOC } from '../manager/syncmanager/constants';\nimport LocationManager from '../manager/location/LocationManager';\nimport DocumentManager from '../manager/syncmanager/document/DocumentManager';\n\nconst keys = DispatchSdkCache.KEYS;\nconst cache = DispatchSdkCache.getInstance();\n\nconst TAG = 'SaveEventDB';\n\nexport async function pushEventForSync(\n syncType: ExecEngineSyncType,\n dspID: string,\n data: string,\n config: any,\n sequence: number,\n meta?: any\n): Promise<boolean> {\n try {\n await EventsSyncManager.getInstance().insertEvent(\n sequence,\n data,\n dspID,\n syncType,\n meta ? meta.jobId + meta.objectiveReference : 'NO_REF_FOUND',\n JSON.stringify(config)\n );\n\n /* Logger.getInstance().logEvent(\n TAG,\n `Event Inserted ${syncType} ${JSON.stringify(data)}`,\n LOG_TYPE.SDK_ERROR\n ); */\n AppSyncManager.getInstance().startSDKSyncManager();\n return true;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'pushEventForSync ' + syncType,\n JSON.stringify({\n errorMessage: error.message,\n data: `Event Inserted ${syncType} ${JSON.stringify(data)}`,\n dspID: dspID,\n config: config,\n meta: meta,\n }),\n LOG_TYPE.SDK_ERROR\n );\n return false;\n }\n}\n\n// NEW CODE\nexport async function pushBulkEventForSync(\n pushData: BulkEvent\n): Promise<boolean> {\n try {\n await EventsSyncManager.getInstance().insertBulkEvent(pushData);\n\n AppSyncManager.getInstance().startSDKSyncManager();\n return true;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'pushEventForSync ',\n JSON.stringify({\n errorMessage: error.message,\n }),\n LOG_TYPE.SDK_ERROR\n );\n return false;\n }\n}\n\n// OLD CODE\n// export async function pushBulkEventForSync(\n// pushData: BulkEvent[]\n// ): Promise<boolean> {\n// try {\n// await EventsSyncManager.getInstance().insertBulkEvent(pushData);\n\n// AppSyncManager.getInstance().startSDKSyncManager();\n// return true;\n// } catch (error: any) {\n// Logger.getInstance().logEvent(\n// 'pushEventForSync ',\n// JSON.stringify({\n// errorMessage: error.message,\n// }),\n// LOG_TYPE.SDK_ERROR\n// );\n// return false;\n// }\n// }\n\n/**\n * clears synced events from Sync & Document manager\n * @param dspID\n * @private\n */\nexport async function clearCache(dspID: string) {\n try {\n let prevDspID = await cache.getKeyFromCache(keys.DISPATCH_ID);\n if (prevDspID != null && prevDspID !== dspID) {\n // DocumentSyncManager.getInstance()\n // .clearSyncedDocs(prevDspID)\n // .then()\n // .catch();\n EventsSyncManager.getInstance().clearEventsDB().then().catch();\n await Storage.getInstance().clearShared();\n await Storage.getInstance().deleteItem(keys.FMS_FOLDER);\n let docManager = await DocumentManager.getInstance();\n await docManager.truncateDocumentTable();\n }\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'clearCache',\n error.message,\n LOG_TYPE.SDK_WARNING\n );\n }\n}\n\nexport async function insertDocumentInDB(\n fileName: string,\n fmsFolderName: string,\n // jobID: string,\n // objRef: string,\n base64Image: string | null,\n imageDesc: string,\n filePath: string | null,\n dateTime: string | null,\n lat: string,\n lng: string,\n accuracy: string\n): Promise<number | undefined> {\n let geoTimeStamp = {\n dateTime: dateTime,\n lat: lat,\n lng: lng,\n accuracy: accuracy,\n };\n let geoTimeStampStr = JSON.stringify(geoTimeStamp);\n console.log('geoTimeStampStr:', geoTimeStampStr);\n console.log('insertDocumentInDB1:', fmsFolderName);\n\n let processedFilePath = '';\n try {\n const dspID = await cache.getKeyFromCache(keys.DISPATCH_ID);\n let response = await DocumentSyncManager.getInstance().insertDocument(\n fmsFolderName,\n base64Image,\n base64Image != null,\n imageDesc,\n dspID ?? 'NULL',\n // jobID,\n // objRef,\n filePath,\n 'image',\n fileName,\n geoTimeStampStr,\n processedFilePath\n );\n if (response.insertId !== 0) {\n let extraParameters = {\n fileName: fileName,\n insertId: response.insertId\n };\n Logger.getInstance().logEvent(\n 'insertDocumentInDB-insertDocument-inserted',\n flattenObject(extraParameters),\n LOG_TYPE.SDK_ERROR\n );\n // calling for inserting POD_DOC type document in Event table.\n await EventsSyncManager.getInstance().insertPODDocEvent(\n dspID ?? 'NULL',\n POD_DOC + '_' + response.insertId // This will be inserted in sync_type column in Event table.\n );\n }else{\n let extraParameters = {\n fileName: fileName,\n };\n Logger.getInstance().logEvent(\n 'insertDocumentInDB-insertDocument-not-inserted',\n flattenObject(extraParameters),\n LOG_TYPE.SDK_ERROR\n );\n // calling for inserting POD_DOC type document in Event table.\n await EventsSyncManager.getInstance().insertPODDocEvent(\n dspID ?? 'NULL',\n POD_DOC + '_' + response.insertId // This will be inserted in sync_type column in Event table.\n );\n }\n AppSyncManager.getInstance().startSDKSyncManager();\n return response.insertId;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'insertDocumentInDB-error',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n return undefined;\n }\n}\n\nexport async function createFmsFolder(dispatchID: string) {\n const folderName = `dsp_${new Date()\n .toISOString()\n .slice(0, 10)\n .split('-')\n .join('')}`;\n let fmsFolder = await cache.getKeyFromCache(keys.FMS_FOLDER);\n const dspID = await cache.getKeyFromCache(keys.DISPATCH_ID);\n // await cache.setKeyInCache(keys.FMS_FOLDER, folderName); //FOR TESTING WHILE USING COREOS TOKEN DIRECTLY\n if (!isEmptyOrBlank(fmsFolder) && dspID != null && dspID === dispatchID) {\n return;\n } else {\n try {\n const response = await GraphQLClient.getInstance().createFmsFolder(\n folderName,\n `${dispatchID}`\n );\n if (!isEmptyOrBlank(response?.data?.createFolder?.id)) {\n Logger.getInstance().logEvent(\n 'createFmsFolder',\n 'Folder creation success!',\n LOG_TYPE.SDK_INFO\n );\n await cache.setKeyInCache(keys.FMS_FOLDER, folderName);\n } else {\n /* Logger.getInstance().logEvent(\n 'createFmsFolder',\n JSON.stringify(response?.data),\n LOG_TYPE.SDK_ERROR\n ); */\n throw new BaseError(\n ErrorCodes.FMS_FOLDER_CREATION_ERROR,\n JSON.stringify(response?.data)\n );\n }\n } catch (error: any) {\n if (\n error &&\n error.graphQLErrors &&\n error.graphQLErrors.length > 0 &&\n error.graphQLErrors[0]?.code === '100010213009'\n ) {\n await cache.setKeyInCache(keys.FMS_FOLDER, folderName);\n Logger.getInstance().logEvent(\n 'createFmsFolder',\n 'Folder already exists',\n LOG_TYPE.SDK_INFO\n );\n } else {\n Logger.getInstance().logEvent(\n 'createFmsFolder',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n throw new BaseError(ErrorCodes.FMS_GRAPHQL_API_ERROR, error.message);\n }\n }\n }\n}\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,iDAAiD;AAC/E,SAASC,SAAS,QAAQ,oDAAoD;AAC9E,MAAMC,QAAQ,GAAGD,SAAS,CAACC,QAAQ;AACnC,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,UAAU;AAC3C,OAAOC,gBAAgB,MAAM,iCAAiC;AAC9D,OAAOC,mBAAmB,MAAM,qDAAqD;AACrF,SAASC,aAAa,EAAEC,cAAc,QAAQ,SAAS;AACvD,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,OAAOC,UAAU,MAAM,sBAAsB;AAC7C,OAAOC,aAAa,MAAM,0BAA0B;AACpD,OAAOC,cAAc,MAAM,uCAAuC;AAKlE,OAAOC,OAAO,MAAM,WAAW;AAC/B,SAASC,OAAO,QAAQ,kCAAk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AC;QACtD3E,MAAM,CAACgB,WAAW,CAAC,CAAC,CAACgB,QAAQ,CAC3B,iBAAiB,EACjB,uBAAuB,EACvB/B,QAAQ,CAACoF,QACX,CAAC;MACH,CAAC,MAAM;QACLrF,MAAM,CAACgB,WAAW,CAAC,CAAC,CAACgB,QAAQ,CAC3B,iBAAiB,EACjBD,KAAK,CAACG,OAAO,EACbjC,QAAQ,CAACkC,SACX,CAAC;QACD,MAAM,IAAI7B,SAAS,CAACC,UAAU,CAACqF,qBAAqB,EAAE7D,KAAK,CAACG,OAAO,CAAC;MACtE;IACF;EACF;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["EventsSyncManager","IDispatch","SyncType","Logger","LOG_TYPE","DispatchSdkCache","DocumentSyncManager","flattenObject","isEmptyOrBlank","BaseError","ErrorCodes","GraphQLClient","AppSyncManager","Storage","POD_DOC","DocumentManager","keys","KEYS","cache","getInstance","TAG","pushEventForSync","syncType","dspID","data","config","sequence","meta","insertEvent","jobId","objectiveReference","JSON","stringify","startSDKSyncManager","error","logEvent","errorMessage","message","SDK_ERROR","pushBulkEventForSync","pushData","insertBulkEvent","clearCache","prevDspID","getKeyFromCache","DISPATCH_ID","clearEventsDB","then","catch","clearShared","deleteItem","FMS_FOLDER","docManager","truncateDocumentTable","SDK_WARNING","insertDocumentInDB","fileName","fmsFolderName","base64Image","imageDesc","filePath","dateTime","lat","lng","accuracy","geoTimeStamp","geoTimeStampStr","console","log","processedFilePath","response","insertDocument","insertId","extraParameters","insertPODDocEvent","undefined","createFmsFolder","dispatchID","folderName","Date","toISOString","slice","split","join","fmsFolder","_response$data","createFolder","id","SDK_INFO","setKeyInCache","FMS_FOLDER_CREATION_ERROR","_error$graphQLErrors$","graphQLErrors","length","code","FMS_GRAPHQL_API_ERROR"],"sources":["SyncManagerUtils.ts"],"sourcesContent":["import EventsSyncManager from '../manager/syncmanager/events/EventsSyncManager';\nimport { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';\nconst SyncType = IDispatch.SyncType;\nimport Logger, { LOG_TYPE } from './Logger';\nimport DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport DocumentSyncManager from '../manager/syncmanager/document/DocumentSyncManager';\nimport { flattenObject, isEmptyOrBlank } from './utils';\nimport { BaseError } from '../errors/BaseError';\nimport ErrorCodes from '../errors/ErrorCodes';\nimport GraphQLClient from '../network/GraphQLClient';\nimport AppSyncManager from '../manager/syncmanager/AppSyncManager';\nimport type {\n BulkEvent,\n ExecEngineSyncType,\n} from '../manager/syncmanager/DBConfig';\nimport Storage from './storage';\nimport { POD_DOC } from '../manager/syncmanager/constants';\nimport LocationManager from '../manager/location/LocationManager';\nimport DocumentManager from '../manager/syncmanager/document/DocumentManager';\n\nconst keys = DispatchSdkCache.KEYS;\nconst cache = DispatchSdkCache.getInstance();\n\nconst TAG = 'SaveEventDB';\n\n//NOT GETTING USED\nexport async function pushEventForSync(\n syncType: ExecEngineSyncType,\n dspID: string,\n data: string,\n config: any,\n sequence: number,\n meta?: any\n): Promise<boolean> {\n try {\n await EventsSyncManager.getInstance().insertEvent(\n sequence,\n data,\n dspID,\n syncType,\n meta ? meta.jobId + meta.objectiveReference : 'NO_REF_FOUND',\n JSON.stringify(config)\n );\n\n /* Logger.getInstance().logEvent(\n TAG,\n `Event Inserted ${syncType} ${JSON.stringify(data)}`,\n LOG_TYPE.SDK_ERROR\n ); */\n AppSyncManager.getInstance().startSDKSyncManager();\n return true;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'pushEventForSync ' + syncType,\n JSON.stringify({\n errorMessage: error.message,\n data: `Event Inserted ${syncType} ${JSON.stringify(data)}`,\n dspID: dspID,\n config: config,\n meta: meta,\n }),\n LOG_TYPE.SDK_ERROR\n );\n return false;\n }\n}\n\n// NEW CODE\nexport async function pushBulkEventForSync(\n pushData: BulkEvent\n): Promise<boolean> {\n try {\n await EventsSyncManager.getInstance().insertBulkEvent(pushData);\n\n AppSyncManager.getInstance().startSDKSyncManager();\n return true;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'pushEventForSync ',\n JSON.stringify({\n errorMessage: error.message,\n }),\n LOG_TYPE.SDK_ERROR\n );\n return false;\n }\n}\n\n// OLD CODE\n// export async function pushBulkEventForSync(\n// pushData: BulkEvent[]\n// ): Promise<boolean> {\n// try {\n// await EventsSyncManager.getInstance().insertBulkEvent(pushData);\n\n// AppSyncManager.getInstance().startSDKSyncManager();\n// return true;\n// } catch (error: any) {\n// Logger.getInstance().logEvent(\n// 'pushEventForSync ',\n// JSON.stringify({\n// errorMessage: error.message,\n// }),\n// LOG_TYPE.SDK_ERROR\n// );\n// return false;\n// }\n// }\n\n/**\n * clears synced events from Sync & Document manager\n * @param dspID\n * @private\n */\nexport async function clearCache(dspID: string) {\n try {\n let prevDspID = await cache.getKeyFromCache(keys.DISPATCH_ID);\n if (prevDspID != null && prevDspID !== dspID) {\n // DocumentSyncManager.getInstance()\n // .clearSyncedDocs(prevDspID)\n // .then()\n // .catch();\n EventsSyncManager.getInstance().clearEventsDB().then().catch();\n await Storage.getInstance().clearShared();\n await Storage.getInstance().deleteItem(keys.FMS_FOLDER);\n let docManager = await DocumentManager.getInstance();\n await docManager.truncateDocumentTable();\n }\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'clearCache',\n error.message,\n LOG_TYPE.SDK_WARNING\n );\n }\n}\n\nexport async function insertDocumentInDB(\n fileName: string,\n fmsFolderName: string,\n // jobID: string,\n // objRef: string,\n base64Image: string | null,\n imageDesc: string,\n filePath: string | null,\n dateTime: string | null,\n lat: string,\n lng: string,\n accuracy: string\n): Promise<number | undefined> {\n let geoTimeStamp = {\n dateTime: dateTime,\n lat: lat,\n lng: lng,\n accuracy: accuracy,\n };\n let geoTimeStampStr = JSON.stringify(geoTimeStamp);\n console.log('geoTimeStampStr:', geoTimeStampStr);\n console.log('insertDocumentInDB1:', fmsFolderName);\n\n let processedFilePath = '';\n try {\n const dspID = await cache.getKeyFromCache(keys.DISPATCH_ID);\n let response = await DocumentSyncManager.getInstance().insertDocument(\n fmsFolderName,\n base64Image,\n base64Image != null,\n imageDesc,\n dspID ?? 'NULL',\n // jobID,\n // objRef,\n filePath,\n 'image',\n fileName,\n geoTimeStampStr,\n processedFilePath\n );\n if (response.insertId !== 0) {\n let extraParameters = {\n fileName: fileName,\n insertId: response.insertId\n };\n Logger.getInstance().logEvent(\n 'insertDocumentInDB-insertDocument-inserted',\n flattenObject(extraParameters),\n LOG_TYPE.SDK_ERROR\n );\n // calling for inserting POD_DOC type document in Event table.\n await EventsSyncManager.getInstance().insertPODDocEvent(\n dspID ?? 'NULL',\n POD_DOC + '_' + response.insertId // This will be inserted in sync_type column in Event table.\n );\n }else{\n let extraParameters = {\n fileName: fileName,\n };\n Logger.getInstance().logEvent(\n 'insertDocumentInDB-insertDocument-not-inserted',\n flattenObject(extraParameters),\n LOG_TYPE.SDK_ERROR\n );\n // calling for inserting POD_DOC type document in Event table.\n await EventsSyncManager.getInstance().insertPODDocEvent(\n dspID ?? 'NULL',\n POD_DOC + '_' + response.insertId // This will be inserted in sync_type column in Event table.\n );\n }\n AppSyncManager.getInstance().startSDKSyncManager();\n return response.insertId;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'insertDocumentInDB-error',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n return undefined;\n }\n}\n\nexport async function createFmsFolder(dispatchID: string) {\n const folderName = `dsp_${new Date()\n .toISOString()\n .slice(0, 10)\n .split('-')\n .join('')}`;\n let fmsFolder = await cache.getKeyFromCache(keys.FMS_FOLDER);\n const dspID = await cache.getKeyFromCache(keys.DISPATCH_ID);\n // await cache.setKeyInCache(keys.FMS_FOLDER, folderName); //FOR TESTING WHILE USING COREOS TOKEN DIRECTLY\n if (!isEmptyOrBlank(fmsFolder) && dspID != null && dspID === dispatchID) {\n return;\n } else {\n try {\n const response = await GraphQLClient.getInstance().createFmsFolder(\n folderName,\n `${dispatchID}`\n );\n if (!isEmptyOrBlank(response?.data?.createFolder?.id)) {\n Logger.getInstance().logEvent(\n 'createFmsFolder',\n 'Folder creation success!',\n LOG_TYPE.SDK_INFO\n );\n await cache.setKeyInCache(keys.FMS_FOLDER, folderName);\n } else {\n /* Logger.getInstance().logEvent(\n 'createFmsFolder',\n JSON.stringify(response?.data),\n LOG_TYPE.SDK_ERROR\n ); */\n throw new BaseError(\n ErrorCodes.FMS_FOLDER_CREATION_ERROR,\n JSON.stringify(response?.data)\n );\n }\n } catch (error: any) {\n if (\n error &&\n error.graphQLErrors &&\n error.graphQLErrors.length > 0 &&\n error.graphQLErrors[0]?.code === '100010213009'\n ) {\n await cache.setKeyInCache(keys.FMS_FOLDER, folderName);\n Logger.getInstance().logEvent(\n 'createFmsFolder',\n 'Folder already exists',\n LOG_TYPE.SDK_INFO\n );\n } else {\n Logger.getInstance().logEvent(\n 'createFmsFolder',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n throw new BaseError(ErrorCodes.FMS_GRAPHQL_API_ERROR, error.message);\n }\n }\n }\n}\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,iDAAiD;AAC/E,SAASC,SAAS,QAAQ,oDAAoD;AAC9E,MAAMC,QAAQ,GAAGD,SAAS,CAACC,QAAQ;AACnC,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,UAAU;AAC3C,OAAOC,gBAAgB,MAAM,iCAAiC;AAC9D,OAAOC,mBAAmB,MAAM,qDAAqD;AACrF,SAASC,aAAa,EAAEC,cAAc,QAAQ,SAAS;AACvD,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,OAAOC,UAAU,MAAM,sBAAsB;AAC7C,OAAOC,aAAa,MAAM,0BAA0B;AACpD,OAAOC,cAAc,MAAM,uCAAuC;AAKlE,OAAOC,OAAO,MAAM,WAAW;AAC/B,SAASC,OAAO,QAAQ,kCAAkC;AAE1D,OAAQC,eAAe,MAAO,iDAAiD;AAE/E,MAAMC,IAAI,GAAGX,gBAAgB,CAACY,IAAI;AAClC,MAAMC,KAAK,GAAGb,gBAAgB,C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CAAC;MACH,CAAC,MAAM;QACLrF,MAAM,CAACgB,WAAW,CAAC,CAAC,CAACgB,QAAQ,CAC3B,iBAAiB,EACjBD,KAAK,CAACG,OAAO,EACbjC,QAAQ,CAACkC,SACX,CAAC;QACD,MAAM,IAAI7B,SAAS,CAACC,UAAU,CAACqF,qBAAqB,EAAE7D,KAAK,CAACG,OAAO,CAAC;MACtE;IACF;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export let presets: string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export let preset: string;
|
|
2
|
+
export let moduleFileExtensions: string[];
|
|
3
|
+
export let modulePathIgnorePatterns: string[];
|
|
4
|
+
export let testMatch: string[];
|
|
5
|
+
export let transformIgnorePatterns: string[];
|
|
6
|
+
export let setupFiles: string[];
|
|
7
|
+
export let testPathIgnorePatterns: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpEtUtils.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { APIData, HttpRequestETOutput } from './HttpRequestETSchema';
|
|
2
|
-
export declare function getApiResponse(apiData: APIData): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2
|
+
export declare function getApiResponse(apiData: APIData): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
3
|
export declare function getOutputUsingJsonpath(json: object, jsonPath: string): any;
|
|
4
4
|
export declare function getHttpETOutput(apiResponse: object, jsonPath: string, success: boolean, mergedObjectiveId: Array<string>): Promise<HttpRequestETOutput>;
|
|
@@ -15,6 +15,21 @@ export declare enum ExpoBarcodeTypes {
|
|
|
15
15
|
pdf417 = "pdf417",
|
|
16
16
|
upc_e = "upc_e"
|
|
17
17
|
}
|
|
18
|
+
export declare enum BarcodeType {
|
|
19
|
+
aztec = "aztec",
|
|
20
|
+
ean13 = "ean13",
|
|
21
|
+
ean8 = "ean8",
|
|
22
|
+
qr = "qr",
|
|
23
|
+
pdf417 = "pdf417",
|
|
24
|
+
upc_e = "upc_e",
|
|
25
|
+
datamatrix = "datamatrix",
|
|
26
|
+
code39 = "code39",
|
|
27
|
+
code93 = "code93",
|
|
28
|
+
itf14 = "itf14",
|
|
29
|
+
codabar = "codabar",
|
|
30
|
+
code128 = "code128",
|
|
31
|
+
upc_a = "upc_a"
|
|
32
|
+
}
|
|
18
33
|
export declare enum SCAN_STATUS {
|
|
19
34
|
SCANNED = 0,
|
|
20
35
|
FAILED = 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTTPRequestBody, PathParams, QueryParams } from '../../../utils/ApiUtils';
|
|
2
2
|
import type { BaseETRequest, BaseETResponse } from '../../../models/execTasks/ETBaseModels';
|
|
3
3
|
import type { Headers, HTTPMethod } from '../httpRequest/HttpRequestETSchema';
|
|
4
|
-
import { SnackBarType } from '
|
|
4
|
+
import { SnackBarType } from '../../widgets/SnackBarCustom';
|
|
5
5
|
export interface API {
|
|
6
6
|
uri: string;
|
|
7
7
|
timeout?: number;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { MD3Theme } from 'react-native-paper';
|
|
2
3
|
export interface SnackbarProps {
|
|
3
4
|
visible: boolean;
|
|
4
5
|
duration?: number;
|
|
5
6
|
onDismiss: () => void;
|
|
6
7
|
message: string;
|
|
7
8
|
type?: SnackBarType;
|
|
8
|
-
theme:
|
|
9
|
+
theme: MD3Theme;
|
|
9
10
|
customBottom?: number;
|
|
10
11
|
customTop?: number;
|
|
11
12
|
}
|
|
@@ -18,6 +19,6 @@ export declare enum SnackBarType {
|
|
|
18
19
|
OTP_FAILED = 5
|
|
19
20
|
}
|
|
20
21
|
declare const _default: React.ComponentType<Pick<SnackbarProps, "visible" | "duration" | "onDismiss" | "message" | "type" | "customBottom" | "customTop"> & {
|
|
21
|
-
theme?: import("@callstack/react-theme-provider").$DeepPartial<
|
|
22
|
+
theme?: import("@callstack/react-theme-provider").$DeepPartial<unknown> | undefined;
|
|
22
23
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<SnackbarProps> & (({ visible, duration, onDismiss, message, theme, type, customBottom, customTop, }: SnackbarProps) => React.JSX.Element | null), {}>;
|
|
23
24
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initAndUpdateDatabase: () => Promise<void>;
|
|
@@ -7,7 +7,7 @@ export default class EventCodeRepo {
|
|
|
7
7
|
private insertEvent;
|
|
8
8
|
private init;
|
|
9
9
|
getAllEventCodes(): Promise<EventsRow[]>;
|
|
10
|
-
deleteAll(): Promise<import("
|
|
10
|
+
deleteAll(): Promise<import("../syncmanager/database").SQLResultSet>;
|
|
11
11
|
getEventsByCode(codes: string[]): Promise<EventsRow[]>;
|
|
12
12
|
getEventByCode(code: string): Promise<EventsRow[]>;
|
|
13
13
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ReasonsRow } from '../syncmanager/DBConfig';
|
|
2
2
|
import type { ReasonCodes } from '../../models/ReasonCodes';
|
|
3
|
-
|
|
3
|
+
declare class ReasonCodeRepo {
|
|
4
4
|
private static instance;
|
|
5
5
|
static getInstance(): ReasonCodeRepo;
|
|
6
6
|
saveReasonCode(reasonsList: ReasonCodes[]): Promise<void>;
|
|
7
7
|
private insertReason;
|
|
8
|
-
|
|
8
|
+
init(): Promise<void>;
|
|
9
9
|
getAllReasons(): Promise<ReasonsRow[]>;
|
|
10
|
-
deleteAll(): Promise<import("
|
|
10
|
+
deleteAll(): Promise<import("../syncmanager/database").SQLResultSet>;
|
|
11
11
|
getReasonsByCode(codes: string[]): Promise<ReasonsRow[]>;
|
|
12
12
|
getReasonByCode(code: string): Promise<ReasonsRow[]>;
|
|
13
13
|
}
|
|
14
|
+
declare const ReasonCodeRepoIns: ReasonCodeRepo;
|
|
15
|
+
export default ReasonCodeRepoIns;
|
|
@@ -5,7 +5,7 @@ export declare enum DispatchSyncType {
|
|
|
5
5
|
DISPATCH_UPDATE = "DISPATCH_UPDATE",
|
|
6
6
|
DISPATCH_SUB_STATUS_UPDATE = "DISPATCH_SUB_STATUS_UPDATE"
|
|
7
7
|
}
|
|
8
|
-
export declare const DATABASE_NAME = "
|
|
8
|
+
export declare const DATABASE_NAME = "DispatchSDK_DB";
|
|
9
9
|
export declare const EVENTS_TABLE = "EVENTS_TABLE";
|
|
10
10
|
export declare const REASONS_TABLE = "REASONS_TABLE";
|
|
11
11
|
export declare const EVENT_CODES_TABLE = "EVENT_CODES_TABLE";
|
|
@@ -102,6 +102,10 @@ export declare const EventColumns: {
|
|
|
102
102
|
DESCRIPTION: string;
|
|
103
103
|
SUCCESS_EVENT: string;
|
|
104
104
|
};
|
|
105
|
+
export declare const VERSION_TABLE = "VERSION_TABLE";
|
|
106
|
+
export declare const VERSION_COLUMNS: {
|
|
107
|
+
VERSION_NO: string;
|
|
108
|
+
};
|
|
105
109
|
export interface BulkEvent {
|
|
106
110
|
syncType: ExecEngineSyncType | DispatchSyncType;
|
|
107
111
|
dispatchId: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ExecQuery } from '../../utils/Constants';
|
|
2
|
+
export interface SQLResultSet {
|
|
3
|
+
insertId?: number;
|
|
4
|
+
rowsAffected: number;
|
|
5
|
+
rows: {
|
|
6
|
+
_array: any[];
|
|
7
|
+
length: number;
|
|
8
|
+
item: (index: number) => any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
declare class SQLDatabase {
|
|
12
|
+
private static instance;
|
|
13
|
+
private db;
|
|
14
|
+
private constructor();
|
|
15
|
+
static getInstance(): SQLDatabase;
|
|
16
|
+
executeSetDataQuery(query: string, args: any[]): Promise<SQLResultSet>;
|
|
17
|
+
executeGetDataQuery(query: string, args: any[]): Promise<any>;
|
|
18
|
+
executeBulkQuery(_queryData: ExecQuery[]): Promise<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Executes an array of SQL DML statements.
|
|
21
|
+
*
|
|
22
|
+
* @param {Array<{query: string, args: any[]}>} input - The array of queries to execute.
|
|
23
|
+
* @return {Promise<SQLResultSet>} A promise that resolves with the SQL result set.
|
|
24
|
+
*/
|
|
25
|
+
executeStatementsInTxn(input: {
|
|
26
|
+
sqlSmt: string;
|
|
27
|
+
args: any[];
|
|
28
|
+
}[]): Promise<SQLResultSet[]>;
|
|
29
|
+
}
|
|
30
|
+
declare const Database: SQLDatabase;
|
|
31
|
+
export default Database;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { DocumentRow } from '../DBConfig';
|
|
2
|
-
import type { SQLResultSet } from 'expo-sqlite';
|
|
3
2
|
export default class DocumentManager {
|
|
4
3
|
private static instance;
|
|
5
4
|
private constructor();
|
|
6
5
|
static getInstance(): Promise<DocumentManager>;
|
|
7
6
|
init(): Promise<void>;
|
|
8
7
|
truncateDocumentTable(): Promise<void>;
|
|
9
|
-
insertDocument(fmsFolderID: string | null, desc: string, dspID: string, base64: boolean, fileName: string, fileType: string, data?: string | null, filePath?: string | null, geoTimeStamp?: string | null, processedFilePath?: string | null, priority?: number): Promise<
|
|
8
|
+
insertDocument(fmsFolderID: string | null, desc: string, dspID: string, base64: boolean, fileName: string, fileType: string, data?: string | null, filePath?: string | null, geoTimeStamp?: string | null, processedFilePath?: string | null, priority?: number): Promise<any>;
|
|
10
9
|
getAllDocuments(dispatchID?: string): Promise<DocumentRow[]>;
|
|
11
10
|
getAllUnsyncedDocs(): Promise<DocumentRow[]>;
|
|
12
|
-
deleteAllSyncedDocuments(dispatchID: string): Promise<SQLResultSet>;
|
|
11
|
+
deleteAllSyncedDocuments(dispatchID: string): Promise<import("../database").SQLResultSet>;
|
|
13
12
|
markDocumentSynced(id: number, fmsID: string): Promise<void>;
|
|
14
13
|
markDocumentSyncedWithAttempt(id: number, fmsID: string, attempt: number, sync: number): Promise<void>;
|
|
15
14
|
updateProcesedFilePath(id: number, origialFilePath: String, processedFilePath: String): Promise<void>;
|
package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentSyncManager.d.ts
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DocumentRow } from '../DBConfig';
|
|
2
|
-
import type { SQLResultSet } from 'expo-sqlite';
|
|
3
2
|
export default class DocumentSyncManager {
|
|
4
3
|
private documentHttpClient;
|
|
5
4
|
private inProgress;
|
|
@@ -14,7 +13,7 @@ export default class DocumentSyncManager {
|
|
|
14
13
|
static getInstance(): DocumentSyncManager;
|
|
15
14
|
startDocumentSync(): Promise<void>;
|
|
16
15
|
isSyncPending(): Promise<boolean>;
|
|
17
|
-
insertDocument(fmsFolderID: string | null, data: string | null, base64: boolean, desc: string, dspID: string, filePath: string | null, fileType: string, fileName: string, geoTimeStamp: string, processedFilePath: string, priority?: number): Promise<
|
|
16
|
+
insertDocument(fmsFolderID: string | null, data: string | null, base64: boolean, desc: string, dspID: string, filePath: string | null, fileType: string, fileName: string, geoTimeStamp: string, processedFilePath: string, priority?: number): Promise<any>;
|
|
18
17
|
forceDocumentSync(): Promise<void>;
|
|
19
18
|
private updateDocumentWithAttempt;
|
|
20
19
|
private updateDocumentProcessedPath;
|
|
@@ -4,11 +4,11 @@ export default class GraphQLClient {
|
|
|
4
4
|
private constructor();
|
|
5
5
|
static init(baseURL: string): GraphQLClient;
|
|
6
6
|
static getInstance(): GraphQLClient;
|
|
7
|
-
fetchReasonCodes(): Promise<import("@apollo/client").
|
|
8
|
-
createFmsFolder(folderName: string, desc: string): Promise<import("@apollo/client").
|
|
9
|
-
postCustodyIn(data: any[], dspID: string): Promise<import("@apollo/client").
|
|
10
|
-
postCustodyOut(data: any[], dspID: string): Promise<import("@apollo/client").
|
|
11
|
-
postWorkflowUpdate(data: any, workflowId: string): Promise<import("@apollo/client").
|
|
7
|
+
fetchReasonCodes(): Promise<import("@apollo/client").InteropApolloQueryResult<any> | undefined>;
|
|
8
|
+
createFmsFolder(folderName: string, desc: string): Promise<import("@apollo/client").InteropMutateResult<any> | undefined>;
|
|
9
|
+
postCustodyIn(data: any[], dspID: string): Promise<import("@apollo/client").InteropMutateResult<any> | undefined>;
|
|
10
|
+
postCustodyOut(data: any[], dspID: string): Promise<import("@apollo/client").InteropMutateResult<any> | undefined>;
|
|
11
|
+
postWorkflowUpdate(data: any, workflowId: string): Promise<import("@apollo/client").InteropMutateResult<any> | undefined>;
|
|
12
12
|
}
|
|
13
13
|
export declare enum API_CONTENT_TYPES {
|
|
14
14
|
APPLICATION_JSON = "application/json"
|
|
@@ -4,7 +4,7 @@ export default class NetworkClient extends HttpClient {
|
|
|
4
4
|
constructor(baseURL: string);
|
|
5
5
|
requestGet(endpoint: string, headers: Headers, queryParams?: {
|
|
6
6
|
[key: string]: string | number | boolean;
|
|
7
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
-
requestPost(endpoint: string, requestBody: any, headers: Headers): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
requestPut(endpoint: string, requestBody: any, headers: Headers): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
|
+
requestPost(endpoint: string, requestBody: any, headers: Headers): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
+
requestPut(endpoint: string, requestBody: any, headers: Headers): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
10
10
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AxiosInstance,
|
|
1
|
+
import { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
|
|
2
2
|
export default abstract class HttpClient {
|
|
3
3
|
protected readonly instance: AxiosInstance;
|
|
4
4
|
protected constructor(baseURL: string);
|
|
5
5
|
private _initializeResponseInterceptor;
|
|
6
|
-
protected _handleRequest: (request:
|
|
7
|
-
protected _handleResponse: (response: AxiosResponse) => AxiosResponse<any, any>;
|
|
6
|
+
protected _handleRequest: (request: InternalAxiosRequestConfig) => InternalAxiosRequestConfig<any>;
|
|
7
|
+
protected _handleResponse: (response: AxiosResponse) => AxiosResponse<any, any, {}>;
|
|
8
8
|
protected _handleError: (error: any) => Promise<never>;
|
|
9
9
|
}
|
|
@@ -2,13 +2,13 @@ import HttpClient from '../network/client';
|
|
|
2
2
|
import type { AccessTokenPayload, LoginPayload, RefreshTokenPayload } from '../models/auth';
|
|
3
3
|
declare class Login extends HttpClient {
|
|
4
4
|
constructor();
|
|
5
|
-
loginMobilePassword: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
loginMobileOtp: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
loginMpin: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
-
loginUserName: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
loginCredential: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
-
validateToken: (accessToken: AccessTokenPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
-
refreshToken: (refreshTokenPayload: RefreshTokenPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
loginMobilePassword: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
6
|
+
loginMobileOtp: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
7
|
+
loginMpin: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
|
+
loginUserName: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
+
loginCredential: (payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
10
|
+
validateToken: (accessToken: AccessTokenPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
|
+
refreshToken: (refreshTokenPayload: RefreshTokenPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
12
12
|
}
|
|
13
13
|
declare const Auth: Login;
|
|
14
14
|
export default Auth;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import HttpClient from '../network/client';
|
|
2
2
|
declare class Network extends HttpClient {
|
|
3
3
|
constructor();
|
|
4
|
-
heartBeat: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
heartBeat: () => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5
5
|
}
|
|
6
6
|
declare const network: Network;
|
|
7
7
|
export default network;
|
|
@@ -58,8 +58,8 @@ export declare const getAddHeaders: (array?: KeyValueArray[]) => {
|
|
|
58
58
|
export declare const getQueryParams: (array?: KeyValueArray[]) => {
|
|
59
59
|
[k: string]: any;
|
|
60
60
|
};
|
|
61
|
-
export declare function getApiResponse(apiData: APIData): Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
-
export declare function getAxiosApiResponse(apiData: APIData): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
|
+
export declare function getApiResponse(apiData: APIData): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
62
|
+
export declare function getAxiosApiResponse(apiData: APIData): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
63
63
|
export declare const createApiData: (payload: any, props: any, endpoint: string, httpMethod: HTTPMethod, headers: Headers[] | null, customApiConfig?: Partial<APIData>) => APIData;
|
|
64
64
|
export declare function parseBody(body: any, userInput: any): any;
|
|
65
65
|
export declare function parseKeyValue(array: KeyValueArray[], userInput: any): void[];
|