@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,19 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.deliverETStyles = exports.Fonts = exports.DeliverPickupStyles = exports.CommonStyles = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _SdkColors = _interopRequireWildcard(require("../SdkColors"));
|
|
11
|
-
|
|
12
9
|
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); }
|
|
13
|
-
|
|
14
10
|
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; }
|
|
15
|
-
|
|
16
|
-
let Fonts;
|
|
17
|
-
exports.Fonts = Fonts;
|
|
18
|
-
|
|
19
|
-
(function (Fonts) {
|
|
11
|
+
let Fonts = /*#__PURE__*/function (Fonts) {
|
|
20
12
|
Fonts["IBMPlexSans_400Regular"] = "IBMPlexSans_400Regular";
|
|
21
13
|
Fonts["IBMPlexSans_600SemiBold"] = "IBMPlexSans_600SemiBold";
|
|
22
14
|
Fonts["IBMPlexSans_300Light"] = "IBMPlexSans_300Light";
|
|
@@ -31,8 +23,9 @@ exports.Fonts = Fonts;
|
|
|
31
23
|
Fonts["IBMPlexSans_500Medium_Italic"] = "IBMPlexSans_500Medium_Italic";
|
|
32
24
|
Fonts["IBMPlexSans_600SemiBold_Italic"] = "IBMPlexSans_600SemiBold_Italic";
|
|
33
25
|
Fonts["IBMPlexSans_700Bold_Italic"] = "IBMPlexSans_700Bold_Italic";
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
return Fonts;
|
|
27
|
+
}({});
|
|
28
|
+
exports.Fonts = Fonts;
|
|
36
29
|
const deliverETStyles = _reactNative.StyleSheet.create({
|
|
37
30
|
item: {
|
|
38
31
|
padding: 2,
|
|
@@ -64,9 +57,7 @@ const deliverETStyles = _reactNative.StyleSheet.create({
|
|
|
64
57
|
fontStyle: 'normal'
|
|
65
58
|
}
|
|
66
59
|
});
|
|
67
|
-
|
|
68
60
|
exports.deliverETStyles = deliverETStyles;
|
|
69
|
-
|
|
70
61
|
const CommonStyles = _reactNative.StyleSheet.create({
|
|
71
62
|
alignCenter: {
|
|
72
63
|
flex: 1,
|
|
@@ -85,25 +76,48 @@ const CommonStyles = _reactNative.StyleSheet.create({
|
|
|
85
76
|
},
|
|
86
77
|
nextButtonLabel: {
|
|
87
78
|
color: '#ffffff',
|
|
88
|
-
fontFamily:
|
|
89
|
-
fontSize:
|
|
79
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
80
|
+
fontSize: 14,
|
|
90
81
|
lineHeight: 20,
|
|
91
|
-
letterSpacing: 1.56,
|
|
92
82
|
textAlign: 'center',
|
|
93
83
|
fontStyle: 'normal',
|
|
94
|
-
fontWeight: '
|
|
84
|
+
fontWeight: '500'
|
|
95
85
|
},
|
|
96
86
|
cancelButton: {
|
|
97
87
|
borderWidth: 1,
|
|
98
88
|
borderColor: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].primaryButton
|
|
99
89
|
},
|
|
100
90
|
cancelButtonLabel: {
|
|
101
|
-
color: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].
|
|
102
|
-
fontFamily: Fonts.
|
|
103
|
-
fontSize:
|
|
104
|
-
fontWeight: '
|
|
91
|
+
color: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].defaultColor,
|
|
92
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
93
|
+
fontSize: 14,
|
|
94
|
+
fontWeight: '500',
|
|
95
|
+
lineHeight: 20,
|
|
96
|
+
textAlign: 'center',
|
|
97
|
+
fontStyle: 'normal'
|
|
98
|
+
},
|
|
99
|
+
mainExitButton: {
|
|
100
|
+
backgroundColor: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].exitButton
|
|
101
|
+
},
|
|
102
|
+
mainExitButtonLabel: {
|
|
103
|
+
color: '#ffffff',
|
|
104
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
105
|
+
fontSize: 14,
|
|
106
|
+
fontWeight: '500',
|
|
107
|
+
lineHeight: 20,
|
|
108
|
+
textAlign: 'center',
|
|
109
|
+
fontStyle: 'normal'
|
|
110
|
+
},
|
|
111
|
+
exitButton: {
|
|
112
|
+
borderWidth: 1,
|
|
113
|
+
borderColor: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].exitButton
|
|
114
|
+
},
|
|
115
|
+
exitButtonLabel: {
|
|
116
|
+
color: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].exitButton,
|
|
117
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
118
|
+
fontSize: 14,
|
|
119
|
+
fontWeight: '500',
|
|
105
120
|
lineHeight: 20,
|
|
106
|
-
letterSpacing: 1.56,
|
|
107
121
|
textAlign: 'center',
|
|
108
122
|
fontStyle: 'normal'
|
|
109
123
|
},
|
|
@@ -111,11 +125,31 @@ const CommonStyles = _reactNative.StyleSheet.create({
|
|
|
111
125
|
flex: 1,
|
|
112
126
|
justifyContent: 'flex-end',
|
|
113
127
|
marginBottom: 10
|
|
128
|
+
},
|
|
129
|
+
modalContent: {
|
|
130
|
+
marginStart: 60,
|
|
131
|
+
marginEnd: 60,
|
|
132
|
+
flex: 1,
|
|
133
|
+
marginBottom: 60
|
|
134
|
+
},
|
|
135
|
+
modalView: {
|
|
136
|
+
backgroundColor: 'white',
|
|
137
|
+
padding: 15,
|
|
138
|
+
borderRadius: 9
|
|
139
|
+
},
|
|
140
|
+
subText: {
|
|
141
|
+
justifyContent: 'center',
|
|
142
|
+
fontFamily: 'IBMPlexSans_400Regular',
|
|
143
|
+
fontStyle: 'normal',
|
|
144
|
+
fontSize: 14,
|
|
145
|
+
letterSpacing: 0.25,
|
|
146
|
+
lineHeight: 20,
|
|
147
|
+
textAlign: 'center',
|
|
148
|
+
color: '#000000',
|
|
149
|
+
marginBottom: 10
|
|
114
150
|
}
|
|
115
151
|
});
|
|
116
|
-
|
|
117
152
|
exports.CommonStyles = CommonStyles;
|
|
118
|
-
|
|
119
153
|
const DeliverPickupStyles = _reactNative.StyleSheet.create({
|
|
120
154
|
itemTextStyle: {
|
|
121
155
|
fontFamily: Fonts.IBMPlexSans_400Regular,
|
|
@@ -163,6 +197,5 @@ const DeliverPickupStyles = _reactNative.StyleSheet.create({
|
|
|
163
197
|
color: '#000000'
|
|
164
198
|
}
|
|
165
199
|
});
|
|
166
|
-
|
|
167
200
|
exports.DeliverPickupStyles = DeliverPickupStyles;
|
|
168
201
|
//# sourceMappingURL=CommonStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Fonts","deliverETStyles","StyleSheet","create","item","padding","marginTop","title","fontSize","footerButtonStyles","flexDirection","width","input","marginBottom","footerComponent","flex","marginStart","marginEnd","marginRight","position","bottom","errorText","color","fontStyle","CommonStyles","alignCenter","alignItems","flexRow","mainContainer","backgroundColor","nextButton","SdkColors","ColorTheme","LIGHT","primaryButton","nextButtonLabel","fontFamily","lineHeight","letterSpacing","textAlign","fontWeight","cancelButton","borderWidth","borderColor","cancelButtonLabel","IBMPlexSans_600SemiBold","justifyContent","DeliverPickupStyles","itemTextStyle","IBMPlexSans_400Regular","modalContent","flatList","modalView","borderRadius","titleText","messageText"],"sources":["CommonStyles.ts"],"sourcesContent":["import { StyleSheet } from 'react-native';\nimport SdkColors, { ColorTheme } from '../SdkColors';\n\nexport enum Fonts {\n IBMPlexSans_400Regular = 'IBMPlexSans_400Regular',\n IBMPlexSans_600SemiBold = 'IBMPlexSans_600SemiBold',\n IBMPlexSans_300Light = 'IBMPlexSans_300Light',\n IBMPlexSans_700Bold = 'IBMPlexSans_700Bold',\n IBMPlexSans_100Thin = 'IBMPlexSans_100Thin',\n IBMPlexSans_100Thin_Italic = 'IBMPlexSans_100Thin_Italic',\n IBMPlexSans_200ExtraLight = 'IBMPlexSans_200ExtraLight',\n IBMPlexSans_200ExtraLight_Italic = 'IBMPlexSans_200ExtraLight_Italic',\n IBMPlexSans_300Light_Italic = 'IBMPlexSans_300Light_Italic',\n IBMPlexSans_400Regular_Italic = 'IBMPlexSans_400Regular_Italic',\n IBMPlexSans_500Medium = 'IBMPlexSans_500Medium',\n IBMPlexSans_500Medium_Italic = 'IBMPlexSans_500Medium_Italic',\n IBMPlexSans_600SemiBold_Italic = 'IBMPlexSans_600SemiBold_Italic',\n IBMPlexSans_700Bold_Italic = 'IBMPlexSans_700Bold_Italic',\n}\nexport const deliverETStyles = StyleSheet.create({\n item: {\n padding: 2,\n marginTop: 8,\n },\n title: {\n fontSize: 16,\n },\n footerButtonStyles: {\n flexDirection: 'row',\n width: '100%',\n },\n input: {\n marginTop: 12,\n marginBottom: 10,\n },\n footerComponent: {\n flex: 1,\n marginStart: 8,\n marginEnd: 8,\n marginRight: 8,\n width: '100%',\n position: 'absolute',\n bottom: 10,\n },\n errorText: {\n color: 'red',\n fontSize: 16,\n fontStyle: 'normal',\n },\n});\nexport const CommonStyles = StyleSheet.create({\n alignCenter: {\n flex: 1,\n alignItems: 'center',\n },\n flexRow: {\n flex: 1,\n flexDirection: 'row',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: '#f9f9f9',\n },\n nextButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n nextButtonLabel: {\n color: '#ffffff',\n fontFamily: 'IBMPlexSans_600SemiBold',\n fontSize: 16,\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n fontWeight: '600',\n },\n cancelButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n cancelButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].primaryButton,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 16,\n fontWeight: '600',\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n bottom: {\n flex: 1,\n justifyContent: 'flex-end',\n marginBottom: 10,\n },\n});\nexport const DeliverPickupStyles = StyleSheet.create({\n itemTextStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n color: '#111111',\n textAlign: 'center',\n alignItems: 'center',\n justifyContent: 'center',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: 'rgba(61, 68, 92, 0.7)',\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n flatList: {\n marginTop: 7,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n },\n messageText: {\n marginTop: 10,\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;IAEYA,K;;;WAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;GAAAA,K,qBAAAA,K;;AAgBL,MAAMC,eAAe,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC/CC,IAAI,EAAE;IACJC,OAAO,EAAE,CADL;IAEJC,SAAS,EAAE;EAFP,CADyC;EAK/CC,KAAK,EAAE;IACLC,QAAQ,EAAE;EADL,CALwC;EAQ/CC,kBAAkB,EAAE;IAClBC,aAAa,EAAE,KADG;IAElBC,KAAK,EAAE;EAFW,CAR2B;EAY/CC,KAAK,EAAE;IACLN,SAAS,EAAE,EADN;IAELO,YAAY,EAAE;EAFT,CAZwC;EAgB/C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AAU,EAAE,KALD;IAMXhC,QAAQ,EAAE,EANC;IAOX6B,UAAU,EAAE,EAPD;IAQXE,SAAS,EAAE,QARA;IASXjB,KAAK,EAAE;EATI;AAnCsC,CAAlB,CAA5B"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_SdkColors","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","Fonts","exports","deliverETStyles","StyleSheet","create","item","padding","marginTop","title","fontSize","footerButtonStyles","flexDirection","width","input","marginBottom","footerComponent","flex","marginStart","marginEnd","marginRight","position","bottom","errorText","color","fontStyle","CommonStyles","alignCenter","alignItems","flexRow","mainContainer","backgroundColor","nextButton","SdkColors","ColorTheme","LIGHT","primaryButton","nextButtonLabel","fontFamily","IBMPlexSans_500Medium","lineHeight","textAlign","fontWeight","cancelButton","borderWidth","borderColor","cancelButtonLabel","defaultColor","mainExitButton","exitButton","mainExitButtonLabel","exitButtonLabel","justifyContent","modalContent","modalView","borderRadius","subText","letterSpacing","DeliverPickupStyles","itemTextStyle","IBMPlexSans_400Regular","flatList","titleText","IBMPlexSans_600SemiBold","messageText"],"sources":["CommonStyles.ts"],"sourcesContent":["import { StyleSheet } from 'react-native';\nimport SdkColors, { ColorTheme } from '../SdkColors';\n\nexport enum Fonts {\n IBMPlexSans_400Regular = 'IBMPlexSans_400Regular',\n IBMPlexSans_600SemiBold = 'IBMPlexSans_600SemiBold',\n IBMPlexSans_300Light = 'IBMPlexSans_300Light',\n IBMPlexSans_700Bold = 'IBMPlexSans_700Bold',\n IBMPlexSans_100Thin = 'IBMPlexSans_100Thin',\n IBMPlexSans_100Thin_Italic = 'IBMPlexSans_100Thin_Italic',\n IBMPlexSans_200ExtraLight = 'IBMPlexSans_200ExtraLight',\n IBMPlexSans_200ExtraLight_Italic = 'IBMPlexSans_200ExtraLight_Italic',\n IBMPlexSans_300Light_Italic = 'IBMPlexSans_300Light_Italic',\n IBMPlexSans_400Regular_Italic = 'IBMPlexSans_400Regular_Italic',\n IBMPlexSans_500Medium = 'IBMPlexSans_500Medium',\n IBMPlexSans_500Medium_Italic = 'IBMPlexSans_500Medium_Italic',\n IBMPlexSans_600SemiBold_Italic = 'IBMPlexSans_600SemiBold_Italic',\n IBMPlexSans_700Bold_Italic = 'IBMPlexSans_700Bold_Italic',\n}\nexport const deliverETStyles = StyleSheet.create({\n item: {\n padding: 2,\n marginTop: 8,\n },\n title: {\n fontSize: 16,\n },\n footerButtonStyles: {\n flexDirection: 'row',\n width: '100%',\n },\n input: {\n marginTop: 12,\n marginBottom: 10,\n },\n footerComponent: {\n flex: 1,\n marginStart: 8,\n marginEnd: 8,\n marginRight: 8,\n width: '100%',\n position: 'absolute',\n bottom: 10,\n },\n errorText: {\n color: 'red',\n fontSize: 16,\n fontStyle: 'normal',\n },\n});\nexport const CommonStyles = StyleSheet.create({\n alignCenter: {\n flex: 1,\n alignItems: 'center',\n },\n flexRow: {\n flex: 1,\n flexDirection: 'row',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: '#f9f9f9',\n },\n nextButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n nextButtonLabel: {\n color: '#ffffff',\n fontFamily: Fonts.IBMPlexSans_500Medium,\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n fontWeight: '500',\n },\n cancelButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n cancelButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].defaultColor,\n fontFamily: Fonts.IBMPlexSans_500Medium,\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n mainExitButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].exitButton,\n },\n mainExitButtonLabel: {\n color: '#ffffff',\n fontFamily: Fonts.IBMPlexSans_500Medium,\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n exitButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].exitButton,\n },\n exitButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].exitButton,\n fontFamily: Fonts.IBMPlexSans_500Medium,\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n bottom: {\n flex: 1,\n justifyContent: 'flex-end',\n marginBottom: 10,\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n subText: {\n justifyContent: 'center',\n fontFamily: 'IBMPlexSans_400Regular',\n fontStyle: 'normal',\n fontSize: 14,\n letterSpacing: 0.25,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n marginBottom: 10,\n },\n});\nexport const DeliverPickupStyles = StyleSheet.create({\n itemTextStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n color: '#111111',\n textAlign: 'center',\n alignItems: 'center',\n justifyContent: 'center',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: 'rgba(61, 68, 92, 0.7)',\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n flatList: {\n marginTop: 7,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n },\n messageText: {\n marginTop: 10,\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color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;EACb,CAAC;EACD8C,SAAS,EAAE;IACTvB,eAAe,EAAE,OAAO;IACxBxB,OAAO,EAAE,EAAE;IACXgD,YAAY,EAAE;EAChB,CAAC;EACDO,SAAS,EAAE;IACTV,cAAc,EAAE,QAAQ;IACxBd,UAAU,EAAErC,KAAK,CAAC8D,uBAAuB;IACzCtC,SAAS,EAAE,QAAQ;IACnBf,QAAQ,EAAE,EAAE;IACZ8B,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBjB,KAAK,EAAE;EACT,CAAC;EACDwC,WAAW,EAAE;IACXxD,SAAS,EAAE,EAAE;IACb4C,cAAc,EAAE,QAAQ;IACxBd,UAAU,EAAErC,KAAK,CAAC2D,sBAAsB;IACxCnC,SAAS,EAAE,QAAQ;IACnBiB,UAAU,EAAE,KAAK;IACjBhC,QAAQ,EAAE,EAAE;IACZ8B,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBjB,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAACtB,OAAA,CAAAwD,mBAAA,GAAAA,mBAAA"}
|
|
@@ -4,61 +4,101 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _CancelET = _interopRequireDefault(require("../../components/executiontasks/cancellation/CancelET"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _EventCodeContainer = require("../../manager/dispatchCodes/EventCodeContainer");
|
|
13
|
-
|
|
14
10
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
15
|
-
|
|
16
11
|
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
17
|
-
|
|
18
12
|
var _ReasonCodeContainer = _interopRequireDefault(require("../../manager/dispatchCodes/ReasonCodeContainer"));
|
|
19
|
-
|
|
20
13
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
21
|
-
|
|
22
14
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
23
|
-
|
|
24
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); }
|
|
25
|
-
|
|
26
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; }
|
|
27
|
-
|
|
28
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
18
|
const instance = _DispatchStateContainer.default.getInstance();
|
|
31
|
-
|
|
32
19
|
const CancellationScreen = _ref => {
|
|
33
20
|
let {
|
|
34
21
|
route,
|
|
35
22
|
navigation,
|
|
36
23
|
baseETProps
|
|
37
24
|
} = _ref;
|
|
25
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
26
|
+
const {
|
|
27
|
+
taskMeta,
|
|
28
|
+
mergedObjectiveId,
|
|
29
|
+
input,
|
|
30
|
+
wfMeta
|
|
31
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
38
32
|
const [reasons, setReasons] = (0, _react.useState)([]);
|
|
33
|
+
const [events, setEvents] = (0, _react.useState)([]);
|
|
39
34
|
(0, _react.useEffect)(() => {
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
const reasonCodes = route.params[_RouteParams.RouteParams.REASONS];
|
|
36
|
+
if (reasonCodes && reasonCodes.length) {
|
|
37
|
+
const values = [];
|
|
38
|
+
for (let reasonCode of reasonCodes) {
|
|
39
|
+
values.push(reasonCode.description);
|
|
40
|
+
}
|
|
41
|
+
setReasons(values);
|
|
42
|
+
}
|
|
43
|
+
const eventCodes = route.params[_RouteParams.RouteParams.EVENT_CODES];
|
|
44
|
+
if (eventCodes && eventCodes.length) {
|
|
45
|
+
const e_values = [];
|
|
46
|
+
for (let eventCode of route.params[_RouteParams.RouteParams.EVENT_CODES]) {
|
|
47
|
+
e_values.push(eventCode.description);
|
|
48
|
+
}
|
|
49
|
+
setEvents(e_values);
|
|
44
50
|
}
|
|
45
|
-
|
|
46
|
-
setReasons(values);
|
|
47
51
|
}, [route.params]);
|
|
48
|
-
return /*#__PURE__*/_react.default.createElement(_CancelET.default
|
|
52
|
+
return events.length || reasons.length ? /*#__PURE__*/_react.default.createElement(_CancelET.default
|
|
53
|
+
// mergedObjectiveId={mergedObjectiveId}
|
|
54
|
+
, {
|
|
55
|
+
cancelEvent: route.params[_RouteParams.RouteParams.CANCEL_EVENT] || '',
|
|
56
|
+
cancellationEvents: events,
|
|
49
57
|
cancellationReasons: reasons,
|
|
50
|
-
|
|
58
|
+
applicableCodes: route.params[_RouteParams.RouteParams.APPLICABLE_CODES],
|
|
59
|
+
eventRows: route.params[_RouteParams.RouteParams.EVENT_CODES],
|
|
60
|
+
onSubmitET: async (reason, eventCode, reasonsRow) => {
|
|
61
|
+
const isMergedObjBasedOutput = route.params[_RouteParams.RouteParams.IS_MERGED_OBJ_BASED_OUTPUT];
|
|
51
62
|
if (route.params[_RouteParams.RouteParams.ET_SUCCESS]) {
|
|
52
|
-
route.params[_RouteParams.RouteParams.
|
|
53
|
-
|
|
63
|
+
if (route.params[_RouteParams.RouteParams.EVENT_CODES] && eventCode) {
|
|
64
|
+
// if (isJobBasedOutput)
|
|
65
|
+
// route.params[
|
|
66
|
+
// RouteParams.ET_SUCCESS_RESPONSE
|
|
67
|
+
// ].baseResponse.eventCode = eventCode;
|
|
68
|
+
// else
|
|
69
|
+
route.params[_RouteParams.RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;
|
|
70
|
+
} else if (eventCode) {
|
|
71
|
+
// if (isJobBasedOutput)
|
|
72
|
+
// route.params[
|
|
73
|
+
// RouteParams.ET_SUCCESS_RESPONSE
|
|
74
|
+
// ].baseResponse.eventCode = eventCode;
|
|
75
|
+
// else
|
|
76
|
+
route.params[_RouteParams.RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// if (isJobBasedOutput)
|
|
80
|
+
// route.params[
|
|
81
|
+
// RouteParams.ET_SUCCESS_RESPONSE
|
|
82
|
+
// ].baseResponse.reasonCode =
|
|
83
|
+
// ReasonCodeContainer.getReasonCodeFromText(
|
|
84
|
+
// reason,
|
|
85
|
+
// route.params[RouteParams.REASONS]
|
|
86
|
+
// ? route.params[RouteParams.REASONS]
|
|
87
|
+
// : reasonsRow
|
|
88
|
+
// );
|
|
89
|
+
// else
|
|
90
|
+
route.params[_RouteParams.RouteParams.ET_SUCCESS_RESPONSE].reasonCode = _ReasonCodeContainer.default.getReasonCodeFromText(reason, route.params[_RouteParams.RouteParams.REASONS] ? route.params[_RouteParams.RouteParams.REASONS] : reasonsRow);
|
|
91
|
+
await instance.saveAndProceed(baseETProps, route.params[_RouteParams.RouteParams.ET_SUCCESS_RESPONSE], route.params, navigation, route.params[_RouteParams.RouteParams.IS_LAST_ET], isMergedObjBasedOutput);
|
|
54
92
|
} else {
|
|
55
|
-
|
|
93
|
+
let _eventCodeOutput = '';
|
|
94
|
+
if (route.params[_RouteParams.RouteParams.EVENT_CODES] && eventCode) {
|
|
95
|
+
_eventCodeOutput = eventCode;
|
|
96
|
+
} else if (eventCode) _eventCodeOutput = eventCode;
|
|
97
|
+
await instance.saveAndProceed(baseETProps, await (0, _ExecTaskUtils.getBaseETResponse)((0, _ExecTaskUtils.getEntityCodeByET)(route.params[_RouteParams.RouteParams.CURRENT_ET_NAME]), false, _eventCodeOutput ? _eventCodeOutput : (0, _EventCodeContainer.getEventCodeByET)(route.params[_RouteParams.RouteParams.CURRENT_ET_NAME], false, route.params[_RouteParams.RouteParams.EVENT_CODES] || []), _ReasonCodeContainer.default.getReasonCodeFromText(reason, route.params[_RouteParams.RouteParams.REASONS] ? route.params[_RouteParams.RouteParams.REASONS] : reasonsRow), mergedObjectiveId, route.params[_RouteParams.RouteParams.CURRENT_ET_NAME]), route.params, navigation, route.params[_RouteParams.RouteParams.IS_LAST_ET], isMergedObjBasedOutput);
|
|
56
98
|
}
|
|
57
99
|
}
|
|
58
|
-
});
|
|
100
|
+
}) : null;
|
|
59
101
|
};
|
|
60
|
-
|
|
61
102
|
var _default = (0, _WithBaseDispatchScreen.default)(CancellationScreen);
|
|
62
|
-
|
|
63
103
|
exports.default = _default;
|
|
64
104
|
//# sourceMappingURL=CancellationScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["instance","DispatchStateContainer","getInstance","CancellationScreen","route","navigation","baseETProps","reasons","setReasons","useState","useEffect","values","reasonCode","params","RouteParams","REASONS","push","description","reason","ET_SUCCESS","ET_SUCCESS_RESPONSE","ReasonCodeContainer","getReasonCodeFromText","saveAndProceed","NEXT_STATES","IS_LAST_ET","getBaseETResponse","getEntityCodeByET","CURRENT_ET_NAME","getEventCodeByET","withBaseDispatchScreen"],"sources":["CancellationScreen.tsx"],"sourcesContent":["import CancelET from '../../components/executiontasks/cancellation/CancelET';\nimport React, { useEffect, useState } from 'react';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps, stateWithObjRef } from '../../models/DispatchModels';\nimport {\n getBaseETResponse,\n getEntityCodeByET,\n} from '../../utils/ExecTaskUtils';\nimport ReasonCodeContainer from '../../manager/dispatchCodes/ReasonCodeContainer';\nimport type { ReasonsRow } from '../../manager/syncmanager/DBConfig';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\n\nconst instance = DispatchStateContainer.getInstance();\nconst CancellationScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [reasons, setReasons] = useState<string[]>([]);\n useEffect(() => {\n const values: string[] = [];\n for (let reasonCode of route.params[RouteParams.REASONS] as ReasonsRow[]) {\n values.push(reasonCode.description);\n }\n setReasons(values);\n }, [route.params]);\n return (\n <CancelET\n cancellationReasons={reasons}\n onSubmitET={async (reason) => {\n if (route.params[RouteParams.ET_SUCCESS]) {\n route.params[RouteParams.ET_SUCCESS_RESPONSE].reasonCode =\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n );\n await instance.saveAndProceed(\n baseETProps,\n route.params[RouteParams.ET_SUCCESS_RESPONSE],\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n route.params[RouteParams.IS_LAST_ET]\n );\n } else {\n await instance.saveAndProceed(\n baseETProps,\n await getBaseETResponse(\n getEntityCodeByET(route.params[RouteParams.CURRENT_ET_NAME]),\n false,\n getEventCodeByET(\n route.params[RouteParams.CURRENT_ET_NAME],\n false\n ),\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n )\n ),\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n route.params[RouteParams.IS_LAST_ET]\n );\n }\n }}\n />\n );\n};\nexport default withBaseDispatchScreen(CancellationScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;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oB,gCAAA,EACJ,IAAAC,gCAAA,EAAkBvB,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYc,eAAzB,CAAlB,CADI,EAEJ,KAFI,EAGJ,IAAAC,oCAAA,EACEzB,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYc,eAAzB,CADF,EAEE,KAFF,CAHI,EAOJP,4BAAA,CAAoBC,qBAApB,CACEJ,MADF,EAEEd,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYC,OAAzB,CAFF,CAPI,CAFF,EAcJX,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYU,WAAzB,CAdI,EAeJnB,UAfI,EAgBJD,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYW,UAAzB,CAhBI,CAAN;MAkBD;IACF;EApCH,EADF;AAwCD,CAzDD;;eA0De,IAAAK,+BAAA,EAAuB3B,kBAAvB,C"}
|
|
1
|
+
{"version":3,"names":["_CancelET","_interopRequireDefault","require","_react","_interopRequireWildcard","_EventCodeContainer","_WithBaseDispatchScreen","_ExecTaskUtils","_ReasonCodeContainer","_RouteParams","_DispatchStateContainer","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","instance","DispatchStateContainer","getInstance","CancellationScreen","_ref","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","reasons","setReasons","useState","events","setEvents","useEffect","reasonCodes","REASONS","length","values","reasonCode","push","description","eventCodes","EVENT_CODES","e_values","eventCode","createElement","cancelEvent","CANCEL_EVENT","cancellationEvents","cancellationReasons","applicableCodes","APPLICABLE_CODES","eventRows","onSubmitET","reason","reasonsRow","isMergedObjBasedOutput","IS_MERGED_OBJ_BASED_OUTPUT","ET_SUCCESS","ET_SUCCESS_RESPONSE","ReasonCodeContainer","getReasonCodeFromText","saveAndProceed","IS_LAST_ET","_eventCodeOutput","getBaseETResponse","getEntityCodeByET","CURRENT_ET_NAME","getEventCodeByET","_default","withBaseDispatchScreen","exports"],"sources":["CancellationScreen.tsx"],"sourcesContent":["import CancelET from '../../components/executiontasks/cancellation/CancelET';\nimport React, { useEffect, useState } from 'react';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport {\n getBaseETResponse,\n getEntityCodeByET,\n} from '../../utils/ExecTaskUtils';\nimport ReasonCodeContainer from '../../manager/dispatchCodes/ReasonCodeContainer';\nimport type { EventsRow, ReasonsRow } from '../../manager/syncmanager/DBConfig';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\n\nconst instance = DispatchStateContainer.getInstance();\nconst CancellationScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const nextState = route.params[RouteParams.NEXT_STATES];\n const { taskMeta, mergedObjectiveId, input, wfMeta } =\n getDataFromNextState(nextState);\n const [reasons, setReasons] = useState<string[]>([]);\n const [events, setEvents] = useState<string[]>([]);\n useEffect(() => {\n const reasonCodes = route.params[RouteParams.REASONS];\n if (reasonCodes && reasonCodes.length) {\n const values: string[] = [];\n for (let reasonCode of reasonCodes as ReasonsRow[]) {\n values.push(reasonCode.description);\n }\n setReasons(values);\n }\n const eventCodes = route.params[RouteParams.EVENT_CODES];\n\n if (eventCodes && eventCodes.length) {\n const e_values: string[] = [];\n for (let eventCode of route.params[\n RouteParams.EVENT_CODES\n ] as EventsRow[]) {\n e_values.push(eventCode.description);\n }\n setEvents(e_values);\n }\n }, [route.params]);\n\n return events.length || reasons.length ? (\n <CancelET\n // mergedObjectiveId={mergedObjectiveId}\n cancelEvent={route.params[RouteParams.CANCEL_EVENT] || ''}\n cancellationEvents={events}\n cancellationReasons={reasons}\n applicableCodes={route.params[RouteParams.APPLICABLE_CODES]}\n eventRows={route.params[RouteParams.EVENT_CODES]}\n onSubmitET={async (reason, eventCode, reasonsRow) => {\n const isMergedObjBasedOutput =\n route.params[RouteParams.IS_MERGED_OBJ_BASED_OUTPUT];\n if (route.params[RouteParams.ET_SUCCESS]) {\n if (route.params[RouteParams.EVENT_CODES] && eventCode) {\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.eventCode = eventCode;\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;\n } else if (eventCode) {\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.eventCode = eventCode;\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].eventCode = eventCode;\n }\n\n // if (isJobBasedOutput)\n // route.params[\n // RouteParams.ET_SUCCESS_RESPONSE\n // ].baseResponse.reasonCode =\n // ReasonCodeContainer.getReasonCodeFromText(\n // reason,\n // route.params[RouteParams.REASONS]\n // ? route.params[RouteParams.REASONS]\n // : reasonsRow\n // );\n // else\n route.params[RouteParams.ET_SUCCESS_RESPONSE].reasonCode =\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n ? route.params[RouteParams.REASONS]\n : reasonsRow\n );\n\n await instance.saveAndProceed(\n baseETProps,\n route.params[RouteParams.ET_SUCCESS_RESPONSE],\n route.params,\n navigation,\n route.params[RouteParams.IS_LAST_ET],\n isMergedObjBasedOutput\n );\n } else {\n let _eventCodeOutput = '';\n if (route.params[RouteParams.EVENT_CODES] && eventCode) {\n _eventCodeOutput = eventCode;\n } else if (eventCode) _eventCodeOutput = eventCode;\n\n await instance.saveAndProceed(\n baseETProps,\n await getBaseETResponse(\n getEntityCodeByET(route.params[RouteParams.CURRENT_ET_NAME]),\n false,\n _eventCodeOutput\n ? _eventCodeOutput\n : getEventCodeByET(\n route.params[RouteParams.CURRENT_ET_NAME],\n false,\n route.params[RouteParams.EVENT_CODES] || []\n ),\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n ? route.params[RouteParams.REASONS]\n : reasonsRow\n ),\n mergedObjectiveId,\n route.params[RouteParams.CURRENT_ET_NAME]\n ),\n route.params,\n navigation,\n route.params[RouteParams.IS_LAST_ET],\n isMergedObjBasedOutput\n );\n }\n }}\n />\n ) : null;\n};\nexport default withBaseDispatchScreen(CancellationScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAIA,IAAAM,oBAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,uBAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAmF,SAAAS,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAA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GpB,SAAS;QAElD,MAAMjC,QAAQ,CAACmD,cAAc,CAC3B5C,WAAW,EACX,MAAM,IAAA+C,gCAAiB,EACrB,IAAAC,gCAAiB,EAAClD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC8C,eAAe,CAAC,CAAC,EAC5D,KAAK,EACLH,gBAAgB,GACZA,gBAAgB,GAChB,IAAAI,oCAAgB,EACdpD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC8C,eAAe,CAAC,EACzC,KAAK,EACLnD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAACqB,WAAW,CAAC,IAAI,EAC3C,CAAC,EACLkB,4BAAmB,CAACC,qBAAqB,CACvCP,MAAM,EACNtC,KAAK,CAACI,MAAM,CAACC,wBAAW,CAACc,OAAO,CAAC,GAC7BnB,KAAK,CAACI,MAAM,CAACC,wBAAW,CAACc,OAAO,CAAC,GACjCoB,UACN,CAAC,EACD/B,iBAAiB,EACjBR,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC8C,eAAe,CAC1C,CAAC,EACDnD,KAAK,CAACI,MAAM,EACZH,UAAU,EACVD,KAAK,CAACI,MAAM,CAACC,wBAAW,CAAC0C,UAAU,CAAC,EACpCP,sBACF,CAAC;MACH;IACF;EAAE,CACH,CAAC,GACA,IAAI;AACV,CAAC;AAAC,IAAAa,QAAA,GACa,IAAAC,+BAAsB,EAACxD,kBAAkB,CAAC;AAAAyD,OAAA,CAAA3E,OAAA,GAAAyE,QAAA"}
|
|
@@ -4,37 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
13
|
-
|
|
14
10
|
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
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 _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
23
|
-
|
|
15
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
24
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
17
|
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); }
|
|
27
|
-
|
|
28
18
|
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; }
|
|
29
|
-
|
|
30
19
|
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); }
|
|
31
|
-
|
|
32
20
|
const CaptureInputScreen = _ref => {
|
|
33
21
|
let {
|
|
34
22
|
route,
|
|
35
23
|
navigation,
|
|
36
24
|
baseETProps
|
|
37
25
|
} = _ref;
|
|
26
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
27
|
+
const {
|
|
28
|
+
taskMeta,
|
|
29
|
+
mergedObjectiveId,
|
|
30
|
+
input,
|
|
31
|
+
wfMeta
|
|
32
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
33
|
+
(0, _react.useEffect)(() => {
|
|
34
|
+
(0, _ExecTaskUtils.onTaskStart)(nextState, route.params[_RouteParams.RouteParams.ROOT_META_DATA].customEventsData);
|
|
35
|
+
}, []);
|
|
38
36
|
const [showAlert, setShowAlert] = (0, _react.useState)(false);
|
|
39
37
|
const [sResponse, setResponse] = (0, _react.useState)();
|
|
40
38
|
const submitOutput = (0, _react.useCallback)(async response => {
|
|
@@ -44,7 +42,10 @@ const CaptureInputScreen = _ref => {
|
|
|
44
42
|
style: {
|
|
45
43
|
flex: 1
|
|
46
44
|
}
|
|
47
|
-
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.CaptureText, _extends({},
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.CaptureText, _extends({}, input, {
|
|
46
|
+
navigation: navigation,
|
|
47
|
+
taskMeta: taskMeta,
|
|
48
|
+
mergedObjectiveId: mergedObjectiveId,
|
|
48
49
|
onSubmitET: async etResponse => {
|
|
49
50
|
if (etResponse.success) {
|
|
50
51
|
await submitOutput(etResponse);
|
|
@@ -67,8 +68,6 @@ const CaptureInputScreen = _ref => {
|
|
|
67
68
|
}
|
|
68
69
|
}));
|
|
69
70
|
};
|
|
70
|
-
|
|
71
71
|
var _default = (0, _WithBaseDispatchScreen.default)(CaptureInputScreen);
|
|
72
|
-
|
|
73
72
|
exports.default = _default;
|
|
74
73
|
//# sourceMappingURL=CaptureInputScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CaptureInputScreen","route","navigation","baseETProps","showAlert","setShowAlert","useState","sResponse","setResponse","submitOutput","useCallback","response","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","CAPTURE_INPUT","ExecutionTaskID","
|
|
1
|
+
{"version":3,"names":["_ExecutionTasksIndex","require","_react","_interopRequireWildcard","_WithBaseDispatchScreen","_interopRequireDefault","_ETConfig","_DispatchStateContainer","_RouteParams","_reactNative","_CancelOrderDialog","_ExecTaskUtils","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","CaptureInputScreen","_ref","route","navigation","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","useEffect","onTaskStart","ROOT_META_DATA","customEventsData","showAlert","setShowAlert","useState","sResponse","setResponse","submitOutput","useCallback","response","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","CAPTURE_INPUT","ExecutionTaskID","createElement","View","style","flex","CaptureText","onSubmitET","etResponse","_prevState","visible","onSubmit","value","_default","withBaseDispatchScreen","exports"],"sources":["CaptureInputScreen.tsx"],"sourcesContent":["import { CaptureText } from '../../components/executiontasks/ExecutionTasksIndex';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\nimport { View } from 'react-native';\nimport CancelOrderDialog from '../../components/widgets/CancelOrderDialog';\nimport { onTaskStart } from '../../utils/ExecTaskUtils';\n\nconst CaptureInputScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const nextState = route.params[RouteParams.NEXT_STATES];\n const { taskMeta, mergedObjectiveId, input, wfMeta } =\n getDataFromNextState(nextState);\n useEffect(() => {\n onTaskStart(\n nextState,\n route.params[RouteParams.ROOT_META_DATA].customEventsData\n );\n }, []);\n const [showAlert, setShowAlert] = useState(false);\n const [sResponse, setResponse] = useState<any>();\n const submitOutput = useCallback(\n async (response: any) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n response,\n response.success,\n EntityCode.CAPTURE_INPUT,\n ExecutionTaskID.CAPTURE_INPUT,\n baseETProps,\n false\n );\n },\n [baseETProps, navigation, route]\n );\n return (\n <View style={{ flex: 1 }}>\n <CaptureText\n {...input}\n navigation={navigation}\n taskMeta={taskMeta}\n mergedObjectiveId={mergedObjectiveId}\n onSubmitET={async (etResponse) => {\n if (etResponse.success) {\n await submitOutput(etResponse);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return etResponse;\n });\n }\n }}\n />\n <CancelOrderDialog\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n};\nexport default withBaseDispatchScreen(CaptureInputScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,uBAAA,GAAAF,sBAAA,CAAAJ,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,kBAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AAAwD,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|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
13
|
-
|
|
14
10
|
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
15
|
-
|
|
16
11
|
var _EventCodeContainer = require("../../manager/dispatchCodes/EventCodeContainer");
|
|
17
|
-
|
|
18
12
|
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
19
|
-
|
|
20
13
|
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
21
|
-
|
|
22
14
|
var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
|
|
23
|
-
|
|
24
15
|
var _Toaster = require("../../components/widgets/Toaster");
|
|
25
|
-
|
|
26
16
|
var _RouteParams = require("../uiConfig/RouteParams");
|
|
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
|
const CompleteObjectiveScreen = _ref => {
|
|
35
21
|
let {
|
|
36
22
|
navigation,
|
|
37
23
|
route,
|
|
38
24
|
baseETProps
|
|
39
25
|
} = _ref;
|
|
26
|
+
const nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
27
|
+
const {
|
|
28
|
+
taskMeta,
|
|
29
|
+
mergedObjectiveId,
|
|
30
|
+
input,
|
|
31
|
+
wfMeta
|
|
32
|
+
} = (0, _RouteParams.getDataFromNextState)(nextState);
|
|
40
33
|
(0, _react.useEffect)(() => {
|
|
41
34
|
(async () => {
|
|
42
35
|
try {
|
|
43
36
|
baseETProps.showProgress(true);
|
|
44
37
|
let etResponse;
|
|
45
|
-
let nextState = route.params[_RouteParams.RouteParams.NEXT_STATES]
|
|
46
|
-
const entityCode = nextState.
|
|
47
|
-
etResponse = await (0, _ExecTaskUtils.getObjectiveCompleteResp)(entityCode, true, (0, _EventCodeContainer.getEventCodeByET)(nextState.
|
|
48
|
-
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etResponse, etResponse.success, entityCode, nextState.
|
|
38
|
+
let nextState = route.params[_RouteParams.RouteParams.NEXT_STATES];
|
|
39
|
+
const entityCode = nextState.taskId === _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS ? _ETConfig.EntityCode.COMPLETED_SUCCESS : _ETConfig.EntityCode.COMPLETED_FAILURE;
|
|
40
|
+
etResponse = await (0, _ExecTaskUtils.getObjectiveCompleteResp)(entityCode, true, (0, _EventCodeContainer.getEventCodeByET)(nextState.taskId, true), '', mergedObjectiveId, nextState.taskId);
|
|
41
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etResponse, etResponse.success, entityCode, nextState.taskId === _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS ? _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS : _ETConfig.ExecutionTaskID.COMPLETED_FAILURE, baseETProps, true);
|
|
49
42
|
} catch (error) {
|
|
50
43
|
baseETProps.showProgress(false);
|
|
51
|
-
|
|
52
44
|
_Logger.default.getInstance().logEvent('COMPLETE_OBJECTIVE', error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
53
|
-
|
|
54
45
|
(0, _Toaster.showToast)(error.message);
|
|
55
46
|
}
|
|
56
47
|
})();
|
|
57
|
-
|
|
58
48
|
return () => {
|
|
59
49
|
baseETProps.showProgress(false);
|
|
60
50
|
};
|
|
61
51
|
}, []);
|
|
62
52
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null);
|
|
63
53
|
};
|
|
64
|
-
|
|
65
54
|
var _default = (0, _WithBaseDispatchScreen.default)(CompleteObjectiveScreen);
|
|
66
|
-
|
|
67
55
|
exports.default = _default;
|
|
68
56
|
//# sourceMappingURL=CompleteObjectiveScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_DispatchStateContainer","_interopRequireDefault","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_WithBaseDispatchScreen","_Logger","_Toaster","_RouteParams","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","CompleteObjectiveScreen","_ref","navigation","route","baseETProps","nextState","params","RouteParams","NEXT_STATES","taskMeta","mergedObjectiveId","input","wfMeta","getDataFromNextState","useEffect","showProgress","etResponse","entityCode","taskId","ExecutionTaskID","COMPLETED_SUCCESS","EntityCode","COMPLETED_FAILURE","getObjectiveCompleteResp","getEventCodeByET","DispatchStateContainer","getInstance","navigateToNextTask","success","error","Logger","logEvent","message","LOG_TYPE","SDK_ERROR","showToast","createElement","View","_default","withBaseDispatchScreen","exports"],"sources":["CompleteObjectiveScreen.tsx"],"sourcesContent":["import { View } from 'react-native';\nimport React, { useEffect } from 'react';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { getObjectiveCompleteResp } from '../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport { showToast } from '../../components/widgets/Toaster';\nimport { RouteParams, getDataFromNextState } from '../uiConfig/RouteParams';\n\nconst CompleteObjectiveScreen = ({\n navigation,\n route,\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 (async () => {\n try {\n baseETProps.showProgress(true);\n let etResponse;\n let nextState = route.params[RouteParams.NEXT_STATES];\n const entityCode =\n nextState.taskId === ExecutionTaskID.COMPLETED_SUCCESS\n ? EntityCode.COMPLETED_SUCCESS\n : EntityCode.COMPLETED_FAILURE;\n etResponse = await getObjectiveCompleteResp(\n entityCode,\n true,\n getEventCodeByET(nextState.taskId, true),\n '',\n mergedObjectiveId,\n nextState.taskId\n );\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n etResponse,\n etResponse.success,\n entityCode,\n nextState.taskId === ExecutionTaskID.COMPLETED_SUCCESS\n ? ExecutionTaskID.COMPLETED_SUCCESS\n : ExecutionTaskID.COMPLETED_FAILURE,\n baseETProps,\n true\n );\n } catch (error: any) {\n baseETProps.showProgress(false);\n Logger.getInstance().logEvent(\n 'COMPLETE_OBJECTIVE',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n showToast(error.message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