@os1-platform/dispatch-mobile 1.0.8 → 2.0.0
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 +310 -74
- package/android/.gradle/7.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0.2/gc.properties +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +0 -1
- package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
- package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
- package/lib/commonjs/@types/assets/index.d.js +2 -0
- package/lib/commonjs/@types/assets/index.d.js.map +1 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +50 -43
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +10 -48
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +66 -18
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
- package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +212 -95
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -25
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +65 -29
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +74 -30
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +139 -50
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -17
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +5 -14
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -15
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +11 -36
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +73 -48
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +76 -29
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +138 -32
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +741 -0
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +43 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/commonjs/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -29
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +109 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/{scanner/returns/ReasonDropDown.js → scan/sub_components/ERDropDown.js} +72 -55
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +762 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +333 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +63 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/commonjs/components/utils/index.js +14 -0
- package/lib/commonjs/components/utils/index.js.map +1 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +88 -0
- package/lib/commonjs/components/widgets/Card.js.map +1 -0
- package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
- package/lib/commonjs/components/widgets/IconButton.js +34 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
- package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +74 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js +48 -40
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +0 -2
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js +17 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +7 -3
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js +3 -5
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -8
- package/lib/commonjs/errors/BaseError.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js +7 -6
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +23 -0
- package/lib/commonjs/events/EventDispatcher.js.map +1 -0
- package/lib/commonjs/events/EventListener.js +20 -0
- package/lib/commonjs/events/EventListener.js.map +1 -0
- package/lib/commonjs/events/constants.js +15 -0
- package/lib/commonjs/events/constants.js.map +1 -0
- package/lib/commonjs/events/index.js +11 -0
- package/lib/commonjs/events/index.js.map +1 -0
- package/lib/commonjs/events/interface.js +2 -0
- package/lib/commonjs/events/interface.js.map +1 -0
- package/lib/commonjs/index.js +40 -35
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +328 -272
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +23 -0
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/commonjs/manager/location/LocationManager.js +3 -20
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +23 -37
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +26 -46
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +48 -9
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js +17 -0
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/database.js +28 -12
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -36
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +8 -26
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +19 -58
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +414 -29
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +208 -103
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +157 -36
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js +4 -5
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/ReasonCodes.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js +4 -5
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +7 -35
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +2 -13
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +10 -8
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js +0 -2
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +6 -21
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/res/strings.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -15
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +3 -8
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +10 -8
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +58 -25
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +67 -27
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +15 -16
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -23
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +30 -17
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +17 -13
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +17 -20
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +43 -31
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +10 -19
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +105 -17
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +16 -14
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +14 -11
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +38 -17
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +28 -29
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +41 -19
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +121 -0
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +64 -38
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +55 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +24 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +129 -0
- package/lib/commonjs/utils/ApiUtils.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +111 -41
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +10 -29
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +3 -19
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -31
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +61 -43
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +59 -11
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -21
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +0 -5
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +53 -0
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
- package/lib/commonjs/utils/hooks/useTimer.js +44 -0
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +6 -18
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +87 -31
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +8 -11
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/@types/assets/index.d.js +2 -0
- package/lib/module/@types/assets/index.d.js.map +1 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js +50 -32
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -5
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +68 -10
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
- package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +214 -86
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -15
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +68 -15
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +75 -20
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +142 -37
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -6
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +6 -4
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -6
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +11 -11
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +77 -18
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +64 -11
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +72 -11
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +141 -25
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +732 -0
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js +17 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scan/constants.js +7 -0
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/module/components/executiontasks/scan/interfaces.js +33 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/module/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -16
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +101 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +107 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +726 -0
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +324 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +53 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +5 -9
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/module/components/utils/index.js +8 -0
- package/lib/module/components/utils/index.js.map +1 -0
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +80 -0
- package/lib/module/components/widgets/Card.js.map +1 -0
- package/lib/module/components/widgets/GoBackModal.js +40 -0
- package/lib/module/components/widgets/GoBackModal.js.map +1 -0
- package/lib/module/components/widgets/IconButton.js +26 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -0
- package/lib/module/components/widgets/ModalWidget.js +92 -0
- package/lib/module/components/widgets/ModalWidget.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +0 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +66 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -0
- package/lib/module/components/widgets/SnackBarCustom.js +46 -20
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +84 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/module/components/widgets/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -1
- package/lib/module/config/DispatchSDKConfig.js +3 -4
- package/lib/module/config/DispatchSDKConfig.js.map +1 -1
- package/lib/module/constants/apiConstants.js +9 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +4 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/constants/statuscode.js +3 -5
- package/lib/module/constants/statuscode.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -6
- package/lib/module/errors/BaseError.js.map +1 -1
- package/lib/module/errors/ErrorCodes.js +5 -5
- package/lib/module/errors/ErrorCodes.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +16 -0
- package/lib/module/events/EventDispatcher.js.map +1 -0
- package/lib/module/events/EventListener.js +13 -0
- package/lib/module/events/EventListener.js.map +1 -0
- package/lib/module/events/constants.js +8 -0
- package/lib/module/events/constants.js.map +1 -0
- package/lib/module/events/index.js +3 -0
- package/lib/module/events/index.js.map +1 -0
- package/lib/module/events/interface.js +2 -0
- package/lib/module/events/interface.js.map +1 -0
- package/lib/module/index.js +9 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +334 -247
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +22 -0
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/module/manager/location/LocationManager.js +3 -14
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +23 -15
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +19 -0
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +26 -26
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +41 -7
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/constants.js +6 -0
- package/lib/module/manager/syncmanager/constants.js.map +1 -0
- package/lib/module/manager/syncmanager/database.js +27 -3
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -24
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +8 -20
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +19 -41
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +415 -22
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +209 -82
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +152 -24
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js +3 -4
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/ReasonCodes.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +22 -29
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js +3 -4
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +3 -18
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js +6 -26
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +2 -6
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +10 -3
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +7 -17
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/res/strings.js.map +1 -1
- package/lib/module/resources/Login.js +4 -13
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js +3 -6
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +9 -7
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +57 -14
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +68 -15
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +17 -6
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -8
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +32 -7
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +16 -6
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +19 -9
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +45 -19
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +3 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +104 -9
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +15 -6
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +15 -5
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +37 -9
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +30 -17
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +40 -12
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +111 -0
- package/lib/module/ui/screens/ScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +64 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +45 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +23 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +116 -0
- package/lib/module/utils/ApiUtils.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +110 -31
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +9 -21
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -15
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +2 -15
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +62 -14
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +63 -3
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +86 -7
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +0 -3
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useModal.js +43 -0
- package/lib/module/utils/hooks/useModal.js.map +1 -0
- package/lib/module/utils/hooks/useTimer.js +37 -0
- package/lib/module/utils/hooks/useTimer.js.map +1 -0
- package/lib/module/utils/loginHelper.js +6 -16
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +86 -29
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +8 -6
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -7
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
- package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +8 -7
- package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +3 -3
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
- package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +17 -11
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +86 -0
- package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +94 -0
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/{scanner → scan/sub_components}/CScanner.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +37 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
- package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
- package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +6 -6
- package/lib/typescript/components/utils/index.d.ts +2 -0
- package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/Card.d.ts +17 -0
- package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
- package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
- package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +10 -5
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +7 -0
- package/lib/typescript/constants/constants.d.ts +4 -2
- package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
- package/lib/typescript/events/EventDispatcher.d.ts +3 -0
- package/lib/typescript/events/EventListener.d.ts +5 -0
- package/lib/typescript/events/constants.d.ts +7 -0
- package/lib/typescript/events/index.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -0
- package/lib/typescript/index.d.ts +12 -9
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +38 -17
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
- package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +1 -0
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +80 -4
- package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +15 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +4 -2
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +6 -3
- package/lib/typescript/models/DispatchModels.d.ts +59 -5
- package/lib/typescript/models/ReasonCodes.d.ts +5 -0
- package/lib/typescript/models/auth.d.ts +1 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +44 -20
- package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
- package/lib/typescript/models/sdk.d.ts +12 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +2 -2
- package/lib/typescript/network/NetworkUtils.d.ts +1 -5
- package/lib/typescript/styles/SdkColors.d.ts +2 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +50 -5
- package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -2
- package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +14 -0
- package/lib/typescript/utils/ApiUtils.d.ts +61 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +10 -4
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -3
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
- package/lib/typescript/utils/storage.d.ts +32 -0
- package/package.json +26 -26
- package/tsconfig.json +9 -9
- package/file_unzip.js +0 -5
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -28
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -32
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -193
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -20
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -49
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -107
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -317
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -276
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -118
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -158
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -9
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -38
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -86
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -287
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -80
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -253
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -93
- package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
- package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
- package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
- package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
- package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
- package/mobile-execution-lib-0.6.4.tgz +0 -0
|
@@ -4,42 +4,130 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
8
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
11
|
-
|
|
12
9
|
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
13
|
-
|
|
14
|
-
var _Toaster = require("../../components/widgets/Toaster");
|
|
15
|
-
|
|
16
10
|
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
17
|
-
|
|
18
11
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
19
|
-
|
|
20
12
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
21
|
-
|
|
13
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
14
|
+
var _reactNative = require("react-native");
|
|
15
|
+
var _SnackBarCustom = _interopRequireWildcard(require("../../components/widgets/SnackBarCustom"));
|
|
16
|
+
var _callbacksHandler = _interopRequireDefault(require("../../manager/sdk/callbacksHandler"));
|
|
17
|
+
var _platformCoreosExecutionEngineSdk = require("@os1-platform/platform-coreos-execution-engine-sdk");
|
|
22
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
19
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
21
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
22
|
const FormsScreen = _ref => {
|
|
27
23
|
let {
|
|
28
24
|
route,
|
|
29
25
|
navigation,
|
|
30
26
|
baseETProps
|
|
31
27
|
} = _ref;
|
|
32
|
-
|
|
28
|
+
const [snackBar, setSnackBar] = (0, _react.useState)({
|
|
29
|
+
show: false,
|
|
30
|
+
type: _SnackBarCustom.SnackBarType.SUCCESS,
|
|
31
|
+
message: ''
|
|
32
|
+
});
|
|
33
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
34
|
+
const {
|
|
35
|
+
taskMeta,
|
|
36
|
+
mergedObjectiveId,
|
|
37
|
+
input,
|
|
38
|
+
wfMeta
|
|
39
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
40
|
+
const [_input, setInputs] = (0, _react.useState)(input);
|
|
41
|
+
(0, _react.useEffect)(() => {
|
|
42
|
+
(async () => {
|
|
43
|
+
(0, _ExecTaskUtils.onTaskStart)(route.params[_RouteParams.RouteParams.NEXT_STATES], route.params[_RouteParams.RouteParams.ROOT_META_DATA].customEventsData);
|
|
44
|
+
if (route.params[_RouteParams.RouteParams.ROOT_META_DATA]) {
|
|
45
|
+
var _phoneNumbers$value;
|
|
46
|
+
//Call objectiveDetails fn and fetch sds ids
|
|
47
|
+
const {
|
|
48
|
+
contact
|
|
49
|
+
} = await _platformCoreosExecutionEngineSdk.DispatchExecutor.getObjectiveTaskDetails(mergedObjectiveId[0], route.params[_RouteParams.RouteParams.ROOT_META_DATA].statusFilter);
|
|
50
|
+
|
|
51
|
+
// run callback to get corresponding phone numbers
|
|
52
|
+
const phoneNumbers = await _callbacksHandler.default.getPhoneNumbers(contact);
|
|
53
|
+
if (phoneNumbers && (_phoneNumbers$value = phoneNumbers.value) !== null && _phoneNumbers$value !== void 0 && _phoneNumbers$value.length) {
|
|
54
|
+
route.params[_RouteParams.RouteParams.ROOT_META_DATA].meta[phoneNumbers.key] = phoneNumbers.value;
|
|
55
|
+
}
|
|
56
|
+
let jsonSchemaProperties = JSON.parse(JSON.stringify(_input.jsonSchema.properties));
|
|
57
|
+
jsonSchemaProperties = (0, _ExecTaskUtils.handleDynamicValues)(jsonSchemaProperties, route.params[_RouteParams.RouteParams.ROOT_META_DATA]);
|
|
58
|
+
setInputs(prev => {
|
|
59
|
+
const dynamicInput = {
|
|
60
|
+
...prev,
|
|
61
|
+
jsonSchema: {
|
|
62
|
+
...prev.jsonSchema,
|
|
63
|
+
properties: jsonSchemaProperties
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return dynamicInput;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
})();
|
|
70
|
+
}, []);
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.FormGenerator, _extends({}, _input, {
|
|
72
|
+
navigation: navigation,
|
|
73
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
74
|
+
taskMeta: taskMeta,
|
|
33
75
|
onError: error => {
|
|
34
|
-
|
|
76
|
+
const errorMessage = transformErrorMessage(error);
|
|
77
|
+
setSnackBar({
|
|
78
|
+
show: true,
|
|
79
|
+
type: _SnackBarCustom.SnackBarType.FAILURE,
|
|
80
|
+
message: errorMessage
|
|
81
|
+
});
|
|
35
82
|
},
|
|
36
83
|
onSubmitET: async result => {
|
|
37
84
|
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, result, result.success, _ETConfig.EntityCode.FORMS, _ETConfig.ExecutionTaskID.FORMS, baseETProps, false);
|
|
38
85
|
}
|
|
39
|
-
}))
|
|
86
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
87
|
+
style: {
|
|
88
|
+
justifyContent: 'flex-end'
|
|
89
|
+
}
|
|
90
|
+
}, /*#__PURE__*/_react.default.createElement(_SnackBarCustom.default, {
|
|
91
|
+
type: snackBar.type,
|
|
92
|
+
message: `${snackBar.message}`,
|
|
93
|
+
visible: snackBar.show,
|
|
94
|
+
onDismiss: () => {
|
|
95
|
+
setSnackBar({
|
|
96
|
+
show: false,
|
|
97
|
+
message: '',
|
|
98
|
+
type: _SnackBarCustom.SnackBarType.SUCCESS
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
customBottom: 20
|
|
102
|
+
})));
|
|
40
103
|
};
|
|
41
|
-
|
|
42
104
|
var _default = (0, _WithBaseDispatchScreen.default)(FormsScreen);
|
|
43
|
-
|
|
44
105
|
exports.default = _default;
|
|
106
|
+
const transformErrorMessage = error => {
|
|
107
|
+
let errorMessage = '';
|
|
108
|
+
if (Array.isArray(error)) {
|
|
109
|
+
if (error.length === 1) {
|
|
110
|
+
const e = error[0];
|
|
111
|
+
if (e.name === 'required') {
|
|
112
|
+
errorMessage = `${convertToPascalCaseWithSpace(e.property)} is required`;
|
|
113
|
+
} else errorMessage = `${e.property} ${e.message}`;
|
|
114
|
+
} else {
|
|
115
|
+
errorMessage = 'Form Validation Failed';
|
|
116
|
+
}
|
|
117
|
+
} else {
|
|
118
|
+
errorMessage = `${error.property} ${error.message}`;
|
|
119
|
+
}
|
|
120
|
+
return errorMessage;
|
|
121
|
+
};
|
|
122
|
+
function convertToPascalCaseWithSpace(inputString) {
|
|
123
|
+
// Capitalize the first letter of each word while preserving spaces
|
|
124
|
+
return inputString.split(/[^a-zA-Z0-9]+/).filter(word => word.length > 0).map((word, index) => capitalizeWord(word, index === 0)).join(' ');
|
|
125
|
+
}
|
|
126
|
+
function capitalizeWord(word, isFirstWord) {
|
|
127
|
+
if (isFirstWord) {
|
|
128
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
129
|
+
} else {
|
|
130
|
+
return word;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
45
133
|
//# sourceMappingURL=FormsScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FormsScreen","route","navigation","baseETProps","params","RouteParams","NEXT_STATES","nextState","data","input","error","showToast","message","result","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","FORMS","ExecutionTaskID","withBaseDispatchScreen"],"sources":["FormsScreen.tsx"],"sourcesContent":["import React from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport { FormGenerator } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { showToast } from '../../components/widgets/Toaster';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\n\nconst FormsScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n return (\n <FormGenerator\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onError={(error: any) => {\n showToast(error.message);\n }}\n onSubmitET={async (result) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n result,\n result.success,\n EntityCode.FORMS,\n ExecutionTaskID.FORMS,\n baseETProps,\n false\n );\n }}\n />\n );\n};\nexport default withBaseDispatchScreen(FormsScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,QAQd;EAAA,IARe;IACnBC,KADmB;IAEnBC,UAFmB;IAGnBC;EAHmB,CAQf;EACJ,oBACE,6BAAC,kCAAD,eACMF,KAAK,CAACG,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,OAAO,EAAGC,KAAD,IAAgB;MACvB,IAAAC,kBAAA,EAAUD,KAAK,CAACE,OAAhB;IACD,CAJH;IAKE,UAAU,EAAE,MAAOC,MAAP,IAAkB;MAC5B,MAAMC,+BAAA,CAAuBC,WAAvB,GAAqCC,kBAArC,CACJd,UADI,EAEJD,KAFI,EAGJY,MAHI,EAIJA,MAAM,CAACI,OAJH,EAKJC,oBAAA,CAAWC,KALP,EAMJC,yBAAA,CAAgBD,KANZ,EAOJhB,WAPI,EAQJ,KARI,CAAN;IAUD;EAhBH,GADF;AAoBD,CA7BD;;eA8Be,IAAAkB,+BAAA,EAAuBrB,WAAvB,C"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_WithBaseDispatchScreen","_interopRequireDefault","_ExecutionTasksIndex","_ETConfig","_DispatchStateContainer","_RouteParams","_ExecTaskUtils","_reactNative","_SnackBarCustom","_callbacksHandler","_platformCoreosExecutionEngineSdk","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","FormsScreen","_ref","route","navigation","baseETProps","snackBar","setSnackBar","useState","show","type","SnackBarType","SUCCESS","message","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","_input","setInputs","useEffect","onTaskStart","ROOT_META_DATA","customEventsData","_phoneNumbers$value","contact","dispatchExecutor","getObjectiveTaskDetails","statusFilter","phoneNumbers","callbackHandler","getPhoneNumbers","value","meta","jsonSchemaProperties","JSON","parse","stringify","jsonSchema","properties","handleDynamicValues","prev","dynamicInput","createElement","Fragment","FormGenerator","onError","error","errorMessage","transformErrorMessage","FAILURE","onSubmitET","result","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","FORMS","ExecutionTaskID","View","style","justifyContent","visible","onDismiss","customBottom","_default","withBaseDispatchScreen","exports","Array","isArray","e","name","convertToPascalCaseWithSpace","property","inputString","split","filter","word","map","index","capitalizeWord","join","isFirstWord","charAt","toUpperCase","slice"],"sources":["FormsScreen.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport { FormGenerator } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport { handleDynamicValues, onTaskStart } from '../../utils/ExecTaskUtils';\nimport { View } from 'react-native';\nimport SnackBarCustom, {\n SnackBarType,\n} from '../../components/widgets/SnackBarCustom';\nimport callbackHandler from '../../manager/sdk/callbacksHandler';\nimport { DispatchExecutor as dispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';\nimport { AjvError } from '@rjsf/core';\n\nconst FormsScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [snackBar, setSnackBar] = useState({\n show: false,\n type: SnackBarType.SUCCESS,\n message: '',\n });\n const nextState = route.params[RouteParams.NEXT_STATES];\n const { taskMeta, mergedObjectiveId, input, wfMeta } =\n getDataFromNextState(nextState);\n const [_input, setInputs] = useState(input);\n useEffect(() => {\n (async () => {\n onTaskStart(\n route.params[RouteParams.NEXT_STATES],\n route.params[RouteParams.ROOT_META_DATA].customEventsData\n );\n\n if (route.params[RouteParams.ROOT_META_DATA]) {\n //Call objectiveDetails fn and fetch sds ids\n const { contact } = await dispatchExecutor.getObjectiveTaskDetails(\n mergedObjectiveId[0],\n route.params[RouteParams.ROOT_META_DATA].statusFilter\n );\n\n // run callback to get corresponding phone numbers\n const phoneNumbers = await callbackHandler.getPhoneNumbers(contact);\n\n if (phoneNumbers && phoneNumbers.value?.length) {\n route.params[RouteParams.ROOT_META_DATA].meta[phoneNumbers.key] =\n phoneNumbers.value;\n }\n\n let jsonSchemaProperties = JSON.parse(\n JSON.stringify(_input.jsonSchema.properties)\n );\n\n jsonSchemaProperties = handleDynamicValues(\n jsonSchemaProperties,\n route.params[RouteParams.ROOT_META_DATA]\n );\n\n setInputs((prev: any) => {\n const dynamicInput = {\n ...prev,\n jsonSchema: {\n ...prev.jsonSchema,\n properties: jsonSchemaProperties,\n },\n };\n return dynamicInput;\n });\n }\n })();\n }, []);\n\n return (\n <>\n <FormGenerator\n {..._input}\n navigation={navigation}\n mergedObjectiveId={mergedObjectiveId}\n taskMeta={taskMeta}\n onError={(error: AjvError[] | AjvError) => {\n const errorMessage = transformErrorMessage(error);\n\n setSnackBar({\n show: true,\n type: SnackBarType.FAILURE,\n message: errorMessage,\n });\n }}\n onSubmitET={async (result) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n result,\n result.success,\n EntityCode.FORMS,\n ExecutionTaskID.FORMS,\n baseETProps,\n false\n );\n }}\n />\n <View style={{ justifyContent: 'flex-end' }}>\n <SnackBarCustom\n type={snackBar.type}\n message={`${snackBar.message}`}\n visible={snackBar.show}\n onDismiss={() => {\n setSnackBar({\n show: false,\n message: '',\n type: SnackBarType.SUCCESS,\n });\n }}\n customBottom={20}\n />\n </View>\n </>\n );\n};\nexport default withBaseDispatchScreen(FormsScreen);\n\nconst transformErrorMessage = (error: AjvError[] | AjvError): string => {\n let errorMessage = '';\n if (Array.isArray(error)) {\n if (error.length === 1) {\n const e = error[0];\n if (e.name === 'required') {\n errorMessage = `${convertToPascalCaseWithSpace(\n e.property\n )} is required`;\n } else errorMessage = `${e.property} ${e.message}`;\n } else {\n errorMessage = 'Form Validation Failed';\n }\n } else {\n errorMessage = `${error.property} ${error.message}`;\n }\n\n return errorMessage;\n};\n\nfunction convertToPascalCaseWithSpace(inputString: string): string {\n // Capitalize the first letter of each word while preserving spaces\n return inputString\n .split(/[^a-zA-Z0-9]+/)\n .filter((word) => word.length > 0)\n .map((word, index) => capitalizeWord(word, index === 0))\n .join(' ');\n}\n\nfunction capitalizeWord(word: string, isFirstWord: boolean): string {\n if (isFirstWord) {\n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AAEC,IAAI,IAAKA,IAAI,CAACrF,MAAM,GAAG,CAAC,CAAC,CACjCsF,GAAG,CAAC,CAACD,IAAI,EAAEE,KAAK,KAAKC,cAAc,CAACH,IAAI,EAAEE,KAAK,KAAK,CAAC,CAAC,CAAC,CACvDE,IAAI,CAAC,GAAG,CAAC;AACd;AAEA,SAASD,cAAcA,CAACH,IAAY,EAAEK,WAAoB,EAAU;EAClE,IAAIA,WAAW,EAAE;IACf,OAAOL,IAAI,CAACM,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGP,IAAI,CAACQ,KAAK,CAAC,CAAC,CAAC;EACrD,CAAC,MAAM;IACL,OAAOR,IAAI;EACb;AACF"}
|
|
@@ -4,32 +4,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
9
|
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
13
|
-
|
|
14
10
|
var _Toaster = require("../../components/widgets/Toaster");
|
|
15
|
-
|
|
16
11
|
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
17
|
-
|
|
18
12
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
19
|
-
|
|
20
13
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
21
|
-
|
|
14
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
15
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
19
|
const GeofenceScreen = _ref => {
|
|
27
20
|
let {
|
|
28
21
|
route,
|
|
29
22
|
navigation,
|
|
30
23
|
baseETProps
|
|
31
24
|
} = _ref;
|
|
32
|
-
|
|
25
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
26
|
+
const {
|
|
27
|
+
taskMeta,
|
|
28
|
+
mergedObjectiveId,
|
|
29
|
+
input,
|
|
30
|
+
wfMeta
|
|
31
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
32
|
+
(0, _react.useEffect)(() => {
|
|
33
|
+
(0, _ExecTaskUtils.onTaskStart)(nextState, route.params[_RouteParams.RouteParams.ROOT_META_DATA].customEventsData);
|
|
34
|
+
}, []);
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.VerifyLocationET, _extends({}, input, {
|
|
36
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
33
37
|
onSubmitET: async resp => {
|
|
34
38
|
try {
|
|
35
39
|
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, resp, resp.success, _ETConfig.EntityCode.VERIFY_LOCATION, _ETConfig.ExecutionTaskID.VERIFY_LOCATION, baseETProps, false);
|
|
@@ -40,8 +44,6 @@ const GeofenceScreen = _ref => {
|
|
|
40
44
|
}
|
|
41
45
|
}));
|
|
42
46
|
};
|
|
43
|
-
|
|
44
47
|
var _default = (0, _WithBaseDispatchScreen.default)(GeofenceScreen);
|
|
45
|
-
|
|
46
48
|
exports.default = _default;
|
|
47
49
|
//# sourceMappingURL=GeofenceScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GeofenceScreen","route","navigation","baseETProps","params","RouteParams","NEXT_STATES","
|
|
1
|
+
{"version":3,"names":["_WithBaseDispatchScreen","_interopRequireDefault","require","_react","_interopRequireWildcard","_ExecutionTasksIndex","_Toaster","_ETConfig","_DispatchStateContainer","_RouteParams","_ExecTaskUtils","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","GeofenceScreen","_ref","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","useEffect","onTaskStart","ROOT_META_DATA","customEventsData","createElement","VerifyLocationET","onSubmitET","resp","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","VERIFY_LOCATION","ExecutionTaskID","error","showProgress","showToast","message","_default","withBaseDispatchScreen","exports"],"sources":["GeofenceScreen.tsx"],"sourcesContent":["import withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport React, { useEffect } from 'react';\nimport { VerifyLocationET } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { showToast } from '../../components/widgets/Toaster';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport { onTaskStart } from '../../utils/ExecTaskUtils';\n\nconst GeofenceScreen = ({\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 return (\n <VerifyLocationET\n {...input}\n mergedObjectiveId={mergedObjectiveId}\n onSubmitET={async (resp) => {\n try {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n resp,\n resp.success,\n EntityCode.VERIFY_LOCATION,\n ExecutionTaskID.VERIFY_LOCATION,\n baseETProps,\n false\n );\n } catch (error: any) {\n baseETProps.showProgress(false);\n showToast('Error ' + error.message);\n }\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(GeofenceScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAEA,IAAAM,uBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AAAwD,SAAAS,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA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AC0B,YAAY,CAAC,KAAK,CAAC;QAC/B,IAAAC,kBAAS,EAAC,QAAQ,GAAGF,KAAK,CAACG,OAAO,CAAC;MACrC;IACF;EAAE,EACH,CAAC;AAEN,CAAC;AAAC,IAAAC,QAAA,GAEa,IAAAC,+BAAsB,EAAClC,cAAc,CAAC;AAAAmC,OAAA,CAAA3D,OAAA,GAAAyD,QAAA"}
|
|
@@ -4,35 +4,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
9
|
-
|
|
10
8
|
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
11
|
-
|
|
12
9
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
13
|
-
|
|
14
10
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
15
|
-
|
|
16
11
|
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
17
|
-
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
18
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
-
|
|
22
16
|
const HttpRequestScreen = _ref => {
|
|
23
17
|
let {
|
|
24
18
|
route,
|
|
25
19
|
navigation,
|
|
26
20
|
baseETProps
|
|
27
21
|
} = _ref;
|
|
28
|
-
|
|
22
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
23
|
+
const {
|
|
24
|
+
taskMeta,
|
|
25
|
+
mergedObjectiveId,
|
|
26
|
+
input,
|
|
27
|
+
wfMeta
|
|
28
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
29
|
+
(0, _react.useEffect)(() => {
|
|
30
|
+
(0, _ExecTaskUtils.onTaskStart)(route.params[_RouteParams.RouteParams.NEXT_STATES], route.params[_RouteParams.RouteParams.ROOT_META_DATA].customEventsData);
|
|
31
|
+
}, []);
|
|
32
|
+
return /*#__PURE__*/React.createElement(_ExecutionTasksIndex.HttpRequestET, _extends({}, input, {
|
|
33
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
29
34
|
onSubmitET: async response => {
|
|
30
35
|
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, response, response.success, _ETConfig.EntityCode.HTTP_REQUEST_ET, _ETConfig.ExecutionTaskID.HTTP_REQUEST_ET, baseETProps, false);
|
|
31
36
|
}
|
|
32
37
|
}));
|
|
33
38
|
};
|
|
34
|
-
|
|
35
39
|
var _default = (0, _WithBaseDispatchScreen.default)(HttpRequestScreen);
|
|
36
|
-
|
|
37
40
|
exports.default = _default;
|
|
38
41
|
//# sourceMappingURL=HttpRequestScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpRequestScreen","route","navigation","baseETProps","params","RouteParams","NEXT_STATES","
|
|
1
|
+
{"version":3,"names":["_WithBaseDispatchScreen","_interopRequireDefault","require","_ExecutionTasksIndex","_RouteParams","_DispatchStateContainer","_ETConfig","_react","_ExecTaskUtils","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","HttpRequestScreen","_ref","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","useEffect","onTaskStart","ROOT_META_DATA","customEventsData","React","createElement","HttpRequestET","onSubmitET","response","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","HTTP_REQUEST_ET","ExecutionTaskID","_default","WithBaseDispatchScreen","exports"],"sources":["HttpRequestScreen.tsx"],"sourcesContent":["import WithBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { HttpRequestET } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport { useEffect } from 'react';\nimport { onTaskStart } from '../../utils/ExecTaskUtils';\n\nconst HttpRequestScreen = ({\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 route.params[RouteParams.NEXT_STATES],\n route.params[RouteParams.ROOT_META_DATA].customEventsData\n );\n }, []);\n return (\n <HttpRequestET\n {...input}\n mergedObjectiveId={mergedObjectiveId}\n onSubmitET={async (response) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n response,\n response.success,\n EntityCode.HTTP_REQUEST_ET,\n ExecutionTaskID.HTTP_REQUEST_ET,\n baseETProps,\n false\n );\n }}\n />\n );\n};\nexport default WithBaseDispatchScreen(HttpRequestScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAAwD,SAAAD,uBAAAQ,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,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Q,EACRA,QAAQ,CAACI,OAAO,EAChBC,oBAAU,CAACC,eAAe,EAC1BC,yBAAe,CAACD,eAAe,EAC/BxB,WAAW,EACX,KACF,CAAC;IACH;EAAE,EACH,CAAC;AAEN,CAAC;AAAC,IAAA0B,QAAA,GACa,IAAAC,+BAAsB,EAAC/B,iBAAiB,CAAC;AAAAgC,OAAA,CAAA/C,OAAA,GAAA6C,QAAA"}
|
|
@@ -4,41 +4,62 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
8
|
var _ImageCapture = _interopRequireDefault(require("../../components/executiontasks/imageCapture/ImageCapture"));
|
|
11
|
-
|
|
12
9
|
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
13
|
-
|
|
14
10
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
15
|
-
|
|
16
11
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
17
|
-
|
|
18
12
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
13
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
14
|
+
var _platformCoreosExecutionEngineSdk = require("@os1-platform/platform-coreos-execution-engine-sdk");
|
|
22
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
19
|
const ImageCaptureScreen = _ref => {
|
|
27
20
|
let {
|
|
28
21
|
route,
|
|
29
22
|
navigation,
|
|
30
23
|
baseETProps
|
|
31
24
|
} = _ref;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
26
|
+
const {
|
|
27
|
+
taskMeta,
|
|
28
|
+
mergedObjectiveId,
|
|
29
|
+
input,
|
|
30
|
+
wfMeta
|
|
31
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
32
|
+
const firstInput = input;
|
|
33
|
+
const [inputs, setInputs] = (0, _react.useState)(firstInput);
|
|
34
|
+
const [captureCount, setCaptureCount] = (0, _react.useState)(0);
|
|
35
|
+
const getMergedCaptureCount = async () => {
|
|
36
|
+
const count = await _platformCoreosExecutionEngineSdk.DispatchExecutor.getScannedShipmentsCount(mergedObjectiveId);
|
|
37
|
+
setCaptureCount(count.totalCount);
|
|
38
|
+
};
|
|
39
|
+
(0, _react.useEffect)(() => {
|
|
40
|
+
(0, _ExecTaskUtils.onTaskStart)(route.params[_RouteParams.RouteParams.NEXT_STATES], route.params[_RouteParams.RouteParams.ROOT_META_DATA].customEventsData);
|
|
41
|
+
getMergedCaptureCount();
|
|
42
|
+
}, []);
|
|
43
|
+
(0, _react.useEffect)(() => {
|
|
44
|
+
let _captureCountLimit = captureCount * input.captureCountLimit;
|
|
45
|
+
setInputs(prev => ({
|
|
46
|
+
...prev,
|
|
47
|
+
captureCountLimit: _captureCountLimit
|
|
48
|
+
}));
|
|
49
|
+
}, [captureCount]);
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement(_ImageCapture.default, _extends({}, inputs, {
|
|
51
|
+
captureCount: captureCount,
|
|
52
|
+
navigation: navigation,
|
|
53
|
+
taskMeta: taskMeta,
|
|
54
|
+
mergedObjectiveId: mergedObjectiveId
|
|
55
|
+
// jobIds={getJobIDs(route.params[RouteParams.NEXT_STATES])}
|
|
56
|
+
// objRefs={getObjectiveRefs(route.params[RouteParams.NEXT_STATES])}
|
|
57
|
+
,
|
|
35
58
|
onSubmitET: async imageDataList => {
|
|
36
59
|
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, imageDataList, imageDataList.success, _ETConfig.EntityCode.IMAGE_CAPTURE, _ETConfig.ExecutionTaskID.IMAGE_CAPTURE, baseETProps, false);
|
|
37
60
|
}
|
|
38
61
|
}));
|
|
39
62
|
};
|
|
40
|
-
|
|
41
63
|
var _default = (0, _WithBaseDispatchScreen.default)(ImageCaptureScreen);
|
|
42
|
-
|
|
43
64
|
exports.default = _default;
|
|
44
65
|
//# sourceMappingURL=ImageCaptureScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ImageCaptureScreen","route","navigation","baseETProps","params","RouteParams","NEXT_STATES","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ImageCapture","_interopRequireDefault","_ETConfig","_WithBaseDispatchScreen","_DispatchStateContainer","_RouteParams","_ExecTaskUtils","_platformCoreosExecutionEngineSdk","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","ImageCaptureScreen","_ref","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","firstInput","inputs","setInputs","useState","captureCount","setCaptureCount","getMergedCaptureCount","count","DispatchExecutor","getScannedShipmentsCount","totalCount","useEffect","onTaskStart","ROOT_META_DATA","customEventsData","_captureCountLimit","captureCountLimit","prev","createElement","onSubmitET","imageDataList","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","IMAGE_CAPTURE","ExecutionTaskID","_default","withBaseDispatchScreen","exports"],"sources":["ImageCaptureScreen.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport ImageCapture from '../../components/executiontasks/imageCapture/ImageCapture';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport { onTaskStart } from '../../utils/ExecTaskUtils';\n\nimport { DispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';\n\nconst ImageCaptureScreen = ({\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 firstInput = input;\n const [inputs, setInputs] = useState(firstInput);\n const [captureCount, setCaptureCount] = useState(0);\n\n const getMergedCaptureCount = async () => {\n const count = await DispatchExecutor.getScannedShipmentsCount(\n mergedObjectiveId\n );\n setCaptureCount(count.totalCount);\n };\n\n useEffect(() => {\n onTaskStart(\n route.params[RouteParams.NEXT_STATES],\n route.params[RouteParams.ROOT_META_DATA].customEventsData\n );\n getMergedCaptureCount();\n }, []);\n\n useEffect(() => {\n let _captureCountLimit = captureCount * input.captureCountLimit;\n\n setInputs((prev: any) => ({\n ...prev,\n captureCountLimit: _captureCountLimit,\n }));\n }, [captureCount]);\n\n return (\n <ImageCapture\n {...inputs}\n captureCount={captureCount}\n navigation={navigation}\n taskMeta={taskMeta}\n mergedObjectiveId={mergedObjectiveId}\n // jobIds={getJobIDs(route.params[RouteParams.NEXT_STATES])}\n // objRefs={getObjectiveRefs(route.params[RouteParams.NEXT_STATES])}\n onSubmitET={async (imageDataList) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n imageDataList,\n imageDataList.success,\n EntityCode.IMAGE_CAPTURE,\n ExecutionTaskID.IMAGE_CAPTURE,\n baseETProps,\n false\n );\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(ImageCaptureScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAEA,IAAAI,uBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,uBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AAEA,IAAAQ,iCAAA,GAAAR,OAAA;AAAsF,SAAAE,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,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AM;MACxB,GAAGA,IAAI;MACPD,iBAAiB,EAAED;IACrB,CAAC,CAAC,CAAC;EACL,CAAC,EAAE,CAACX,YAAY,CAAC,CAAC;EAElB,oBACE5D,MAAA,CAAAa,OAAA,CAAA6D,aAAA,CAACvE,aAAA,CAAAU,OAAY,EAAAoB,QAAA,KACPwB,MAAM;IACVG,YAAY,EAAEA,YAAa;IAC3Bf,UAAU,EAAEA,UAAW;IACvBM,QAAQ,EAAEA,QAAS;IACnBC,iBAAiB,EAAEA;IACnB;IACA;IAAA;IACAuB,UAAU,EAAE,MAAOC,aAAa,IAAK;MACnC,MAAMC,+BAAsB,CAACC,WAAW,CAAC,CAAC,CAACC,kBAAkB,CAC3DlC,UAAU,EACVD,KAAK,EACLgC,aAAa,EACbA,aAAa,CAACI,OAAO,EACrBC,oBAAU,CAACC,aAAa,EACxBC,yBAAe,CAACD,aAAa,EAC7BpC,WAAW,EACX,KACF,CAAC;IACH;EAAE,EACH,CAAC;AAEN,CAAC;AAAC,IAAAsC,QAAA,GAEa,IAAAC,+BAAsB,EAAC3C,kBAAkB,CAAC;AAAA4C,OAAA,CAAAzE,OAAA,GAAAuE,QAAA"}
|
|
@@ -4,54 +4,52 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
11
|
-
|
|
12
9
|
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
13
|
-
|
|
14
10
|
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
15
|
-
|
|
16
11
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
17
|
-
|
|
18
12
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
19
|
-
|
|
20
13
|
var _reactNative = require("react-native");
|
|
21
|
-
|
|
22
14
|
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
23
|
-
|
|
24
15
|
var _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
25
|
-
|
|
26
16
|
var _EventCodeContainer = require("../../manager/dispatchCodes/EventCodeContainer");
|
|
27
|
-
|
|
28
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
-
|
|
32
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
-
|
|
34
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
|
-
|
|
36
21
|
const PaymentScreen = _ref => {
|
|
37
22
|
let {
|
|
38
23
|
navigation,
|
|
39
24
|
route,
|
|
40
25
|
baseETProps
|
|
41
26
|
} = _ref;
|
|
42
|
-
|
|
27
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
28
|
+
const {
|
|
29
|
+
taskMeta,
|
|
30
|
+
mergedObjectiveId,
|
|
31
|
+
input,
|
|
32
|
+
wfMeta
|
|
33
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
34
|
+
(0, _react.useEffect)(() => {
|
|
35
|
+
(0, _ExecTaskUtils.onTaskStart)(route.params[_RouteParams.RouteParams.NEXT_STATES], route.params[_RouteParams.RouteParams.ROOT_META_DATA].customEventsData);
|
|
36
|
+
}, []);
|
|
37
|
+
let currentState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
43
38
|
const [showAlert, setShowAlert] = (0, _react.useState)(false);
|
|
44
39
|
const [sResponse, setResponse] = (0, _react.useState)();
|
|
40
|
+
const taskId = currentState.taskId;
|
|
45
41
|
const submitOutput = (0, _react.useCallback)(async etOutput => {
|
|
46
|
-
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etOutput, etOutput.success, (0, _ExecTaskUtils.getEntityCodeByET)(currentState.taskId),
|
|
42
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etOutput, etOutput.success, (0, _ExecTaskUtils.getEntityCodeByET)(currentState.taskId), taskId, baseETProps, false);
|
|
47
43
|
}, [baseETProps, currentState.taskId, navigation, route]);
|
|
48
|
-
|
|
49
44
|
if (currentState.taskId === _ETConfig.ExecutionTaskID.INIT_PAYMENT) {
|
|
50
45
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
51
46
|
style: {
|
|
52
47
|
flex: 1
|
|
53
48
|
}
|
|
54
|
-
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.InitPaymentET, _extends({},
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.InitPaymentET, _extends({}, input, {
|
|
50
|
+
navigation: navigation,
|
|
51
|
+
taskMeta: taskMeta,
|
|
52
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
55
53
|
onSubmitET: async etOutput => {
|
|
56
54
|
if (etOutput.success) {
|
|
57
55
|
await submitOutput(etOutput);
|
|
@@ -75,16 +73,14 @@ const PaymentScreen = _ref => {
|
|
|
75
73
|
}));
|
|
76
74
|
} else if (currentState.taskId === _ETConfig.ExecutionTaskID.PROCESS_PAYMENT) {
|
|
77
75
|
var _input2;
|
|
78
|
-
|
|
79
|
-
let _input = route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input;
|
|
80
|
-
|
|
76
|
+
let _input = input;
|
|
81
77
|
if (((_input2 = _input) === null || _input2 === void 0 ? void 0 : _input2.paymentMode) === 'CASH') {
|
|
82
78
|
(0, _react.useEffect)(() => {
|
|
83
79
|
let isMounted = true;
|
|
84
|
-
|
|
85
80
|
(async () => {
|
|
86
81
|
if (isMounted) {
|
|
87
|
-
|
|
82
|
+
var _input$applicableReas;
|
|
83
|
+
const baseData = await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PROCESS_PAYMENT, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.PROCESS_PAYMENT, true, (_input$applicableReas = _input.applicableReasons) === null || _input$applicableReas === void 0 ? void 0 : _input$applicableReas.success), '', mergedObjectiveId, _ETConfig.ExecutionTaskID.PROCESS_PAYMENT);
|
|
88
84
|
_input = {
|
|
89
85
|
paymentMode: _input.paymentMode,
|
|
90
86
|
collectedAmount: _input.amount,
|
|
@@ -95,7 +91,6 @@ const PaymentScreen = _ref => {
|
|
|
95
91
|
await submitOutput(_input);
|
|
96
92
|
}
|
|
97
93
|
})();
|
|
98
|
-
|
|
99
94
|
return () => {
|
|
100
95
|
isMounted = false;
|
|
101
96
|
};
|
|
@@ -105,7 +100,10 @@ const PaymentScreen = _ref => {
|
|
|
105
100
|
style: {
|
|
106
101
|
flex: 1
|
|
107
102
|
}
|
|
108
|
-
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.ProcessPaymentET, _extends({},
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.ProcessPaymentET, _extends({}, input, {
|
|
104
|
+
navigation: navigation,
|
|
105
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
106
|
+
taskMeta: taskMeta,
|
|
109
107
|
onSubmitET: async etOutput => {
|
|
110
108
|
if (etOutput.success) {
|
|
111
109
|
await submitOutput(etOutput);
|
|
@@ -128,15 +126,16 @@ const PaymentScreen = _ref => {
|
|
|
128
126
|
}
|
|
129
127
|
}));
|
|
130
128
|
} else {
|
|
131
|
-
return /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.CompletePaymentET, _extends({},
|
|
129
|
+
return /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.CompletePaymentET, _extends({}, input, {
|
|
130
|
+
navigation: navigation,
|
|
131
|
+
taskMeta: taskMeta,
|
|
132
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
132
133
|
onSubmitET: async etOut => {
|
|
133
134
|
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etOut, etOut.success, _ETConfig.EntityCode.COMPLETE_PAYMENT, _ETConfig.ExecutionTaskID.COMPLETE_PAYMENT, baseETProps, false);
|
|
134
135
|
}
|
|
135
136
|
}));
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
|
-
|
|
139
139
|
var _default = (0, _WithBaseDispatchScreen.default)(PaymentScreen);
|
|
140
|
-
|
|
141
140
|
exports.default = _default;
|
|
142
141
|
//# sourceMappingURL=PaymentScreen.js.map
|