@os1-platform/dispatch-mobile 2.1.21 → 2.1.23
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 -1
- 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 -10
- 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/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 +6 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +8 -16
- 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 +13 -9
- 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 -7
- 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/sentry/SentryAnalyticsSingleton.js +5 -5
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +7 -8
- 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/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -5
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +6 -14
- 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 +11 -7
- 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 -6
- 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/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/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 +6 -5
- 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/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/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 +15 -0
- 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/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/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -18
- package/android/.idea/kotlinc.xml +0 -6
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/other.xml +0 -263
- package/android/.idea/vcs.xml +0 -6
- package/lib/commonjs/icons/circleMark.svg +0 -3
- package/lib/module/icons/circleMark.svg +0 -3
- package/src/icons/circleMark.svg +0 -3
- /package/{android/.gradle/6.8/gc.properties → lib/typescript/components/executiontasks/collectPayment/components/CustomContactsModal.d.ts} +0 -0
- /package/{android/.gradle/7.5/dependencies-accessors/gc.properties → src/components/executiontasks/collectPayment/components/CustomContactsModal.tsx} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_client","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_client","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","Login","HttpClient","constructor","payload","instance","post","accessToken","refreshTokenPayload","Auth","_default","exports"],"sources":["Login.ts"],"sourcesContent":["import HttpClient from '../network/client';\nimport type {\n AccessTokenPayload,\n LoginPayload,\n RefreshTokenPayload,\n} from '../models/auth';\n\nclass Login extends HttpClient {\n public constructor() {\n super('https://delhivery.dev.fxtrt.io/core/api/v1/aaa/');\n }\n public loginMobilePassword = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-password', payload);\n };\n public loginMobileOtp = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-otp', payload);\n };\n public loginMpin = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mpin', payload);\n };\n public loginUserName = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/username-password', payload);\n };\n public loginCredential = (payload: LoginPayload) => {\n return this.instance.post('/auth/client-login', payload);\n };\n public validateToken = (accessToken: AccessTokenPayload) => {\n return this.instance.post('/auth/validate', accessToken);\n };\n public refreshToken = (refreshTokenPayload: RefreshTokenPayload) => {\n return this.instance.post('/auth/validate', refreshTokenPayload);\n };\n}\n\nconst Auth = new Login();\nexport default Auth;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,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C,IAAK;MAClE,OAAO,IAAI,CAACH,QAAQ,CAACC,IAAI,CAAC,gBAAgB,EAAEE,mBAAmB,CAAC;IAClE,CAAC;EArBD;AAsBF;AAEA,MAAMC,IAAI,GAAG,IAAIR,KAAK,CAAC,CAAC;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAA7B,OAAA,GACV2B,IAAI","ignoreList":[]}
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _client = _interopRequireDefault(require("../network/client"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
function _defineProperty(
|
|
10
|
-
function _toPropertyKey(
|
|
11
|
-
function _toPrimitive(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12
12
|
class Network extends _client.default {
|
|
13
13
|
constructor() {
|
|
14
14
|
super('https://google.com');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_client","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_client","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","Network","HttpClient","constructor","instance","head","network","_default","exports"],"sources":["network.ts"],"sourcesContent":["import HttpClient from '../network/client';\n\nclass Network extends HttpClient {\n public constructor() {\n super('https://google.com');\n }\n public heartBeat = () => {\n return this.instance.head('/');\n };\n}\n\nconst network = new Network();\nexport default network;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,CAAAiB,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAE3C,MAAMgB,OAAO,SAASC,eAAU,CAAC;EACxBC,WAAWA,CAAA,EAAG;IACnB,KAAK,CAAC,oBAAoB,CAAC;IAACpB,eAAA,oBAEX,MAAM;MACvB,OAAO,IAAI,CAACqB,QAAQ,CAACC,IAAI,CAAC,GAAG,CAAC;IAChC,CAAC;EAHD;AAIF;AAEA,MAAMC,OAAO,GAAG,IAAIL,OAAO,CAAC,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GACfwB,OAAO","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.deliverETStyles = exports.Fonts = exports.DeliverPickupStyles = exports.
|
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _SdkColors = _interopRequireWildcard(require("../SdkColors"));
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
11
|
let Fonts = exports.Fonts = /*#__PURE__*/function (Fonts) {
|
|
12
12
|
Fonts["IBMPlexSans_400Regular"] = "IBMPlexSans_400Regular";
|
|
13
13
|
Fonts["IBMPlexSans_600SemiBold"] = "IBMPlexSans_600SemiBold";
|
|
@@ -140,12 +140,20 @@ const CommonStyles = exports.CommonStyles = _reactNative.StyleSheet.create({
|
|
|
140
140
|
justifyContent: 'center',
|
|
141
141
|
fontFamily: 'IBMPlexSans_400Regular',
|
|
142
142
|
fontStyle: 'normal',
|
|
143
|
+
fontWeight: '400',
|
|
143
144
|
fontSize: 14,
|
|
144
145
|
letterSpacing: 0.25,
|
|
145
146
|
lineHeight: 20,
|
|
146
147
|
textAlign: 'center',
|
|
147
|
-
color: '#
|
|
148
|
+
color: '#3D445C',
|
|
148
149
|
marginBottom: 10
|
|
150
|
+
},
|
|
151
|
+
titleText: {
|
|
152
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
153
|
+
fontWeight: '500',
|
|
154
|
+
fontSize: 16,
|
|
155
|
+
lineHeight: 28,
|
|
156
|
+
color: '#3D445C'
|
|
149
157
|
}
|
|
150
158
|
});
|
|
151
159
|
const DeliverPickupStyles = exports.DeliverPickupStyles = _reactNative.StyleSheet.create({
|
|
@@ -172,11 +180,13 @@ const DeliverPickupStyles = exports.DeliverPickupStyles = _reactNative.StyleShee
|
|
|
172
180
|
modalView: {
|
|
173
181
|
backgroundColor: 'white',
|
|
174
182
|
padding: 15,
|
|
183
|
+
paddingVertical: 45,
|
|
184
|
+
// paddingVertical: 14,
|
|
175
185
|
borderRadius: 9
|
|
176
186
|
},
|
|
177
187
|
titleText: {
|
|
178
188
|
justifyContent: 'center',
|
|
179
|
-
fontFamily: Fonts.IBMPlexSans_600SemiBold,
|
|
189
|
+
fontFamily: _reactNative.Platform.OS === 'android' ? Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold',
|
|
180
190
|
fontStyle: 'normal',
|
|
181
191
|
fontSize: 14,
|
|
182
192
|
lineHeight: 20,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_SdkColors","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Fonts","exports","deliverETStyles","StyleSheet","create","item","padding","marginTop","title","fontSize","footerButtonStyles","flexDirection","width","input","marginBottom","footerComponent","flex","marginStart","marginEnd","marginRight","position","bottom","errorText","color","fontStyle","CommonStyles","alignCenter","alignItems","flexRow","mainContainer","backgroundColor","nextButton","SdkColors","ColorTheme","LIGHT","primaryButton","nextButtonLabel","fontFamily","Platform","OS","IBMPlexSans_500Medium","lineHeight","textAlign","fontWeight","cancelButton","borderWidth","borderColor","cancelButtonLabel","defaultColor","textTransform","mainExitButton","exitButton","mainExitButtonLabel","exitButtonLabel","justifyContent","modalContent","modalView","borderRadius","subText","letterSpacing","DeliverPickupStyles","itemTextStyle","IBMPlexSans_400Regular","flatList","titleText","IBMPlexSans_600SemiBold","messageText"],"sources":["CommonStyles.ts"],"sourcesContent":["import { StyleSheet,Platform } from 'react-native';\nimport SdkColors, { ColorTheme } from '../SdkColors';\n\nexport enum Fonts {\n IBMPlexSans_400Regular = 'IBMPlexSans_400Regular',\n IBMPlexSans_600SemiBold = 'IBMPlexSans_600SemiBold',\n IBMPlexSans_300Light = 'IBMPlexSans_300Light',\n IBMPlexSans_700Bold = 'IBMPlexSans_700Bold',\n IBMPlexSans_100Thin = 'IBMPlexSans_100Thin',\n IBMPlexSans_100Thin_Italic = 'IBMPlexSans_100Thin_Italic',\n IBMPlexSans_200ExtraLight = 'IBMPlexSans_200ExtraLight',\n IBMPlexSans_200ExtraLight_Italic = 'IBMPlexSans_200ExtraLight_Italic',\n IBMPlexSans_300Light_Italic = 'IBMPlexSans_300Light_Italic',\n IBMPlexSans_400Regular_Italic = 'IBMPlexSans_400Regular_Italic',\n IBMPlexSans_500Medium = 'IBMPlexSans_500Medium',\n IBMPlexSans_500Medium_Italic = 'IBMPlexSans_500Medium_Italic',\n IBMPlexSans_600SemiBold_Italic = 'IBMPlexSans_600SemiBold_Italic',\n IBMPlexSans_700Bold_Italic = 'IBMPlexSans_700Bold_Italic',\n}\nexport const deliverETStyles = StyleSheet.create({\n item: {\n padding: 2,\n marginTop: 8,\n },\n title: {\n fontSize: 16,\n },\n footerButtonStyles: {\n flexDirection: 'row',\n width: '100%',\n },\n input: {\n marginTop: 12,\n marginBottom: 10,\n },\n footerComponent: {\n flex: 1,\n marginStart: 8,\n marginEnd: 8,\n marginRight: 8,\n width: '100%',\n position: 'absolute',\n bottom: 10,\n },\n errorText: {\n color: 'red',\n fontSize: 16,\n fontStyle: 'normal',\n },\n});\nexport const CommonStyles = StyleSheet.create({\n alignCenter: {\n flex: 1,\n alignItems: 'center',\n },\n flexRow: {\n flex: 1,\n flexDirection: 'row',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: '#f9f9f9',\n },\n nextButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n nextButtonLabel: {\n color: '#ffffff',\n fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n fontWeight: '500',\n },\n cancelButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n cancelButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].defaultColor,\n fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n textTransform:'capitalize'\n },\n mainExitButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].exitButton,\n },\n mainExitButtonLabel: {\n color: '#ffffff',\n fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n exitButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].exitButton,\n },\n exitButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].exitButton,\n fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n bottom: {\n flex: 1,\n justifyContent: 'flex-end',\n marginBottom: 10,\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n subText: {\n justifyContent: 'center',\n fontFamily: 'IBMPlexSans_400Regular',\n fontStyle: 'normal',\n fontSize: 14,\n letterSpacing: 0.25,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n marginBottom: 10,\n },\n});\nexport const DeliverPickupStyles = StyleSheet.create({\n itemTextStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n color: '#111111',\n textAlign: 'center',\n alignItems: 'center',\n justifyContent: 'center',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: 'rgba(61, 68, 92, 0.7)',\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n flatList: {\n marginTop: 7,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n },\n messageText: {\n marginTop: 10,\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAqD,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,w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O;IACxBxB,OAAO,EAAE,EAAE;IACXmD,YAAY,EAAE;EAChB,CAAC;EACDO,SAAS,EAAE;IACTV,cAAc,EAAE,QAAQ;IACxBjB,UAAU,EAAErC,KAAK,CAACiE,uBAAuB;IACzCzC,SAAS,EAAE,QAAQ;IACnBf,QAAQ,EAAE,EAAE;IACZgC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBnB,KAAK,EAAE;EACT,CAAC;EACD2C,WAAW,EAAE;IACX3D,SAAS,EAAE,EAAE;IACb+C,cAAc,EAAE,QAAQ;IACxBjB,UAAU,EAAErC,KAAK,CAAC8D,sBAAsB;IACxCtC,SAAS,EAAE,QAAQ;IACnBmB,UAAU,EAAE,KAAK;IACjBlC,QAAQ,EAAE,EAAE;IACZgC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBnB,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_SdkColors","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Fonts","exports","deliverETStyles","StyleSheet","create","item","padding","marginTop","title","fontSize","footerButtonStyles","flexDirection","width","input","marginBottom","footerComponent","flex","marginStart","marginEnd","marginRight","position","bottom","errorText","color","fontStyle","CommonStyles","alignCenter","alignItems","flexRow","mainContainer","backgroundColor","nextButton","SdkColors","ColorTheme","LIGHT","primaryButton","nextButtonLabel","fontFamily","Platform","OS","IBMPlexSans_500Medium","lineHeight","textAlign","fontWeight","cancelButton","borderWidth","borderColor","cancelButtonLabel","defaultColor","textTransform","mainExitButton","exitButton","mainExitButtonLabel","exitButtonLabel","justifyContent","modalContent","modalView","borderRadius","subText","letterSpacing","titleText","DeliverPickupStyles","itemTextStyle","IBMPlexSans_400Regular","flatList","paddingVertical","IBMPlexSans_600SemiBold","messageText"],"sources":["CommonStyles.ts"],"sourcesContent":["import { StyleSheet, Platform } from 'react-native';\nimport SdkColors, { ColorTheme } from '../SdkColors';\n\nexport enum Fonts {\n IBMPlexSans_400Regular = 'IBMPlexSans_400Regular',\n IBMPlexSans_600SemiBold = 'IBMPlexSans_600SemiBold',\n IBMPlexSans_300Light = 'IBMPlexSans_300Light',\n IBMPlexSans_700Bold = 'IBMPlexSans_700Bold',\n IBMPlexSans_100Thin = 'IBMPlexSans_100Thin',\n IBMPlexSans_100Thin_Italic = 'IBMPlexSans_100Thin_Italic',\n IBMPlexSans_200ExtraLight = 'IBMPlexSans_200ExtraLight',\n IBMPlexSans_200ExtraLight_Italic = 'IBMPlexSans_200ExtraLight_Italic',\n IBMPlexSans_300Light_Italic = 'IBMPlexSans_300Light_Italic',\n IBMPlexSans_400Regular_Italic = 'IBMPlexSans_400Regular_Italic',\n IBMPlexSans_500Medium = 'IBMPlexSans_500Medium',\n IBMPlexSans_500Medium_Italic = 'IBMPlexSans_500Medium_Italic',\n IBMPlexSans_600SemiBold_Italic = 'IBMPlexSans_600SemiBold_Italic',\n IBMPlexSans_700Bold_Italic = 'IBMPlexSans_700Bold_Italic',\n}\nexport const deliverETStyles = StyleSheet.create({\n item: {\n padding: 2,\n marginTop: 8,\n },\n title: {\n fontSize: 16,\n },\n footerButtonStyles: {\n flexDirection: 'row',\n width: '100%',\n },\n input: {\n marginTop: 12,\n marginBottom: 10,\n },\n footerComponent: {\n flex: 1,\n marginStart: 8,\n marginEnd: 8,\n marginRight: 8,\n width: '100%',\n position: 'absolute',\n bottom: 10,\n },\n errorText: {\n color: 'red',\n fontSize: 16,\n fontStyle: 'normal',\n },\n});\nexport const CommonStyles = StyleSheet.create({\n alignCenter: {\n flex: 1,\n alignItems: 'center',\n },\n flexRow: {\n flex: 1,\n flexDirection: 'row',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: '#f9f9f9',\n },\n nextButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n nextButtonLabel: {\n color: '#ffffff',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_500Medium\n : 'IBMPlexSans-Medium',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n fontWeight: '500',\n },\n cancelButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n cancelButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].defaultColor,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_500Medium\n : 'IBMPlexSans-Medium',\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n textTransform: 'capitalize',\n },\n mainExitButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].exitButton,\n },\n mainExitButtonLabel: {\n color: '#ffffff',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_500Medium\n : 'IBMPlexSans-Medium',\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n exitButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].exitButton,\n },\n exitButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].exitButton,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_500Medium\n : 'IBMPlexSans-Medium',\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n bottom: {\n flex: 1,\n justifyContent: 'flex-end',\n marginBottom: 10,\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n subText: {\n justifyContent: 'center',\n fontFamily: 'IBMPlexSans_400Regular',\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n letterSpacing: 0.25,\n lineHeight: 20,\n textAlign: 'center',\n color: '#3D445C',\n marginBottom: 10,\n },\n titleText: {\n fontFamily: Fonts.IBMPlexSans_500Medium,\n fontWeight: '500',\n fontSize: 16,\n lineHeight: 28,\n color: '#3D445C',\n },\n});\nexport const DeliverPickupStyles = StyleSheet.create({\n itemTextStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n color: '#111111',\n textAlign: 'center',\n alignItems: 'center',\n justifyContent: 'center',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: 'rgba(61, 68, 92, 0.7)',\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n flatList: {\n marginTop: 7,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n paddingVertical: 45,\n // paddingVertical: 14,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily: Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n },\n messageText: {\n marginTop: 10,\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAqD,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA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SAAS,EAAE;IACT1B,eAAe,EAAE,OAAO;IACxBxB,OAAO,EAAE,EAAE;IACX2D,eAAe,EAAE,EAAE;IACnB;IACAR,YAAY,EAAE;EAChB,CAAC;EACDG,SAAS,EAAE;IACTN,cAAc,EAAE,QAAQ;IACxBjB,UAAU,EAAEC,qBAAQ,CAACC,EAAE,KAAK,SAAS,GACnCvC,KAAK,CAACkE,uBAAuB,GAC7B,sBAAsB;IACxB1C,SAAS,EAAE,QAAQ;IACnBf,QAAQ,EAAE,EAAE;IACZgC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBnB,KAAK,EAAE;EACT,CAAC;EACD4C,WAAW,EAAE;IACX5D,SAAS,EAAE,EAAE;IACb+C,cAAc,EAAE,QAAQ;IACxBjB,UAAU,EAAErC,KAAK,CAAC+D,sBAAsB;IACxCvC,SAAS,EAAE,QAAQ;IACnBmB,UAAU,EAAE,KAAK;IACjBlC,QAAQ,EAAE,EAAE;IACZgC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBnB,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -13,15 +13,14 @@ var _ReasonCodeContainer = _interopRequireDefault(require("../../manager/dispatc
|
|
|
13
13
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
14
14
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
-
function _interopRequireDefault(
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
const instance = _DispatchStateContainer.default.getInstance();
|
|
19
|
-
const CancellationScreen =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
19
|
+
const CancellationScreen = ({
|
|
20
|
+
route,
|
|
21
|
+
navigation,
|
|
22
|
+
baseETProps
|
|
23
|
+
}) => {
|
|
25
24
|
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
26
25
|
const {
|
|
27
26
|
taskMeta,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_CancelET","_interopRequireDefault","require","_react","_interopRequireWildcard","_EventCodeContainer","_WithBaseDispatchScreen","_ExecTaskUtils","_ReasonCodeContainer","_RouteParams","_DispatchStateContainer","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","instance","DispatchStateContainer","getInstance","CancellationScreen","_ref","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","reasons","setReasons","useState","events","setEvents","useEffect","reasonCodes","REASONS","length","values","reasonCode","push","description","eventCodes","EVENT_CODES","e_values","eventCode","createElement","cancelEvent","CANCEL_EVENT","cancellationEvents","cancellationReasons","applicableCodes","APPLICABLE_CODES","eventRows","onSubmitET","reason","reasonsRow","isMergedObjBasedOutput","IS_MERGED_OBJ_BASED_OUTPUT","ET_SUCCESS","ET_SUCCESS_RESPONSE","ReasonCodeContainer","getReasonCodeFromText","saveAndProceed","IS_LAST_ET","_eventCodeOutput","getBaseETResponse","getEntityCodeByET","CURRENT_ET_NAME","getEventCodeByET","_default","exports","withBaseDispatchScreen"],"sources":["CancellationScreen.tsx"],"sourcesContent":["import CancelET from '../../components/executiontasks/cancellation/CancelET';\nimport React, { useEffect, useState } from 'react';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport {\n getBaseETResponse,\n getEntityCodeByET,\n} from '../../utils/ExecTaskUtils';\nimport ReasonCodeContainer from '../../manager/dispatchCodes/ReasonCodeContainer';\nimport type { EventsRow, ReasonsRow } from '../../manager/syncmanager/DBConfig';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\n\nconst instance = DispatchStateContainer.getInstance();\nconst CancellationScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const nextState = route.params[RouteParams.NEXT_STATES];\n const { taskMeta, mergedObjectiveId, input, wfMeta } =\n getDataFromNextState(nextState);\n const [reasons, setReasons] = useState<string[]>([]);\n const [events, setEvents] = useState<string[]>([]);\n useEffect(() => {\n const reasonCodes = route.params[RouteParams.REASONS];\n if (reasonCodes && reasonCodes.length) {\n const values: string[] = [];\n for (let reasonCode of reasonCodes as ReasonsRow[]) {\n values.push(reasonCode.description);\n }\n setReasons(values);\n }\n const eventCodes = route.params[RouteParams.EVENT_CODES];\n\n if (eventCodes && eventCodes.length) {\n const e_values: string[] = [];\n for (let eventCode of route.params[\n RouteParams.EVENT_CODES\n ] as EventsRow[]) {\n e_values.push(eventCode.description);\n }\n setEvents(e_values);\n }\n }, [route.params]);\n\n return events.length || reasons.length ? (\n <CancelET\n // mergedObjectiveId={mergedObjectiveId}\n cancelEvent={route.params[RouteParams.CANCEL_EVENT] || ''}\n cancellationEvents={events}\n cancellationReasons={reasons}\n applicableCodes={route.params[RouteParams.APPLICABLE_CODES]}\n eventRows={route.params[RouteParams.EVENT_CODES]}\n onSubmitET={async (reason, eventCode, reasonsRow) => {\n const isMergedObjBasedOutput =\n route.params[RouteParams.IS_MERGED_OBJ_BASED_OUTPUT];\n if (route.params[RouteParams.ET_SUCCESS]) {\n if (route.params[RouteParams.EVENT_CODES] && eventCode) {\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.eventCode = eventCode;\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;\n } else if (eventCode) {\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.eventCode = eventCode;\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;\n }\n\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.reasonCode =\n // ReasonCodeContainer.getReasonCodeFromText(\n // reason,\n // route.params[RouteParams.REASONS]\n // ? route.params[RouteParams.REASONS]\n // : reasonsRow\n // );\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].reasonCode =\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n ? route.params[RouteParams.REASONS]\n : reasonsRow\n );\n\n await instance.saveAndProceed(\n baseETProps,\n route.params[RouteParams.ET_SUCCESS_RESPONSE],\n route.params,\n navigation,\n route.params[RouteParams.IS_LAST_ET],\n isMergedObjBasedOutput\n );\n } else {\n let _eventCodeOutput = '';\n if (route.params[RouteParams.EVENT_CODES] && eventCode) {\n _eventCodeOutput = eventCode;\n } else if (eventCode) _eventCodeOutput = eventCode;\n\n await instance.saveAndProceed(\n baseETProps,\n await getBaseETResponse(\n getEntityCodeByET(route.params[RouteParams.CURRENT_ET_NAME]),\n false,\n _eventCodeOutput\n ? _eventCodeOutput\n : getEventCodeByET(\n route.params[RouteParams.CURRENT_ET_NAME],\n false,\n route.params[RouteParams.EVENT_CODES] || []\n ),\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n ? route.params[RouteParams.REASONS]\n : reasonsRow\n ),\n mergedObjectiveId,\n route.params[RouteParams.CURRENT_ET_NAME]\n ),\n route.params,\n navigation,\n route.params[RouteParams.IS_LAST_ET],\n isMergedObjBasedOutput\n );\n }\n }}\n />\n ) : null;\n};\nexport default withBaseDispatchScreen(CancellationScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAIA,IAAAM,oBAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,uBAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAmF,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,O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,CAACI,MAAM,CAACC,wBAAW,CAACqB,WAAW,CAAC,IAAIE,SAAS,EAAE;UACtDoB,gBAAgB,GAAGpB,SAAS;QAC9B,CAAC,MAAM,IAAIA,SAAS,EAAEoB,gBAAgB,GAAGpB,SAAS;QAElD,MAAMjC,QAAQ,CAACmD,cAAc,CAC3B5C,WAAW,EACX,MAAM,IAAA+C,gCAAiB,EACrB,IAAAC,gCAAiB,EAAClD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC8C,eAAe,CAAC,CAAC,EAC5D,KAAK,EACLH,gBAAgB,GACZA,gBAAgB,GAChB,IAAAI,oCAAgB,EACdpD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC8C,eAAe,CAAC,EACzC,KAAK,EACLnD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAACqB,WAAW,CAAC,IAAI,EAC3C,CAAC,EACLkB,4BAAmB,CAACC,qBAAqB,CACvCP,MAAM,EACNtC,KAAK,CAACI,MAAM,CAACC,wBAAW,CAACc,OAAO,CAAC,GAC7BnB,KAAK,CAACI,MAAM,CAACC,wBAAW,CAACc,OAAO,CAAC,GACjCoB,UACN,CAAC,EACD/B,iBAAiB,EACjBR,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC8C,eAAe,CAC1C,CAAC,EACDnD,KAAK,CAACI,MAAM,EACZH,UAAU,EACVD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC0C,UAAU,CAAC,EACpCP,sBACF,CAAC;MACH;IACF;EAAE,CACH,CAAC,GACA,IAAI;AACV,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAA3E,OAAA,GACa,IAAA4E,+BAAsB,EAACzD,kBAAkB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_CancelET","_interopRequireDefault","require","_react","_interopRequireWildcard","_EventCodeContainer","_WithBaseDispatchScreen","_ExecTaskUtils","_ReasonCodeContainer","_RouteParams","_DispatchStateContainer","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","instance","DispatchStateContainer","getInstance","CancellationScreen","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","reasons","setReasons","useState","events","setEvents","useEffect","reasonCodes","REASONS","length","values","reasonCode","push","description","eventCodes","EVENT_CODES","e_values","eventCode","createElement","cancelEvent","CANCEL_EVENT","cancellationEvents","cancellationReasons","applicableCodes","APPLICABLE_CODES","eventRows","onSubmitET","reason","reasonsRow","isMergedObjBasedOutput","IS_MERGED_OBJ_BASED_OUTPUT","ET_SUCCESS","ET_SUCCESS_RESPONSE","ReasonCodeContainer","getReasonCodeFromText","saveAndProceed","IS_LAST_ET","_eventCodeOutput","getBaseETResponse","getEntityCodeByET","CURRENT_ET_NAME","getEventCodeByET","_default","exports","withBaseDispatchScreen"],"sources":["CancellationScreen.tsx"],"sourcesContent":["import CancelET from '../../components/executiontasks/cancellation/CancelET';\nimport React, { useEffect, useState } from 'react';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport {\n getBaseETResponse,\n getEntityCodeByET,\n} from '../../utils/ExecTaskUtils';\nimport ReasonCodeContainer from '../../manager/dispatchCodes/ReasonCodeContainer';\nimport type { EventsRow, ReasonsRow } from '../../manager/syncmanager/DBConfig';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\n\nconst instance = DispatchStateContainer.getInstance();\nconst CancellationScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const nextState = route.params[RouteParams.NEXT_STATES];\n const { taskMeta, mergedObjectiveId, input, wfMeta } =\n getDataFromNextState(nextState);\n const [reasons, setReasons] = useState<string[]>([]);\n const [events, setEvents] = useState<string[]>([]);\n useEffect(() => {\n const reasonCodes = route.params[RouteParams.REASONS];\n if (reasonCodes && reasonCodes.length) {\n const values: string[] = [];\n for (let reasonCode of reasonCodes as ReasonsRow[]) {\n values.push(reasonCode.description);\n }\n setReasons(values);\n }\n const eventCodes = route.params[RouteParams.EVENT_CODES];\n\n if (eventCodes && eventCodes.length) {\n const e_values: string[] = [];\n for (let eventCode of route.params[\n RouteParams.EVENT_CODES\n ] as EventsRow[]) {\n e_values.push(eventCode.description);\n }\n setEvents(e_values);\n }\n }, [route.params]);\n\n return events.length || reasons.length ? (\n <CancelET\n // mergedObjectiveId={mergedObjectiveId}\n cancelEvent={route.params[RouteParams.CANCEL_EVENT] || ''}\n cancellationEvents={events}\n cancellationReasons={reasons}\n applicableCodes={route.params[RouteParams.APPLICABLE_CODES]}\n eventRows={route.params[RouteParams.EVENT_CODES]}\n onSubmitET={async (reason, eventCode, reasonsRow) => {\n const isMergedObjBasedOutput =\n route.params[RouteParams.IS_MERGED_OBJ_BASED_OUTPUT];\n if (route.params[RouteParams.ET_SUCCESS]) {\n if (route.params[RouteParams.EVENT_CODES] && eventCode) {\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.eventCode = eventCode;\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;\n } else if (eventCode) {\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.eventCode = eventCode;\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;\n }\n\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.reasonCode =\n // ReasonCodeContainer.getReasonCodeFromText(\n // reason,\n // route.params[RouteParams.REASONS]\n // ? route.params[RouteParams.REASONS]\n // : reasonsRow\n // );\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].reasonCode =\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n ? route.params[RouteParams.REASONS]\n : reasonsRow\n );\n\n await instance.saveAndProceed(\n baseETProps,\n route.params[RouteParams.ET_SUCCESS_RESPONSE],\n route.params,\n navigation,\n route.params[RouteParams.IS_LAST_ET],\n isMergedObjBasedOutput\n );\n } else {\n let _eventCodeOutput = '';\n if (route.params[RouteParams.EVENT_CODES] && eventCode) {\n _eventCodeOutput = eventCode;\n } else if (eventCode) _eventCodeOutput = eventCode;\n\n await instance.saveAndProceed(\n baseETProps,\n await getBaseETResponse(\n getEntityCodeByET(route.params[RouteParams.CURRENT_ET_NAME]),\n false,\n _eventCodeOutput\n ? _eventCodeOutput\n : getEventCodeByET(\n route.params[RouteParams.CURRENT_ET_NAME],\n false,\n route.params[RouteParams.EVENT_CODES] || []\n ),\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n ? route.params[RouteParams.REASONS]\n : reasonsRow\n ),\n mergedObjectiveId,\n route.params[RouteParams.CURRENT_ET_NAME]\n ),\n route.params,\n navigation,\n route.params[RouteParams.IS_LAST_ET],\n isMergedObjBasedOutput\n );\n }\n }}\n />\n ) : null;\n};\nexport default withBaseDispatchScreen(CancellationScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAIA,IAAAM,oBAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,uBAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAmF,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAA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AC,IAAAa,QAAA,GAAAC,OAAA,CAAAxE,OAAA,GACa,IAAAyE,+BAAsB,EAACxD,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -14,16 +14,15 @@ var _reactNative = require("react-native");
|
|
|
14
14
|
var _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
15
15
|
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
16
16
|
var _constants = require("../../constants/constants");
|
|
17
|
-
function _interopRequireDefault(
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
20
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
21
|
-
const CaptureInputScreen =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} = _ref;
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
21
|
+
const CaptureInputScreen = ({
|
|
22
|
+
route,
|
|
23
|
+
navigation,
|
|
24
|
+
baseETProps
|
|
25
|
+
}) => {
|
|
27
26
|
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
28
27
|
const {
|
|
29
28
|
taskMeta,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ExecutionTasksIndex","require","_react","_interopRequireWildcard","_WithBaseDispatchScreen","_interopRequireDefault","_ETConfig","_DispatchStateContainer","_RouteParams","_reactNative","_CancelOrderDialog","_ExecTaskUtils","_constants","
|
|
1
|
+
{"version":3,"names":["_ExecutionTasksIndex","require","_react","_interopRequireWildcard","_WithBaseDispatchScreen","_interopRequireDefault","_ETConfig","_DispatchStateContainer","_RouteParams","_reactNative","_CancelOrderDialog","_ExecTaskUtils","_constants","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","CaptureInputScreen","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","useEffect","onTaskStart","ROOT_META_DATA","customEventsData","showAlert","setShowAlert","useState","sResponse","setResponse","submitOutput","useCallback","response","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","CAPTURE_INPUT","ExecutionTaskID","createElement","View","style","flex","CaptureText","onSubmitET","etResponse","eventCode","GO_BACK_EVENT_CODE","_prevState","visible","onSubmit","value","_default","exports","withBaseDispatchScreen"],"sources":["CaptureInputScreen.tsx"],"sourcesContent":["import { CaptureText } from '../../components/executiontasks/ExecutionTasksIndex';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport { View } from 'react-native';\nimport CancelOrderDialog from '../../components/widgets/CancelOrderDialog';\nimport { onTaskStart } from '../../utils/ExecTaskUtils';\nimport { GO_BACK_EVENT_CODE } from '../../constants/constants';\t\nconst CaptureInputScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const nextState = route.params[RouteParams.NEXT_STATES];\n const { taskMeta, mergedObjectiveId, input, wfMeta } =\n getDataFromNextState(nextState);\n useEffect(() => {\n onTaskStart(\n nextState,\n route.params[RouteParams.ROOT_META_DATA].customEventsData\n );\n }, []);\n const [showAlert, setShowAlert] = useState(false);\n const [sResponse, setResponse] = useState<any>();\n const submitOutput = useCallback(\n async (response: any) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n response,\n response.success,\n EntityCode.CAPTURE_INPUT,\n ExecutionTaskID.CAPTURE_INPUT,\n baseETProps,\n false\n );\n },\n [baseETProps, navigation, route]\n );\n return (\n <View style={{ flex: 1 }}>\n <CaptureText\n {...input}\n navigation={navigation}\n taskMeta={taskMeta}\n mergedObjectiveId={mergedObjectiveId}\n onSubmitET={async (etResponse) => {\n if (etResponse.success || etResponse.eventCode == GO_BACK_EVENT_CODE) {\n await submitOutput(etResponse);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return etResponse;\n });\n }\n }}\n />\n <CancelOrderDialog\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n};\nexport default withBaseDispatchScreen(CaptureInputScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,G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CAACF,SAAS,CAAC;MAC/B,CAAC,MAAM;QACLF,YAAY,CAAC,KAAK,CAAC;MACrB;IACF;EAAE,CACH,CACG,CAAC;AAEX,CAAC;AAAC,IAAA2B,QAAA,GAAAC,OAAA,CAAAtE,OAAA,GACa,IAAAuE,+BAAsB,EAAC/C,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
9
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
10
|
+
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
11
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
12
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
13
|
+
var _reactNative = require("react-native");
|
|
14
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
15
|
+
var _platformCoreosExecutionEngineSdk = require("@os1-platform/platform-coreos-execution-engine-sdk");
|
|
16
|
+
var _NetworkClient = _interopRequireDefault(require("../../network/NetworkClient"));
|
|
17
|
+
var _DispatchSdkCache = _interopRequireDefault(require("../../manager/sdk/DispatchSdkCache"));
|
|
18
|
+
var _paymentContext = require("../../utils/context/paymentContext");
|
|
19
|
+
var _utils = require("../../utils/utils");
|
|
20
|
+
var _ErrorCodes = _interopRequireDefault(require("../../errors/ErrorCodes"));
|
|
21
|
+
var _apiConstants = require("../../constants/apiConstants");
|
|
22
|
+
var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
|
|
23
|
+
var _ProgressDialog = _interopRequireDefault(require("../../components/widgets/ProgressDialog"));
|
|
24
|
+
var _constants = require("../../constants/constants");
|
|
25
|
+
var _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
26
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
28
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable @typescript-eslint/no-unused-vars */
|
|
30
|
+
const CollectPaymentScreen = ({
|
|
31
|
+
navigation,
|
|
32
|
+
route,
|
|
33
|
+
baseETProps
|
|
34
|
+
}) => {
|
|
35
|
+
var _route$params$RoutePa;
|
|
36
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
37
|
+
const {
|
|
38
|
+
taskMeta,
|
|
39
|
+
mergedObjectiveId,
|
|
40
|
+
input,
|
|
41
|
+
taskId
|
|
42
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
43
|
+
const [expectedAmount, setExpectedAmount] = (0, _react.useState)(0);
|
|
44
|
+
const [modifiedInput, setInputs] = (0, _react.useState)({
|
|
45
|
+
...input
|
|
46
|
+
});
|
|
47
|
+
const [contextData, setContextData] = (0, _react.useState)();
|
|
48
|
+
const [showAlert, setShowAlert] = (0, _react.useState)(false);
|
|
49
|
+
const [sResponse, setResponse] = (0, _react.useState)();
|
|
50
|
+
const [showScreen, setShowScreen] = (0, _react.useState)(false);
|
|
51
|
+
const paymentRefId = (_route$params$RoutePa = route.params[_RouteParams.RouteParams.ROOT_META_DATA].paymentConfig) === null || _route$params$RoutePa === void 0 ? void 0 : _route$params$RoutePa.paymentRefId;
|
|
52
|
+
async function getSdkConfig() {
|
|
53
|
+
const cache = _DispatchSdkCache.default.getInstance();
|
|
54
|
+
const _sdkConfig = await cache.getObjectFromCache(_DispatchSdkCache.default.KEYS.SDK_CONFIG);
|
|
55
|
+
const networkInstance = new _NetworkClient.default(_sdkConfig.domain);
|
|
56
|
+
setContextData({
|
|
57
|
+
_sdkConfig,
|
|
58
|
+
networkInstance
|
|
59
|
+
});
|
|
60
|
+
return {
|
|
61
|
+
_sdkConfig,
|
|
62
|
+
networkInstance
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
const showAlertMessage = (0, _react.useCallback)((errorMessage, title) => {
|
|
66
|
+
_reactNative.Alert.alert(title, errorMessage);
|
|
67
|
+
navigation.goBack();
|
|
68
|
+
}, [navigation]);
|
|
69
|
+
const navigateWithError = (0, _react.useCallback)((errorCode, errorMessage) => {
|
|
70
|
+
if (route.params.initRoute) {
|
|
71
|
+
navigation.navigate({
|
|
72
|
+
name: route.params.initRoute,
|
|
73
|
+
params: {
|
|
74
|
+
sdkError: {
|
|
75
|
+
code: errorCode,
|
|
76
|
+
message: errorMessage
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
merge: true
|
|
80
|
+
});
|
|
81
|
+
} else {
|
|
82
|
+
showAlertMessage(errorMessage, 'Error');
|
|
83
|
+
}
|
|
84
|
+
}, [navigation, route.params.initRoute, showAlertMessage]);
|
|
85
|
+
(0, _react.useEffect)(() => {
|
|
86
|
+
if (taskId === _ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET && (!(0, _utils.isMandatoryKeysPresent)(route.params[_RouteParams.RouteParams.ROOT_META_DATA], ['paymentConfig']) || !(0, _utils.isMandatoryKeysPresent)(route.params[_RouteParams.RouteParams.ROOT_META_DATA].paymentConfig, ['paymentRefId']))) {
|
|
87
|
+
navigateWithError(_ErrorCodes.default.InvalidArgumentError, 'Missing or Invalid Route Params to execute Payment.');
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
(0, _ExecTaskUtils.onTaskStart)(route.params[_RouteParams.RouteParams.NEXT_STATES], route.params[_RouteParams.RouteParams.ROOT_META_DATA].customEventsData);
|
|
91
|
+
(async (_modifiedInput$allowe, _updatedInput$allowed) => {
|
|
92
|
+
let updatedInput = JSON.parse(JSON.stringify(modifiedInput));
|
|
93
|
+
if (route.params[_RouteParams.RouteParams.ROOT_META_DATA]) {
|
|
94
|
+
updatedInput = (0, _ExecTaskUtils.handleDynamicValues)(route === null || route === void 0 ? void 0 : route.params[_RouteParams.RouteParams.NEXT_STATES].input, route.params[_RouteParams.RouteParams.ROOT_META_DATA]);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Get sum of merged objectives amount
|
|
98
|
+
* Get sdkConfig from cache and set in context
|
|
99
|
+
*/
|
|
100
|
+
await getTotalExpected();
|
|
101
|
+
const {
|
|
102
|
+
networkInstance
|
|
103
|
+
} = await getSdkConfig();
|
|
104
|
+
/**
|
|
105
|
+
* Get list of selected payment modes from default PG for tenant
|
|
106
|
+
*/
|
|
107
|
+
if (modifiedInput.allowedModes.includes('ONLINE')) {
|
|
108
|
+
try {
|
|
109
|
+
const modes = await getPaymentModes(networkInstance);
|
|
110
|
+
updatedInput.allowedModes = modes === null || modes === void 0 ? void 0 : modes.methods;
|
|
111
|
+
updatedInput.plModes = (modes === null || modes === void 0 ? void 0 : modes.plModes) || [];
|
|
112
|
+
const index = modifiedInput.allowedModes.indexOf('ONLINE');
|
|
113
|
+
if (index > -1) {
|
|
114
|
+
modifiedInput.allowedModes.splice(index, 1);
|
|
115
|
+
}
|
|
116
|
+
} catch (error) {
|
|
117
|
+
var _error$response;
|
|
118
|
+
_Logger.default.getInstance().logEvent('~ getTotalExpected triggered ', JSON.stringify((error === null || error === void 0 || (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.data) || error), _Logger.LOG_TYPE.SDK_ERROR);
|
|
119
|
+
updatedInput.allowedModes = [];
|
|
120
|
+
updatedInput.plModes = [];
|
|
121
|
+
const index = modifiedInput.allowedModes.indexOf('ONLINE');
|
|
122
|
+
if (index > -1) {
|
|
123
|
+
modifiedInput.allowedModes.splice(index, 1);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
updatedInput.allowedModes = [];
|
|
128
|
+
updatedInput.plModes = [];
|
|
129
|
+
}
|
|
130
|
+
if ((_modifiedInput$allowe = modifiedInput.allowedModes) !== null && _modifiedInput$allowe !== void 0 && _modifiedInput$allowe.length) {
|
|
131
|
+
updatedInput.allowedModes = [...modifiedInput.allowedModes, ...updatedInput.allowedModes];
|
|
132
|
+
}
|
|
133
|
+
if (!((_updatedInput$allowed = updatedInput.allowedModes) !== null && _updatedInput$allowed !== void 0 && _updatedInput$allowed.length)) {
|
|
134
|
+
navigateWithError(_ErrorCodes.default.InvalidArgumentError, 'No payment modes available. Please contact your Admin.');
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
setInputs(updatedInput);
|
|
138
|
+
})();
|
|
139
|
+
}, []);
|
|
140
|
+
const getPaymentModes = async networkInstance => {
|
|
141
|
+
try {
|
|
142
|
+
var _paymentResp$data, _configData$paymentMe, _configData$paymentMe2;
|
|
143
|
+
let response = {
|
|
144
|
+
methods: [],
|
|
145
|
+
plModes: []
|
|
146
|
+
};
|
|
147
|
+
const paymentResp = await networkInstance.requestGet(_apiConstants.ENDPOINTS.PAYMENT_MODES, {
|
|
148
|
+
requestId: 'payment:' + paymentRefId
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
// FOR TESTING
|
|
152
|
+
// const paymentResp = {
|
|
153
|
+
// data: {
|
|
154
|
+
// data: {
|
|
155
|
+
// configDetails: [
|
|
156
|
+
// {
|
|
157
|
+
// paymentMethods: {
|
|
158
|
+
// QR: true,
|
|
159
|
+
// paymentLink: true,
|
|
160
|
+
// },
|
|
161
|
+
// },
|
|
162
|
+
// ],
|
|
163
|
+
// },
|
|
164
|
+
// },
|
|
165
|
+
// };
|
|
166
|
+
|
|
167
|
+
const configData = paymentResp === null || paymentResp === void 0 || (_paymentResp$data = paymentResp.data) === null || _paymentResp$data === void 0 || (_paymentResp$data = _paymentResp$data.data) === null || _paymentResp$data === void 0 ? void 0 : _paymentResp$data.configDetails[0];
|
|
168
|
+
if (configData !== null && configData !== void 0 && (_configData$paymentMe = configData.paymentMethods) !== null && _configData$paymentMe !== void 0 && _configData$paymentMe.QR) {
|
|
169
|
+
response.methods.push('QR_CODE');
|
|
170
|
+
}
|
|
171
|
+
if (configData !== null && configData !== void 0 && (_configData$paymentMe2 = configData.paymentMethods) !== null && _configData$paymentMe2 !== void 0 && _configData$paymentMe2.paymentLink) {
|
|
172
|
+
response.methods.push('PAYMENT_LINK');
|
|
173
|
+
}
|
|
174
|
+
if (configData !== null && configData !== void 0 && configData.modesMapping) {
|
|
175
|
+
response.plModes = Object.values(configData.modesMapping);
|
|
176
|
+
}
|
|
177
|
+
return response;
|
|
178
|
+
} catch (error) {
|
|
179
|
+
var _error$response2;
|
|
180
|
+
_Logger.default.getInstance().logEvent('~ getPaymentModes triggered ', JSON.stringify((error === null || error === void 0 || (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : _error$response2.data) || error), _Logger.LOG_TYPE.SDK_ERROR);
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const getTotalExpected = async () => {
|
|
185
|
+
const totalAmount = await _platformCoreosExecutionEngineSdk.DispatchExecutor.getTotalPaymentAmountMWI(mergedObjectiveId);
|
|
186
|
+
setExpectedAmount(totalAmount);
|
|
187
|
+
// setExpectedAmount(1000); //FOR TESTING
|
|
188
|
+
return totalAmount;
|
|
189
|
+
};
|
|
190
|
+
const submitOutput = (0, _react.useCallback)(async etOutput => {
|
|
191
|
+
console.log('CollectPaymentScreen:SubmitOutput:', etOutput);
|
|
192
|
+
if (etOutput.paymentMode == 'QR_CODE') {
|
|
193
|
+
console.log('CollectPaymentScreen:SubmitOutput:etOutput.paymentMode', etOutput.paymentMode);
|
|
194
|
+
let jobData = await _platformCoreosExecutionEngineSdk.DispatchExecutor.wQueryJobForMOId(mergedObjectiveId[0]);
|
|
195
|
+
console.log('CollectPaymentScreen:SubmitOutput:etOutput.jobData', jobData);
|
|
196
|
+
let result = await _platformCoreosExecutionEngineSdk.DispatchExecutor.wUpdateAmountToZero(jobData[0].jobId);
|
|
197
|
+
console.log('CollectPaymentScreen:SubmitOutput:etOutput.result', result);
|
|
198
|
+
}
|
|
199
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etOutput, etOutput.success, _ETConfig.EntityCode.COLLECT_PAYMENT_ET, _ETConfig.ExecutionTaskID.COLLECT_PAYMENT_ET, baseETProps, false);
|
|
200
|
+
}, [baseETProps, navigation, route]);
|
|
201
|
+
|
|
202
|
+
// console.log("collectpayment1:",contextData)
|
|
203
|
+
// console.log("collectpayment2:",modifiedInput.allowedModes.includes('ONLINE'))
|
|
204
|
+
// console.log("collectpayment3:",modifiedInput.allowedModes?.length)
|
|
205
|
+
(0, _react.useEffect)(() => {
|
|
206
|
+
var _modifiedInput$allowe2;
|
|
207
|
+
if (contextData && modifiedInput !== null && modifiedInput !== void 0 && (_modifiedInput$allowe2 = modifiedInput.allowedModes) !== null && _modifiedInput$allowe2 !== void 0 && _modifiedInput$allowe2.length) {
|
|
208
|
+
setShowScreen(true);
|
|
209
|
+
} else {
|
|
210
|
+
setShowScreen(false);
|
|
211
|
+
}
|
|
212
|
+
}, [contextData, modifiedInput === null || modifiedInput === void 0 ? void 0 : modifiedInput.allowedModes]);
|
|
213
|
+
return showScreen ? /*#__PURE__*/_react.default.createElement(_paymentContext.PaymentContext.Provider, {
|
|
214
|
+
value: {
|
|
215
|
+
sdkConfig: contextData === null || contextData === void 0 ? void 0 : contextData._sdkConfig,
|
|
216
|
+
networkInstance: contextData === null || contextData === void 0 ? void 0 : contextData.networkInstance
|
|
217
|
+
}
|
|
218
|
+
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.CollectPaymentET, _extends({}, modifiedInput, {
|
|
219
|
+
expectedAmount: expectedAmount,
|
|
220
|
+
navigation: navigation,
|
|
221
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
222
|
+
taskMeta: taskMeta,
|
|
223
|
+
route: route,
|
|
224
|
+
onSubmitET: async etOutput => {
|
|
225
|
+
console.log('etOutput: ', JSON.stringify(etOutput));
|
|
226
|
+
if (etOutput.success || etOutput.eventCode == _constants.GO_BACK_EVENT_CODE) {
|
|
227
|
+
await submitOutput(etOutput);
|
|
228
|
+
} else {
|
|
229
|
+
setResponse(_prevState => {
|
|
230
|
+
setShowAlert(true);
|
|
231
|
+
return etOutput;
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
})), /*#__PURE__*/_react.default.createElement(_CancelOrderDialog.default, {
|
|
236
|
+
visible: showAlert,
|
|
237
|
+
onSubmit: async value => {
|
|
238
|
+
if (value) {
|
|
239
|
+
setShowAlert(false);
|
|
240
|
+
await submitOutput(sResponse);
|
|
241
|
+
} else {
|
|
242
|
+
setShowAlert(false);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
})) : /*#__PURE__*/_react.default.createElement(_ProgressDialog.default, {
|
|
246
|
+
visible: true,
|
|
247
|
+
label: "Loading..."
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
var _default = exports.default = (0, _WithBaseDispatchScreen.default)(CollectPaymentScreen);
|
|
251
|
+
//# sourceMappingURL=CollectPaymentScreen.js.map
|