@os1-platform/dispatch-mobile 3.2.0 → 3.2.2
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/android/build.gradle +13 -5
- package/android/gradle.properties +3 -3
- package/android/src/main/AndroidManifest.xml +2 -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 +2 -1
- package/dispatch-mobile.podspec +1 -1
- package/lib/commonjs/analytics/events/AnalyticsModels.js +2 -0
- package/lib/commonjs/analytics/events/AnalyticsModels.js.map +1 -0
- package/lib/commonjs/analytics/{sentry/SentrySdkConstants.js → events/AnalyticsSdkConstants.js} +24 -24
- package/lib/commonjs/analytics/events/AnalyticsSdkConstants.js.map +1 -0
- package/lib/commonjs/analytics/{sentry/SentryAnalyticsSingleton.js → events/AnalyticsSingleton.js} +11 -11
- package/lib/commonjs/analytics/events/AnalyticsSingleton.js.map +1 -0
- package/lib/commonjs/analytics/{sentry/SentryAnalyticsUtils.js → events/AnalyticsUtils.js} +15 -20
- package/lib/commonjs/analytics/events/AnalyticsUtils.js.map +1 -0
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js +2 -2
- package/lib/commonjs/analytics/firebase/FirebaseLogging.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 +34 -35
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +15 -16
- 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 +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +14 -15
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +11 -12
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +31 -32
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +11 -12
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +20 -21
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +11 -12
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +15 -16
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +7 -8
- 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 +10 -11
- 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 +31 -32
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +15 -16
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +23 -24
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +15 -16
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +11 -12
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +27 -28
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +26 -27
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +1 -2
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.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 +20 -20
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +1 -2
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +11 -12
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js +7 -8
- package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js +11 -12
- 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 +8 -9
- 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 +11 -12
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +12 -12
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +10 -10
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +10 -9
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +18 -18
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +8 -9
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +7 -8
- 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/index.js +27 -28
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/locale/i18n.js +2 -0
- package/lib/commonjs/locale/i18n.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/ReasonCodeContainer.js +1 -2
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +1 -16
- package/lib/commonjs/manager/sdk/DispatchSDKManager.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/database.js +1 -2
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +15 -16
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +39 -40
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +1 -2
- 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/sdk.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/types/latlng-to-dms.d.js +2 -0
- package/lib/commonjs/types/latlng-to-dms.d.js.map +1 -0
- 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 +12 -13
- 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 +8 -9
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +8 -9
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +7 -8
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +8 -9
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +8 -9
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +8 -9
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +8 -9
- 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 +8 -9
- 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/SdkUtils.js +1 -2
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +1 -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/events/AnalyticsModels.js +2 -0
- package/lib/module/analytics/events/AnalyticsModels.js.map +1 -0
- package/lib/module/analytics/{sentry/SentrySdkConstants.js → events/AnalyticsSdkConstants.js} +23 -23
- package/lib/module/analytics/events/AnalyticsSdkConstants.js.map +1 -0
- package/lib/module/analytics/{sentry/SentryAnalyticsSingleton.js → events/AnalyticsSingleton.js} +10 -10
- package/lib/module/analytics/events/AnalyticsSingleton.js.map +1 -0
- package/lib/module/analytics/{sentry/SentryAnalyticsUtils.js → events/AnalyticsUtils.js} +13 -16
- package/lib/module/analytics/events/AnalyticsUtils.js.map +1 -0
- package/lib/module/analytics/firebase/FirebaseLogging.js +2 -2
- package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +10 -10
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +5 -5
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +7 -7
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverET.js +4 -4
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +9 -9
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +4 -4
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +7 -7
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +4 -4
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +5 -5
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -3
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +5 -5
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +9 -9
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +5 -5
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +7 -7
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +5 -5
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +4 -4
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +8 -8
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +9 -9
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +8 -8
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +4 -4
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js +3 -3
- package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/OTPView.js +4 -4
- 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 +4 -4
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +4 -4
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +5 -5
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +4 -4
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +5 -4
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +9 -9
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +4 -4
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +3 -3
- package/lib/module/components/widgets/TabsComponent.js.map +1 -1
- package/lib/module/index.js +6 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/locale/i18n.js +2 -0
- package/lib/module/locale/i18n.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +1 -14
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +6 -6
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +14 -14
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/types/latlng-to-dms.d.js +2 -0
- package/lib/module/types/latlng-to-dms.d.js.map +1 -0
- package/lib/module/ui/screens/DeliverScreen.js +5 -5
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +4 -4
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +4 -4
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +3 -3
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +4 -4
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +4 -4
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +4 -4
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +4 -4
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +4 -4
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/typescript/src/analytics/events/AnalyticsModels.d.ts +30 -0
- package/lib/typescript/src/analytics/{sentry/SentrySdkConstants.d.ts → events/AnalyticsSdkConstants.d.ts} +1 -1
- package/lib/typescript/src/analytics/{sentry/SentryAnalyticsSingleton.d.ts → events/AnalyticsSingleton.d.ts} +3 -3
- package/lib/typescript/src/analytics/events/AnalyticsUtils.d.ts +2 -0
- package/lib/typescript/src/analytics/firebase/FirebaseLogging.d.ts +2 -2
- package/lib/typescript/src/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/src/index.d.ts +5 -5
- package/lib/typescript/src/models/sdk.d.ts +0 -5
- package/lib/typescript/src/network/GraphQLClient.d.ts +5 -5
- package/lib/typescript/src/network/NetworkClient.d.ts +3 -3
- package/lib/typescript/src/network/client.d.ts +1 -1
- package/lib/typescript/src/resources/Login.d.ts +7 -7
- package/lib/typescript/src/resources/network.d.ts +1 -1
- package/lib/typescript/src/utils/ApiUtils.d.ts +2 -2
- package/package.json +79 -75
- package/src/analytics/events/AnalyticsModels.ts +32 -0
- package/src/analytics/{sentry/SentrySdkConstants.ts → events/AnalyticsSdkConstants.ts} +1 -1
- package/src/analytics/{sentry/SentryAnalyticsSingleton.ts → events/AnalyticsSingleton.ts} +8 -8
- package/src/analytics/{sentry/SentryAnalyticsUtils.ts → events/AnalyticsUtils.ts} +17 -21
- package/src/analytics/firebase/FirebaseLogging.ts +7 -7
- package/src/components/executiontasks/cancellation/CancelET.tsx +10 -10
- package/src/components/executiontasks/captureInput/CaptureText.tsx +5 -5
- package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +8 -8
- package/src/components/executiontasks/deliver/DeliverET.tsx +4 -4
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +10 -10
- package/src/components/executiontasks/display/DisplayModalET.tsx +4 -4
- package/src/components/executiontasks/doodle/SignatureET.tsx +7 -7
- package/src/components/executiontasks/dropCash/DropCashET.tsx +4 -4
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +6 -6
- package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +3 -3
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +5 -5
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +9 -9
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +5 -5
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +7 -7
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +5 -5
- package/src/components/executiontasks/pickup/PickupET.tsx +4 -4
- package/src/components/executiontasks/pickup/SLPickupET.tsx +8 -8
- package/src/components/executiontasks/scan/ScanET.tsx +9 -9
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +8 -8
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +5 -5
- package/src/components/executiontasks/validateOTP/components/ContactListView.tsx +4 -4
- package/src/components/executiontasks/validateOTP/components/OTPView.tsx +5 -5
- package/src/components/executiontasks/validateOTP/components/VerificationComplete.tsx +7 -7
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +4 -4
- package/src/components/widgets/CancelOrderDialog.tsx +4 -4
- package/src/components/widgets/Card.tsx +5 -5
- package/src/components/widgets/ModalWidget.tsx +5 -5
- package/src/components/widgets/SearchBar.tsx +5 -4
- package/src/components/widgets/SnackBarCustom.tsx +10 -10
- package/src/components/widgets/SplitTextInput.tsx +5 -5
- package/src/components/widgets/TabsComponent.tsx +3 -3
- package/src/index.tsx +6 -6
- package/src/locale/i18n.ts +3 -0
- package/src/manager/sdk/DispatchSDKManager.ts +0 -14
- package/src/manager/syncmanager/document/DocumentHttpClient.ts +6 -6
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +14 -14
- package/src/models/sdk.ts +0 -5
- package/src/types/latlng-to-dms.d.ts +4 -0
- package/src/ui/screens/DeliverScreen.tsx +5 -5
- package/src/ui/screens/DoodleScreen.tsx +4 -4
- package/src/ui/screens/DropCashScreen.tsx +4 -4
- package/src/ui/screens/FormsScreen.tsx +3 -3
- package/src/ui/screens/GeofenceScreen.tsx +4 -4
- package/src/ui/screens/ImageCaptureScreen.tsx +4 -4
- package/src/ui/screens/PaymentScreen.tsx +4 -4
- package/src/ui/screens/PickupScreen.tsx +4 -4
- package/src/ui/screens/ValidateOTPScreen.tsx +5 -5
- 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/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.10.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.10.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.10.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.10.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.10.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/8.10.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/AndroidProjectSystem.xml +0 -6
- package/android/.idea/caches/deviceStreaming.xml +0 -860
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -19
- package/android/.idea/kotlinc.xml +0 -6
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/runConfigurations.xml +0 -17
- package/android/.idea/studiobot.xml +0 -6
- package/android/.idea/vcs.xml +0 -6
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +0 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +0 -1
- package/lib/commonjs/analytics/sentry/SentryModels.js +0 -6
- package/lib/commonjs/analytics/sentry/SentryModels.js.map +0 -1
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +0 -1
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +0 -1
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +0 -1
- package/lib/module/analytics/sentry/SentryModels.js +0 -2
- package/lib/module/analytics/sentry/SentryModels.js.map +0 -1
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +0 -1
- package/lib/typescript/src/analytics/sentry/SentryAnalyticsUtils.d.ts +0 -2
- package/lib/typescript/src/analytics/sentry/SentryModels.d.ts +0 -15
- package/src/analytics/sentry/SentryModels.ts +0 -18
|
@@ -41,10 +41,10 @@ import { TouchableOpacity } from 'react-native';
|
|
|
41
41
|
import ModalWidget from '../../../components/widgets/ModalWidget';
|
|
42
42
|
import {
|
|
43
43
|
ScreenNameSdkConstants,
|
|
44
|
-
|
|
44
|
+
EventNameSdkConstants,
|
|
45
45
|
SeverityLevelValue,
|
|
46
|
-
} from '../../../analytics/
|
|
47
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
46
|
+
} from '../../../analytics/events/AnalyticsSdkConstants';
|
|
47
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
48
48
|
|
|
49
49
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
50
50
|
<View style={{ justifyContent: 'center' }}>
|
|
@@ -133,7 +133,7 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
133
133
|
const cta = 'Back Arrow';
|
|
134
134
|
fireEventWithScreenName({
|
|
135
135
|
severityLevel: SeverityLevelValue.LOG,
|
|
136
|
-
eventName:
|
|
136
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
137
137
|
screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN,
|
|
138
138
|
cta: cta,
|
|
139
139
|
});
|
|
@@ -213,7 +213,7 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
213
213
|
const cta = 'Exit';
|
|
214
214
|
fireEventWithScreenName({
|
|
215
215
|
severityLevel: SeverityLevelValue.LOG,
|
|
216
|
-
eventName:
|
|
216
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
217
217
|
screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN,
|
|
218
218
|
cta: cta,
|
|
219
219
|
});
|
|
@@ -228,7 +228,7 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
228
228
|
const cta = 'Cancel';
|
|
229
229
|
fireEventWithScreenName({
|
|
230
230
|
severityLevel: SeverityLevelValue.LOG,
|
|
231
|
-
eventName:
|
|
231
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
232
232
|
screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN,
|
|
233
233
|
cta: cta,
|
|
234
234
|
});
|
|
@@ -360,7 +360,7 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
360
360
|
const cta = 'Confirm';
|
|
361
361
|
fireEventWithScreenName({
|
|
362
362
|
severityLevel: SeverityLevelValue.LOG,
|
|
363
|
-
eventName:
|
|
363
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
364
364
|
screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN,
|
|
365
365
|
cta: cta,
|
|
366
366
|
});
|
|
@@ -411,7 +411,7 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
411
411
|
fireEventWithScreenName({
|
|
412
412
|
severityLevel: SeverityLevelValue.LOG,
|
|
413
413
|
eventName:
|
|
414
|
-
|
|
414
|
+
EventNameSdkConstants.BUTTON_CLICKED,
|
|
415
415
|
screenName:
|
|
416
416
|
ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN,
|
|
417
417
|
cta: cta,
|
|
@@ -480,7 +480,7 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
480
480
|
const cta = 'Confirm';
|
|
481
481
|
fireEventWithScreenName({
|
|
482
482
|
severityLevel: SeverityLevelValue.LOG,
|
|
483
|
-
eventName:
|
|
483
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
484
484
|
screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN,
|
|
485
485
|
cta: cta,
|
|
486
486
|
});
|
|
@@ -516,7 +516,7 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
516
516
|
fireEventWithScreenName({
|
|
517
517
|
severityLevel: SeverityLevelValue.LOG,
|
|
518
518
|
eventName:
|
|
519
|
-
|
|
519
|
+
EventNameSdkConstants.BUTTON_CLICKED,
|
|
520
520
|
screenName:
|
|
521
521
|
ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN,
|
|
522
522
|
cta: cta,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
DeliverPickupStyles,
|
|
22
22
|
Fonts,
|
|
23
23
|
} from '../../../styles/executionTasks/CommonStyles';
|
|
24
|
-
import { ScreenNameSdkConstants,
|
|
25
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
24
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../analytics/events/AnalyticsSdkConstants';
|
|
25
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
26
26
|
|
|
27
27
|
const DisplayModalET = (props: DisplayETInput) => {
|
|
28
28
|
const [modalVisible, setModalVisible] = useState(props.showDialog);
|
|
@@ -96,7 +96,7 @@ const DisplayModalET = (props: DisplayETInput) => {
|
|
|
96
96
|
onPress={async () => {
|
|
97
97
|
await sendEtOutput(true);
|
|
98
98
|
const cta = props.positiveBtn;
|
|
99
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
99
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DISPLAY_MODAL_ET, cta: cta });
|
|
100
100
|
|
|
101
101
|
}}
|
|
102
102
|
testID="primary"
|
|
@@ -112,7 +112,7 @@ const DisplayModalET = (props: DisplayETInput) => {
|
|
|
112
112
|
onPress={async () => {
|
|
113
113
|
await sendEtOutput(false);
|
|
114
114
|
const cta = props.negativeBtn;
|
|
115
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
115
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DISPLAY_MODAL_ET, cta: cta });
|
|
116
116
|
|
|
117
117
|
}}
|
|
118
118
|
testID="secondary"
|
|
@@ -34,14 +34,14 @@ import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
|
34
34
|
import { useFocusEffect } from '@react-navigation/native';
|
|
35
35
|
import { getStr } from '../../../locale/util';
|
|
36
36
|
import Str from '../../../locale/Str';
|
|
37
|
-
import { ScreenNameSdkConstants,
|
|
38
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
37
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../analytics/events/AnalyticsSdkConstants';
|
|
38
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
39
39
|
import LocationManager from '../../../manager/location/LocationManager';
|
|
40
40
|
import callbackHandler from '../../../manager/sdk/callbacksHandler';
|
|
41
41
|
|
|
42
42
|
const SignatureET = (props: SignatureInput) => {
|
|
43
43
|
|
|
44
|
-
const signatureViewRef = useRef<any>();
|
|
44
|
+
const signatureViewRef = useRef<any>(null);
|
|
45
45
|
const [dragged, setDragged] = useState(0);
|
|
46
46
|
const dragRef = useRef<number>(0);
|
|
47
47
|
const [showBackModal, setShowBackModal] = useState(false);
|
|
@@ -79,7 +79,7 @@ const SignatureET = (props: SignatureInput) => {
|
|
|
79
79
|
props.navigation.goBack();
|
|
80
80
|
}
|
|
81
81
|
const cta = 'Back Arrow';
|
|
82
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
82
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
}}
|
|
@@ -214,7 +214,7 @@ lineHeight: 24 }}>{props.title}</Text>
|
|
|
214
214
|
}
|
|
215
215
|
signatureViewRef.current?.resetImage();
|
|
216
216
|
const cta = 'Clear';
|
|
217
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
217
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
}}
|
|
@@ -278,7 +278,7 @@ lineHeight: 24 }}>{props.title}</Text>
|
|
|
278
278
|
onPress={async () => {
|
|
279
279
|
await saveAndSubmit(true, '');
|
|
280
280
|
const cta = getStr(Str.skip);
|
|
281
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
281
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
282
282
|
|
|
283
283
|
}}>{getStr(Str.skip)}
|
|
284
284
|
</Button>
|
|
@@ -296,7 +296,7 @@ lineHeight: 24 }}>{props.title}</Text>
|
|
|
296
296
|
mode={'contained'}
|
|
297
297
|
onPress={async () => {signatureViewRef.current?.saveImage()
|
|
298
298
|
const cta = 'Proceed';
|
|
299
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
299
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
300
300
|
|
|
301
301
|
}
|
|
302
302
|
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
import { isEmptyOrBlank } from '../../../utils/utils';
|
|
13
13
|
import { CommonStyles } from '../../../styles/executionTasks/CommonStyles';
|
|
14
14
|
import { getPaymentValue } from '../payments/PaymentUtils';
|
|
15
|
-
import { ScreenNameSdkConstants,
|
|
16
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
15
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../analytics/events/AnalyticsSdkConstants';
|
|
16
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
17
17
|
|
|
18
18
|
const styles = PaymentStyles;
|
|
19
19
|
|
|
@@ -93,7 +93,7 @@ const DropCashET = (props: DropCashInput) => {
|
|
|
93
93
|
)),
|
|
94
94
|
});
|
|
95
95
|
const cta = 'Cancel';
|
|
96
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
96
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DROP_CASH_ET_SCREEN, cta: cta });
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
}}
|
|
@@ -140,7 +140,7 @@ const DropCashET = (props: DropCashInput) => {
|
|
|
140
140
|
});
|
|
141
141
|
} else setInputError('Please enter valid amount.');
|
|
142
142
|
const cta = 'Drop Cash';
|
|
143
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
143
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DROP_CASH_ET_SCREEN, cta: cta });
|
|
144
144
|
|
|
145
145
|
}}
|
|
146
146
|
>
|
|
@@ -25,10 +25,10 @@ import { useFocusEffect } from '@react-navigation/native';
|
|
|
25
25
|
import { BackHandler } from 'react-native';
|
|
26
26
|
import {
|
|
27
27
|
ScreenNameSdkConstants,
|
|
28
|
-
|
|
28
|
+
EventNameSdkConstants,
|
|
29
29
|
SeverityLevelValue,
|
|
30
|
-
} from '../../../analytics/
|
|
31
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
30
|
+
} from '../../../analytics/events/AnalyticsSdkConstants';
|
|
31
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
32
32
|
|
|
33
33
|
const SLDropCash = (props: DropCashInput) => {
|
|
34
34
|
const [amountCollected, setAmountCollected] = useState(
|
|
@@ -90,7 +90,7 @@ const SLDropCash = (props: DropCashInput) => {
|
|
|
90
90
|
const cta = 'Back Arrow';
|
|
91
91
|
fireEventWithScreenName({
|
|
92
92
|
severityLevel: SeverityLevelValue.LOG,
|
|
93
|
-
eventName:
|
|
93
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
94
94
|
screenName: ScreenNameSdkConstants.SL_DROP_CASH_ET_SCREEN,
|
|
95
95
|
cta: cta,
|
|
96
96
|
});
|
|
@@ -268,7 +268,7 @@ const SLDropCash = (props: DropCashInput) => {
|
|
|
268
268
|
const cta = 'Confirm';
|
|
269
269
|
fireEventWithScreenName({
|
|
270
270
|
severityLevel: SeverityLevelValue.LOG,
|
|
271
|
-
eventName:
|
|
271
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
272
272
|
screenName: ScreenNameSdkConstants.SL_DROP_CASH_ET_SCREEN,
|
|
273
273
|
cta: cta,
|
|
274
274
|
});
|
|
@@ -300,7 +300,7 @@ const SLDropCash = (props: DropCashInput) => {
|
|
|
300
300
|
const cta = 'Cancel';
|
|
301
301
|
fireEventWithScreenName({
|
|
302
302
|
severityLevel: SeverityLevelValue.LOG,
|
|
303
|
-
eventName:
|
|
303
|
+
eventName: EventNameSdkConstants.BUTTON_CLICKED,
|
|
304
304
|
screenName: ScreenNameSdkConstants.SL_DROP_CASH_ET_SCREEN,
|
|
305
305
|
cta: cta,
|
|
306
306
|
});
|
|
@@ -10,8 +10,8 @@ import DateTimePicker, { DateTimePickerEvent } from '@react-native-community/dat
|
|
|
10
10
|
import type { WidgetProps } from '@rjsf/core';
|
|
11
11
|
import { useFormContext } from 'rjsf-native';
|
|
12
12
|
import SdkColors, { ColorTheme } from '../../../../styles/SdkColors';
|
|
13
|
-
import { ScreenNameSdkConstants,
|
|
14
|
-
import { fireEventWithScreenName } from '../../../../analytics/
|
|
13
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/events/AnalyticsSdkConstants';
|
|
14
|
+
import { fireEventWithScreenName } from '../../../../analytics/events/AnalyticsUtils';
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
const MODES = {
|
|
@@ -65,7 +65,7 @@ const DateTimeWidget = ({
|
|
|
65
65
|
<View style={styles.container}>
|
|
66
66
|
<TouchableOpacity onPress={() => {setShow(true)
|
|
67
67
|
const cta = label;
|
|
68
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
68
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DATE_TIME_WIDGET_SCREEN, cta: cta });
|
|
69
69
|
|
|
70
70
|
}}>
|
|
71
71
|
<TextInput
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
import type { WidgetProps } from '@rjsf/core';
|
|
11
11
|
import { useFormContext } from 'rjsf-native';
|
|
12
|
-
import
|
|
12
|
+
import AntDesign from '@react-native-vector-icons/ant-design';
|
|
13
13
|
import CScanner from '../../scan/sub_components/CScanner';
|
|
14
|
-
import { ScreenNameSdkConstants,
|
|
15
|
-
import { fireEventWithScreenName } from '../../../../analytics/
|
|
14
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/events/AnalyticsSdkConstants';
|
|
15
|
+
import { fireEventWithScreenName } from '../../../../analytics/events/AnalyticsUtils';
|
|
16
16
|
|
|
17
17
|
const QRBarcodeScannerWidget = ({
|
|
18
18
|
id,
|
|
@@ -43,7 +43,7 @@ const QRBarcodeScannerWidget = ({
|
|
|
43
43
|
<View style={styles.container}>
|
|
44
44
|
<TouchableOpacity onPress={() => {setShow(true)
|
|
45
45
|
const cta = label;
|
|
46
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
46
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.QRBARCODE_WIDGET_SCREEN, cta: cta });
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
}}>
|
|
@@ -103,7 +103,7 @@ function ScannerDialog(props: ScannerDialogProps) {
|
|
|
103
103
|
}}
|
|
104
104
|
/>
|
|
105
105
|
<AntDesign
|
|
106
|
-
name="
|
|
106
|
+
name="close-circle"
|
|
107
107
|
size={40}
|
|
108
108
|
color="blue"
|
|
109
109
|
onPress={() => {
|
|
@@ -17,8 +17,8 @@ import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
|
17
17
|
import { useFocusEffect } from '@react-navigation/native';
|
|
18
18
|
import Circle from "./circle-xmark.svg"
|
|
19
19
|
import CameraIcon from "./camera.svg"
|
|
20
|
-
import { ScreenNameSdkConstants,
|
|
21
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
20
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../analytics/events/AnalyticsSdkConstants';
|
|
21
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
22
22
|
import LocationManager from '../../../manager/location/LocationManager';
|
|
23
23
|
import callbackHandler from '../../../manager/sdk/callbacksHandler';
|
|
24
24
|
|
|
@@ -71,7 +71,7 @@ const ImageCapture = (props: any) => {
|
|
|
71
71
|
setShowBackModal(true);
|
|
72
72
|
else props.navigation.goBack();
|
|
73
73
|
const cta = "Back Arrow";
|
|
74
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
74
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
75
75
|
|
|
76
76
|
}}
|
|
77
77
|
name="arrow-back"
|
|
@@ -138,7 +138,7 @@ const ImageCapture = (props: any) => {
|
|
|
138
138
|
onPress={() => {
|
|
139
139
|
onPress()
|
|
140
140
|
const cta = "Camera Icon";
|
|
141
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
141
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
142
142
|
|
|
143
143
|
}}
|
|
144
144
|
>
|
|
@@ -157,7 +157,7 @@ const ImageCapture = (props: any) => {
|
|
|
157
157
|
onPress={() => {
|
|
158
158
|
captureImage(index)
|
|
159
159
|
const cta = "Click Photo";
|
|
160
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
160
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
161
161
|
|
|
162
162
|
}}
|
|
163
163
|
uppercase={false}
|
|
@@ -190,7 +190,7 @@ const ImageCapture = (props: any) => {
|
|
|
190
190
|
onPress={() => {
|
|
191
191
|
onPress()
|
|
192
192
|
const cta = "Circle Icon";
|
|
193
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
193
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
194
194
|
|
|
195
195
|
}}
|
|
196
196
|
style={{
|
|
@@ -343,7 +343,7 @@ const ImageCapture = (props: any) => {
|
|
|
343
343
|
onPress={async () => {
|
|
344
344
|
await deleteImage(index);
|
|
345
345
|
const cta = "Delete Icon";
|
|
346
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
346
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
347
347
|
|
|
348
348
|
}}
|
|
349
349
|
/>
|
|
@@ -396,7 +396,7 @@ const ImageCapture = (props: any) => {
|
|
|
396
396
|
)),
|
|
397
397
|
});
|
|
398
398
|
const cta = "Cancel";
|
|
399
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
399
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
400
400
|
|
|
401
401
|
}}
|
|
402
402
|
>
|
|
@@ -422,7 +422,7 @@ const ImageCapture = (props: any) => {
|
|
|
422
422
|
onPress={async () => {
|
|
423
423
|
await handleSubmit();
|
|
424
424
|
const cta = "Proceed";
|
|
425
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
425
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
426
426
|
|
|
427
427
|
}}
|
|
428
428
|
>
|
|
@@ -32,8 +32,8 @@ import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
|
32
32
|
import { hasGoBackConnector } from '../../../../components/utils';
|
|
33
33
|
import { useFocusEffect } from '@react-navigation/native';
|
|
34
34
|
import { BackHandler } from 'react-native';
|
|
35
|
-
import { ScreenNameSdkConstants,
|
|
36
|
-
import { fireEventWithScreenName } from '../../../../analytics/
|
|
35
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/events/AnalyticsSdkConstants';
|
|
36
|
+
import { fireEventWithScreenName } from '../../../../analytics/events/AnalyticsUtils';
|
|
37
37
|
|
|
38
38
|
const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
39
39
|
const [disableProceed, setDisableProceed] = useState(false);
|
|
@@ -73,7 +73,7 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
73
73
|
setShowBackModal(true);
|
|
74
74
|
else props.navigation.goBack();
|
|
75
75
|
const cta = "Back Arrow";
|
|
76
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
76
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
77
77
|
|
|
78
78
|
}}
|
|
79
79
|
name="arrow-back"
|
|
@@ -172,7 +172,7 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
172
172
|
setDisableProceed(true);
|
|
173
173
|
props.onSubmitET(etOutput);
|
|
174
174
|
const cta = "Continue";
|
|
175
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
175
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
176
176
|
|
|
177
177
|
}}
|
|
178
178
|
>
|
|
@@ -203,7 +203,7 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
203
203
|
setDisableProceed(true);
|
|
204
204
|
props.onSubmitET(etOutput);
|
|
205
205
|
const cta = "Cancel";
|
|
206
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
206
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
207
207
|
|
|
208
208
|
}}
|
|
209
209
|
>
|
|
@@ -23,8 +23,8 @@ import { hasGoBackConnector } from '../../../../components/utils';
|
|
|
23
23
|
import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
24
24
|
import { useFocusEffect } from '@react-navigation/native';
|
|
25
25
|
import { BackHandler } from 'react-native';
|
|
26
|
-
import { ScreenNameSdkConstants,
|
|
27
|
-
import { fireEventWithScreenName } from '../../../../analytics/
|
|
26
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/events/AnalyticsSdkConstants';
|
|
27
|
+
import { fireEventWithScreenName } from '../../../../analytics/events/AnalyticsUtils';
|
|
28
28
|
|
|
29
29
|
const styles = PaymentStyles;
|
|
30
30
|
|
|
@@ -77,7 +77,7 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
77
77
|
setShowBackModal(true);
|
|
78
78
|
else props.navigation.goBack();
|
|
79
79
|
const cta = "Back Arrow";
|
|
80
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
80
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
81
81
|
|
|
82
82
|
}}
|
|
83
83
|
name="arrow-back"
|
|
@@ -131,7 +131,7 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
131
131
|
onPress={() => {
|
|
132
132
|
setPaymentMode(item);
|
|
133
133
|
const cta = paymentMode === item ? 'paymentMode checked' : 'paymentMode unchecked';
|
|
134
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
134
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
135
135
|
|
|
136
136
|
}}
|
|
137
137
|
/>
|
|
@@ -140,7 +140,7 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
140
140
|
onPress={() => {
|
|
141
141
|
setPaymentMode(item);
|
|
142
142
|
const cta = item;
|
|
143
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
143
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
144
144
|
|
|
145
145
|
}}
|
|
146
146
|
>
|
|
@@ -208,7 +208,7 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
208
208
|
)),
|
|
209
209
|
});
|
|
210
210
|
const cta = 'Cancel';
|
|
211
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
211
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
212
212
|
|
|
213
213
|
}}
|
|
214
214
|
>
|
|
@@ -247,7 +247,7 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
247
247
|
});
|
|
248
248
|
} else showToast('No payment mode selected');
|
|
249
249
|
const cta = 'Collect';
|
|
250
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
250
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
251
251
|
|
|
252
252
|
}}
|
|
253
253
|
>
|
|
@@ -23,8 +23,8 @@ import { GO_BACK_EVENT_CODE } from '../../../../constants/constants';
|
|
|
23
23
|
import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
24
24
|
import { hasGoBackConnector } from '../../../../components/utils';
|
|
25
25
|
import { useFocusEffect } from '@react-navigation/native';
|
|
26
|
-
import { ScreenNameSdkConstants,
|
|
27
|
-
import { fireEventWithScreenName } from '../../../../analytics/
|
|
26
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/events/AnalyticsSdkConstants';
|
|
27
|
+
import { fireEventWithScreenName } from '../../../../analytics/events/AnalyticsUtils';
|
|
28
28
|
|
|
29
29
|
const styles = PaymentStyles;
|
|
30
30
|
|
|
@@ -68,7 +68,7 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
68
68
|
setShowBackModal(true);
|
|
69
69
|
else props.navigation.goBack();
|
|
70
70
|
const cta = 'Back Arrow';
|
|
71
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
71
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
72
72
|
|
|
73
73
|
}}
|
|
74
74
|
name="arrow-back"
|
|
@@ -208,7 +208,7 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
208
208
|
)),
|
|
209
209
|
});
|
|
210
210
|
const cta = 'Cancel';
|
|
211
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
211
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
212
212
|
|
|
213
213
|
}}
|
|
214
214
|
>
|
|
@@ -268,7 +268,7 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
268
268
|
setInputError('Please enter valid amount.');
|
|
269
269
|
}
|
|
270
270
|
const cta = 'Next';
|
|
271
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
271
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
272
272
|
|
|
273
273
|
}}
|
|
274
274
|
>
|
|
@@ -7,8 +7,8 @@ import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
|
7
7
|
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
8
8
|
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
9
9
|
import type { LineItem } from '../deliver/DeliverETInput';
|
|
10
|
-
import { ScreenNameSdkConstants,
|
|
11
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
10
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../analytics/events/AnalyticsSdkConstants';
|
|
11
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
12
12
|
|
|
13
13
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
14
14
|
<Card style={deliverETStyles.item}>
|
|
@@ -75,7 +75,7 @@ const PickupET = (props: PickupETInput) => {
|
|
|
75
75
|
)),
|
|
76
76
|
});
|
|
77
77
|
const cta = 'Cancel';
|
|
78
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
78
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PICKUP_ET_SCREEN, cta: cta });
|
|
79
79
|
|
|
80
80
|
}}
|
|
81
81
|
>
|
|
@@ -104,7 +104,7 @@ const PickupET = (props: PickupETInput) => {
|
|
|
104
104
|
)),
|
|
105
105
|
});
|
|
106
106
|
const cta = 'Pickup';
|
|
107
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
107
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PICKUP_ET_SCREEN, cta: cta });
|
|
108
108
|
|
|
109
109
|
}}
|
|
110
110
|
>
|
|
@@ -28,8 +28,8 @@ import { getStrVal } from '../../../locale/util';
|
|
|
28
28
|
import Str from '../../../locale/Str';
|
|
29
29
|
import CircleMark from '../../../icons/CircleMark';
|
|
30
30
|
import ModalWidget from '../../../components/widgets/ModalWidget';
|
|
31
|
-
import { ScreenNameSdkConstants,
|
|
32
|
-
import { fireEventWithScreenName } from '../../../analytics/
|
|
31
|
+
import { ScreenNameSdkConstants, EventNameSdkConstants, SeverityLevelValue } from '../../../analytics/events/AnalyticsSdkConstants';
|
|
32
|
+
import { fireEventWithScreenName } from '../../../analytics/events/AnalyticsUtils';
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
@@ -96,7 +96,7 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
96
96
|
setShowBackModal(true);
|
|
97
97
|
else props.navigation.goBack();
|
|
98
98
|
const cta = 'Back Arrow';
|
|
99
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
99
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
100
100
|
|
|
101
101
|
}}
|
|
102
102
|
name="arrow-back"
|
|
@@ -172,7 +172,7 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
172
172
|
}
|
|
173
173
|
setShowBackModal(false);
|
|
174
174
|
const cta = 'Exit';
|
|
175
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
175
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
176
176
|
},
|
|
177
177
|
styles: styles.primaryButtonStyles,
|
|
178
178
|
}}
|
|
@@ -182,7 +182,7 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
182
182
|
setGoBack(false);
|
|
183
183
|
setShowPickupModal(true);
|
|
184
184
|
const cta = 'Cancel';
|
|
185
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
185
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
186
186
|
|
|
187
187
|
},
|
|
188
188
|
styles: styles.secondaryButtonStyles,
|
|
@@ -220,7 +220,7 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
220
220
|
setShowPickupModal(false);
|
|
221
221
|
setGoBack(true);
|
|
222
222
|
const cta = 'Circle Mark Icon';
|
|
223
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
223
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
224
224
|
|
|
225
225
|
}}
|
|
226
226
|
style={styles.crossIcon}
|
|
@@ -274,7 +274,7 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
274
274
|
)),
|
|
275
275
|
});
|
|
276
276
|
const cta = 'Yes';
|
|
277
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
277
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
278
278
|
|
|
279
279
|
}}
|
|
280
280
|
>
|
|
@@ -304,7 +304,7 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
304
304
|
)),
|
|
305
305
|
});
|
|
306
306
|
const cta = 'No';
|
|
307
|
-
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName:
|
|
307
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: EventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
308
308
|
|
|
309
309
|
}}
|
|
310
310
|
>
|