@os1-platform/dispatch-mobile 2.1.4 → 2.1.6
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 +15 -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 +79 -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 +75 -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 +33 -3
- 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/CaptureUtils.js +18 -6
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +62 -5
- 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 +46 -0
- package/lib/commonjs/index.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/models/execTasks/ETBaseModels.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/module/analytics/firebase/FirebaseLogging.js +8 -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 +70 -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 +69 -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 +33 -3
- 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/CaptureUtils.js +18 -6
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +63 -6
- 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 +9 -0
- package/lib/module/index.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/models/execTasks/ETBaseModels.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/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 +63 -0
- package/lib/typescript/index.d.ts +5 -0
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +2 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +25 -6
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +4 -4
- package/lib/typescript/utils/Logger.d.ts +0 -3
- package/package.json +6 -4
- package/src/analytics/firebase/FirebaseLogging.ts +13 -0
- package/src/analytics/sentry/SentryAnalyticsSingleton.ts +35 -0
- package/src/analytics/sentry/SentryAnalyticsUtils.ts +71 -0
- package/src/analytics/sentry/SentryModels.ts +18 -0
- package/src/analytics/sentry/SentrySdkConstants.ts +74 -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 +23 -3
- 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/CaptureUtils.ts +17 -5
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +32 -5
- 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 +8 -3
- package/src/manager/sdk/DispatchSdkCache.ts +2 -1
- package/src/models/execTasks/ETBaseModels.ts +20 -7
- 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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import {SeverityLevel} from '@sentry/types';
|
|
3
|
+
|
|
4
|
+
export interface SentryEvent {
|
|
5
|
+
severityLevel: SeverityLevel,
|
|
6
|
+
eventName: string,
|
|
7
|
+
cta?: string,
|
|
8
|
+
screenName?: string,
|
|
9
|
+
extraParams?: any
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface DispatchAndUserData {
|
|
13
|
+
dispatchId?: string|null,
|
|
14
|
+
tenantId?: string|null,
|
|
15
|
+
userId?: string|null,
|
|
16
|
+
userName?: string|null,
|
|
17
|
+
userEmail?: string|null,
|
|
18
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export enum ScreenNameSdkConstants {
|
|
2
|
+
PICKUP_ET_SCREEN = "PICKUP_ET_SCREEN",
|
|
3
|
+
SL_PICKUP_ET_SCREEN = "SL_PICKUP_ET_SCREEN",
|
|
4
|
+
DELIVER_ET_SCREEN = "DELIVER_ET_SCREEN",
|
|
5
|
+
SL_DELIVER_ET_SCREEN = "SL_DELIVER_ET_SCREEN",
|
|
6
|
+
SIGNATURE_ET_SCREEN = "SIGNATURE_ET_SCREEN",
|
|
7
|
+
CAPTURE_IMAGE_ET_SCREEN = "CAPTURE_IMAGE_ET_SCREEN",
|
|
8
|
+
RETURN_CASH_ET_SCREEN = "RETURN_CASH_ET_SCREEN",
|
|
9
|
+
COLLECT_CASH_ET_SCREEN = "COLLECT_CASH_ET_SCREEN",
|
|
10
|
+
RESCHEDULE_ET_SCREEN = "RESCHEDULE_ET_SCREEN",
|
|
11
|
+
RETURN_ORDER_ET_SCREEN = "RETURN_ORDER_ET_SCREEN",
|
|
12
|
+
FORM_ET_SCREEN = "FORM_ET_SCREEN",
|
|
13
|
+
|
|
14
|
+
//RT ETs
|
|
15
|
+
DROP_CASH_ET_SCREEN = "DROP_CASH_ET_SCREEN",
|
|
16
|
+
SL_DROP_CASH_ET_SCREEN = "SL_DROP_CASH_ET_SCREEN",
|
|
17
|
+
COMPLETE_PAYMENT_ET_SCREEN = "COMPLETE_PAYMENT_ET_SCREEN",
|
|
18
|
+
INIT_PAYMENT_ET_SCREEN = "INIT_PAYMENT_ET_SCREEN",
|
|
19
|
+
PROCESS_PAYMENT_ET_SCREEN = "PROCESS_PAYMENT_ET_SCREEN",
|
|
20
|
+
|
|
21
|
+
SCAN_ET_SCREEN = "SCAN_ET_SCREEN",
|
|
22
|
+
SUMMARY_PAGE_SCREEN = "SUMMARY_PAGE_SCREEN",
|
|
23
|
+
|
|
24
|
+
VALIDATE_OTP_ET_SCREEN = "VALIDATE_OTP_ET_SCREEN",
|
|
25
|
+
VERIFY_OTP_ET_SCREEN = "VERIFY_OTP_ET_SCREEN",
|
|
26
|
+
VERIFY_LOCATION_ET_SCREEN = "VERIFY_LOCATION_ET_SCREEN",
|
|
27
|
+
TAB_COMPONENT_SCREEN = "TAB_COMPONENT_SCREEN",
|
|
28
|
+
SPLIT_TEXT_INPUT_SCREEN = "SPLIT_TEXT_INPUT_SCREEN",
|
|
29
|
+
SCAN_BAR_CUSTOM_SCREEN = "SCAN_BAR_CUSTOM_SCREEN",
|
|
30
|
+
SEARCH_BAR_SCREEN = "SEARCH_BAR_SCREEN",
|
|
31
|
+
MODEL_WIDGET_SCREEN = "MODEL_WIDGET_SCREEN",
|
|
32
|
+
CANCEL_ET_SCREEN = "CANCEL_ET_SCREEN",
|
|
33
|
+
CAPTURE_TEXT_SCREEN = "CAPTURE_TEXT_SCREEN",
|
|
34
|
+
DISPLAY_MODAL_ET = "DISPLAY_MODAL_ET",
|
|
35
|
+
DATE_TIME_WIDGET_SCREEN = "DATE_TIME_WIDGET_SCREEN",
|
|
36
|
+
QRBARCODE_WIDGET_SCREEN = "QRBARCODE_WIDGET_SCREEN",
|
|
37
|
+
CANCEL_ORDER_DIALOG_SCREEN = "CANCEL_ORDER_DIALOG_SCREEN",
|
|
38
|
+
CARD_WIDGET_SCREEN = "CARD_WIDGET_SCREEN",
|
|
39
|
+
|
|
40
|
+
//error messages
|
|
41
|
+
APP_ERROR = "APP_ERROR ",
|
|
42
|
+
SDK_ERROR = "SDK_ERROR ",
|
|
43
|
+
API_ERROR = "API_ERROR ",
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export enum SentryEventNameSdkConstants{
|
|
47
|
+
BUTTON_CLICKED = "BUTTON_CLICKED",
|
|
48
|
+
SDK_INIT_STARTED = "SDK_INIT_STARTED",
|
|
49
|
+
SDK_INIT_DONE = "SDK_INIT_DONE",
|
|
50
|
+
PICKUP_ET_OPENED = "PICKUP_ET_OPENED",
|
|
51
|
+
DELIVER_ET_OPENED = "DELIVER_ET_OPENED",
|
|
52
|
+
SIGNATURE_ET_OPENED = "SIGNATURE_ET_OPENED",
|
|
53
|
+
CAPTURE_IMAGE_ET_OPENED = "CAPTURE_IMAGE_ET_OPENED",
|
|
54
|
+
COLLECT_CASH_ET_OPENED = "COLLECT_CASH_ET_OPENED",
|
|
55
|
+
RETURN_CASH_ET_OPENED = "RETURN_CASH_ET_OPENED",
|
|
56
|
+
RETURN_ORDER_ET_OPENED = "RETURN_ORDER_ET_OPENED",
|
|
57
|
+
//
|
|
58
|
+
RESCHEDULE_ET_OPENED = "RESCHEDULE_ET_OPENED",
|
|
59
|
+
FORM_ET_OPENED = "FORM_ET_OPENED",
|
|
60
|
+
|
|
61
|
+
//RT ETs
|
|
62
|
+
SCAN_ET_OPENED = "SCAN_ET_OPENED",
|
|
63
|
+
VERIFY_OTP_ET_OPENED = "VERIFY_OTP_ET_OPENED",
|
|
64
|
+
VERIFY_LOCATION_ET_OPENED = "VERIFY_LOCATION_ET_OPENED",
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export enum SeverityLevelValue {
|
|
68
|
+
FATAL = "fatal ",
|
|
69
|
+
ERROR = "error",
|
|
70
|
+
WARNING = "warning",
|
|
71
|
+
LOG = "log",
|
|
72
|
+
INFO = "info",
|
|
73
|
+
DEBUG = "debug",
|
|
74
|
+
};
|
|
@@ -22,6 +22,8 @@ import type { ReasonsRow } from '../../../manager/syncmanager/DBConfig';
|
|
|
22
22
|
import EventCodeContainer from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
23
23
|
import IconButton from '../../widgets/IconButton';
|
|
24
24
|
import { AntDesign } from '@expo/vector-icons';
|
|
25
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
26
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
25
27
|
|
|
26
28
|
const ICON_SIZE = 12;
|
|
27
29
|
|
|
@@ -55,13 +57,18 @@ const CancelET = (props: CancellationInput) => {
|
|
|
55
57
|
value={item}
|
|
56
58
|
status={cancelReason === item ? 'checked' : 'unchecked'}
|
|
57
59
|
onPress={() => {
|
|
58
|
-
setCancelReason(item);
|
|
60
|
+
setCancelReason(item);
|
|
61
|
+
const cta = cancelReason === item ? 'Cancel reason checked' : 'Cancel reason unchecked';
|
|
62
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ET_SCREEN, cta: cta });
|
|
59
63
|
}}
|
|
60
64
|
/>
|
|
61
65
|
<Text
|
|
62
66
|
style={styles.reasonTextStyle}
|
|
63
67
|
onPress={() => {
|
|
64
68
|
setCancelReason(item);
|
|
69
|
+
const cta = item;
|
|
70
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ET_SCREEN, cta: cta });
|
|
71
|
+
|
|
65
72
|
}}
|
|
66
73
|
>
|
|
67
74
|
{item}
|
|
@@ -81,12 +88,18 @@ const CancelET = (props: CancellationInput) => {
|
|
|
81
88
|
status={cancelEvent === item ? 'checked' : 'unchecked'}
|
|
82
89
|
onPress={() => {
|
|
83
90
|
setCancelEvent(item);
|
|
91
|
+
const cta = cancelReason === item ? 'Cancel reason checked' : 'Cancel reason unchecked';
|
|
92
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ET_SCREEN, cta: cta });
|
|
93
|
+
|
|
84
94
|
}}
|
|
85
95
|
/>
|
|
86
96
|
<Text
|
|
87
97
|
style={styles.reasonTextStyle}
|
|
88
98
|
onPress={() => {
|
|
89
99
|
setCancelEvent(item);
|
|
100
|
+
const cta = item;
|
|
101
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ET_SCREEN, cta: cta });
|
|
102
|
+
|
|
90
103
|
}}
|
|
91
104
|
>
|
|
92
105
|
{item}
|
|
@@ -137,6 +150,9 @@ const CancelET = (props: CancellationInput) => {
|
|
|
137
150
|
style={styles.codeHeaderStyle}
|
|
138
151
|
onPress={() => {
|
|
139
152
|
setShowEventCode(!showEventCode);
|
|
153
|
+
const cta = 'Select Event'.toUpperCase();
|
|
154
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ET_SCREEN, cta: cta });
|
|
155
|
+
|
|
140
156
|
}}
|
|
141
157
|
>
|
|
142
158
|
<Text style={styles.codesHeaderTextStyle}>
|
|
@@ -167,6 +183,9 @@ const CancelET = (props: CancellationInput) => {
|
|
|
167
183
|
style={styles.codeHeaderStyle}
|
|
168
184
|
onPress={() => {
|
|
169
185
|
setShowReasonCode(!showReasonCode);
|
|
186
|
+
const cta = 'Select Reason'.toUpperCase();
|
|
187
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ET_SCREEN, cta: cta });
|
|
188
|
+
|
|
170
189
|
}}
|
|
171
190
|
>
|
|
172
191
|
<Text style={styles.codesHeaderTextStyle}>
|
|
@@ -217,7 +236,11 @@ const CancelET = (props: CancellationInput) => {
|
|
|
217
236
|
Alert.alert('No reason selected');
|
|
218
237
|
}
|
|
219
238
|
}
|
|
220
|
-
|
|
239
|
+
const cta = 'Proceed';
|
|
240
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ET_SCREEN, cta: cta });
|
|
241
|
+
|
|
242
|
+
}
|
|
243
|
+
}
|
|
221
244
|
>
|
|
222
245
|
Proceed
|
|
223
246
|
</Button>
|
|
@@ -19,6 +19,8 @@ import { hasGoBackConnector } from '../../../components/utils';
|
|
|
19
19
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
20
20
|
import { useFocusEffect } from '@react-navigation/native';
|
|
21
21
|
import { BackHandler } from 'react-native';
|
|
22
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
23
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
22
24
|
|
|
23
25
|
const CaptureText = (props: CaptureTextInput) => {
|
|
24
26
|
const [showBackModal, setShowBackModal] = useState(false);
|
|
@@ -36,6 +38,9 @@ const CaptureText = (props: CaptureTextInput) => {
|
|
|
36
38
|
)
|
|
37
39
|
setShowBackModal(true);
|
|
38
40
|
else props.navigation.goBack();
|
|
41
|
+
const cta = 'Back Arrow';
|
|
42
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_TEXT_SCREEN, cta: cta });
|
|
43
|
+
|
|
39
44
|
}}
|
|
40
45
|
name="arrow-back"
|
|
41
46
|
color={'black'}
|
|
@@ -130,7 +135,11 @@ const CaptureText = (props: CaptureTextInput) => {
|
|
|
130
135
|
ExecutionTaskID.CAPTURE_INPUT
|
|
131
136
|
)),
|
|
132
137
|
});
|
|
133
|
-
|
|
138
|
+
const cta = 'Cancel';
|
|
139
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_TEXT_SCREEN, cta: cta });
|
|
140
|
+
|
|
141
|
+
}
|
|
142
|
+
}
|
|
134
143
|
>
|
|
135
144
|
Cancel
|
|
136
145
|
</Button>
|
|
@@ -160,7 +169,11 @@ const CaptureText = (props: CaptureTextInput) => {
|
|
|
160
169
|
false,
|
|
161
170
|
attemptCount: 0,
|
|
162
171
|
});
|
|
163
|
-
|
|
172
|
+
const cta = 'Next';
|
|
173
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_TEXT_SCREEN, cta: cta });
|
|
174
|
+
|
|
175
|
+
}
|
|
176
|
+
}
|
|
164
177
|
>
|
|
165
178
|
Next
|
|
166
179
|
</Button>
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
EntityCode,
|
|
13
13
|
ExecutionTaskID,
|
|
14
14
|
} from '../../../models/execTasks/ETConfig';
|
|
15
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
16
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
15
17
|
|
|
16
18
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
17
19
|
<Card style={deliverETStyles.item}>
|
|
@@ -76,6 +78,9 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
76
78
|
ExecutionTaskID.DELIVER
|
|
77
79
|
)),
|
|
78
80
|
});
|
|
81
|
+
const cta = 'Cancel';
|
|
82
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DELIVER_ET_SCREEN, cta: cta });
|
|
83
|
+
|
|
79
84
|
}}
|
|
80
85
|
>
|
|
81
86
|
Cancel
|
|
@@ -102,6 +107,9 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
102
107
|
)),
|
|
103
108
|
remark: remarks,
|
|
104
109
|
});
|
|
110
|
+
const cta = 'Deliver';
|
|
111
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DELIVER_ET_SCREEN, cta: cta });
|
|
112
|
+
|
|
105
113
|
}}
|
|
106
114
|
>
|
|
107
115
|
Deliver
|
|
@@ -37,6 +37,8 @@ import Str from '../../../locale/Str';
|
|
|
37
37
|
import CircleMark from '../../../icons/circleMark.svg';
|
|
38
38
|
import { TouchableOpacity } from 'react-native';
|
|
39
39
|
import ModalWidget from '../../../components/widgets/ModalWidget';
|
|
40
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
41
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
40
42
|
|
|
41
43
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
42
44
|
<View style={{ justifyContent: 'center' }}>
|
|
@@ -56,8 +58,7 @@ const getMessage = (
|
|
|
56
58
|
title: string | undefined
|
|
57
59
|
) => {
|
|
58
60
|
try {
|
|
59
|
-
const isReturnOrder = title?.toString()?.toLowerCase()?.includes("return");
|
|
60
|
-
//message ||
|
|
61
|
+
const isReturnOrder = title?.toString()?.toLowerCase()?.includes("return"); //message ||
|
|
61
62
|
//Str.DEFAULT_DELIVER_MESSAGE
|
|
62
63
|
const msg = getStrVal(isReturnOrder ? Str.DEFAULT_RETURN_MESSAGE : Str.DEFAULT_DELIVER_MESSAGE, Str.count, returnPackageCount && returnPackageCount >= 1 ? returnPackageCount : '');
|
|
63
64
|
return msg;
|
|
@@ -120,6 +121,8 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
120
121
|
setShowDeliverModal(false);
|
|
121
122
|
props.navigation.goBack();
|
|
122
123
|
}
|
|
124
|
+
const cta = 'Back Arrow';
|
|
125
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN, cta: cta });
|
|
123
126
|
}}
|
|
124
127
|
name="arrow-back"
|
|
125
128
|
color={'black'}
|
|
@@ -193,6 +196,9 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
193
196
|
props.navigation.goBack();
|
|
194
197
|
}
|
|
195
198
|
setShowBackModal(false);
|
|
199
|
+
const cta = 'Exit';
|
|
200
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN, cta: cta });
|
|
201
|
+
|
|
196
202
|
},
|
|
197
203
|
styles: styles.primaryButtonStyles,
|
|
198
204
|
}}
|
|
@@ -201,6 +207,9 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
201
207
|
onPress: () => {
|
|
202
208
|
setGoBack(false);
|
|
203
209
|
setShowDeliverModal(true);
|
|
210
|
+
const cta = 'Cancel';
|
|
211
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN, cta: cta });
|
|
212
|
+
|
|
204
213
|
},
|
|
205
214
|
styles: styles.secondaryButtonStyles,
|
|
206
215
|
}}
|
|
@@ -314,6 +323,9 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
314
323
|
remark: `${pkgCount} Packages returned`,
|
|
315
324
|
});
|
|
316
325
|
} else setInputError('Please enter valid count.');
|
|
326
|
+
const cta = 'Confirm';
|
|
327
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN, cta: cta });
|
|
328
|
+
|
|
317
329
|
}}
|
|
318
330
|
>
|
|
319
331
|
Confirm
|
|
@@ -354,6 +366,9 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
354
366
|
onPress={() => {
|
|
355
367
|
setShowDeliverModal(false);
|
|
356
368
|
setGoBack(true);
|
|
369
|
+
const cta = 'Circle Icon';
|
|
370
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN, cta: cta });
|
|
371
|
+
|
|
357
372
|
}}
|
|
358
373
|
style={styles.crossIcon}
|
|
359
374
|
hitSlop={{ bottom: 10, top: 10, right: 10, left: 10 }}
|
|
@@ -367,9 +382,6 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
367
382
|
<Text style={DeliverPickupStyles.messageText}>
|
|
368
383
|
{getMessage(props.returnPackageCount, props.message, props.title)}
|
|
369
384
|
</Text>
|
|
370
|
-
{/* {(props.title?.trim?.toString()?.toLowerCase()?.includes("return")) && <Text style={DeliverPickupStyles.messageText}>
|
|
371
|
-
{getStrVal(Str.DEFAULT_DELIVER_MESSAGE, Str.count, props.returnPackageCount && props.returnPackageCount >= 1 ? props.returnPackageCount : '')}
|
|
372
|
-
</Text>} */}
|
|
373
385
|
{(props.title?.toString()?.toLowerCase()?.includes("return")) == false && <Text style={DeliverPickupStyles.messageText}>
|
|
374
386
|
{props?.shipCount ? getStrVal(Str.shipments, Str.count, props.shipCount) : ''}
|
|
375
387
|
</Text>}
|
|
@@ -407,6 +419,9 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
407
419
|
)),
|
|
408
420
|
remark: '',
|
|
409
421
|
});
|
|
422
|
+
const cta = 'Confirm';
|
|
423
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN, cta: cta });
|
|
424
|
+
|
|
410
425
|
}}
|
|
411
426
|
>
|
|
412
427
|
Confirm
|
|
@@ -433,6 +448,8 @@ const DeliverET = (props: DeliverETInput) => {
|
|
|
433
448
|
ExecutionTaskID.DELIVER
|
|
434
449
|
)),
|
|
435
450
|
});
|
|
451
|
+
const cta = 'Cancel';
|
|
452
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DELIVER_ET_SCREEN, cta: cta });
|
|
436
453
|
}}
|
|
437
454
|
>
|
|
438
455
|
Cancel
|
|
@@ -21,6 +21,8 @@ import {
|
|
|
21
21
|
DeliverPickupStyles,
|
|
22
22
|
Fonts,
|
|
23
23
|
} from '../../../styles/executionTasks/CommonStyles';
|
|
24
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
25
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
24
26
|
|
|
25
27
|
const DisplayModalET = (props: DisplayETInput) => {
|
|
26
28
|
const [modalVisible, setModalVisible] = useState(props.showDialog);
|
|
@@ -93,6 +95,9 @@ const DisplayModalET = (props: DisplayETInput) => {
|
|
|
93
95
|
]}
|
|
94
96
|
onPress={async () => {
|
|
95
97
|
await sendEtOutput(true);
|
|
98
|
+
const cta = props.positiveBtn;
|
|
99
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DISPLAY_MODAL_ET, cta: cta });
|
|
100
|
+
|
|
96
101
|
}}
|
|
97
102
|
testID="primary"
|
|
98
103
|
>
|
|
@@ -106,6 +111,9 @@ const DisplayModalET = (props: DisplayETInput) => {
|
|
|
106
111
|
style={[CommonStyles.cancelButton, { marginTop: 5 }]}
|
|
107
112
|
onPress={async () => {
|
|
108
113
|
await sendEtOutput(false);
|
|
114
|
+
const cta = props.negativeBtn;
|
|
115
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DISPLAY_MODAL_ET, cta: cta });
|
|
116
|
+
|
|
109
117
|
}}
|
|
110
118
|
testID="secondary"
|
|
111
119
|
>
|
|
@@ -34,6 +34,8 @@ 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, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
38
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
37
39
|
|
|
38
40
|
const SignatureET = (props: SignatureInput) => {
|
|
39
41
|
const signatureViewRef = useRef<any>();
|
|
@@ -74,13 +76,18 @@ const SignatureET = (props: SignatureInput) => {
|
|
|
74
76
|
} else {
|
|
75
77
|
props.navigation.goBack();
|
|
76
78
|
}
|
|
79
|
+
const cta = 'Back Arrow';
|
|
80
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
81
|
+
|
|
82
|
+
|
|
77
83
|
}}
|
|
78
84
|
name="arrow-back"
|
|
79
85
|
color="black"
|
|
80
86
|
size={22}
|
|
81
87
|
style={{ paddingRight: 6 }}
|
|
82
88
|
/>
|
|
83
|
-
<Text style={{ fontSize: 16, fontFamily: Fonts.IBMPlexSans_500Medium
|
|
89
|
+
<Text style={{ fontSize: 16, fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
90
|
+
lineHeight: 24 }}>{props.title}</Text>
|
|
84
91
|
</View>
|
|
85
92
|
),
|
|
86
93
|
});
|
|
@@ -191,6 +198,10 @@ const SignatureET = (props: SignatureInput) => {
|
|
|
191
198
|
dragRef.current = 0;
|
|
192
199
|
}
|
|
193
200
|
signatureViewRef.current?.resetImage();
|
|
201
|
+
const cta = 'Clear';
|
|
202
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
203
|
+
|
|
204
|
+
|
|
194
205
|
}}
|
|
195
206
|
>
|
|
196
207
|
<Text style={styles.clearBtn}>{''}</Text>
|
|
@@ -251,13 +262,16 @@ const SignatureET = (props: SignatureInput) => {
|
|
|
251
262
|
mode={'outlined'}
|
|
252
263
|
onPress={async () => {
|
|
253
264
|
await saveAndSubmit(true, '');
|
|
265
|
+
const cta = getStr(Str.skip);
|
|
266
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
267
|
+
|
|
254
268
|
}}>{getStr(Str.skip)}
|
|
255
269
|
</Button>
|
|
256
270
|
}
|
|
257
271
|
<Button
|
|
258
272
|
labelStyle={{
|
|
259
273
|
color: buttonProceed ? "#ffff" : "#A3AAC2",
|
|
260
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
274
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
261
275
|
fontSize: 14,
|
|
262
276
|
lineHeight: 20,
|
|
263
277
|
textAlign: 'center',
|
|
@@ -265,7 +279,13 @@ const SignatureET = (props: SignatureInput) => {
|
|
|
265
279
|
}}
|
|
266
280
|
style={[CommonStyles.nextButton, { flex: 1, marginStart: 8, backgroundColor: buttonProceed ? "#5B80F7" : "#E0E3EB" }]}
|
|
267
281
|
mode={'contained'}
|
|
268
|
-
onPress={async () => signatureViewRef.current?.saveImage()
|
|
282
|
+
onPress={async () => {signatureViewRef.current?.saveImage()
|
|
283
|
+
const cta = 'Proceed';
|
|
284
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SIGNATURE_ET_SCREEN, cta: cta });
|
|
285
|
+
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
}
|
|
269
289
|
>
|
|
270
290
|
Proceed
|
|
271
291
|
</Button>
|
|
@@ -12,6 +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, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
16
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
15
17
|
|
|
16
18
|
const styles = PaymentStyles;
|
|
17
19
|
|
|
@@ -90,6 +92,10 @@ const DropCashET = (props: DropCashInput) => {
|
|
|
90
92
|
ExecutionTaskID.DELIVER_CASH
|
|
91
93
|
)),
|
|
92
94
|
});
|
|
95
|
+
const cta = 'Cancel';
|
|
96
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DROP_CASH_ET_SCREEN, cta: cta });
|
|
97
|
+
|
|
98
|
+
|
|
93
99
|
}}
|
|
94
100
|
>
|
|
95
101
|
Cancel
|
|
@@ -133,6 +139,9 @@ const DropCashET = (props: DropCashInput) => {
|
|
|
133
139
|
)),
|
|
134
140
|
});
|
|
135
141
|
} else setInputError('Please enter valid amount.');
|
|
142
|
+
const cta = 'Drop Cash';
|
|
143
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DROP_CASH_ET_SCREEN, cta: cta });
|
|
144
|
+
|
|
136
145
|
}}
|
|
137
146
|
>
|
|
138
147
|
Drop Cash
|
|
@@ -21,6 +21,8 @@ import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
|
21
21
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
22
22
|
import { useFocusEffect } from '@react-navigation/native';
|
|
23
23
|
import { BackHandler } from 'react-native';
|
|
24
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
25
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
24
26
|
|
|
25
27
|
const SLDropCash = (props: DropCashInput) => {
|
|
26
28
|
const [amountCollected, setAmountCollected] = useState(
|
|
@@ -80,6 +82,9 @@ const SLDropCash = (props: DropCashInput) => {
|
|
|
80
82
|
)
|
|
81
83
|
setShowBackModal(true);
|
|
82
84
|
else props.navigation.goBack();
|
|
85
|
+
const cta = 'Back Arrow';
|
|
86
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DROP_CASH_ET_SCREEN, cta: cta });
|
|
87
|
+
|
|
83
88
|
}}
|
|
84
89
|
name="arrow-back"
|
|
85
90
|
color={'black'}
|
|
@@ -246,6 +251,9 @@ const SLDropCash = (props: DropCashInput) => {
|
|
|
246
251
|
)),
|
|
247
252
|
});
|
|
248
253
|
} else setInputError('Please enter valid amount.');
|
|
254
|
+
const cta = 'Confirm';
|
|
255
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DROP_CASH_ET_SCREEN, cta: cta });
|
|
256
|
+
|
|
249
257
|
}}
|
|
250
258
|
>
|
|
251
259
|
Confirm
|
|
@@ -271,6 +279,9 @@ const SLDropCash = (props: DropCashInput) => {
|
|
|
271
279
|
ExecutionTaskID.DELIVER_CASH
|
|
272
280
|
)),
|
|
273
281
|
});
|
|
282
|
+
const cta = 'Cancel';
|
|
283
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_DROP_CASH_ET_SCREEN, cta: cta });
|
|
284
|
+
|
|
274
285
|
}}
|
|
275
286
|
>
|
|
276
287
|
Cancel
|
|
@@ -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 customWidgets = {
|
|
36
38
|
datePicker: DateTimeWidget,
|
|
@@ -78,6 +80,9 @@ const FormGenerator = (props: FormInputSchema) => {
|
|
|
78
80
|
)
|
|
79
81
|
setShowBackModal(true);
|
|
80
82
|
else props.navigation.goBack();
|
|
83
|
+
const cta = 'Back Arrow';
|
|
84
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.FORM_ET_SCREEN, cta: cta });
|
|
85
|
+
|
|
81
86
|
}}
|
|
82
87
|
name="arrow-back"
|
|
83
88
|
color={'black'}
|
|
@@ -218,33 +223,45 @@ const FormGenerator = (props: FormInputSchema) => {
|
|
|
218
223
|
</View>
|
|
219
224
|
</ScrollView>
|
|
220
225
|
<View style={styles.bottomView}>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
226
|
+
<View>
|
|
227
|
+
<Button
|
|
228
|
+
style={[CommonStyles.nextButton, { width: 165, marginStart: 10 }]}
|
|
229
|
+
labelStyle={CommonStyles.nextButtonLabel}
|
|
230
|
+
mode={'contained'}
|
|
231
|
+
onPress={() => {
|
|
232
|
+
if (form.current) {
|
|
233
|
+
setOnCancel(false);
|
|
234
|
+
// @ts-ignore
|
|
235
|
+
form.current.submit();
|
|
236
|
+
}
|
|
237
|
+
const cta = 'Proceed';
|
|
238
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.FORM_ET_SCREEN, cta: cta });
|
|
239
|
+
|
|
240
|
+
}}
|
|
241
|
+
>
|
|
242
|
+
Proceed
|
|
243
|
+
</Button>
|
|
244
|
+
</View>
|
|
245
|
+
<View>
|
|
246
|
+
{(props.isSelfLoop == false) && <Button
|
|
247
|
+
style={[CommonStyles.cancelButton, { width: 165, marginEnd: 10 }]}
|
|
248
|
+
labelStyle={CommonStyles.cancelButtonLabel}
|
|
249
|
+
mode={'outlined'}
|
|
250
|
+
onPress={() => {
|
|
251
|
+
if (form.current) {
|
|
252
|
+
setOnCancel(true);
|
|
253
|
+
// @ts-ignore
|
|
254
|
+
form.current.submit();
|
|
255
|
+
}
|
|
256
|
+
const cta = 'Cancel';
|
|
257
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.FORM_ET_SCREEN, cta: cta });
|
|
258
|
+
|
|
259
|
+
}}
|
|
260
|
+
>
|
|
261
|
+
Cancel
|
|
262
|
+
</Button>
|
|
263
|
+
}
|
|
264
|
+
</View>
|
|
248
265
|
</View>
|
|
249
266
|
</KeyboardAvoidingView>
|
|
250
267
|
</Provider>
|
|
@@ -269,9 +286,9 @@ const styles = StyleSheet.create({
|
|
|
269
286
|
alignItems: 'center',
|
|
270
287
|
},
|
|
271
288
|
bottomView: {
|
|
272
|
-
flexDirection: 'row',
|
|
289
|
+
flexDirection: 'row-reverse',
|
|
273
290
|
justifyContent: 'space-evenly',
|
|
274
|
-
backgroundColor: 'white',
|
|
275
291
|
padding: 16,
|
|
292
|
+
backgroundColor: 'white',
|
|
276
293
|
},
|
|
277
294
|
});
|
|
@@ -10,6 +10,9 @@ import DateTimePicker, { Event } from '@react-native-community/datetimepicker';
|
|
|
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, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
14
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
15
|
+
|
|
13
16
|
|
|
14
17
|
const MODES = {
|
|
15
18
|
DATE: 'date',
|
|
@@ -49,7 +52,7 @@ const DateTimeWidget = ({
|
|
|
49
52
|
color: theme.textColor,
|
|
50
53
|
};
|
|
51
54
|
const onDateChange = (_event: Event, selectedDate?: Date) => {
|
|
52
|
-
setShow(
|
|
55
|
+
setShow(false);
|
|
53
56
|
if (selectedDate) {
|
|
54
57
|
const currentDate = selectedDate;
|
|
55
58
|
let dateTimeValue = getValueBasedOnMode(options, currentDate);
|
|
@@ -60,7 +63,11 @@ const DateTimeWidget = ({
|
|
|
60
63
|
|
|
61
64
|
return (
|
|
62
65
|
<View style={styles.container}>
|
|
63
|
-
<TouchableOpacity onPress={() => setShow(true)
|
|
66
|
+
<TouchableOpacity onPress={() => {setShow(true)
|
|
67
|
+
const cta = label;
|
|
68
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.DATE_TIME_WIDGET_SCREEN, cta: cta });
|
|
69
|
+
|
|
70
|
+
}}>
|
|
64
71
|
<TextInput
|
|
65
72
|
editable={false}
|
|
66
73
|
onTouchStart={() => setShow(true)}
|
|
@@ -84,7 +91,7 @@ const DateTimeWidget = ({
|
|
|
84
91
|
minimumDate={options.mode === 'date' ? new Date() : undefined}
|
|
85
92
|
maximumDate={maxDate}
|
|
86
93
|
is24Hour={false}
|
|
87
|
-
display={Platform.OS === 'ios' ? '
|
|
94
|
+
display={Platform.OS === 'ios' ? 'inline' : 'default'}
|
|
88
95
|
onChange={onDateChange}
|
|
89
96
|
value={date ?? new Date()}
|
|
90
97
|
textColor={'red'}
|