@os1-platform/dispatch-mobile 2.1.5 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js +24 -0
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +44 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +83 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryModels.js +6 -0
- package/lib/commonjs/analytics/sentry/SentryModels.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +78 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +51 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +23 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +16 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +52 -2
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -0
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +41 -4
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +16 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +23 -0
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +41 -18
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +29 -16
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +71 -6
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +37 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +16 -0
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +44 -0
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +40 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +16 -0
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +17 -1
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +22 -2
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +9 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +9 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +9 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +12 -1
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/index.js +53 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +9 -2
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +3 -3
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +3 -2
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +8 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +3 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +77 -3
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +17 -3
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +206 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +4 -4
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +18 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +9 -0
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +10 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +7 -0
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +12 -0
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +9 -0
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +9 -0
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +9 -0
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +12 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +30 -13
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +54 -41
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +12 -2
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/utils.js +24 -0
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/analytics/firebase/FirebaseLogging.js +17 -0
- package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -0
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +37 -0
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +74 -0
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
- package/lib/module/analytics/sentry/SentryModels.js +2 -0
- package/lib/module/analytics/sentry/SentryModels.js.map +1 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js +72 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js +51 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +23 -0
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverET.js +16 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +52 -2
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -0
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +41 -4
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +16 -0
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +23 -0
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +41 -18
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +29 -16
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +72 -7
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +37 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +16 -0
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +44 -0
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +40 -1
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +16 -0
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +17 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +22 -2
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +9 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +9 -0
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +9 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +12 -1
- package/lib/module/components/widgets/TabsComponent.js.map +1 -1
- package/lib/module/index.js +11 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +9 -2
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +3 -3
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +3 -2
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +8 -1
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +3 -1
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +77 -3
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +17 -3
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +207 -7
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +5 -5
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +18 -1
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +9 -0
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +10 -0
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +7 -0
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +12 -0
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +9 -0
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +9 -0
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +9 -0
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +12 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +30 -13
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +54 -39
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +12 -2
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/utils.js +22 -0
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/analytics/firebase/FirebaseLogging.d.ts +2 -0
- package/lib/typescript/analytics/sentry/SentryAnalyticsSingleton.d.ts +11 -0
- package/lib/typescript/analytics/sentry/SentryAnalyticsUtils.d.ts +2 -0
- package/lib/typescript/analytics/sentry/SentryModels.d.ts +15 -0
- package/lib/typescript/analytics/sentry/SentrySdkConstants.d.ts +66 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +4 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureUtils.d.ts +7 -1
- package/lib/typescript/index.d.ts +7 -0
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +2 -0
- package/lib/typescript/manager/location/LocationManager.d.ts +1 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +4 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +5 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +25 -6
- package/lib/typescript/models/sdk.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +4 -4
- package/lib/typescript/utils/Logger.d.ts +0 -3
- package/lib/typescript/utils/SyncManagerUtils.d.ts +1 -1
- package/lib/typescript/utils/utils.d.ts +4 -0
- package/package.json +10 -7
- package/src/analytics/firebase/FirebaseLogging.ts +25 -0
- package/src/analytics/sentry/SentryAnalyticsSingleton.ts +35 -0
- package/src/analytics/sentry/SentryAnalyticsUtils.ts +77 -0
- package/src/analytics/sentry/SentryModels.ts +18 -0
- package/src/analytics/sentry/SentrySdkConstants.ts +77 -0
- package/src/components/executiontasks/cancellation/CancelET.tsx +25 -2
- package/src/components/executiontasks/captureInput/CaptureText.tsx +15 -2
- package/src/components/executiontasks/deliver/DeliverET.tsx +8 -0
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +22 -5
- package/src/components/executiontasks/display/DisplayModalET.tsx +8 -0
- package/src/components/executiontasks/doodle/SignatureET.tsx +37 -4
- package/src/components/executiontasks/dropCash/DropCashET.tsx +9 -0
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +11 -0
- package/src/components/executiontasks/forms/FormGenerator.tsx +46 -29
- package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +10 -3
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +8 -1
- package/src/components/executiontasks/imageCapture/CaptureSchema.ts +4 -0
- package/src/components/executiontasks/imageCapture/CaptureUtils.ts +45 -18
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +42 -7
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +11 -0
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +17 -0
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +11 -0
- package/src/components/executiontasks/pickup/PickupET.tsx +8 -0
- package/src/components/executiontasks/pickup/SLPickupET.tsx +19 -0
- package/src/components/executiontasks/scan/ScanET.tsx +19 -1
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +11 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +14 -0
- package/src/components/executiontasks/validateOTP/sub-components/OTPInput.tsx +2 -0
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +5 -0
- package/src/components/widgets/CancelOrderDialog.tsx +7 -0
- package/src/components/widgets/Card.tsx +9 -1
- package/src/components/widgets/ModalWidget.tsx +16 -2
- package/src/components/widgets/SearchBar.tsx +6 -1
- package/src/components/widgets/SnackBarCustom.tsx +4 -0
- package/src/components/widgets/SplitTextInput.tsx +6 -0
- package/src/components/widgets/TabsComponent.tsx +8 -1
- package/src/index.tsx +10 -3
- package/src/manager/location/LocationManager.ts +8 -1
- package/src/manager/sdk/DispatchSDKManager.ts +8 -2
- package/src/manager/sdk/DispatchSdkCache.ts +2 -1
- package/src/manager/sdk/callbacksHandler.ts +12 -1
- package/src/manager/syncmanager/DBConfig.ts +4 -0
- package/src/manager/syncmanager/document/DocumentHttpClient.ts +105 -5
- package/src/manager/syncmanager/document/DocumentManager.ts +28 -2
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +230 -5
- package/src/models/execTasks/ETBaseModels.ts +20 -7
- package/src/models/sdk.ts +1 -0
- package/src/styles/executionTasks/CommonStyles.ts +5 -5
- package/src/ui/screens/DeliverScreen.tsx +9 -0
- package/src/ui/screens/DoodleScreen.tsx +5 -0
- package/src/ui/screens/DropCashScreen.tsx +6 -0
- package/src/ui/screens/FormsScreen.tsx +3 -0
- package/src/ui/screens/GeofenceScreen.tsx +11 -1
- package/src/ui/screens/ImageCaptureScreen.tsx +5 -0
- package/src/ui/screens/PaymentScreen.tsx +5 -0
- package/src/ui/screens/PickupScreen.tsx +7 -1
- package/src/ui/screens/ValidateOTPScreen.tsx +10 -0
- package/src/utils/ExecTaskUtils.ts +36 -10
- package/src/utils/Logger.ts +50 -51
- package/src/utils/SyncManagerUtils.ts +20 -2
- package/src/utils/utils.ts +23 -0
|
@@ -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'}
|
|
@@ -11,6 +11,8 @@ import type { WidgetProps } from '@rjsf/core';
|
|
|
11
11
|
import { useFormContext } from 'rjsf-native';
|
|
12
12
|
import { AntDesign } from '@expo/vector-icons';
|
|
13
13
|
import CScanner from '../../scan/sub_components/CScanner';
|
|
14
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
15
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
14
16
|
|
|
15
17
|
const QRBarcodeScannerWidget = ({
|
|
16
18
|
id,
|
|
@@ -39,7 +41,12 @@ const QRBarcodeScannerWidget = ({
|
|
|
39
41
|
|
|
40
42
|
return (
|
|
41
43
|
<View style={styles.container}>
|
|
42
|
-
<TouchableOpacity onPress={() => setShow(true)
|
|
44
|
+
<TouchableOpacity onPress={() => {setShow(true)
|
|
45
|
+
const cta = label;
|
|
46
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.QRBARCODE_WIDGET_SCREEN, cta: cta });
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
}}>
|
|
43
50
|
<TextInput
|
|
44
51
|
editable={false}
|
|
45
52
|
onTouchStart={() => setShow(true)}
|
|
@@ -9,8 +9,6 @@ import * as FileSystem from 'expo-file-system';
|
|
|
9
9
|
import * as ImagePicker from 'expo-image-picker';
|
|
10
10
|
import { PermissionStatus } from 'expo-image-picker';
|
|
11
11
|
import { showToast } from '../../widgets/Toaster';
|
|
12
|
-
import type { ActionResize, ImageResult } from 'expo-image-manipulator';
|
|
13
|
-
import * as ImageManipulator from 'expo-image-manipulator';
|
|
14
12
|
import Logger, { LOG_TYPE } from '../../../utils/Logger';
|
|
15
13
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
16
14
|
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
@@ -23,6 +21,8 @@ import BaseErrorCodes from '../../../errors/ErrorCodes';
|
|
|
23
21
|
import DispatchSdkCache from '../../../manager/sdk/DispatchSdkCache';
|
|
24
22
|
import { insertDocumentInDB } from '../../../utils/SyncManagerUtils';
|
|
25
23
|
import {CameraOptions, launchCamera} from 'react-native-image-picker';
|
|
24
|
+
import { Image } from 'react-native-compressor';
|
|
25
|
+
import Storage from '../../../utils/storage';
|
|
26
26
|
|
|
27
27
|
export async function deleteImage(imageData: { path: string; id: { toString: () => string; }; }, images: any[]) {
|
|
28
28
|
await FileSystem.deleteAsync(imageData.path);
|
|
@@ -82,6 +82,13 @@ interface responseType {
|
|
|
82
82
|
assets?: any[];
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
declare type ImageResult = {
|
|
86
|
+
uri: string;
|
|
87
|
+
width: number;
|
|
88
|
+
height: number;
|
|
89
|
+
base64?: string;
|
|
90
|
+
};
|
|
91
|
+
|
|
85
92
|
export async function captureImage(
|
|
86
93
|
imageWidth: number,
|
|
87
94
|
imageHeight: number,
|
|
@@ -180,21 +187,36 @@ export async function captureImage(
|
|
|
180
187
|
|
|
181
188
|
console.log("aks:uri-after=", uri)
|
|
182
189
|
//
|
|
183
|
-
if(uri != null){
|
|
184
|
-
|
|
190
|
+
if (uri != null) {
|
|
191
|
+
|
|
185
192
|
let compressionRatio = await getCompressionRatio(uri, fileSize);
|
|
186
|
-
console.log(
|
|
187
|
-
|
|
193
|
+
console.log('aks:compressionRatio=', compressionRatio);
|
|
194
|
+
Storage.getInstance().setItem('maxSize', String(fileSize));
|
|
195
|
+
Storage.getInstance().setItem('cRatio', String(compressionRatio));
|
|
196
|
+
|
|
197
|
+
console.log('aks:uri=', uri);
|
|
198
|
+
|
|
199
|
+
let resizedImage1 = await Image.compress(uri, {
|
|
200
|
+
compressionMethod: 'manual',
|
|
201
|
+
quality: compressionRatio,
|
|
202
|
+
});
|
|
188
203
|
//
|
|
189
|
-
|
|
190
|
-
|
|
204
|
+
console.log('aks:resizedImage1=', resizedImage1);
|
|
205
|
+
// If captured image file path does not have prefix file:// then we are addding manually
|
|
206
|
+
if (!resizedImage1.includes('file')) {
|
|
207
|
+
resizedImage1 = 'file://' + resizedImage1;
|
|
191
208
|
}
|
|
192
|
-
|
|
193
|
-
console.log(
|
|
194
|
-
|
|
195
|
-
let
|
|
196
|
-
|
|
197
|
-
|
|
209
|
+
|
|
210
|
+
console.log('aks:resizedImage2=', resizedImage1);
|
|
211
|
+
|
|
212
|
+
let resizedImageResult: ImageResult = {
|
|
213
|
+
uri: resizedImage1,
|
|
214
|
+
width: imageWidth,
|
|
215
|
+
height: imageHeight,
|
|
216
|
+
base64: '',
|
|
217
|
+
};
|
|
218
|
+
console.log('aks:resizedImageResult=', resizedImageResult);
|
|
219
|
+
|
|
198
220
|
//delete file
|
|
199
221
|
FileSystem.deleteAsync(uri)
|
|
200
222
|
.then(() =>
|
|
@@ -204,10 +226,10 @@ export async function captureImage(
|
|
|
204
226
|
});
|
|
205
227
|
//
|
|
206
228
|
|
|
207
|
-
|
|
208
|
-
|
|
229
|
+
// console.log("resizedImage=before")
|
|
230
|
+
// console.log("resizedImage=", resizedImage)
|
|
209
231
|
|
|
210
|
-
return
|
|
232
|
+
return resizedImageResult;
|
|
211
233
|
}
|
|
212
234
|
|
|
213
235
|
// if(Platform.OS = 'android'){
|
|
@@ -294,6 +316,7 @@ async function getImagesData(
|
|
|
294
316
|
(await DispatchSdkCache.getInstance().getKeyFromCache(
|
|
295
317
|
DispatchSdkCache.KEYS.FMS_FOLDER
|
|
296
318
|
)) ?? 'NULL';
|
|
319
|
+
console.log('getImagesData:',folderName);
|
|
297
320
|
for (const data of imagesDataList) {
|
|
298
321
|
let insertID = await insertDocumentInDB(
|
|
299
322
|
data.id,
|
|
@@ -302,7 +325,11 @@ async function getImagesData(
|
|
|
302
325
|
// JSON.stringify(captureProps.objRefs),
|
|
303
326
|
null,
|
|
304
327
|
captureProps.title,
|
|
305
|
-
data.path
|
|
328
|
+
data.path,
|
|
329
|
+
data.dateTime,
|
|
330
|
+
data.lat,
|
|
331
|
+
data.lng,
|
|
332
|
+
data.accuracy
|
|
306
333
|
);
|
|
307
334
|
if (insertID)
|
|
308
335
|
output.push({
|
|
@@ -17,8 +17,11 @@ import { hasGoBackConnector } from '../../../components/utils';
|
|
|
17
17
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
18
18
|
import { useFocusEffect } from '@react-navigation/native';
|
|
19
19
|
import Circle from "./circle-xmark.svg"
|
|
20
|
-
|
|
21
20
|
import CameraIcon from "./camera.svg"
|
|
21
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
22
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
23
|
+
import LocationManager from '../../../manager/location/LocationManager';
|
|
24
|
+
import callbackHandler from '../../../manager/sdk/callbacksHandler';
|
|
22
25
|
|
|
23
26
|
const ImageCapture = (props: any) => {
|
|
24
27
|
let numberOfImagesToCapture: any;
|
|
@@ -69,6 +72,9 @@ const ImageCapture = (props: any) => {
|
|
|
69
72
|
)
|
|
70
73
|
setShowBackModal(true);
|
|
71
74
|
else props.navigation.goBack();
|
|
75
|
+
const cta = "Back Arrow";
|
|
76
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
77
|
+
|
|
72
78
|
}}
|
|
73
79
|
name="arrow-back"
|
|
74
80
|
color={'black'}
|
|
@@ -129,7 +135,12 @@ const ImageCapture = (props: any) => {
|
|
|
129
135
|
>
|
|
130
136
|
{imagesDummy?.length > index && imagesDummy[index]?.path ? null : (
|
|
131
137
|
<TouchableOpacity
|
|
132
|
-
onPress={onPress
|
|
138
|
+
onPress={() => { onPress()
|
|
139
|
+
const cta = "Camera Icon";
|
|
140
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
141
|
+
|
|
142
|
+
}}
|
|
143
|
+
>
|
|
133
144
|
<View
|
|
134
145
|
style={{
|
|
135
146
|
marginTop:
|
|
@@ -142,11 +153,15 @@ style={{
|
|
|
142
153
|
|
|
143
154
|
)}
|
|
144
155
|
<Button
|
|
145
|
-
onPress={() => captureImage(index)
|
|
156
|
+
onPress={() => { captureImage(index)
|
|
157
|
+
const cta = "Click Photo";
|
|
158
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
159
|
+
|
|
160
|
+
}}
|
|
146
161
|
uppercase={false}
|
|
147
162
|
labelStyle={[
|
|
148
163
|
{
|
|
149
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
164
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
150
165
|
fontStyle: 'normal',
|
|
151
166
|
fontWeight: 'normal',
|
|
152
167
|
fontSize: 14,
|
|
@@ -170,7 +185,11 @@ style={{
|
|
|
170
185
|
}}
|
|
171
186
|
/>
|
|
172
187
|
<TouchableOpacity
|
|
173
|
-
onPress={onPress
|
|
188
|
+
onPress={() => { onPress()
|
|
189
|
+
const cta = "Circle Icon";
|
|
190
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
191
|
+
|
|
192
|
+
}}
|
|
174
193
|
style={{
|
|
175
194
|
position: 'absolute',
|
|
176
195
|
top: numColumns == 2 ? '17%' : '9%',
|
|
@@ -261,6 +280,7 @@ style={{
|
|
|
261
280
|
// }, [images, props, showCapture]);
|
|
262
281
|
|
|
263
282
|
const captureImage = useCallback(async (index) => {
|
|
283
|
+
|
|
264
284
|
// // if (!showCapture) {
|
|
265
285
|
// // showToast(`Max Image Limit reached`);
|
|
266
286
|
// // return;
|
|
@@ -277,12 +297,18 @@ style={{
|
|
|
277
297
|
|
|
278
298
|
let imgArray = [];
|
|
279
299
|
imgArray = imagesDummy;
|
|
300
|
+
const dateTime = await callbackHandler.getDateTime();
|
|
301
|
+
console.log('captureImage:dateTime: ',dateTime);
|
|
280
302
|
imgArray[index] = {
|
|
281
303
|
id: CaptureUtils.getImagesFileName(),
|
|
282
304
|
// @ts-ignore
|
|
283
305
|
path: imageDataResponse.uri,
|
|
284
306
|
url: '',
|
|
285
307
|
timestamp: Date.now(),
|
|
308
|
+
dateTime: dateTime,
|
|
309
|
+
lat: LocationManager.getInstance().getLastLocation().latitude,
|
|
310
|
+
lng: LocationManager.getInstance().getLastLocation().longitude,
|
|
311
|
+
accuracy: LocationManager.getInstance().getLastLocation().accuracy,
|
|
286
312
|
};
|
|
287
313
|
setImagesDummy([...imgArray])
|
|
288
314
|
console.log("images211:", JSON.stringify(imgArray));
|
|
@@ -300,7 +326,7 @@ style={{
|
|
|
300
326
|
let initialProceedValue = false;
|
|
301
327
|
for (let i = 0; i < imageDummyArray.length; i++) {
|
|
302
328
|
if (imageDummyArray[i]?.path) {
|
|
303
|
-
initialProceedValue = true
|
|
329
|
+
initialProceedValue = true;
|
|
304
330
|
}
|
|
305
331
|
}
|
|
306
332
|
setButtonProceed(initialProceedValue);
|
|
@@ -321,6 +347,9 @@ style={{
|
|
|
321
347
|
index={index}
|
|
322
348
|
onPress={async () => {
|
|
323
349
|
await deleteImage(index);
|
|
350
|
+
const cta = "Delete Icon";
|
|
351
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
352
|
+
|
|
324
353
|
}}
|
|
325
354
|
/>
|
|
326
355
|
);
|
|
@@ -373,6 +402,9 @@ style={{
|
|
|
373
402
|
ExecutionTaskID.IMAGE_CAPTURE
|
|
374
403
|
)),
|
|
375
404
|
});
|
|
405
|
+
const cta = "Cancel";
|
|
406
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
407
|
+
|
|
376
408
|
}}
|
|
377
409
|
>
|
|
378
410
|
Cancel
|
|
@@ -381,7 +413,7 @@ style={{
|
|
|
381
413
|
<Button
|
|
382
414
|
labelStyle={{
|
|
383
415
|
color: buttonProceed ? '#ffff' : '#A3AAC2',
|
|
384
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
416
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
385
417
|
fontSize: 14,
|
|
386
418
|
lineHeight: 20,
|
|
387
419
|
textAlign: 'center',
|
|
@@ -396,6 +428,9 @@ style={{
|
|
|
396
428
|
mode="contained"
|
|
397
429
|
onPress={async () => {
|
|
398
430
|
await handleSubmit();
|
|
431
|
+
const cta = "Proceed";
|
|
432
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
433
|
+
|
|
399
434
|
}}
|
|
400
435
|
>
|
|
401
436
|
Proceed
|
|
@@ -32,6 +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, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
36
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
35
37
|
|
|
36
38
|
const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
37
39
|
const [disableProceed, setDisableProceed] = useState(false);
|
|
@@ -71,6 +73,9 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
71
73
|
)
|
|
72
74
|
setShowBackModal(true);
|
|
73
75
|
else props.navigation.goBack();
|
|
76
|
+
const cta = "Back Arrow";
|
|
77
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
78
|
+
|
|
74
79
|
}}
|
|
75
80
|
name="arrow-back"
|
|
76
81
|
color={'black'}
|
|
@@ -167,6 +172,9 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
167
172
|
};
|
|
168
173
|
setDisableProceed(true);
|
|
169
174
|
props.onSubmitET(etOutput);
|
|
175
|
+
const cta = "Continue";
|
|
176
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
177
|
+
|
|
170
178
|
}}
|
|
171
179
|
>
|
|
172
180
|
Continue
|
|
@@ -195,6 +203,9 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
195
203
|
};
|
|
196
204
|
setDisableProceed(true);
|
|
197
205
|
props.onSubmitET(etOutput);
|
|
206
|
+
const cta = "Cancel";
|
|
207
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
208
|
+
|
|
198
209
|
}}
|
|
199
210
|
>
|
|
200
211
|
Cancel
|
|
@@ -23,6 +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, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
27
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
26
28
|
|
|
27
29
|
const styles = PaymentStyles;
|
|
28
30
|
|
|
@@ -75,6 +77,9 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
75
77
|
)
|
|
76
78
|
setShowBackModal(true);
|
|
77
79
|
else props.navigation.goBack();
|
|
80
|
+
const cta = "Back Arrow";
|
|
81
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
82
|
+
|
|
78
83
|
}}
|
|
79
84
|
name="arrow-back"
|
|
80
85
|
color={'black'}
|
|
@@ -126,12 +131,18 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
126
131
|
status={paymentMode === item ? 'checked' : 'unchecked'}
|
|
127
132
|
onPress={() => {
|
|
128
133
|
setPaymentMode(item);
|
|
134
|
+
const cta = paymentMode === item ? 'paymentMode checked' : 'paymentMode unchecked';
|
|
135
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
136
|
+
|
|
129
137
|
}}
|
|
130
138
|
/>
|
|
131
139
|
<Text
|
|
132
140
|
style={styles.reasonTextStyle}
|
|
133
141
|
onPress={() => {
|
|
134
142
|
setPaymentMode(item);
|
|
143
|
+
const cta = item;
|
|
144
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
145
|
+
|
|
135
146
|
}}
|
|
136
147
|
>
|
|
137
148
|
{item}
|
|
@@ -197,6 +208,9 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
197
208
|
ExecutionTaskID.INIT_PAYMENT
|
|
198
209
|
)),
|
|
199
210
|
});
|
|
211
|
+
const cta = 'Cancel';
|
|
212
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
213
|
+
|
|
200
214
|
}}
|
|
201
215
|
>
|
|
202
216
|
Cancel
|
|
@@ -233,6 +247,9 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
233
247
|
)),
|
|
234
248
|
});
|
|
235
249
|
} else showToast('No payment mode selected');
|
|
250
|
+
const cta = 'Collect';
|
|
251
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
252
|
+
|
|
236
253
|
}}
|
|
237
254
|
>
|
|
238
255
|
Collect
|
|
@@ -23,6 +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, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
27
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
26
28
|
|
|
27
29
|
const styles = PaymentStyles;
|
|
28
30
|
|
|
@@ -66,6 +68,9 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
66
68
|
)
|
|
67
69
|
setShowBackModal(true);
|
|
68
70
|
else props.navigation.goBack();
|
|
71
|
+
const cta = 'Back Arrow';
|
|
72
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
73
|
+
|
|
69
74
|
}}
|
|
70
75
|
name="arrow-back"
|
|
71
76
|
color={'black'}
|
|
@@ -203,6 +208,9 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
203
208
|
ExecutionTaskID.PROCESS_PAYMENT
|
|
204
209
|
)),
|
|
205
210
|
});
|
|
211
|
+
const cta = 'Cancel';
|
|
212
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
213
|
+
|
|
206
214
|
}}
|
|
207
215
|
>
|
|
208
216
|
Cancel
|
|
@@ -260,6 +268,9 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
260
268
|
} else {
|
|
261
269
|
setInputError('Please enter valid amount.');
|
|
262
270
|
}
|
|
271
|
+
const cta = 'Next';
|
|
272
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
273
|
+
|
|
263
274
|
}}
|
|
264
275
|
>
|
|
265
276
|
Next
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
ExecutionTaskID,
|
|
14
14
|
} from '../../../models/execTasks/ETConfig';
|
|
15
15
|
import type { LineItem } from '../deliver/DeliverETInput';
|
|
16
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
17
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
16
18
|
|
|
17
19
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
18
20
|
<Card style={deliverETStyles.item}>
|
|
@@ -78,6 +80,9 @@ const PickupET = (props: PickupETInput) => {
|
|
|
78
80
|
ExecutionTaskID.PICKUP
|
|
79
81
|
)),
|
|
80
82
|
});
|
|
83
|
+
const cta = 'Cancel';
|
|
84
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PICKUP_ET_SCREEN, cta: cta });
|
|
85
|
+
|
|
81
86
|
}}
|
|
82
87
|
>
|
|
83
88
|
Cancel
|
|
@@ -104,6 +109,9 @@ const PickupET = (props: PickupETInput) => {
|
|
|
104
109
|
ExecutionTaskID.PICKUP
|
|
105
110
|
)),
|
|
106
111
|
});
|
|
112
|
+
const cta = 'Pickup';
|
|
113
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PICKUP_ET_SCREEN, cta: cta });
|
|
114
|
+
|
|
107
115
|
}}
|
|
108
116
|
>
|
|
109
117
|
Pickup
|