@os1-platform/dispatch-mobile 2.1.5 → 2.1.7
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/lib/commonjs/analytics/firebase/FirebaseLogging.js +24 -0
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +44 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +83 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryModels.js +6 -0
- package/lib/commonjs/analytics/sentry/SentryModels.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +78 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +51 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +23 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +16 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +52 -2
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -0
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +41 -4
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +16 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +23 -0
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +41 -18
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +29 -16
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +71 -6
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +37 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +16 -0
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +44 -0
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +40 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +16 -0
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +17 -1
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +22 -2
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +9 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +9 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +9 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +12 -1
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/index.js +53 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +9 -2
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +3 -3
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +3 -2
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +8 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +3 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +77 -3
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +17 -3
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +206 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +4 -4
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +18 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +9 -0
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +10 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +7 -0
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +12 -0
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +9 -0
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +9 -0
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +9 -0
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +12 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +30 -13
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +54 -41
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +12 -2
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/utils.js +24 -0
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/analytics/firebase/FirebaseLogging.js +17 -0
- package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -0
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +37 -0
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +74 -0
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
- package/lib/module/analytics/sentry/SentryModels.js +2 -0
- package/lib/module/analytics/sentry/SentryModels.js.map +1 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js +72 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js +51 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +23 -0
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverET.js +16 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +52 -2
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -0
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +41 -4
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +16 -0
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +23 -0
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +41 -18
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +29 -16
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +72 -7
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +37 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +16 -0
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +44 -0
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +40 -1
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +16 -0
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +17 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +22 -2
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +9 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +9 -0
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +9 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +12 -1
- package/lib/module/components/widgets/TabsComponent.js.map +1 -1
- package/lib/module/index.js +11 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +9 -2
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +3 -3
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +3 -2
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +8 -1
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +3 -1
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +77 -3
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +17 -3
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +207 -7
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +5 -5
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +18 -1
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +9 -0
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +10 -0
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +7 -0
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +12 -0
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +9 -0
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +9 -0
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +9 -0
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +12 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +30 -13
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +54 -39
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +12 -2
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/utils.js +22 -0
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/analytics/firebase/FirebaseLogging.d.ts +2 -0
- package/lib/typescript/analytics/sentry/SentryAnalyticsSingleton.d.ts +11 -0
- package/lib/typescript/analytics/sentry/SentryAnalyticsUtils.d.ts +2 -0
- package/lib/typescript/analytics/sentry/SentryModels.d.ts +15 -0
- package/lib/typescript/analytics/sentry/SentrySdkConstants.d.ts +66 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +4 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureUtils.d.ts +7 -1
- package/lib/typescript/index.d.ts +7 -0
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +2 -0
- package/lib/typescript/manager/location/LocationManager.d.ts +1 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +4 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +5 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +25 -6
- package/lib/typescript/models/sdk.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +4 -4
- package/lib/typescript/utils/Logger.d.ts +0 -3
- package/lib/typescript/utils/SyncManagerUtils.d.ts +1 -1
- package/lib/typescript/utils/utils.d.ts +4 -0
- package/package.json +10 -7
- package/src/analytics/firebase/FirebaseLogging.ts +25 -0
- package/src/analytics/sentry/SentryAnalyticsSingleton.ts +35 -0
- package/src/analytics/sentry/SentryAnalyticsUtils.ts +77 -0
- package/src/analytics/sentry/SentryModels.ts +18 -0
- package/src/analytics/sentry/SentrySdkConstants.ts +77 -0
- package/src/components/executiontasks/cancellation/CancelET.tsx +25 -2
- package/src/components/executiontasks/captureInput/CaptureText.tsx +15 -2
- package/src/components/executiontasks/deliver/DeliverET.tsx +8 -0
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +22 -5
- package/src/components/executiontasks/display/DisplayModalET.tsx +8 -0
- package/src/components/executiontasks/doodle/SignatureET.tsx +37 -4
- package/src/components/executiontasks/dropCash/DropCashET.tsx +9 -0
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +11 -0
- package/src/components/executiontasks/forms/FormGenerator.tsx +46 -29
- package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +10 -3
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +8 -1
- package/src/components/executiontasks/imageCapture/CaptureSchema.ts +4 -0
- package/src/components/executiontasks/imageCapture/CaptureUtils.ts +45 -18
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +42 -7
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +11 -0
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +17 -0
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +11 -0
- package/src/components/executiontasks/pickup/PickupET.tsx +8 -0
- package/src/components/executiontasks/pickup/SLPickupET.tsx +19 -0
- package/src/components/executiontasks/scan/ScanET.tsx +19 -1
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +11 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +14 -0
- package/src/components/executiontasks/validateOTP/sub-components/OTPInput.tsx +2 -0
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +5 -0
- package/src/components/widgets/CancelOrderDialog.tsx +7 -0
- package/src/components/widgets/Card.tsx +9 -1
- package/src/components/widgets/ModalWidget.tsx +16 -2
- package/src/components/widgets/SearchBar.tsx +6 -1
- package/src/components/widgets/SnackBarCustom.tsx +4 -0
- package/src/components/widgets/SplitTextInput.tsx +6 -0
- package/src/components/widgets/TabsComponent.tsx +8 -1
- package/src/index.tsx +10 -3
- package/src/manager/location/LocationManager.ts +8 -1
- package/src/manager/sdk/DispatchSDKManager.ts +8 -2
- package/src/manager/sdk/DispatchSdkCache.ts +2 -1
- package/src/manager/sdk/callbacksHandler.ts +12 -1
- package/src/manager/syncmanager/DBConfig.ts +4 -0
- package/src/manager/syncmanager/document/DocumentHttpClient.ts +105 -5
- package/src/manager/syncmanager/document/DocumentManager.ts +28 -2
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +230 -5
- package/src/models/execTasks/ETBaseModels.ts +20 -7
- package/src/models/sdk.ts +1 -0
- package/src/styles/executionTasks/CommonStyles.ts +5 -5
- package/src/ui/screens/DeliverScreen.tsx +9 -0
- package/src/ui/screens/DoodleScreen.tsx +5 -0
- package/src/ui/screens/DropCashScreen.tsx +6 -0
- package/src/ui/screens/FormsScreen.tsx +3 -0
- package/src/ui/screens/GeofenceScreen.tsx +11 -1
- package/src/ui/screens/ImageCaptureScreen.tsx +5 -0
- package/src/ui/screens/PaymentScreen.tsx +5 -0
- package/src/ui/screens/PickupScreen.tsx +7 -1
- package/src/ui/screens/ValidateOTPScreen.tsx +10 -0
- package/src/utils/ExecTaskUtils.ts +36 -10
- package/src/utils/Logger.ts +50 -51
- package/src/utils/SyncManagerUtils.ts +20 -2
- package/src/utils/utils.ts +23 -0
|
@@ -28,6 +28,8 @@ import { getStrVal } from '../../../locale/util';
|
|
|
28
28
|
import Str from '../../../locale/Str';
|
|
29
29
|
import CircleMark from '../../../icons/circleMark.svg';
|
|
30
30
|
import ModalWidget from '../../../components/widgets/ModalWidget';
|
|
31
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
32
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
@@ -93,6 +95,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
93
95
|
)
|
|
94
96
|
setShowBackModal(true);
|
|
95
97
|
else props.navigation.goBack();
|
|
98
|
+
const cta = 'Back Arrow';
|
|
99
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
100
|
+
|
|
96
101
|
}}
|
|
97
102
|
name="arrow-back"
|
|
98
103
|
color={'black'}
|
|
@@ -166,6 +171,8 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
166
171
|
props.navigation.goBack();
|
|
167
172
|
}
|
|
168
173
|
setShowBackModal(false);
|
|
174
|
+
const cta = 'Exit';
|
|
175
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
169
176
|
},
|
|
170
177
|
styles: styles.primaryButtonStyles,
|
|
171
178
|
}}
|
|
@@ -174,6 +181,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
174
181
|
onPress: () => {
|
|
175
182
|
setGoBack(false);
|
|
176
183
|
setShowPickupModal(true);
|
|
184
|
+
const cta = 'Cancel';
|
|
185
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
186
|
+
|
|
177
187
|
},
|
|
178
188
|
styles: styles.secondaryButtonStyles,
|
|
179
189
|
}}
|
|
@@ -209,6 +219,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
209
219
|
onPress={() => {
|
|
210
220
|
setShowPickupModal(false);
|
|
211
221
|
setGoBack(true);
|
|
222
|
+
const cta = 'Circle Mark Icon';
|
|
223
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
224
|
+
|
|
212
225
|
}}
|
|
213
226
|
style={styles.crossIcon}
|
|
214
227
|
hitSlop={{ bottom: 10, top: 10, right: 10, left: 10 }}
|
|
@@ -258,6 +271,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
258
271
|
ExecutionTaskID.PICKUP
|
|
259
272
|
)),
|
|
260
273
|
});
|
|
274
|
+
const cta = 'Yes';
|
|
275
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
276
|
+
|
|
261
277
|
}}
|
|
262
278
|
>
|
|
263
279
|
Yes
|
|
@@ -285,6 +301,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
285
301
|
ExecutionTaskID.PICKUP
|
|
286
302
|
)),
|
|
287
303
|
});
|
|
304
|
+
const cta = 'No';
|
|
305
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
306
|
+
|
|
288
307
|
}}
|
|
289
308
|
>
|
|
290
309
|
No
|
|
@@ -82,6 +82,8 @@ import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
|
82
82
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
83
83
|
import ToggleSwitch from 'toggle-switch-react-native';
|
|
84
84
|
import ScanIcon from '../../../icons/ScanIcon';
|
|
85
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
86
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
85
87
|
|
|
86
88
|
/**
|
|
87
89
|
*
|
|
@@ -237,6 +239,9 @@ const ScanET = (props: ScannerInput) => {
|
|
|
237
239
|
if (showScanList) setShowScanList(false);
|
|
238
240
|
else setShowUnscannedShipmentModal(true);
|
|
239
241
|
}
|
|
242
|
+
const cta = 'Back Arrow';
|
|
243
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
244
|
+
|
|
240
245
|
}}
|
|
241
246
|
name="arrow-back"
|
|
242
247
|
color={'black'}
|
|
@@ -583,6 +588,8 @@ const ScanET = (props: ScannerInput) => {
|
|
|
583
588
|
type: SnackBarType.SUCCESS,
|
|
584
589
|
});
|
|
585
590
|
setShowScanList(!showScanList);
|
|
591
|
+
const cta = 'View Summary';
|
|
592
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
586
593
|
}}
|
|
587
594
|
>
|
|
588
595
|
{`View Summary`}
|
|
@@ -695,7 +702,12 @@ const ScanET = (props: ScannerInput) => {
|
|
|
695
702
|
labelStyle={CommonStyles.nextButtonLabel}
|
|
696
703
|
style={{ ...CommonStyles.nextButton, marginTop: 20 }}
|
|
697
704
|
uppercase={false}
|
|
698
|
-
onPress={() => setShowUnscannedShipmentModal(false)
|
|
705
|
+
onPress={() => {setShowUnscannedShipmentModal(false)
|
|
706
|
+
const cta = 'Continue Scanning';
|
|
707
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
}}
|
|
699
711
|
>
|
|
700
712
|
Continue Scanning
|
|
701
713
|
</Button>
|
|
@@ -725,6 +737,10 @@ const ScanET = (props: ScannerInput) => {
|
|
|
725
737
|
]);
|
|
726
738
|
|
|
727
739
|
props.navigation.goBack();
|
|
740
|
+
const cta = 'Exit Scan Flow';
|
|
741
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
742
|
+
|
|
743
|
+
|
|
728
744
|
}}
|
|
729
745
|
>
|
|
730
746
|
<Text style={CommonStyles.cancelButtonLabel}>Exit Scan Flow</Text>
|
|
@@ -895,6 +911,8 @@ const ScanET = (props: ScannerInput) => {
|
|
|
895
911
|
type: SnackBarType.SUCCESS,
|
|
896
912
|
});
|
|
897
913
|
setScannedInput(scanText);
|
|
914
|
+
const cta = 'Apply';
|
|
915
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
898
916
|
}}
|
|
899
917
|
>
|
|
900
918
|
<Text
|
|
@@ -41,6 +41,8 @@ import { debounce } from 'lodash';
|
|
|
41
41
|
import { RouteParams } from '../../../../ui/uiConfig/RouteParams';
|
|
42
42
|
import { IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
43
43
|
import FileIcon from '../../../../icons/file';
|
|
44
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
45
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
44
46
|
|
|
45
47
|
const dimensionsForScreen = Dimensions.get('screen');
|
|
46
48
|
|
|
@@ -142,6 +144,9 @@ const SummaryPage = (props: SummaryPageProps) => {
|
|
|
142
144
|
} else {
|
|
143
145
|
props.handleSubmitET(PROCEED_STATUS.DELIVER_NOW, tabs[1].count);
|
|
144
146
|
}
|
|
147
|
+
const cta = 'Proceed';
|
|
148
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SUMMARY_PAGE_SCREEN, cta: cta });
|
|
149
|
+
|
|
145
150
|
}}
|
|
146
151
|
>
|
|
147
152
|
{`Proceed`}
|
|
@@ -545,6 +550,9 @@ const SummaryPage = (props: SummaryPageProps) => {
|
|
|
545
550
|
props.scanProps.showProgress(false);
|
|
546
551
|
setSelectedEditItem(undefined);
|
|
547
552
|
setShowEditModal(false);
|
|
553
|
+
const cta = 'Update';
|
|
554
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SUMMARY_PAGE_SCREEN, cta: cta });
|
|
555
|
+
|
|
548
556
|
return;
|
|
549
557
|
},
|
|
550
558
|
}}
|
|
@@ -554,6 +562,9 @@ const SummaryPage = (props: SummaryPageProps) => {
|
|
|
554
562
|
onPress: () => {
|
|
555
563
|
setShowEditModal(false);
|
|
556
564
|
setSelectedEditItem(undefined);
|
|
565
|
+
const cta = 'Cancel';
|
|
566
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SUMMARY_PAGE_SCREEN, cta: cta });
|
|
567
|
+
|
|
557
568
|
},
|
|
558
569
|
}}
|
|
559
570
|
/>
|
|
@@ -31,6 +31,8 @@ import { GO_BACK_EVENT_CODE } from '../../../constants/constants';
|
|
|
31
31
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
32
32
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
33
33
|
import { useFocusEffect } from '@react-navigation/native';
|
|
34
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
35
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
34
36
|
|
|
35
37
|
const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
36
38
|
const [showBackModal, setShowBackModal] = useState(false);
|
|
@@ -69,6 +71,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
69
71
|
)
|
|
70
72
|
setShowBackModal(true);
|
|
71
73
|
else props.navigation.goBack();
|
|
74
|
+
const cta = 'Arrow Back';
|
|
75
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
76
|
+
|
|
72
77
|
}}
|
|
73
78
|
name="arrow-back"
|
|
74
79
|
color={'black'}
|
|
@@ -180,6 +185,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
180
185
|
}
|
|
181
186
|
}
|
|
182
187
|
}
|
|
188
|
+
const cta = 'Proceed';
|
|
189
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
190
|
+
|
|
183
191
|
}}
|
|
184
192
|
>
|
|
185
193
|
Proceed
|
|
@@ -207,6 +215,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
207
215
|
ExecutionTaskID.VALIDATE_OTP_ET
|
|
208
216
|
)),
|
|
209
217
|
});
|
|
218
|
+
const cta = 'Skip';
|
|
219
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
220
|
+
|
|
210
221
|
}}
|
|
211
222
|
>
|
|
212
223
|
Skip
|
|
@@ -231,6 +242,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
231
242
|
setRetryCount((retryCount) => retryCount + 1);
|
|
232
243
|
await generateOTP(generationLogic.api);
|
|
233
244
|
resetTimer();
|
|
245
|
+
const cta = retryConfig.buttonTitle;
|
|
246
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
247
|
+
|
|
234
248
|
}}
|
|
235
249
|
>{`${retryConfig.buttonTitle} ${timer ? `in ${timer}` : ''}`}</Button>
|
|
236
250
|
</View>
|
|
@@ -4,6 +4,8 @@ import SplitTextInput from '../../../widgets/SplitTextInput';
|
|
|
4
4
|
import { Fonts } from '../../../../styles/executionTasks/CommonStyles';
|
|
5
5
|
import { InputType, CaptureInput } from '../ValidateOTPSchema';
|
|
6
6
|
import { INVALID_REGEX } from '../constants';
|
|
7
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
8
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
7
9
|
|
|
8
10
|
export interface OTPInputProps {
|
|
9
11
|
input: CaptureInput;
|
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
EntityCode,
|
|
11
11
|
ExecutionTaskID,
|
|
12
12
|
} from '../../../models/execTasks/ETConfig';
|
|
13
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
14
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
13
15
|
|
|
14
16
|
const VerifyOtpET = (props: OtpInputSchema) => {
|
|
15
17
|
const otpInput = useRef();
|
|
@@ -54,6 +56,9 @@ const VerifyOtpET = (props: OtpInputSchema) => {
|
|
|
54
56
|
<Pressable
|
|
55
57
|
onPress={() => {
|
|
56
58
|
showToast('Resending OTP');
|
|
59
|
+
const cta = 'Send again';
|
|
60
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VERIFY_OTP_ET_SCREEN, cta: cta });
|
|
61
|
+
|
|
57
62
|
}}
|
|
58
63
|
style={styles.sendAgainText}
|
|
59
64
|
>
|
|
@@ -4,6 +4,8 @@ import { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';
|
|
|
4
4
|
import { Button, Paragraph, Title } from 'react-native-paper';
|
|
5
5
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
6
6
|
import SdkColors, { ColorTheme } from '../../styles/SdkColors';
|
|
7
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
8
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
7
9
|
|
|
8
10
|
const CancelOrderDialog = (props: CancelDialogProps) => {
|
|
9
11
|
return (
|
|
@@ -59,6 +61,9 @@ const CancelOrderDialog = (props: CancelDialogProps) => {
|
|
|
59
61
|
style={CommonStyles.nextButton}
|
|
60
62
|
onPress={() => {
|
|
61
63
|
props.onSubmit(true);
|
|
64
|
+
const cta = props.positiveButtonTitle ?? 'Yes';
|
|
65
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta });
|
|
66
|
+
|
|
62
67
|
}}
|
|
63
68
|
testID="primary"
|
|
64
69
|
>
|
|
@@ -71,6 +76,8 @@ const CancelOrderDialog = (props: CancelDialogProps) => {
|
|
|
71
76
|
style={[CommonStyles.cancelButton, { marginTop: 10 }]}
|
|
72
77
|
onPress={async () => {
|
|
73
78
|
props.onSubmit(false);
|
|
79
|
+
const cta = props.negativeButtonTitle ?? 'No';
|
|
80
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta });
|
|
74
81
|
}}
|
|
75
82
|
testID="secondary"
|
|
76
83
|
>
|
|
@@ -2,6 +2,8 @@ import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Checkbox } from 'react-native-paper';
|
|
4
4
|
import { Feather } from '@expo/vector-icons';
|
|
5
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
6
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
5
7
|
|
|
6
8
|
interface CardProps {
|
|
7
9
|
title: string;
|
|
@@ -29,6 +31,8 @@ const Card = (props: CardProps) => {
|
|
|
29
31
|
status={isSelected}
|
|
30
32
|
onPress={() => {
|
|
31
33
|
props.selectConfig?.onSelect(props.selectConfig?.props);
|
|
34
|
+
const cta = "Checkbox checked";
|
|
35
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta });
|
|
32
36
|
}}
|
|
33
37
|
theme={{ roundness: 5 }}
|
|
34
38
|
/>
|
|
@@ -45,7 +49,11 @@ const Card = (props: CardProps) => {
|
|
|
45
49
|
<>
|
|
46
50
|
<View style={styles.divider} />
|
|
47
51
|
<TouchableOpacity
|
|
48
|
-
onPress={() => props.editConfig?.onEdit(props.editConfig?.props)
|
|
52
|
+
onPress={() => {props.editConfig?.onEdit(props.editConfig?.props)
|
|
53
|
+
const cta = "Edit";
|
|
54
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta });
|
|
55
|
+
|
|
56
|
+
}}
|
|
49
57
|
style={styles.icon}
|
|
50
58
|
>
|
|
51
59
|
<Feather name="edit" size={24} color="#5B80F7" />
|
|
@@ -3,6 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import { Portal, Modal } from 'react-native-paper';
|
|
4
4
|
import { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';
|
|
5
5
|
import { TouchableOpacity } from 'react-native';
|
|
6
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
7
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
6
8
|
|
|
7
9
|
interface ButtonProps {
|
|
8
10
|
label: string;
|
|
@@ -77,7 +79,13 @@ const ModalWidget = (props: ModalProps) => {
|
|
|
77
79
|
<View style={buttonStyle}>
|
|
78
80
|
<TouchableOpacity
|
|
79
81
|
style={[CommonStyles.nextButton, primaryBtnStyles]}
|
|
80
|
-
onPress={
|
|
82
|
+
onPress={() => {
|
|
83
|
+
props.primaryButton.onPress();
|
|
84
|
+
const cta = props.primaryButton.label;
|
|
85
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
}}
|
|
81
89
|
disabled={primaryButtonDisabled}
|
|
82
90
|
>
|
|
83
91
|
<Text
|
|
@@ -88,7 +96,13 @@ const ModalWidget = (props: ModalProps) => {
|
|
|
88
96
|
</TouchableOpacity>
|
|
89
97
|
<TouchableOpacity
|
|
90
98
|
style={[CommonStyles.cancelButton, secondaryBtnStyles]}
|
|
91
|
-
onPress={
|
|
99
|
+
onPress={() => {
|
|
100
|
+
props.secondaryButton.onPress();
|
|
101
|
+
const cta = props.secondaryButton.label;
|
|
102
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
}}
|
|
92
106
|
disabled={secondaryButtonDisabled}
|
|
93
107
|
>
|
|
94
108
|
<Text
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { View, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
3
|
import { EvilIcons, MaterialIcons } from '@expo/vector-icons';
|
|
4
|
-
|
|
4
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
5
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
6
|
+
|
|
5
7
|
interface SearchBarProps {
|
|
6
8
|
searchText: string;
|
|
7
9
|
setSearchText: (searchText: string) => void;
|
|
@@ -18,6 +20,9 @@ const SearchBar = (props: SearchBarProps) => {
|
|
|
18
20
|
const handleClear = () => {
|
|
19
21
|
props.onClear();
|
|
20
22
|
setSearchText('');
|
|
23
|
+
const cta = "Clear";
|
|
24
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SEARCH_BAR_SCREEN, cta: cta });
|
|
25
|
+
|
|
21
26
|
};
|
|
22
27
|
|
|
23
28
|
return (
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
import { Surface, withTheme } from 'react-native-paper';
|
|
13
13
|
import { AntDesign } from '@expo/vector-icons';
|
|
14
14
|
import { Fonts } from '../../styles/executionTasks/CommonStyles';
|
|
15
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
16
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
15
17
|
|
|
16
18
|
export interface SnackbarProps {
|
|
17
19
|
visible: boolean;
|
|
@@ -152,6 +154,8 @@ const SnackbarCustom = ({
|
|
|
152
154
|
color="white"
|
|
153
155
|
onPress={() => {
|
|
154
156
|
setHidden(true);
|
|
157
|
+
const cta = "Close";
|
|
158
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_BAR_CUSTOM_SCREEN, cta: cta });
|
|
155
159
|
}}
|
|
156
160
|
/>
|
|
157
161
|
</View>
|
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
KeyboardTypeOptions,
|
|
8
8
|
} from 'react-native';
|
|
9
9
|
import React, { useRef, useState } from 'react';
|
|
10
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
11
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
10
12
|
|
|
11
13
|
export interface SplitTextInputProps {
|
|
12
14
|
styles: any;
|
|
@@ -30,11 +32,15 @@ const SplitTextInput = ({
|
|
|
30
32
|
const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);
|
|
31
33
|
|
|
32
34
|
const handleOnPress = () => {
|
|
35
|
+
const cta = "Split Text Input";
|
|
36
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SPLIT_TEXT_INPUT_SCREEN, cta: cta });
|
|
37
|
+
|
|
33
38
|
setIsInputBoxFocused(true);
|
|
34
39
|
inputRef.current.focus();
|
|
35
40
|
};
|
|
36
41
|
|
|
37
42
|
const handleOnBlur = () => {
|
|
43
|
+
|
|
38
44
|
setIsInputBoxFocused(false);
|
|
39
45
|
};
|
|
40
46
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, StyleSheet, ScrollView } from 'react-native';
|
|
3
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
4
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
3
5
|
|
|
4
6
|
export interface Tab {
|
|
5
7
|
title: string;
|
|
@@ -40,7 +42,12 @@ const TabsComponent = (props: TabsComponentProps) => {
|
|
|
40
42
|
activeTab === tab.title && styles.activeTab,
|
|
41
43
|
tab.titleStyle ? tab.titleStyle : {},
|
|
42
44
|
]}
|
|
43
|
-
onPress={() =>
|
|
45
|
+
onPress={() => {
|
|
46
|
+
handleTabPress(tab.title)
|
|
47
|
+
const cta = tab.title;
|
|
48
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.TAB_COMPONENT_SCREEN, cta: cta });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
44
51
|
>
|
|
45
52
|
{props.renderTabItem(tab)}
|
|
46
53
|
</TouchableOpacity>
|
package/src/index.tsx
CHANGED
|
@@ -46,7 +46,11 @@ import {
|
|
|
46
46
|
IDispatchExecutor,
|
|
47
47
|
} from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
48
48
|
import Helper from './utils/helper';
|
|
49
|
-
|
|
49
|
+
import SentryAnalyticsSingleton from './analytics/sentry/SentryAnalyticsSingleton';
|
|
50
|
+
import { fireEventWithScreenName } from './analytics/sentry/SentryAnalyticsUtils';
|
|
51
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from './analytics/sentry/SentrySdkConstants';
|
|
52
|
+
import { DispatchAndUserData, SentryEvent } from './analytics/sentry/SentryModels';
|
|
53
|
+
import DocumentManager from './manager/syncmanager/document/DocumentManager';
|
|
50
54
|
export { DispatchExecutor, IDispatch, IDispatchExecutor };
|
|
51
55
|
export { Storage, DispatchExecNavigator };
|
|
52
56
|
export { ETSummary, CompleteSummary, ObjectiveSummary, DispatchSyncType };
|
|
@@ -71,12 +75,15 @@ export {
|
|
|
71
75
|
LOG_TYPE,
|
|
72
76
|
EventListener,
|
|
73
77
|
};
|
|
74
|
-
|
|
78
|
+
//
|
|
75
79
|
export { SyncMethod, JobObjectiveType };
|
|
76
80
|
export type { ETaskSchema };
|
|
77
81
|
export { ExecutionTask, CancelOrderDialog };
|
|
78
82
|
export { DispatchSDKManager };
|
|
79
|
-
|
|
83
|
+
//
|
|
80
84
|
export type { MTSStartRequest, MTSInitRequest };
|
|
81
85
|
export { MtsSdk };
|
|
82
86
|
export { Helper };
|
|
87
|
+
//sentry function export
|
|
88
|
+
export { SentryAnalyticsSingleton, fireEventWithScreenName, SeverityLevelValue, ScreenNameSdkConstants, SentryEventNameSdkConstants, DispatchAndUserData, SentryEvent};
|
|
89
|
+
export { DocumentManager };
|
|
@@ -56,12 +56,18 @@ export default class LocationManager {
|
|
|
56
56
|
}
|
|
57
57
|
public getLastLocation(): DLocation {
|
|
58
58
|
if (this.lastLocation != null && this.lastLocation.coords != null) {
|
|
59
|
+
let accuracy = '';
|
|
60
|
+
if (this.lastLocation.coords.accuracy !== null) {
|
|
61
|
+
let accuracyVal = Math.round(this.lastLocation.coords.accuracy);
|
|
62
|
+
accuracy = accuracyVal.toString();
|
|
63
|
+
}
|
|
59
64
|
return {
|
|
60
65
|
latitude: this.lastLocation.coords.latitude.toString(),
|
|
61
66
|
longitude: this.lastLocation.coords.longitude.toString(),
|
|
67
|
+
accuracy: accuracy,
|
|
62
68
|
};
|
|
63
69
|
} else {
|
|
64
|
-
return { latitude: 'null', longitude: 'null' };
|
|
70
|
+
return { latitude: 'null', longitude: 'null', accuracy: 'null' };
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
public stopLocationUpdates() {
|
|
@@ -74,4 +80,5 @@ export default class LocationManager {
|
|
|
74
80
|
export interface DLocation {
|
|
75
81
|
latitude: string;
|
|
76
82
|
longitude: string;
|
|
83
|
+
accuracy: string;
|
|
77
84
|
}
|
|
@@ -78,8 +78,14 @@ export class DispatchSDKManager {
|
|
|
78
78
|
Logger.getInstance().setLogging(sdkConfig.enableLogging ?? true, sdkConfig);
|
|
79
79
|
let storage = Storage.getInstance();
|
|
80
80
|
|
|
81
|
-
if (
|
|
82
|
-
|
|
81
|
+
if (
|
|
82
|
+
sdkConfig.callbacks?.fetchPhoneNumbersCallback &&
|
|
83
|
+
sdkConfig?.callbacks?.fetchDateTimeCallback
|
|
84
|
+
) {
|
|
85
|
+
await callbackHandler.init(
|
|
86
|
+
sdkConfig.callbacks.fetchPhoneNumbersCallback,
|
|
87
|
+
sdkConfig.callbacks.fetchDateTimeCallback
|
|
88
|
+
);
|
|
83
89
|
}
|
|
84
90
|
await dispatchExecutor.init(
|
|
85
91
|
{
|
|
@@ -17,7 +17,8 @@ export default class DispatchSdkCache {
|
|
|
17
17
|
FIREBASE_REGISTRATION_TOKEN: 'dsc_firebase_token',
|
|
18
18
|
REASON_FETCH_TIME: 'dsc_reasons_fetch_time',
|
|
19
19
|
CURRENT_WORKING_TASK_ID: 'current_working_task_id',
|
|
20
|
-
|
|
20
|
+
TASK_START_TIME: 'task_start_time',
|
|
21
|
+
TASK_START_LOCATION: 'task_start_location',
|
|
21
22
|
};
|
|
22
23
|
public async setObjectInCache(keyName: string, obj: any) {
|
|
23
24
|
await this.storage.setObject(keyName, obj);
|
|
@@ -3,12 +3,16 @@ class CallbacksHandler {
|
|
|
3
3
|
sdsIds: string[]
|
|
4
4
|
) => Promise<{ key: string; value: string[] }>;
|
|
5
5
|
|
|
6
|
+
private _callbackToFetchDateTime!: () => Promise<string>;
|
|
7
|
+
|
|
6
8
|
public init(
|
|
7
9
|
phoneCallback: (
|
|
8
10
|
sdsIds: string[]
|
|
9
|
-
) => Promise<{ key: string; value: string[] }
|
|
11
|
+
) => Promise<{ key: string; value: string[] }>,
|
|
12
|
+
dateTimeCallBack: () => Promise<string>
|
|
10
13
|
) {
|
|
11
14
|
this._callbackToFetchPhoneNumbers = phoneCallback;
|
|
15
|
+
this._callbackToFetchDateTime = dateTimeCallBack;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
public async getPhoneNumbers(
|
|
@@ -19,6 +23,13 @@ class CallbacksHandler {
|
|
|
19
23
|
return await this._callbackToFetchPhoneNumbers(sdsIds);
|
|
20
24
|
}
|
|
21
25
|
}
|
|
26
|
+
|
|
27
|
+
public async getDateTime(): Promise<string | ''> {
|
|
28
|
+
if (!this._callbackToFetchDateTime) return '';
|
|
29
|
+
else {
|
|
30
|
+
return await this._callbackToFetchDateTime();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
22
33
|
}
|
|
23
34
|
|
|
24
35
|
const callbackHandler = new CallbacksHandler();
|
|
@@ -42,6 +42,8 @@ export const DOCUMENT_COLUMNS = {
|
|
|
42
42
|
DISPATCH_ID: 'dispatch_id',
|
|
43
43
|
JOB_ID: 'job_id',
|
|
44
44
|
OBJECTIVE_REF: 'objective_ref',
|
|
45
|
+
GEO_TIMESTAMP: 'geo_timestamp',
|
|
46
|
+
PROCESSED_FILE_PATH: 'processed_file_path',
|
|
45
47
|
};
|
|
46
48
|
export type DocumentRow = {
|
|
47
49
|
id: number;
|
|
@@ -59,6 +61,8 @@ export type DocumentRow = {
|
|
|
59
61
|
dispatch_id: string;
|
|
60
62
|
job_id: string;
|
|
61
63
|
objective_ref: string;
|
|
64
|
+
geo_timestamp: string;
|
|
65
|
+
processed_file_path: string;
|
|
62
66
|
};
|
|
63
67
|
export type EventRow = {
|
|
64
68
|
id: number;
|