@os1-platform/dispatch-mobile 2.1.22 → 2.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -11
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js +1 -4
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +5 -5
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +9 -16
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +16 -6
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +8 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +8 -10
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +2 -2
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +40 -0
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPaymentSchema.js +35 -0
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentStyles.js +102 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentStyles.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +151 -0
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +188 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CustomContactsModal.js +2 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/CustomContactsModal.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +442 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +538 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +887 -0
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +14 -20
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +24 -27
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +2 -3
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +9 -3
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +2 -2
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +13 -14
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +2 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +11 -12
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +3 -3
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +2 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +11 -13
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +11 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +2 -2
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +2 -2
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +14 -20
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +18 -24
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +4 -6
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +4 -5
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +2 -4
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +3 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +14 -8
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +2 -2
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +2 -2
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +2 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +2 -2
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +1 -2
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/GoBackModal.js +1 -1
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
- package/lib/commonjs/components/widgets/IconButton.js +20 -23
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +3 -1
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/ProgressDialog.js +3 -3
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +22 -21
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +10 -11
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/components/widgets/Timer.js +40 -0
- package/lib/commonjs/components/widgets/Timer.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +4 -1
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js +4 -1
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -3
- package/lib/commonjs/events/EventDispatcher.js +5 -1
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/constants.js +2 -1
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/index.js +1 -1
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/events/interface.js.map +1 -1
- package/lib/commonjs/icons/CircleMark.js +27 -0
- package/lib/commonjs/icons/CircleMark.js.map +1 -0
- package/lib/commonjs/icons/FailedIcon.js +69 -0
- package/lib/commonjs/icons/FailedIcon.js.map +1 -0
- package/lib/commonjs/icons/FailureCloseIcon.js +42 -0
- package/lib/commonjs/icons/FailureCloseIcon.js.map +1 -0
- package/lib/commonjs/icons/ScanIcon.js +1 -1
- package/lib/commonjs/icons/ScanIcon.js.map +1 -1
- package/lib/commonjs/icons/SuccessCompleteIcon.js +42 -0
- package/lib/commonjs/icons/SuccessCompleteIcon.js.map +1 -0
- package/lib/commonjs/icons/file.js +1 -1
- package/lib/commonjs/icons/file.js.map +1 -1
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/locale/i18n.js +1 -1
- package/lib/commonjs/locale/i18n.js.map +1 -1
- package/lib/commonjs/locale/util.js +1 -1
- package/lib/commonjs/locale/util.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +11 -9
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +6 -6
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +6 -6
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +7 -7
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -6
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +6 -6
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -8
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -6
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +4 -4
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +7 -7
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +2 -2
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +2 -2
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +7 -10
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +13 -47
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +6 -7
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +7 -8
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +5 -9
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +3 -0
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +5 -5
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +15 -19
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +30 -3
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +2 -5
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +5 -5
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -4
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +4 -4
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +13 -3
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +7 -8
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +8 -9
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js +251 -0
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +7 -8
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +8 -9
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +8 -9
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +8 -9
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +43 -11
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +8 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +8 -9
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +8 -9
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +7 -8
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +8 -9
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +9 -9
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +8 -9
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +8 -10
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +14 -10
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +8 -9
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +3 -3
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +2 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +3 -1
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +35 -5
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +6 -62
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +4 -4
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -2
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +3 -3
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/context/paymentContext.js +9 -0
- package/lib/commonjs/utils/context/paymentContext.js.map +1 -0
- package/lib/commonjs/utils/fcm/FCM.js +22 -4
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +12 -2
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +6 -6
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +4 -3
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
- package/lib/commonjs/utils/loginHelper.js +1 -1
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +11 -17
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +2 -3
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/analytics/firebase/FirebaseLogging.js +0 -3
- package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -1
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +5 -5
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +7 -14
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/module/components/dispatch/DispatchExecNavigator.js +14 -4
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +2 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +6 -8
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/CollectPayment.js +32 -0
- package/lib/module/components/executiontasks/collectPayment/CollectPayment.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/CollectPaymentSchema.js +29 -0
- package/lib/module/components/executiontasks/collectPayment/CollectPaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentStyles.js +96 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentStyles.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentUtils.js +132 -0
- package/lib/module/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +179 -0
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/CustomContactsModal.js +2 -0
- package/lib/module/components/executiontasks/collectPayment/components/CustomContactsModal.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +433 -0
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +531 -0
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -0
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +880 -0
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +13 -19
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +21 -24
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +0 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +6 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +11 -12
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +9 -10
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +9 -11
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js +11 -2
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -4
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +13 -19
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +15 -21
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +2 -4
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +3 -4
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +0 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +0 -2
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1 -4
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/scan/utils.js +11 -6
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -1
- package/lib/module/components/widgets/Card.js +0 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/IconButton.js +19 -22
- package/lib/module/components/widgets/IconButton.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +1 -0
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/ProgressDialog.js +2 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +21 -20
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +9 -10
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/Timer.js +32 -0
- package/lib/module/components/widgets/Timer.js.map +1 -0
- package/lib/module/constants/apiConstants.js +4 -1
- package/lib/module/constants/apiConstants.js.map +1 -1
- package/lib/module/constants/constants.js +3 -0
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -3
- package/lib/module/events/EventDispatcher.js +3 -0
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/events/constants.js +2 -1
- package/lib/module/events/constants.js.map +1 -1
- package/lib/module/events/interface.js.map +1 -1
- package/lib/module/icons/CircleMark.js +20 -0
- package/lib/module/icons/CircleMark.js.map +1 -0
- package/lib/module/icons/FailedIcon.js +62 -0
- package/lib/module/icons/FailedIcon.js.map +1 -0
- package/lib/module/icons/FailureCloseIcon.js +35 -0
- package/lib/module/icons/FailureCloseIcon.js.map +1 -0
- package/lib/module/icons/SuccessCompleteIcon.js +35 -0
- package/lib/module/icons/SuccessCompleteIcon.js.map +1 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js +10 -8
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +5 -5
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +5 -5
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +5 -5
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +5 -5
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +5 -5
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +6 -6
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +5 -5
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +3 -3
- package/lib/module/manager/syncmanager/AppSyncManager.js +5 -5
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +1 -0
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/constants.js +1 -1
- package/lib/module/manager/syncmanager/constants.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +6 -9
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +11 -45
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +5 -6
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +5 -6
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +3 -7
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +3 -0
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +4 -4
- package/lib/module/network/GraphQLClient.js +14 -18
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +29 -2
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +1 -4
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +4 -4
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/resources/Login.js +3 -3
- package/lib/module/resources/network.js +3 -3
- package/lib/module/styles/executionTasks/CommonStyles.js +12 -2
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +5 -6
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +6 -7
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CollectPaymentScreen.js +244 -0
- package/lib/module/ui/screens/CollectPaymentScreen.js.map +1 -0
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +5 -6
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +6 -7
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +6 -7
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +6 -7
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +41 -10
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +2 -1
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +6 -7
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +6 -7
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +6 -7
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +6 -7
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +7 -7
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +6 -7
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +6 -8
- package/lib/module/ui/screens/ScanScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js +12 -8
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +6 -7
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +2 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +2 -0
- package/lib/module/utils/ApiUtils.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +31 -4
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +5 -61
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -3
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +1 -1
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/context/paymentContext.js +3 -0
- package/lib/module/utils/context/paymentContext.js.map +1 -0
- package/lib/module/utils/fcm/FCM.js +20 -2
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +10 -0
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +5 -5
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useModal.js +2 -1
- package/lib/module/utils/hooks/useModal.js.map +1 -1
- package/lib/module/utils/hooks/useTimer.js.map +1 -1
- package/lib/module/utils/storage.js +9 -15
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +1 -2
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +4 -2
- package/lib/typescript/components/executiontasks/collectPayment/CollectPayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/CollectPaymentSchema.d.ts +155 -0
- package/lib/typescript/components/executiontasks/collectPayment/PaymentStyles.d.ts +92 -0
- package/lib/typescript/components/executiontasks/collectPayment/PaymentUtils.d.ts +16 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/CompletePayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/CustomContactsModal.d.ts +0 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/InitPayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +4 -0
- package/lib/typescript/components/executiontasks/collectPayment/components/ProcessPayment.d.ts +4 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +1 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +3 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
- package/lib/typescript/components/widgets/Timer.d.ts +7 -0
- package/lib/typescript/constants/apiConstants.d.ts +3 -0
- package/lib/typescript/constants/constants.d.ts +3 -0
- package/lib/typescript/events/EventDispatcher.d.ts +1 -0
- package/lib/typescript/events/constants.d.ts +1 -0
- package/lib/typescript/events/interface.d.ts +1 -1
- package/lib/typescript/icons/CircleMark.d.ts +3 -0
- package/lib/typescript/icons/FailedIcon.d.ts +4 -0
- package/lib/typescript/icons/FailureCloseIcon.d.ts +4 -0
- package/lib/typescript/icons/SuccessCompleteIcon.d.ts +4 -0
- package/lib/typescript/manager/syncmanager/constants.d.ts +1 -1
- package/lib/typescript/models/DispatchModels.d.ts +11 -0
- package/lib/typescript/models/execTasks/ETConfig.d.ts +6 -3
- package/lib/typescript/models/sdk.d.ts +12 -0
- package/lib/typescript/network/NetworkClient.d.ts +3 -1
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +10 -1
- package/lib/typescript/ui/screens/CollectPaymentScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +2 -1
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +1 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +2 -0
- package/lib/typescript/utils/context/paymentContext.d.ts +7 -0
- package/package.json +5 -4
- package/src/analytics/firebase/FirebaseLogging.ts +2 -11
- package/src/analytics/sentry/SentryAnalyticsUtils.ts +0 -7
- package/src/components/dispatch/DispatchExecNavigator.tsx +14 -0
- package/src/components/executiontasks/ExecutionTasksIndex.ts +8 -0
- package/src/components/executiontasks/collectPayment/CollectPayment.tsx +60 -0
- package/src/components/executiontasks/collectPayment/CollectPaymentSchema.ts +182 -0
- package/src/components/executiontasks/collectPayment/PaymentStyles.ts +102 -0
- package/src/components/executiontasks/collectPayment/PaymentUtils.ts +200 -0
- package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +273 -0
- package/src/components/executiontasks/collectPayment/components/CustomContactsModal.tsx +0 -0
- package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +658 -0
- package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +790 -0
- package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +1352 -0
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +132 -60
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +35 -12
- package/src/components/executiontasks/payments/PaymentUtils.ts +10 -2
- package/src/components/executiontasks/pickup/SLPickupET.tsx +6 -3
- package/src/components/executiontasks/scan/ScanET.tsx +1 -1
- package/src/components/executiontasks/scan/interfaces.ts +1 -1
- package/src/components/executiontasks/scan/utils.ts +16 -8
- package/src/components/widgets/ModalWidget.tsx +26 -8
- package/src/components/widgets/ProgressDialog.tsx +23 -3
- package/src/components/widgets/SnackBarCustom.tsx +8 -1
- package/src/components/widgets/SplitTextInput.tsx +1 -1
- package/src/components/widgets/Timer.tsx +53 -0
- package/src/constants/apiConstants.ts +3 -0
- package/src/constants/constants.ts +3 -0
- package/src/events/EventDispatcher.ts +4 -0
- package/src/events/constants.ts +1 -0
- package/src/events/interface.ts +7 -1
- package/src/icons/CircleMark.tsx +18 -0
- package/src/icons/FailedIcon.tsx +80 -0
- package/src/icons/FailureCloseIcon.tsx +35 -0
- package/src/icons/SuccessCompleteIcon.tsx +35 -0
- package/src/manager/dispatch/DispatchStateContainer.tsx +6 -4
- package/src/manager/sdk/DispatchSDKManager.ts +1 -0
- package/src/manager/syncmanager/constants.ts +1 -1
- package/src/manager/syncmanager/document/DocumentManager.ts +6 -8
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +8 -43
- package/src/models/DispatchModels.ts +12 -0
- package/src/models/execTasks/ETConfig.ts +3 -0
- package/src/models/sdk.ts +13 -0
- package/src/network/NetworkClient.ts +34 -1
- package/src/network/client.ts +1 -0
- package/src/styles/executionTasks/CommonStyles.ts +32 -8
- package/src/ui/screens/CollectPaymentScreen.tsx +315 -0
- package/src/ui/screens/DropCashScreen.tsx +49 -2
- package/src/ui/screens/ETScreensIndex.ts +2 -0
- package/src/ui/screens/PaymentScreen.tsx +1 -0
- package/src/ui/screens/StartWorkFlowScreen.tsx +16 -1
- package/src/ui/uiConfig/RouteParams.ts +8 -1
- package/src/utils/ApiUtils.ts +1 -0
- package/src/utils/ExecTaskUtils.ts +44 -3
- package/src/utils/Logger.ts +1 -58
- package/src/utils/SyncManagerUtils.ts +1 -0
- package/src/utils/context/paymentContext.ts +8 -0
- package/src/utils/fcm/FCM.ts +30 -0
- package/src/utils/fcm/FcmUtils.ts +53 -29
- package/lib/commonjs/icons/circleMark.svg +0 -3
- package/lib/module/icons/circleMark.svg +0 -3
- package/src/icons/circleMark.svg +0 -3
|
@@ -8,7 +8,7 @@ import { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';
|
|
|
8
8
|
import type { ETAmount } from '../../components/executiontasks/payments/init/InitPaymentSchema';
|
|
9
9
|
import { View } from 'react-native';
|
|
10
10
|
import CancelOrderDialog from '../../components/widgets/CancelOrderDialog';
|
|
11
|
-
import { onTaskStart } from '../../utils/ExecTaskUtils';
|
|
11
|
+
import { getBaseETResponse, onTaskStart } from '../../utils/ExecTaskUtils';
|
|
12
12
|
|
|
13
13
|
import { DispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
14
14
|
import { GO_BACK_EVENT_CODE } from '../../constants/constants';
|
|
@@ -16,6 +16,8 @@ import Helper from '../../utils/helper';
|
|
|
16
16
|
//{ fireEventWithScreenName } from 'src/analytics/sentry/SentryAnalyticsUtils';
|
|
17
17
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
18
18
|
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
19
|
+
import ProgressDialog from '../../components/widgets/ProgressDialog';
|
|
20
|
+
import { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';
|
|
19
21
|
|
|
20
22
|
// OLD CODE
|
|
21
23
|
// function getTotalExpected(nextStates: any[]): ETAmount {
|
|
@@ -40,13 +42,15 @@ const DropCashScreen = ({
|
|
|
40
42
|
navigation: any;
|
|
41
43
|
baseETProps: BaseETProps;
|
|
42
44
|
}) => {
|
|
45
|
+
const [loading, setLoading] = useState(false);
|
|
46
|
+
|
|
43
47
|
const helperInstance = Helper.getInstance();
|
|
44
48
|
const nextState = route.params[RouteParams.NEXT_STATES];
|
|
45
49
|
const { taskMeta, mergedObjectiveId, input, wfMeta, taskName } =
|
|
46
50
|
getDataFromNextState(nextState);
|
|
47
51
|
|
|
48
52
|
const [expectedAmount, setExpectedAmount] = useState<ETAmount>({
|
|
49
|
-
value:
|
|
53
|
+
value: 1,
|
|
50
54
|
minorUnit: input.expectedAmount.minorUnit,
|
|
51
55
|
currencyCode: input.expectedAmount.currencyCode,
|
|
52
56
|
});
|
|
@@ -66,6 +70,45 @@ const DropCashScreen = ({
|
|
|
66
70
|
})();
|
|
67
71
|
}, [])
|
|
68
72
|
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
(async () => {
|
|
75
|
+
console.log("expectedAmount:",expectedAmount);
|
|
76
|
+
if(expectedAmount.value === 0){
|
|
77
|
+
// setLoading(true);
|
|
78
|
+
let dropCashETOutput = {
|
|
79
|
+
amount: {
|
|
80
|
+
value: expectedAmount.value,
|
|
81
|
+
currencyCode: expectedAmount.currencyCode,
|
|
82
|
+
minorUnit: expectedAmount.minorUnit,
|
|
83
|
+
},
|
|
84
|
+
...(await getBaseETResponse(
|
|
85
|
+
EntityCode.DELIVER_CASH,
|
|
86
|
+
true,
|
|
87
|
+
getEventCodeByET(
|
|
88
|
+
ExecutionTaskID.DELIVER_CASH,
|
|
89
|
+
true,
|
|
90
|
+
input.applicableReasons?.success
|
|
91
|
+
),
|
|
92
|
+
'',
|
|
93
|
+
mergedObjectiveId,
|
|
94
|
+
ExecutionTaskID.DELIVER_CASH
|
|
95
|
+
)),
|
|
96
|
+
}
|
|
97
|
+
if (dropCashETOutput.success || dropCashETOutput.eventCode == GO_BACK_EVENT_CODE) {
|
|
98
|
+
await submitOutput(dropCashETOutput);
|
|
99
|
+
} else {
|
|
100
|
+
setResponse((_prevState: any) => {
|
|
101
|
+
setShowAlert(true);
|
|
102
|
+
return dropCashETOutput;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
// setLoading(false);
|
|
106
|
+
}
|
|
107
|
+
})();
|
|
108
|
+
}, [expectedAmount.value])
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
69
112
|
const getTotalExpected = async () => {
|
|
70
113
|
const totalAmount: number = await DispatchExecutor.getTotalAmountMWI(
|
|
71
114
|
mergedObjectiveId
|
|
@@ -101,8 +144,10 @@ const DropCashScreen = ({
|
|
|
101
144
|
},
|
|
102
145
|
[baseETProps, navigation, route]
|
|
103
146
|
);
|
|
147
|
+
|
|
104
148
|
return (
|
|
105
149
|
<View style={{ flex: 1 }}>
|
|
150
|
+
{ expectedAmount.value === 0 ? <View><ProgressDialog visible={loading} label={'Please wait...'} /></View> :
|
|
106
151
|
<SLDropCash
|
|
107
152
|
{...input}
|
|
108
153
|
expectedAmount={expectedAmount}
|
|
@@ -121,6 +166,8 @@ const DropCashScreen = ({
|
|
|
121
166
|
}
|
|
122
167
|
}}
|
|
123
168
|
/>
|
|
169
|
+
}
|
|
170
|
+
|
|
124
171
|
<CancelOrderDialog
|
|
125
172
|
visible={showAlert}
|
|
126
173
|
onSubmit={async (value) => {
|
|
@@ -14,6 +14,7 @@ import DropCashScreen from './DropCashScreen';
|
|
|
14
14
|
import ScanScreen from './ScanScreen';
|
|
15
15
|
import HttpRequestScreen from './HttpRequestScreen';
|
|
16
16
|
import ValidateOTPScreen from './ValidateOTPScreen';
|
|
17
|
+
import CollectPaymentScreen from './CollectPaymentScreen';
|
|
17
18
|
|
|
18
19
|
export {
|
|
19
20
|
CancellationScreen,
|
|
@@ -32,4 +33,5 @@ export {
|
|
|
32
33
|
ScanScreen,
|
|
33
34
|
HttpRequestScreen,
|
|
34
35
|
ValidateOTPScreen,
|
|
36
|
+
CollectPaymentScreen,
|
|
35
37
|
};
|
|
@@ -112,6 +112,20 @@ const StartWorkFlowScreen = ({
|
|
|
112
112
|
)
|
|
113
113
|
)[0];
|
|
114
114
|
|
|
115
|
+
if (
|
|
116
|
+
nextStateData.taskId === ExecutionTaskID.COLLECT_PAYMENT_ET &&
|
|
117
|
+
(!isMandatoryKeysPresent(route.params, ['paymentConfig']) ||
|
|
118
|
+
!isMandatoryKeysPresent(route.params.paymentConfig, [
|
|
119
|
+
'paymentRefId',
|
|
120
|
+
]))
|
|
121
|
+
) {
|
|
122
|
+
navigateWithError(
|
|
123
|
+
ErrorCodes.InvalidArgumentError,
|
|
124
|
+
'Missing or Invalid Route Params'
|
|
125
|
+
);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
|
|
115
129
|
let updatedStatusFilter: IDispatchExecutor.ExecutionStatus[] = [];
|
|
116
130
|
|
|
117
131
|
if (
|
|
@@ -136,6 +150,7 @@ const StartWorkFlowScreen = ({
|
|
|
136
150
|
customEventsData: route.params.mergedWI.customEventsData,
|
|
137
151
|
statusFilter: updatedStatusFilter,
|
|
138
152
|
prefixedMergedObjectiveId,
|
|
153
|
+
paymentConfig: route.params.paymentConfig,
|
|
139
154
|
};
|
|
140
155
|
|
|
141
156
|
// if (nextStateList != null && nextStateList.length > 0) {
|
|
@@ -211,7 +226,7 @@ const StartWorkFlowScreen = ({
|
|
|
211
226
|
}
|
|
212
227
|
} catch (error: any) {
|
|
213
228
|
baseETProps.showProgress(false);
|
|
214
|
-
navigateWithError(ErrorCodes.UNEXPECTED_ERROR, error.message);
|
|
229
|
+
navigateWithError(error?.code ?? ErrorCodes.UNEXPECTED_ERROR, error.message);
|
|
215
230
|
Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);
|
|
216
231
|
}
|
|
217
232
|
})();
|
|
@@ -24,5 +24,12 @@ export function getDataFromNextState(
|
|
|
24
24
|
const mergedObjectiveId = nextState.mergedObjectiveIds;
|
|
25
25
|
const wfMeta = JSON.parse(nextState.meta?.workflow || '{}'); //nextState.meta?.workflow || {}; //JSON.parse(nextState.meta?.workflow || '{}');
|
|
26
26
|
|
|
27
|
-
return {
|
|
27
|
+
return {
|
|
28
|
+
input,
|
|
29
|
+
taskMeta,
|
|
30
|
+
mergedObjectiveId,
|
|
31
|
+
wfMeta,
|
|
32
|
+
taskName,
|
|
33
|
+
taskId: nextState.taskId,
|
|
34
|
+
};
|
|
28
35
|
}
|
package/src/utils/ApiUtils.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { EntityCode, ExecutionTaskID } from '../models/execTasks/ETConfig';
|
|
|
6
6
|
import type { EventRow } from '../manager/syncmanager/DBConfig';
|
|
7
7
|
import type { DispatchSDKConfig } from '../models/sdk';
|
|
8
8
|
import dispatchEvent from '../events/EventDispatcher';
|
|
9
|
-
import type { startEvent } from '../models/DispatchModels';
|
|
9
|
+
import type { clickEvent, startEvent } from '../models/DispatchModels';
|
|
10
10
|
import { JSONPath } from 'jsonpath-plus';
|
|
11
11
|
import { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
12
12
|
import { last } from 'lodash';
|
|
@@ -181,6 +181,26 @@ export function onTaskStart(
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
export function onClickEvent(
|
|
185
|
+
eventName: string,
|
|
186
|
+
eventData: IDispatch.IExecutionTaskQueryResponse,
|
|
187
|
+
customData: any,
|
|
188
|
+
additionalData: any,
|
|
189
|
+
triggerEvent = true
|
|
190
|
+
) {
|
|
191
|
+
if (triggerEvent) {
|
|
192
|
+
const customEtName = eventData.taskName;
|
|
193
|
+
const eventOutputData: clickEvent = {
|
|
194
|
+
etData: eventData.input,
|
|
195
|
+
taskId: eventData.taskId,
|
|
196
|
+
timestamp: Date.now(),
|
|
197
|
+
customData,
|
|
198
|
+
additionalData,
|
|
199
|
+
};
|
|
200
|
+
dispatchEvent('ON_CLICK', eventName + ':' + customEtName, eventOutputData);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
184
204
|
const isLeafData = (value: any) => {
|
|
185
205
|
switch (typeof value) {
|
|
186
206
|
case 'boolean':
|
|
@@ -223,8 +243,18 @@ export function handleDynamicValues(jsonInput: any, dataBlob: any) {
|
|
|
223
243
|
json: dataBlob,
|
|
224
244
|
path,
|
|
225
245
|
});
|
|
226
|
-
|
|
227
|
-
|
|
246
|
+
|
|
247
|
+
let outputResp = output.pop();
|
|
248
|
+
if (outputResp) {
|
|
249
|
+
value.shift();
|
|
250
|
+
if (
|
|
251
|
+
Array.isArray(outputResp) &&
|
|
252
|
+
value &&
|
|
253
|
+
Array.isArray(value)
|
|
254
|
+
) {
|
|
255
|
+
jsonInput[key] = [...outputResp, ...value];
|
|
256
|
+
} else jsonInput[key] = outputResp;
|
|
257
|
+
}
|
|
228
258
|
}
|
|
229
259
|
} else if (typeof value[0] === 'object') {
|
|
230
260
|
jsonInput[key] = value.map((val) => {
|
|
@@ -238,3 +268,14 @@ export function handleDynamicValues(jsonInput: any, dataBlob: any) {
|
|
|
238
268
|
}
|
|
239
269
|
return jsonInput;
|
|
240
270
|
}
|
|
271
|
+
|
|
272
|
+
export const maskContact = (contact: string) => {
|
|
273
|
+
if (contact.includes('@')) {
|
|
274
|
+
const [name, domain] = contact.split('@');
|
|
275
|
+
const maskedName = name.substring(0, 3) + '****';
|
|
276
|
+
const maskedEmail = maskedName + '@' + domain;
|
|
277
|
+
return maskedEmail;
|
|
278
|
+
} else {
|
|
279
|
+
return `${contact.slice(0, 2)}****${contact.slice(-4)}`;
|
|
280
|
+
}
|
|
281
|
+
};
|
package/src/utils/Logger.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import DispatchSdkCache from '../manager/sdk/DispatchSdkCache';
|
|
2
1
|
import type { DispatchSDKConfig } from '../models/sdk';
|
|
3
|
-
import * as Sentry from '@sentry/react-native';
|
|
4
2
|
import crashlytics from '@react-native-firebase/crashlytics';
|
|
5
3
|
|
|
6
4
|
export const enum LOG_TYPE {
|
|
@@ -33,8 +31,6 @@ class Logger {
|
|
|
33
31
|
|
|
34
32
|
logEvent(TAG: string, message: string, logType: LOG_TYPE) {
|
|
35
33
|
if (this.enableLogs) console.log(TAG, message);
|
|
36
|
-
// crashlytics().log(`${TAG} - ${logType} -${message}`);
|
|
37
|
-
// this.sendSentryMessage(message, TAG, logType);
|
|
38
34
|
if (
|
|
39
35
|
logType === LOG_TYPE.SDK_WARNING ||
|
|
40
36
|
logType === LOG_TYPE.SDK_ERROR ||
|
|
@@ -42,8 +38,7 @@ class Logger {
|
|
|
42
38
|
logType === LOG_TYPE.APP_WARNING
|
|
43
39
|
) {
|
|
44
40
|
crashlytics().recordError(new Error(message), TAG);
|
|
45
|
-
|
|
46
|
-
}
|
|
41
|
+
}
|
|
47
42
|
}
|
|
48
43
|
|
|
49
44
|
|
|
@@ -53,58 +48,6 @@ class Logger {
|
|
|
53
48
|
}
|
|
54
49
|
return Logger.instance;
|
|
55
50
|
}
|
|
56
|
-
|
|
57
|
-
// public sendSentryException(exception: any, logTag: string, logType: string) {
|
|
58
|
-
// // (async () => {
|
|
59
|
-
// // try {
|
|
60
|
-
// // Sentry.captureException(
|
|
61
|
-
// // exception,
|
|
62
|
-
// // await this.getUserConfig(Severity.Error, logType, logTag)
|
|
63
|
-
// // );
|
|
64
|
-
// // } catch (error: any) {}
|
|
65
|
-
// // })();
|
|
66
|
-
// }
|
|
67
|
-
|
|
68
|
-
// public sendSentryMessage(message: string, logTag: string, logType: string) {
|
|
69
|
-
// // (async () => {
|
|
70
|
-
// // try {
|
|
71
|
-
// // Sentry.captureMessage(
|
|
72
|
-
// // message,
|
|
73
|
-
// // await this.getUserConfig(Severity.Warning, logType, logTag)
|
|
74
|
-
// // );
|
|
75
|
-
// // } catch (error: any) {}
|
|
76
|
-
// // })();
|
|
77
|
-
// }
|
|
78
|
-
|
|
79
|
-
// private async getUserConfig(
|
|
80
|
-
// logLevel: Severity,
|
|
81
|
-
// logType: string,
|
|
82
|
-
// logTag: string
|
|
83
|
-
// ) {
|
|
84
|
-
// try {
|
|
85
|
-
// const config = (await DispatchSdkCache.getInstance().getObjectFromCache(
|
|
86
|
-
// DispatchSdkCache.KEYS.SDK_CONFIG
|
|
87
|
-
// )) as DispatchSDKConfig;
|
|
88
|
-
// const dspId = await DispatchSdkCache.getInstance().getKeyFromCache(
|
|
89
|
-
// DispatchSdkCache.KEYS.DISPATCH_ID
|
|
90
|
-
// );
|
|
91
|
-
// return {
|
|
92
|
-
// user: {
|
|
93
|
-
// id: config?.userID,
|
|
94
|
-
// username: config?.userName,
|
|
95
|
-
// },
|
|
96
|
-
// tags: {
|
|
97
|
-
// dispatchId: dspId,
|
|
98
|
-
// errorTime: Date.now(),
|
|
99
|
-
// logType: logType,
|
|
100
|
-
// logTag: logTag,
|
|
101
|
-
// },
|
|
102
|
-
// level: logLevel,
|
|
103
|
-
// };
|
|
104
|
-
// } catch (error: any) {
|
|
105
|
-
// return undefined;
|
|
106
|
-
// }
|
|
107
|
-
// }
|
|
108
51
|
}
|
|
109
52
|
|
|
110
53
|
export default Logger;
|
|
@@ -224,6 +224,7 @@ export async function createFmsFolder(dispatchID: string) {
|
|
|
224
224
|
.join('')}`;
|
|
225
225
|
let fmsFolder = await cache.getKeyFromCache(keys.FMS_FOLDER);
|
|
226
226
|
const dspID = await cache.getKeyFromCache(keys.DISPATCH_ID);
|
|
227
|
+
// await cache.setKeyInCache(keys.FMS_FOLDER, folderName); //FOR TESTING WHILE USING COREOS TOKEN DIRECTLY
|
|
227
228
|
if (!isEmptyOrBlank(fmsFolder) && dspID != null && dspID === dispatchID) {
|
|
228
229
|
return;
|
|
229
230
|
} else {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
import { DispatchSDKConfig } from '../../models/sdk';
|
|
3
|
+
import NetworkClient from '../../network/NetworkClient';
|
|
4
|
+
|
|
5
|
+
export const PaymentContext = createContext<{
|
|
6
|
+
sdkConfig: DispatchSDKConfig;
|
|
7
|
+
networkInstance: NetworkClient;
|
|
8
|
+
} | null>(null);
|
package/src/utils/fcm/FCM.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { Component } from 'react';
|
|
|
2
2
|
import messaging from '@react-native-firebase/messaging';
|
|
3
3
|
import Logger, { LOG_TYPE } from '../Logger';
|
|
4
4
|
import DispatchSdkCache from '../../manager/sdk/DispatchSdkCache';
|
|
5
|
+
import { dispatch } from '../../events/EventDispatcher';
|
|
6
|
+
import { PAYMENT_NOTIFICATION } from '../../constants/constants';
|
|
5
7
|
// import JobRemovalManager from '../../manager/jobRemoval/JobRemovalManager';
|
|
6
8
|
|
|
7
9
|
const cache = DispatchSdkCache.getInstance();
|
|
@@ -44,7 +46,16 @@ abstract class FCM extends Component<any, any> {
|
|
|
44
46
|
// return;
|
|
45
47
|
// }
|
|
46
48
|
// }
|
|
49
|
+
console.log("remoteMessage2:",remoteMessage)
|
|
47
50
|
|
|
51
|
+
if (remoteMessage?.data?.type === PAYMENT_NOTIFICATION) {
|
|
52
|
+
dispatch(
|
|
53
|
+
PAYMENT_NOTIFICATION,
|
|
54
|
+
remoteMessage?.data?.data
|
|
55
|
+
? JSON.stringify(remoteMessage?.data?.data)
|
|
56
|
+
: null
|
|
57
|
+
);
|
|
58
|
+
}
|
|
48
59
|
this.handleFcmMessage(remoteMessage);
|
|
49
60
|
});
|
|
50
61
|
|
|
@@ -73,7 +84,16 @@ abstract class FCM extends Component<any, any> {
|
|
|
73
84
|
// return;
|
|
74
85
|
// }
|
|
75
86
|
// }
|
|
87
|
+
console.log("remoteMessage3:",remoteMessage)
|
|
76
88
|
|
|
89
|
+
if (remoteMessage?.data?.type === PAYMENT_NOTIFICATION) {
|
|
90
|
+
dispatch(
|
|
91
|
+
PAYMENT_NOTIFICATION,
|
|
92
|
+
remoteMessage?.data?.data
|
|
93
|
+
? JSON.stringify(remoteMessage?.data?.data)
|
|
94
|
+
: null
|
|
95
|
+
);
|
|
96
|
+
}
|
|
77
97
|
this.handleNotification(remoteMessage);
|
|
78
98
|
});
|
|
79
99
|
|
|
@@ -105,7 +125,17 @@ abstract class FCM extends Component<any, any> {
|
|
|
105
125
|
// return;
|
|
106
126
|
// }
|
|
107
127
|
// }
|
|
128
|
+
|
|
129
|
+
console.log("remoteMessage4:",remoteMessage)
|
|
108
130
|
|
|
131
|
+
if (remoteMessage?.data?.type === PAYMENT_NOTIFICATION) {
|
|
132
|
+
dispatch(
|
|
133
|
+
PAYMENT_NOTIFICATION,
|
|
134
|
+
remoteMessage?.data?.data
|
|
135
|
+
? JSON.stringify(remoteMessage?.data?.data)
|
|
136
|
+
: null
|
|
137
|
+
);
|
|
138
|
+
}
|
|
109
139
|
this.handleNotification(remoteMessage);
|
|
110
140
|
}
|
|
111
141
|
});
|
|
@@ -3,6 +3,9 @@ import messaging from '@react-native-firebase/messaging';
|
|
|
3
3
|
import Logger, { LOG_TYPE } from '../Logger';
|
|
4
4
|
import type { messageReceived, tokenRefreshed } from '../../models/fcm';
|
|
5
5
|
import DispatchSdkCache from '../../manager/sdk/DispatchSdkCache';
|
|
6
|
+
import { PAYMENT_NOTIFICATION } from '../../constants/constants';
|
|
7
|
+
import { dispatch } from '../..//events/EventDispatcher';
|
|
8
|
+
import { Platform } from 'react-native';
|
|
6
9
|
// import JobRemovalManager from '../../manager/jobRemoval/JobRemovalManager';
|
|
7
10
|
|
|
8
11
|
const cache = DispatchSdkCache.getInstance();
|
|
@@ -34,7 +37,18 @@ export default function useFCMMessage() {
|
|
|
34
37
|
JSON.stringify(remoteMessage),
|
|
35
38
|
LOG_TYPE.SDK_INFO
|
|
36
39
|
);
|
|
37
|
-
|
|
40
|
+
console.log("remoteMessage1:",JSON.stringify(remoteMessage));
|
|
41
|
+
if (remoteMessage?.data?.type === PAYMENT_NOTIFICATION) {
|
|
42
|
+
console.log("remoteMessage2:",JSON.stringify(remoteMessage));
|
|
43
|
+
dispatch(
|
|
44
|
+
PAYMENT_NOTIFICATION,
|
|
45
|
+
remoteMessage?.data?.data
|
|
46
|
+
? JSON.parse(remoteMessage?.data?.data as string)
|
|
47
|
+
: null
|
|
48
|
+
);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
38
52
|
setMessage(remoteMessage);
|
|
39
53
|
});
|
|
40
54
|
return () => {
|
|
@@ -89,42 +103,52 @@ async function generateFCMToken(): Promise<string | null> {
|
|
|
89
103
|
}
|
|
90
104
|
export function registerBackgroundHandler(callback: messageReceived) {
|
|
91
105
|
messaging().setBackgroundMessageHandler(async (remoteMessage) => {
|
|
92
|
-
Logger.getInstance().logEvent(
|
|
93
|
-
|
|
106
|
+
Logger.getInstance().logEvent(
|
|
107
|
+
'setBackgroundMessageHandler Message arrived ',
|
|
108
|
+
JSON.stringify(remoteMessage),
|
|
109
|
+
LOG_TYPE.SDK_INFO
|
|
110
|
+
);
|
|
94
111
|
callback(remoteMessage);
|
|
95
112
|
});
|
|
96
113
|
}
|
|
97
114
|
|
|
98
115
|
export function onNotificationOpenedApp(callback: messageReceived) {
|
|
99
|
-
messaging().onNotificationOpenedApp(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
116
|
+
messaging().onNotificationOpenedApp(async (remoteMessage) => {
|
|
117
|
+
Logger.getInstance().logEvent(
|
|
118
|
+
'onNotificationOpenedApp Notification Arrived',
|
|
119
|
+
JSON.stringify(remoteMessage),
|
|
120
|
+
LOG_TYPE.SDK_INFO
|
|
121
|
+
);
|
|
122
|
+
callback(remoteMessage);
|
|
123
|
+
});
|
|
106
124
|
}
|
|
107
125
|
|
|
108
126
|
export function getInitialNotification(callback: messageReceived) {
|
|
109
|
-
messaging()
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
127
|
+
messaging()
|
|
128
|
+
.getInitialNotification()
|
|
129
|
+
.then(async (remoteMessage) => {
|
|
130
|
+
if (remoteMessage) {
|
|
131
|
+
Logger.getInstance().logEvent(
|
|
132
|
+
'getInitialNotification Notification Arrived',
|
|
133
|
+
JSON.stringify(remoteMessage),
|
|
134
|
+
LOG_TYPE.SDK_INFO
|
|
135
|
+
);
|
|
136
|
+
callback(remoteMessage);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
116
139
|
}
|
|
117
140
|
|
|
118
141
|
export function onTokenRefresh(callback: tokenRefreshed) {
|
|
119
|
-
messaging().onTokenRefresh(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
token,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
142
|
+
messaging().onTokenRefresh(async (token) => {
|
|
143
|
+
await cache.setKeyInCache(
|
|
144
|
+
DispatchSdkCache.KEYS.FIREBASE_REGISTRATION_TOKEN,
|
|
145
|
+
token
|
|
146
|
+
);
|
|
147
|
+
Logger.getInstance().logEvent(
|
|
148
|
+
'onTokenRefresh Called',
|
|
149
|
+
token,
|
|
150
|
+
LOG_TYPE.SDK_INFO
|
|
151
|
+
);
|
|
152
|
+
callback(token);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M12.9414 7.06434C12.6973 6.82067 12.3016 6.82067 12.0578 7.06434L10 9.11891L7.94141 7.06434C7.69727 6.82067 7.30156 6.82067 7.05781 7.06434C6.81406 7.308 6.81367 7.70293 7.05781 7.94621L9.11719 10L7.05859 12.0546C6.81445 12.2982 6.81445 12.6932 7.05859 12.9364C7.30258 13.1799 7.69805 13.1803 7.94219 12.9364L10 10.8811L12.0582 12.9353C12.3022 13.1788 12.6977 13.1791 12.9418 12.9353C13.1859 12.6916 13.1859 12.2967 12.9418 12.0534L10.8828 10L12.941 7.94582C13.1875 7.70371 13.1875 7.30605 12.9414 7.06434ZM10 0.0195312C4.47656 0.0195312 0 4.48735 0 10C0 15.5126 4.47656 19.9805 10 19.9805C15.5234 19.9805 20 15.5126 20 10C20 4.48735 15.5234 0.0195312 10 0.0195312ZM10 18.7329C5.17578 18.7329 1.25 14.8148 1.25 10C1.25 5.1852 5.17578 1.26709 10 1.26709C14.8242 1.26709 18.75 5.1852 18.75 10C18.75 14.8148 14.8242 18.7329 10 18.7329Z" fill="#A3AAC2"/>
|
|
3
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M12.9414 7.06434C12.6973 6.82067 12.3016 6.82067 12.0578 7.06434L10 9.11891L7.94141 7.06434C7.69727 6.82067 7.30156 6.82067 7.05781 7.06434C6.81406 7.308 6.81367 7.70293 7.05781 7.94621L9.11719 10L7.05859 12.0546C6.81445 12.2982 6.81445 12.6932 7.05859 12.9364C7.30258 13.1799 7.69805 13.1803 7.94219 12.9364L10 10.8811L12.0582 12.9353C12.3022 13.1788 12.6977 13.1791 12.9418 12.9353C13.1859 12.6916 13.1859 12.2967 12.9418 12.0534L10.8828 10L12.941 7.94582C13.1875 7.70371 13.1875 7.30605 12.9414 7.06434ZM10 0.0195312C4.47656 0.0195312 0 4.48735 0 10C0 15.5126 4.47656 19.9805 10 19.9805C15.5234 19.9805 20 15.5126 20 10C20 4.48735 15.5234 0.0195312 10 0.0195312ZM10 18.7329C5.17578 18.7329 1.25 14.8148 1.25 10C1.25 5.1852 5.17578 1.26709 10 1.26709C14.8242 1.26709 18.75 5.1852 18.75 10C18.75 14.8148 14.8242 18.7329 10 18.7329Z" fill="#A3AAC2"/>
|
|
3
|
-
</svg>
|
package/src/icons/circleMark.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M12.9414 7.06434C12.6973 6.82067 12.3016 6.82067 12.0578 7.06434L10 9.11891L7.94141 7.06434C7.69727 6.82067 7.30156 6.82067 7.05781 7.06434C6.81406 7.308 6.81367 7.70293 7.05781 7.94621L9.11719 10L7.05859 12.0546C6.81445 12.2982 6.81445 12.6932 7.05859 12.9364C7.30258 13.1799 7.69805 13.1803 7.94219 12.9364L10 10.8811L12.0582 12.9353C12.3022 13.1788 12.6977 13.1791 12.9418 12.9353C13.1859 12.6916 13.1859 12.2967 12.9418 12.0534L10.8828 10L12.941 7.94582C13.1875 7.70371 13.1875 7.30605 12.9414 7.06434ZM10 0.0195312C4.47656 0.0195312 0 4.48735 0 10C0 15.5126 4.47656 19.9805 10 19.9805C15.5234 19.9805 20 15.5126 20 10C20 4.48735 15.5234 0.0195312 10 0.0195312ZM10 18.7329C5.17578 18.7329 1.25 14.8148 1.25 10C1.25 5.1852 5.17578 1.26709 10 1.26709C14.8242 1.26709 18.75 5.1852 18.75 10C18.75 14.8148 14.8242 18.7329 10 18.7329Z" fill="#A3AAC2"/>
|
|
3
|
-
</svg>
|