@os1-platform/dispatch-mobile 1.3.11 → 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 +198 -30
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +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 -2
- 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/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +6 -1
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +6 -1
- package/android/local.properties +1 -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 +4 -4
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +0 -28
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +35 -35
- 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 +2 -2
- 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 +187 -112
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +37 -34
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +52 -52
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +71 -66
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- 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 +6 -3
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +34 -34
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +54 -54
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +112 -47
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +326 -428
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +13 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +15 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- 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/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- 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 +548 -159
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +52 -53
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.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 +12 -4
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +3 -1
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js +2 -2
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +1 -5
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/constants.js +3 -1
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/interface.js.map +1 -1
- package/lib/commonjs/index.js +32 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +315 -609
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +21 -25
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -2
- 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 +15 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +36 -3
- package/lib/commonjs/manager/syncmanager/DBConfig.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.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +377 -26
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +150 -37
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +4 -2
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +38 -7
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +11 -3
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -4
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +26 -4
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +11 -2
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +13 -6
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +39 -15
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +0 -7
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +95 -28
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +10 -2
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +10 -2
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +26 -18
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +22 -11
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +34 -8
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +72 -219
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +13 -7
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +20 -5
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +16 -2
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +33 -25
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +37 -4
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +64 -35
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -46
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- 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/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +37 -2
- package/lib/commonjs/utils/storage.js.map +1 -1
- 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 +4 -4
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +1 -5
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +38 -37
- 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 +2 -2
- 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 +189 -114
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +39 -36
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +53 -52
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +73 -68
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +3 -3
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- 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 +6 -3
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +36 -36
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +55 -54
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +35 -34
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +35 -35
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +114 -49
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +332 -433
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js +16 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js +12 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- 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/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- 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 +528 -160
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +54 -55
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
- 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.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.map +1 -1
- 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.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 +12 -4
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.js.map +1 -0
- package/lib/module/constants/apiConstants.js +3 -1
- package/lib/module/constants/apiConstants.js.map +1 -1
- package/lib/module/constants/constants.js +2 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +0 -3
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/events/constants.js +3 -1
- package/lib/module/events/constants.js.map +1 -1
- package/lib/module/events/interface.js.map +1 -1
- package/lib/module/index.js +6 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +319 -610
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +21 -19
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +2 -2
- 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 +15 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +32 -2
- package/lib/module/manager/syncmanager/DBConfig.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.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +377 -25
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +147 -34
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +4 -2
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +39 -8
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +12 -4
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -5
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +27 -5
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +12 -3
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +14 -7
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +42 -16
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +1 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +96 -29
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +11 -3
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +11 -3
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +27 -19
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +23 -12
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +36 -10
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +74 -222
- package/lib/module/ui/screens/ScanScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +14 -8
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +19 -5
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +17 -2
- package/lib/module/utils/ApiUtils.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +33 -25
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +37 -4
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +64 -35
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +82 -46
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- 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/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +37 -2
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +3 -8
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
- 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 +1 -0
- 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/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.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/widgets/DateTimeWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +2 -2
- 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/imageCapture/CaptureSchema.d.ts +1 -0
- 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/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- 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 +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +25 -9
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +54 -1
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +29 -13
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +3 -2
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +2 -2
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +1 -0
- package/lib/typescript/constants/constants.d.ts +2 -2
- package/lib/typescript/events/EventDispatcher.d.ts +0 -2
- package/lib/typescript/events/constants.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -1
- package/lib/typescript/index.d.ts +8 -6
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +27 -19
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -6
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +0 -1
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +2 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +63 -7
- package/lib/typescript/manager/syncmanager/constants.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/events/ETEventsManager.d.ts +11 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +3 -5
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +4 -3
- package/lib/typescript/models/DispatchModels.d.ts +40 -41
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +21 -16
- package/lib/typescript/models/sdk.d.ts +7 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
- package/lib/typescript/styles/SdkColors.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +16 -7
- 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 +1 -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 +2 -2
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +10 -4
- package/lib/typescript/utils/ExecTaskUtils.d.ts +5 -4
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -5
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/storage.d.ts +15 -0
- package/package.json +5 -4
- package/tsconfig.json +0 -1
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.idea/workspace.xml +0 -131
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -26
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +0 -134
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +0 -105
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -27
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -164
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -15
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -40
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -93
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -278
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -83
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -248
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -99
- 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/scan/sub_components/ScanList.js +0 -124
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/CScanner.js +0 -96
- 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 -146
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -7
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -33
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -83
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -269
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -73
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -238
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -89
- 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/scan/sub_components/ScanList.d.ts +0 -8
- package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +0 -7
- 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 -2
- 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/android/.gradle/{6.8 → 7.0.2}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{6.8 → 7.0.2}/gc.properties +0 -0
- /package/android/.gradle/{configuration-cache → 7.2/dependencies-accessors}/gc.properties +0 -0
|
@@ -2,11 +2,11 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
2
2
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
3
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
4
|
import HttpClient from '../../../network/client';
|
|
5
|
-
import
|
|
5
|
+
import { DispatchSyncType } from '../DBConfig';
|
|
6
6
|
import NetworkClient from '../../../network/NetworkClient';
|
|
7
|
-
import { SyncType } from '@os1-platform/mobile-execution-lib';
|
|
8
|
-
import { isEmptyOrBlank } from '../../../utils/utils';
|
|
9
7
|
import { ENDPOINTS } from '../../../constants/apiConstants';
|
|
8
|
+
import { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
9
|
+
const SyncType = IDispatch.SyncType;
|
|
10
10
|
export default class SyncHttpClient extends HttpClient {
|
|
11
11
|
constructor(baseURL) {
|
|
12
12
|
super(baseURL);
|
|
@@ -17,47 +17,137 @@ export default class SyncHttpClient extends HttpClient {
|
|
|
17
17
|
if (eventRow.length < 1) return null;
|
|
18
18
|
return new Promise(async (resolve, reject) => {
|
|
19
19
|
setTimeout(async () => {
|
|
20
|
-
var _response$data, _response$data$custod, _custodyOutResponse$d, _custodyOutResponse$d2;
|
|
21
20
|
try {
|
|
22
21
|
switch (syncType) {
|
|
23
22
|
case SyncType.CUSTODY_IN_SCAN:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
{
|
|
24
|
+
// NEW CODE
|
|
25
|
+
const requestBody = JSON.parse(eventRow[0].payload);
|
|
26
|
+
const custodyInResponse = await this.networkInstance.requestPost(ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id), requestBody, {
|
|
27
|
+
requestId: 'custodyIn: ' + eventRow[0].dispatch_id
|
|
28
|
+
});
|
|
29
|
+
if (custodyInResponse.data.error) {
|
|
30
|
+
resolve(false);
|
|
31
|
+
} else {
|
|
32
|
+
resolve(true);
|
|
33
|
+
}
|
|
34
|
+
break;
|
|
35
|
+
|
|
36
|
+
// OLD CODE
|
|
37
|
+
// const custodyInScans = [];
|
|
38
|
+
// for (const ev of eventRow) {
|
|
39
|
+
// custodyInScans.push(JSON.parse(ev.payload));
|
|
40
|
+
// }
|
|
41
|
+
// const response = await GraphQLClient.getInstance().postCustodyIn(
|
|
42
|
+
// custodyInScans,
|
|
43
|
+
// eventRow[0].dispatch_id
|
|
44
|
+
// );
|
|
45
|
+
// resolve(response?.data?.custodyInBatch?.success === true);
|
|
46
|
+
// break;
|
|
27
47
|
}
|
|
28
|
-
|
|
29
|
-
resolve((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$custod = _response$data.custodyInBatch) === null || _response$data$custod === void 0 ? void 0 : _response$data$custod.success) === true);
|
|
30
|
-
break;
|
|
48
|
+
|
|
31
49
|
case SyncType.CUSTODY_OUT_SCAN:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
50
|
+
{
|
|
51
|
+
// NEW CODE
|
|
52
|
+
const requestBody = JSON.parse(eventRow[0].payload);
|
|
53
|
+
const custodyInResponse = await this.networkInstance.requestPost(ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id), requestBody, {
|
|
54
|
+
requestId: 'custodyIn: ' + eventRow[0].dispatch_id
|
|
55
|
+
});
|
|
56
|
+
if (custodyInResponse.data.error) {
|
|
57
|
+
resolve(false);
|
|
58
|
+
} else {
|
|
59
|
+
resolve(true);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
|
|
63
|
+
// OLD CODE
|
|
64
|
+
// const custodyOutScans = [];
|
|
65
|
+
// for (const ev of eventRow) {
|
|
66
|
+
// custodyOutScans.push(JSON.parse(ev.payload));
|
|
67
|
+
// }
|
|
68
|
+
// const custodyOutResponse =
|
|
69
|
+
// await GraphQLClient.getInstance().postCustodyOut(
|
|
70
|
+
// custodyOutScans,
|
|
71
|
+
// eventRow[0].dispatch_id
|
|
72
|
+
// );
|
|
73
|
+
// resolve(
|
|
74
|
+
// custodyOutResponse?.data?.custodyOutBatch?.success === true
|
|
75
|
+
// );
|
|
76
|
+
// break;
|
|
35
77
|
}
|
|
36
|
-
|
|
37
|
-
resolve((custodyOutResponse === null || custodyOutResponse === void 0 ? void 0 : (_custodyOutResponse$d = custodyOutResponse.data) === null || _custodyOutResponse$d === void 0 ? void 0 : (_custodyOutResponse$d2 = _custodyOutResponse$d.custodyOutBatch) === null || _custodyOutResponse$d2 === void 0 ? void 0 : _custodyOutResponse$d2.success) === true);
|
|
38
|
-
break;
|
|
78
|
+
|
|
39
79
|
case SyncType.WORKFLOW:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
80
|
+
{
|
|
81
|
+
// NEW CODE
|
|
82
|
+
const requestBody = JSON.parse(eventRow[0].payload);
|
|
83
|
+
const wfiUpdateResponse = await this.networkInstance.requestPost(ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id), requestBody, {
|
|
84
|
+
requestId: 'wfiUpdate: ' + eventRow[0].dispatch_id
|
|
85
|
+
});
|
|
86
|
+
if (wfiUpdateResponse.data.error) {
|
|
87
|
+
resolve(false);
|
|
88
|
+
} else {
|
|
89
|
+
resolve(true);
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
45
92
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
93
|
+
// OLD CODE
|
|
94
|
+
// const workflowResp =
|
|
95
|
+
// await GraphQLClient.getInstance().postWorkflowUpdate(
|
|
96
|
+
// JSON.parse(eventRow[0].payload),
|
|
97
|
+
// JSON.parse(eventRow[0].config).params.workflowInstanceId
|
|
98
|
+
// );
|
|
99
|
+
// resolve(
|
|
100
|
+
// !isEmptyOrBlank(workflowResp?.data.updateWorkflowStatus.id)
|
|
101
|
+
// );
|
|
102
|
+
// break;
|
|
103
|
+
}
|
|
51
104
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
105
|
+
case SyncType.JOB_REMOVAL:
|
|
106
|
+
{
|
|
107
|
+
// NEW CODE
|
|
108
|
+
const requestBody = JSON.parse(eventRow[0].payload);
|
|
109
|
+
const jobResponse = await this.networkInstance.requestPut(ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id), requestBody, {
|
|
110
|
+
requestId: 'jobRemoval: ' + eventRow[0].dispatch_id
|
|
111
|
+
});
|
|
112
|
+
if (jobResponse.data.error) {
|
|
113
|
+
resolve(false);
|
|
114
|
+
} else {
|
|
115
|
+
resolve(true);
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
// OLD CODE
|
|
119
|
+
// const requestBody = JSON.parse(eventRow[0].payload);
|
|
120
|
+
// /* Logger.getInstance().logEvent(
|
|
121
|
+
// 'REQUEST BODY: ',
|
|
122
|
+
// JSON.stringify(requestBody),
|
|
123
|
+
// LOG_TYPE.SDK_DEBUG
|
|
124
|
+
// ); */
|
|
125
|
+
// const jobResponse = await this.networkInstance.requestPut(
|
|
126
|
+
// ENDPOINTS.JOB_REMOVAL(requestBody.dispatchId),
|
|
127
|
+
// requestBody.jobs,
|
|
128
|
+
// { requestId: 'jobRemoval:' + requestBody.dispatchId }
|
|
129
|
+
// );
|
|
130
|
+
// if (jobResponse.data.error) {
|
|
131
|
+
// resolve(false);
|
|
132
|
+
// } else {
|
|
133
|
+
// resolve(true);
|
|
134
|
+
// }
|
|
135
|
+
// break;
|
|
136
|
+
}
|
|
137
|
+
// NEW CODE
|
|
138
|
+
case DispatchSyncType.DISPATCH_UPDATE:
|
|
139
|
+
{
|
|
140
|
+
const requestBody = JSON.parse(eventRow[0].payload);
|
|
141
|
+
const dispatchUpdateResponse = await this.networkInstance.requestPost(ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id), requestBody, {
|
|
142
|
+
requestId: 'dispatchUpdate: ' + eventRow[0].dispatch_id
|
|
143
|
+
});
|
|
144
|
+
if (dispatchUpdateResponse.data.error) {
|
|
145
|
+
resolve(false);
|
|
146
|
+
} else {
|
|
147
|
+
resolve(true);
|
|
148
|
+
}
|
|
149
|
+
break;
|
|
59
150
|
}
|
|
60
|
-
break;
|
|
61
151
|
default:
|
|
62
152
|
resolve(null);
|
|
63
153
|
}
|
|
@@ -67,5 +157,28 @@ export default class SyncHttpClient extends HttpClient {
|
|
|
67
157
|
}, 0); //1000
|
|
68
158
|
});
|
|
69
159
|
}
|
|
160
|
+
|
|
161
|
+
async syncBulkEvent(eventRow) {
|
|
162
|
+
if (eventRow.length < 1) return null;
|
|
163
|
+
return new Promise(async (resolve, reject) => {
|
|
164
|
+
setTimeout(async () => {
|
|
165
|
+
try {
|
|
166
|
+
const requestBody = eventRow.map(event => {
|
|
167
|
+
return JSON.parse(event.payload);
|
|
168
|
+
});
|
|
169
|
+
const response = await this.networkInstance.requestPost(ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id), requestBody, {
|
|
170
|
+
requestId: 'dispatchBulkUpdate: ' + eventRow[0].dispatch_id
|
|
171
|
+
});
|
|
172
|
+
if (response.data.error) {
|
|
173
|
+
resolve(false);
|
|
174
|
+
} else {
|
|
175
|
+
resolve(true);
|
|
176
|
+
}
|
|
177
|
+
} catch (error) {
|
|
178
|
+
reject(error);
|
|
179
|
+
}
|
|
180
|
+
}, 0); //1000
|
|
181
|
+
});
|
|
182
|
+
}
|
|
70
183
|
}
|
|
71
184
|
//# sourceMappingURL=SyncHttpClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpClient","GraphQLClient","NetworkClient","SyncType","isEmptyOrBlank","ENDPOINTS","SyncHttpClient","constructor","baseURL","_defineProperty","networkInstance","syncEvent","eventRow","syncType","length","Promise","resolve","reject","setTimeout","_response$data","_response$data$custod","_custodyOutResponse$d","_custodyOutResponse$d2","CUSTODY_IN_SCAN","custodyInScans","ev","push","JSON","parse","payload","response","getInstance","postCustodyIn","dispatch_id","data","custodyInBatch","success","CUSTODY_OUT_SCAN","custodyOutScans","custodyOutResponse","postCustodyOut","custodyOutBatch","WORKFLOW","workflowResp","postWorkflowUpdate","config","params","workflowInstanceId","updateWorkflowStatus","id","JOB_REMOVAL","requestBody","jobResponse","requestPut","dispatchId","jobs","requestId","error"],"sources":["SyncHttpClient.ts"],"sourcesContent":["import HttpClient from '../../../network/client';\nimport type { EventRow } from '../DBConfig';\nimport GraphQLClient from '../../../network/GraphQLClient';\nimport NetworkClient from '../../../network/NetworkClient';\nimport { SyncType } from '@os1-platform/mobile-execution-lib';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { ENDPOINTS } from '../../../constants/apiConstants';\nimport Logger, { LOG_TYPE } from '../../../utils/Logger';\n\nexport default class SyncHttpClient extends HttpClient {\n protected readonly networkInstance: NetworkClient;\n constructor(baseURL: string) {\n super(baseURL);\n this.networkInstance = new NetworkClient(baseURL);\n }\n\n public async syncEvent(\n eventRow: EventRow[],\n syncType: SyncType\n ): Promise<boolean | null> {\n if (eventRow.length < 1) return null;\n return new Promise(async (resolve, reject) => {\n setTimeout(async () => {\n try {\n switch (syncType) {\n case SyncType.CUSTODY_IN_SCAN:\n const custodyInScans = [];\n for (const ev of eventRow) {\n custodyInScans.push(JSON.parse(ev.payload));\n }\n const response = await GraphQLClient.getInstance().postCustodyIn(\n custodyInScans,\n eventRow[0].dispatch_id\n );\n resolve(response?.data?.custodyInBatch?.success === true);\n break;\n case SyncType.CUSTODY_OUT_SCAN:\n const custodyOutScans = [];\n for (const ev of eventRow) {\n custodyOutScans.push(JSON.parse(ev.payload));\n }\n const custodyOutResponse =\n await GraphQLClient.getInstance().postCustodyOut(\n custodyOutScans,\n eventRow[0].dispatch_id\n );\n resolve(\n custodyOutResponse?.data?.custodyOutBatch?.success === true\n );\n break;\n case SyncType.WORKFLOW:\n const workflowResp =\n await GraphQLClient.getInstance().postWorkflowUpdate(\n JSON.parse(eventRow[0].payload),\n JSON.parse(eventRow[0].config).params.workflowInstanceId\n );\n resolve(\n !isEmptyOrBlank(workflowResp?.data.updateWorkflowStatus.id)\n );\n break;\n case SyncType.JOB_REMOVAL:\n const requestBody = JSON.parse(eventRow[0].payload);\n\n /* Logger.getInstance().logEvent(\n 'REQUEST BODY: ',\n JSON.stringify(requestBody),\n LOG_TYPE.SDK_DEBUG\n ); */\n\n const jobResponse = await this.networkInstance.requestPut(\n ENDPOINTS.JOB_REMOVAL(requestBody.dispatchId),\n requestBody.jobs,\n { requestId: 'jobRemoval:' + requestBody.dispatchId }\n );\n\n if (jobResponse.data.error) {\n resolve(false);\n } else {\n resolve(true);\n }\n break;\n default:\n resolve(null);\n }\n } catch (error: any) {\n reject(error);\n }\n }, 0); //1000\n });\n }\n}\n"],"mappings":";;;AAAA,OAAOA,UAAU,MAAM,yBAAyB;AAEhD,OAAOC,aAAa,MAAM,gCAAgC;AAC1D,OAAOC,aAAa,MAAM,gCAAgC;AAC1D,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,SAAS,QAAQ,iCAAiC;AAG3D,eAAe,MAAMC,cAAc,SAASN,UAAU,CAAC;EAErDO,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAACA,OAAO,CAAC;IAACC,eAAA;IACf,IAAI,CAACC,eAAe,GAAG,IAAIR,aAAa,CAACM,OAAO,CAAC;EACnD;EAEA,MAAaG,SAASA,CACpBC,QAAoB,EACpBC,QAAkB,EACO;IACzB,IAAID,QAAQ,CAACE,MAAM,GAAG,CAAC,EAAE,OAAO,IAAI;IACpC,OAAO,IAAIC,OAAO,CAAC,OAAOC,OAAO,EAAEC,MAAM,KAAK;MAC5CC,UAAU,CAAC,YAAY;QAAA,IAAAC,cAAA,EAAAC,qBAAA,EAAAC,qBAAA,EAAAC,sBAAA;QACrB,IAAI;UACF,QAAQT,QAAQ;YACd,KAAKV,QAA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AAkB,CAClDjB,IAAI,CAACC,KAAK,CAAChB,QAAQ,CAAC,CAAC,CAAC,CAACiB,OAAO,CAAC,EAC/BF,IAAI,CAACC,KAAK,CAAChB,QAAQ,CAAC,CAAC,CAAC,CAACiC,MAAM,CAAC,CAACC,MAAM,CAACC,kBAAkB,CACzD;cACH/B,OAAO,CACL,CAACZ,cAAc,CAACuC,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAET,IAAI,CAACc,oBAAoB,CAACC,EAAE,CAAC,CAC5D;cACD;YACF,KAAK9C,QAAQ,CAAC+C,WAAW;cACvB,MAAMC,WAAW,GAAGxB,IAAI,CAACC,KAAK,CAAChB,QAAQ,CAAC,CAAC,CAAC,CAACiB,OAAO,CAAC;;cAEnD;AACd;AACA;AACA;AACA;;cAEc,MAAMuB,WAAW,GAAG,MAAM,IAAI,CAAC1C,eAAe,CAAC2C,UAAU,CACvDhD,SAAS,CAAC6C,WAAW,CAACC,WAAW,CAACG,UAAU,CAAC,EAC7CH,WAAW,CAACI,IAAI,EAChB;gBAAEC,SAAS,EAAE,aAAa,GAAGL,WAAW,CAACG;cAAW,CAAC,CACtD;cAED,IAAIF,WAAW,CAAClB,IAAI,CAACuB,KAAK,EAAE;gBAC1BzC,OAAO,CAAC,KAAK,CAAC;cAChB,CAAC,MAAM;gBACLA,OAAO,CAAC,IAAI,CAAC;cACf;cACA;YACF;cACEA,OAAO,CAAC,IAAI,CAAC;UAAC;QAEpB,CAAC,CAAC,OAAOyC,KAAU,EAAE;UACnBxC,MAAM,CAACwC,KAAK,CAAC;QACf;MACF,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACT,CAAC,CAAC;EACJ;AACF"}
|
|
1
|
+
{"version":3,"names":["HttpClient","DispatchSyncType","NetworkClient","ENDPOINTS","IDispatch","SyncType","SyncHttpClient","constructor","baseURL","_defineProperty","networkInstance","syncEvent","eventRow","syncType","length","Promise","resolve","reject","setTimeout","CUSTODY_IN_SCAN","requestBody","JSON","parse","payload","custodyInResponse","requestPost","BULK_JOB_UPDATE","dispatch_id","requestId","data","error","CUSTODY_OUT_SCAN","WORKFLOW","wfiUpdateResponse","JOB_REMOVAL","jobResponse","requestPut","DISPATCH_UPDATE","dispatchUpdateResponse","syncBulkEvent","map","event","response"],"sources":["SyncHttpClient.ts"],"sourcesContent":["import HttpClient from '../../../network/client';\nimport { DispatchSyncType, EventRow } from '../DBConfig';\nimport GraphQLClient from '../../../network/GraphQLClient';\nimport NetworkClient from '../../../network/NetworkClient';\nimport { ExecEngineSyncType } from '../DBConfig';\n\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { ENDPOINTS } from '../../../constants/apiConstants';\nimport Logger, { LOG_TYPE } from '../../../utils/Logger';\n\nimport { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';\nconst SyncType = IDispatch.SyncType;\n\nexport default class SyncHttpClient extends HttpClient {\n protected readonly networkInstance: NetworkClient;\n constructor(baseURL: string) {\n super(baseURL);\n this.networkInstance = new NetworkClient(baseURL);\n }\n\n public async syncEvent(\n eventRow: EventRow[],\n syncType: ExecEngineSyncType | DispatchSyncType\n ): Promise<boolean | null> {\n if (eventRow.length < 1) return null;\n return new Promise(async (resolve, reject) => {\n setTimeout(async () => {\n try {\n switch (syncType) {\n case SyncType.CUSTODY_IN_SCAN: {\n // NEW CODE\n const requestBody = JSON.parse(eventRow[0].payload);\n const custodyInResponse = await this.networkInstance.requestPost(\n ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id),\n requestBody,\n { requestId: 'custodyIn: ' + eventRow[0].dispatch_id }\n );\n\n if (custodyInResponse.data.error) {\n resolve(false);\n } else {\n resolve(true);\n }\n break;\n\n // OLD CODE\n // const custodyInScans = [];\n // for (const ev of eventRow) {\n // custodyInScans.push(JSON.parse(ev.payload));\n // }\n // const response = await GraphQLClient.getInstance().postCustodyIn(\n // custodyInScans,\n // eventRow[0].dispatch_id\n // );\n // resolve(response?.data?.custodyInBatch?.success === true);\n // break;\n }\n case SyncType.CUSTODY_OUT_SCAN: {\n // NEW CODE\n const requestBody = JSON.parse(eventRow[0].payload);\n const custodyInResponse = await this.networkInstance.requestPost(\n ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id),\n requestBody,\n { requestId: 'custodyIn: ' + eventRow[0].dispatch_id }\n );\n\n if (custodyInResponse.data.error) {\n resolve(false);\n } else {\n resolve(true);\n }\n break;\n\n // OLD CODE\n // const custodyOutScans = [];\n // for (const ev of eventRow) {\n // custodyOutScans.push(JSON.parse(ev.payload));\n // }\n // const custodyOutResponse =\n // await GraphQLClient.getInstance().postCustodyOut(\n // custodyOutScans,\n // eventRow[0].dispatch_id\n // );\n // resolve(\n // custodyOutResponse?.data?.custodyOutBatch?.success === true\n // );\n // break;\n }\n case SyncType.WORKFLOW: {\n // NEW CODE\n const requestBody = JSON.parse(eventRow[0].payload);\n const wfiUpdateResponse = await this.networkInstance.requestPost(\n ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id),\n requestBody,\n { requestId: 'wfiUpdate: ' + eventRow[0].dispatch_id }\n );\n\n if (wfiUpdateResponse.data.error) {\n resolve(false);\n } else {\n resolve(true);\n }\n break;\n\n // OLD CODE\n // const workflowResp =\n // await GraphQLClient.getInstance().postWorkflowUpdate(\n // JSON.parse(eventRow[0].payload),\n // JSON.parse(eventRow[0].config).params.workflowInstanceId\n // );\n // resolve(\n // !isEmptyOrBlank(workflowResp?.data.updateWorkflowStatus.id)\n // );\n // break;\n }\n case SyncType.JOB_REMOVAL: {\n // NEW CODE\n const requestBody = JSON.parse(eventRow[0].payload);\n const jobResponse = await this.networkInstance.requestPut(\n ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id),\n requestBody,\n { requestId: 'jobRemoval: ' + eventRow[0].dispatch_id }\n );\n\n if (jobResponse.data.error) {\n resolve(false);\n } else {\n resolve(true);\n }\n break;\n // OLD CODE\n // const requestBody = JSON.parse(eventRow[0].payload);\n // /* Logger.getInstance().logEvent(\n // 'REQUEST BODY: ',\n // JSON.stringify(requestBody),\n // LOG_TYPE.SDK_DEBUG\n // ); */\n // const jobResponse = await this.networkInstance.requestPut(\n // ENDPOINTS.JOB_REMOVAL(requestBody.dispatchId),\n // requestBody.jobs,\n // { requestId: 'jobRemoval:' + requestBody.dispatchId }\n // );\n // if (jobResponse.data.error) {\n // resolve(false);\n // } else {\n // resolve(true);\n // }\n // break;\n }\n // NEW CODE\n case DispatchSyncType.DISPATCH_UPDATE: {\n const requestBody = JSON.parse(eventRow[0].payload);\n const dispatchUpdateResponse =\n await this.networkInstance.requestPost(\n ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id),\n requestBody,\n { requestId: 'dispatchUpdate: ' + eventRow[0].dispatch_id }\n );\n\n if (dispatchUpdateResponse.data.error) {\n resolve(false);\n } else {\n resolve(true);\n }\n break;\n }\n default:\n resolve(null);\n }\n } catch (error: any) {\n reject(error);\n }\n }, 0); //1000\n });\n }\n\n public async syncBulkEvent(eventRow: EventRow[]): Promise<boolean | null> {\n if (eventRow.length < 1) return null;\n return new Promise(async (resolve, reject) => {\n setTimeout(async () => {\n try {\n const requestBody = eventRow.map((event) => {\n return JSON.parse(event.payload);\n });\n const response = await this.networkInstance.requestPost(\n ENDPOINTS.BULK_JOB_UPDATE(eventRow[0].dispatch_id),\n requestBody,\n { requestId: 'dispatchBulkUpdate: ' + eventRow[0].dispatch_id }\n );\n\n if (response.data.error) {\n resolve(false);\n } else {\n resolve(true);\n }\n } catch (error: any) {\n reject(error);\n }\n }, 0); //1000\n });\n }\n}\n"],"mappings":";;;AAAA,OAAOA,UAAU,MAAM,yBAAyB;AAChD,SAASC,gBAAgB,QAAkB,aAAa;AAExD,OAAOC,aAAa,MAAM,gCAAgC;AAI1D,SAASC,SAAS,QAAQ,iCAAiC;AAG3D,SAASC,SAAS,QAAQ,oDAAoD;AAC9E,MAAMC,QAAQ,GAAGD,SAAS,CAACC,QAAQ;AAEnC,eAAe,MAAMC,cAAc,SA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AAG,CAAC,EAAE,OAAO,IAAI;IACpC,OAAO,IAAIC,OAAO,CAAC,OAAOC,OAAO,EAAEC,MAAM,KAAK;MAC5CC,UAAU,CAAC,YAAY;QACrB,IAAI;UACF,MAAME,WAAW,GAAGR,QAAQ,CAAC4B,GAAG,CAAEC,KAAK,IAAK;YAC1C,OAAOpB,IAAI,CAACC,KAAK,CAACmB,KAAK,CAAClB,OAAO,CAAC;UAClC,CAAC,CAAC;UACF,MAAMmB,QAAQ,GAAG,MAAM,IAAI,CAAChC,eAAe,CAACe,WAAW,CACrDtB,SAAS,CAACuB,eAAe,CAACd,QAAQ,CAAC,CAAC,CAAC,CAACe,WAAW,CAAC,EAClDP,WAAW,EACX;YAAEQ,SAAS,EAAE,sBAAsB,GAAGhB,QAAQ,CAAC,CAAC,CAAC,CAACe;UAAY,CAChE,CAAC;UAED,IAAIe,QAAQ,CAACb,IAAI,CAACC,KAAK,EAAE;YACvBd,OAAO,CAAC,KAAK,CAAC;UAChB,CAAC,MAAM;YACLA,OAAO,CAAC,IAAI,CAAC;UACf;QACF,CAAC,CAAC,OAAOc,KAAU,EAAE;UACnBb,MAAM,CAACa,KAAK,CAAC;QACf;MACF,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACT,CAAC,CAAC;EACJ;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SdkSyncType"],"sources":["DispatchModels.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"names":["SdkSyncType"],"sources":["DispatchModels.ts"],"sourcesContent":["import {\n IDispatch,\n IDispatchExecutor,\n} from '@os1-platform/platform-coreos-execution-engine-sdk';\n\nexport interface BaseETProps {\n showProgress: (loading: boolean) => void;\n}\n\nexport enum SdkSyncType {\n EVENTS_SYNC,\n DOCUMENT_SYNC,\n}\n\nexport interface JobObjectiveType {\n objectiveId: string;\n jobId: string;\n groupId?: string;\n additionalData?: any;\n}\n\nexport interface endEvent {\n taskId: string;\n nextTaskId: string;\n timestamp: number;\n // groupId?: string;\n customData?: any;\n etData: {\n [key: string]: any;\n /* [key: string]: {\n workflowInstanceId: string;\n additionalData?: any;\n success?: boolean;\n eventCode?: string;\n reasonCode?: string;\n [key: string]: any;\n }; */\n };\n meta?: any;\n}\n\nexport interface onScanEvent {\n taskId: string;\n timestamp: number;\n customData?: any;\n etData: {\n eventCode: string;\n reasonCode: string;\n success: boolean;\n endTime: number;\n scannedData: {\n jobId: string;\n scanValue: string;\n shipmentFlow: string; //displayinfo\n groupId: string; //displayinfo\n }[];\n };\n meta?: any;\n}\n\nexport interface onScanRemoveEvent {\n taskId: string;\n timestamp: number;\n customData?: any;\n etData: {\n scannedData: {\n scanValue: string;\n }[];\n };\n meta?: any;\n}\n\nexport interface startEvent {\n timestamp: number;\n taskId: string;\n // groupId?: string;\n customData?: any;\n etData: {\n [key: string]: any;\n // [key: string]: {\n // workflowInstanceId: string;\n // additionalData?: any;\n // [key: string]: any;\n // };\n };\n}\n\nexport interface stateParams {\n next_states: IDispatch.IExecutionTaskQueryResponse;\n rootMetaData: {\n meta: any;\n customEventsData?: any;\n statusFilter: IDispatchExecutor.ExecutionStatus[];\n prefixedMergedObjectiveId: string;\n };\n has_multiple_ets?: boolean;\n}\n"],"mappings":"AASA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=ETBaseModels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ETBaseModels.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":[],"sources":["ETBaseModels.ts"],"sourcesContent":["import { ExecutionTaskID } from './ETConfig';\n\nexport type BaseETResponse = {\n id: ExecutionTaskID;\n mergedObjectiveIds: Array<string>;\n /**\n * Success flag for the operation performed by user\n */\n entityCode: string;\n success: boolean;\n /**\n * Event code\n */\n eventCode: string;\n /**\n * Reason code\n */\n reasonCode: string;\n /**\n * Meta data related to execution of task\n */\n meta?: {\n /**\n * Epoch timestamp for the start of task\n */\n // startTime?: number;\n /**\n * Epoch timestamp for the end of task\n */\n // endTime?: number;\n /**\n * Location at start of task\n */\n // location?: {\n /**\n * Latitude\n */\n // latitude?: string;\n /**\n * Longitude\n */\n // longitude?: string;\n // };\n /**\n * Unique identifier of user performing the action\n */\n userDetails: UserData;\n /**\n * Check if ETs are executed in merged form\n */\n // isMerged?: boolean;\n };\n};\nexport interface UserData {\n id: string;\n name: string;\n}\n\n/**\n * Title of instruction\n */\nexport type Title = string;\n/**\n * Message of instruction\n */\nexport type Message = string;\n/**\n * Can go back\n */\nexport type CanGoBack = boolean;\n\nexport type BaseETRequest = {\n title: Title;\n message?: Message;\n canGoBack?: CanGoBack;\n applicableReasons?: ApplicableReasons | NewApplicableReasons;\n taskMeta?: { [k: string]: any };\n wfMeta?: { [k: string]: any };\n navigation?: any;\n route?: any;\n taskName: string;\n mergedObjectiveId: Array<string>;\n};\n\nexport type ApplicableReasons = {\n [k: string]: string[];\n};\n\nexport type NewApplicableReasons = {\n success: { [k: string]: string[] };\n failure: { [k: string]: string[] };\n goBack?: { [k: string]: string[] };\n};\n\nexport interface ETSummary {\n name: string;\n eventCode: string;\n reasonCode: string;\n reasonCodeDesc: string | null | undefined;\n}\n\nexport interface CompleteSummary {\n jobId: string;\n objectiveRef: string;\n jobObjectiveSummary: ETSummary[];\n}\n\nexport interface ObjectiveSummary {\n entityCode: string;\n eventCode: string;\n reasonCode: string;\n reasonCodeDesc?: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ENVIRONMENT"],"sources":["sdk.ts"],"sourcesContent":["import type { EventCodes } from './ReasonCodes';\n\nexport interface DispatchSDKConfig {\n tenantID: string;\n userID: string;\n userName: string;\n tenantBaseURL: string;\n headers?: { [key: string]: any };\n enableLogging?: boolean;\n syncRetryCount?: number;\n accessToken: string;\n sentry?: {\n env: ENVIRONMENT;\n enabled: boolean;\n dsn?: string;\n };\n notificationConfig?: {\n title: string;\n description: string;\n interval: number;\n };\n eventMapping?: EventCodes[];\n}\n\nexport enum ENVIRONMENT {\n DEV = 'dev',\n PRE_PROD = 'preprod',\n PROD = 'prod',\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["ENVIRONMENT"],"sources":["sdk.ts"],"sourcesContent":["import type { EventCodes } from './ReasonCodes';\n\nexport interface DispatchSDKConfig {\n tenantID: string;\n userID: string;\n userName: string;\n tenantBaseURL: string;\n headers?: { [key: string]: any };\n enableLogging?: boolean;\n syncRetryCount?: number;\n accessToken: string;\n sentry?: {\n env: ENVIRONMENT;\n enabled: boolean;\n dsn?: string;\n };\n notificationConfig?: {\n title: string;\n description: string;\n interval: number;\n };\n eventMapping?: EventCodes[];\n debugLevelLog?: Boolean;\n callbacks?: {\n fetchPhoneNumbersCallback?: (\n sdsIds: string[]\n ) => Promise<{ key: string; value: string[] }>;\n };\n}\n\nexport enum ENVIRONMENT {\n DEV = 'dev',\n PRE_PROD = 'preprod',\n PROD = 'prod',\n}\n"],"mappings":"AA8BA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","DeviceEventEmitter","findNodeHandle","requireNativeComponent","UIManager","RSSignatureView","SignatureCapture","Component","constructor","props","_defineProperty","onChange","bind","subscriptions","event","nativeEvent","encoded","onSaveEvent","dragged","onDragEvent","componentDidMount","sub","addListener","push","componentWillUnmount","forEach","remove","render","createElement","_extends","style","flex","saveImage","dispatchViewManagerCommand","getViewManagerConfig","Commands","resetImage"],"sources":["SignatureCapture.tsx"],"sourcesContent":["import React from 'react';\nimport {\n DeviceEventEmitter,\n findNodeHandle,\n requireNativeComponent,\n UIManager,\n ViewProps,\n} from 'react-native';\n\nconst RSSignatureView = requireNativeComponent('RSSignatureView');\n\nclass SignatureCapture extends React.Component<SignatureProps, any> {\n subscriptions: any[];\n constructor(props: SignatureProps) {\n super(props);\n this.onChange = this.onChange.bind(this);\n this.subscriptions = [];\n }\n\n onChange(event: any) {\n if (event.nativeEvent.encoded) {\n if (!this.props.onSaveEvent) {\n return;\n }\n this.props.onSaveEvent({\n encoded: event.nativeEvent.encoded,\n });\n }\n\n if (event.nativeEvent.dragged) {\n if (!this.props.onDragEvent) {\n return;\n }\n this.props.onDragEvent({\n dragged: event.nativeEvent.dragged,\n });\n }\n }\n\n componentDidMount() {\n if (this.props.onSaveEvent) {\n let sub = DeviceEventEmitter.addListener(\n 'onSaveEvent',\n this.props.onSaveEvent\n );\n this.subscriptions.push(sub);\n }\n\n if (this.props.onDragEvent) {\n let sub = DeviceEventEmitter.addListener(\n 'onDragEvent',\n this.props.onDragEvent\n );\n this.subscriptions.push(sub);\n }\n }\n\n componentWillUnmount() {\n this.subscriptions.forEach((sub) => sub.remove());\n this.subscriptions = [];\n }\n\n render() {\n return (\n <RSSignatureView\n style={{ flex: 1 }}\n {...this.props} // @ts-ignore\n onChange={this.onChange}\n />\n );\n }\n\n saveImage() {\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(this),\n UIManager.getViewManagerConfig('RSSignatureView').Commands.saveImage,\n []\n );\n }\n\n resetImage() {\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(this),\n UIManager.getViewManagerConfig('RSSignatureView').Commands.resetImage,\n []\n );\n }\n}\n\nexport type SignatureProps = ViewProps & {\n rotateClockwise: boolean;\n square: boolean;\n viewMode: string;\n showBorder: boolean;\n showNativeButtons: boolean;\n showTitleLabel: boolean;\n maxSize: number;\n minStrokeWidth: number;\n maxStrokeWidth: number;\n strokeColor: string;\n backgroundColor: string;\n onSaveEvent: (result: SignatureResponse) => void;\n onDragEvent: ({ dragged }: { dragged: boolean }) => void;\n};\n\nexport interface SignatureResponse {\n encoded: string;\n}\n\nexport default SignatureCapture;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,kBAAkB,EAClBC,cAAc,EACdC,sBAAsB,EACtBC,SAAS,QAEJ,cAAc;AAErB,MAAMC,eAAe,GAAGF,sBAAsB,CAAC,iBAAiB,CAAC;AAEjE,MAAMG,gBAAgB,SAASN,KAAK,CAACO,SAAS,CAAsB;EAElEC,WAAWA,CAACC,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA;IACb,IAAI,CAACC,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACC,IAAI,CAAC,IAAI,CAAC;IACxC,IAAI,CAACC,aAAa,GAAG,EAAE;EACzB;EAEAF,QAAQA,CAACG,KAAU,EAAE;IACnB,IAAIA,KAAK,CAACC,WAAW,CAACC,OAAO,EAAE;MAC7B,IAAI,CAAC,IAAI,CAACP,KAAK,CAACQ,WAAW,EAAE;QAC3B;MACF;MACA,IAAI,CAACR,KAAK,CAACQ,WAAW,CAAC;QACrBD,OAAO,EAAEF,KAAK,CAACC,WAAW,CAACC;MAC7B,CAAC,CAAC;IACJ;IAEA,IAAIF,KAAK,CAACC,WAAW,CAACG,OAAO,EAAE;MAC7B,IAAI,CAAC,IAAI,CAACT,KAAK,CAACU,WAAW,EAAE;QAC3B;MACF;MACA,IAAI,CAACV,KAAK,CAACU,WAAW,CAAC;QACrBD,OAAO,EAAEJ,KAAK,CAACC,WAAW,CAACG;MAC7B,CAAC,CAAC;IACJ;EACF;EAEAE,iBAAiBA,CAAA,EAAG;IAClB,IAAI,IAAI,CAACX,KAAK,CAACQ,WAAW,EAAE;MAC1B,IAAII,GAAG,GAAGpB,kBAAkB,CAACqB,WAAW,CACtC,aAAa,EACb,IAAI,CAACb,KAAK,CAACQ,
|
|
1
|
+
{"version":3,"names":["React","DeviceEventEmitter","findNodeHandle","requireNativeComponent","UIManager","RSSignatureView","SignatureCapture","Component","constructor","props","_defineProperty","onChange","bind","subscriptions","event","nativeEvent","encoded","onSaveEvent","dragged","onDragEvent","componentDidMount","sub","addListener","push","componentWillUnmount","forEach","remove","render","createElement","_extends","style","flex","saveImage","dispatchViewManagerCommand","getViewManagerConfig","Commands","resetImage"],"sources":["SignatureCapture.tsx"],"sourcesContent":["import React from 'react';\nimport {\n DeviceEventEmitter,\n findNodeHandle,\n requireNativeComponent,\n UIManager,\n ViewProps,\n} from 'react-native';\n\nconst RSSignatureView = requireNativeComponent('RSSignatureView');\n\nclass SignatureCapture extends React.Component<SignatureProps, any> {\n subscriptions: any[];\n constructor(props: SignatureProps) {\n super(props);\n this.onChange = this.onChange.bind(this);\n this.subscriptions = [];\n }\n\n onChange(event: any) {\n if (event.nativeEvent.encoded) {\n if (!this.props.onSaveEvent) {\n return;\n }\n this.props.onSaveEvent({\n encoded: event.nativeEvent.encoded,\n });\n }\n\n if (event.nativeEvent.dragged) {\n if (!this.props.onDragEvent) {\n return;\n }\n this.props.onDragEvent({\n dragged: event.nativeEvent.dragged,\n });\n }\n }\n\n componentDidMount() {\n if (this.props.onSaveEvent) {\n let sub = DeviceEventEmitter.addListener(\n 'onSaveEvent',\n this.props.onSaveEvent\n );\n this.subscriptions.push(sub);\n }\n\n if (this.props.onDragEvent) {\n let sub = DeviceEventEmitter.addListener(\n 'onDragEvent',\n this.props.onDragEvent\n );\n this.subscriptions.push(sub);\n }\n }\n\n componentWillUnmount() {\n this.subscriptions.forEach((sub) => sub.remove());\n this.subscriptions = [];\n }\n\n render() {\n return (\n <RSSignatureView\n style={{ flex: 1 }}\n {...this.props} // @ts-ignore\n onChange={this.onChange}\n />\n );\n }\n\n saveImage() {\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(this),\n UIManager.getViewManagerConfig('RSSignatureView').Commands.saveImage,\n []\n );\n }\n\n resetImage() {\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(this),\n UIManager.getViewManagerConfig('RSSignatureView').Commands.resetImage,\n []\n );\n }\n}\n\nexport type SignatureProps = ViewProps & {\n rotateClockwise: boolean;\n square: boolean;\n viewMode: string;\n showBorder: boolean;\n showNativeButtons: boolean;\n showTitleLabel: boolean;\n maxSize: number;\n minStrokeWidth: number;\n maxStrokeWidth: number;\n strokeColor: string;\n backgroundColor: string;\n onSaveEvent: (result: SignatureResponse) => void;\n onDragEvent: ({ dragged }: { dragged: boolean }) => void;\n};\n\nexport interface SignatureResponse {\n encoded: string;\n}\n\nexport default SignatureCapture;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,kBAAkB,EAClBC,cAAc,EACdC,sBAAsB,EACtBC,SAAS,QAEJ,cAAc;AAErB,MAAMC,eAAe,GAAGF,sBAAsB,CAAC,iBAAiB,CAAC;AAEjE,MAAMG,gBAAgB,SAASN,KAAK,CAACO,SAAS,CAAsB;EAElEC,WAAWA,CAACC,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA;IACb,IAAI,CAACC,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACC,IAAI,CAAC,IAAI,CAAC;IACxC,IAAI,CAACC,aAAa,GAAG,EAAE;EACzB;EAEAF,QAAQA,CAACG,KAAU,EAAE;IACnB,IAAIA,KAAK,CAACC,WAAW,CAACC,OAAO,EAAE;MAC7B,IAAI,CAAC,IAAI,CAACP,KAAK,CAACQ,WAAW,EAAE;QAC3B;MACF;MACA,IAAI,CAACR,KAAK,CAACQ,WAAW,CAAC;QACrBD,OAAO,EAAEF,KAAK,CAACC,WAAW,CAACC;MAC7B,CAAC,CAAC;IACJ;IAEA,IAAIF,KAAK,CAACC,WAAW,CAACG,OAAO,EAAE;MAC7B,IAAI,CAAC,IAAI,CAACT,KAAK,CAACU,WAAW,EAAE;QAC3B;MACF;MACA,IAAI,CAACV,KAAK,CAACU,WAAW,CAAC;QACrBD,OAAO,EAAEJ,KAAK,CAACC,WAAW,CAACG;MAC7B,CAAC,CAAC;IACJ;EACF;EAEAE,iBAAiBA,CAAA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|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ApolloClient","InMemoryCache","ErrorCodes","BaseError","CREATE_FMS_FOLDER","CUSTODY_IN","CUSTODY_OUT","FETCH_REASONS","WORKFLOW_UPDATE","getHeaders","GraphQLClient","constructor","baseURL","_defineProperty","client","uri","cache","init","instance","getInstance","GRAPHQL_CLIENT_NOT_INITIALIZED","fetchReasonCodes","_this$client","query","variables","offset","limit","fetchPolicy","context","headers","API_CONTENT_TYPES","APPLICATION_JSON","createFmsFolder","folderName","desc","_this$client2","gRequest","name","description","mutate","mutation","input","postCustodyIn","data","dspID","_this$client3","d","dispatchId","postCustodyOut","_this$client4","postWorkflowUpdate","workflowId","_this$client5","workflow","workflowInstanceId"],"sources":["GraphQLClient.ts"],"sourcesContent":["import { ApolloClient, InMemoryCache } from '@apollo/client';\nimport ErrorCodes from '../errors/ErrorCodes';\nimport { BaseError } from '../errors/BaseError';\nimport {\n CREATE_FMS_FOLDER,\n CUSTODY_IN,\n CUSTODY_OUT,\n FETCH_REASONS,\n WORKFLOW_UPDATE,\n} from './Queries';\nimport { getHeaders } from './NetworkUtils';\n\nexport default class GraphQLClient {\n private static instance: GraphQLClient;\n private client: ApolloClient<any> | null = null;\n\n private constructor(baseURL: string) {\n this.client = new ApolloClient({\n uri: baseURL + '/graphql',\n cache: new InMemoryCache(),\n });\n }\n\n public static init(baseURL: string) {\n if (!GraphQLClient.instance) {\n GraphQLClient.instance = new GraphQLClient(baseURL);\n }\n return GraphQLClient.instance;\n }\n public static getInstance(): GraphQLClient {\n if (!GraphQLClient.instance) {\n throw new BaseError(\n ErrorCodes.GRAPHQL_CLIENT_NOT_INITIALIZED,\n 'Client is not initialized'\n );\n }\n return GraphQLClient.instance;\n }\n\n public async fetchReasonCodes() {\n return this.client?.query({\n query: FETCH_REASONS,\n variables: {\n offset: '1',\n limit: '500',\n },\n fetchPolicy: 'network-only',\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async createFmsFolder(folderName: string, desc: string) {\n const gRequest = {\n name: folderName,\n description: desc,\n };\n return this.client?.mutate({\n mutation: CREATE_FMS_FOLDER,\n variables: {\n input: gRequest,\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async postCustodyIn(data: any[], dspID: string) {\n for (const d of data) delete d.dispatchId;\n return this.client?.mutate({\n mutation: CUSTODY_IN,\n variables: {\n input: { dispatchId: dspID, data: data },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n public async postCustodyOut(data: any[], dspID: string) {\n for (const d of data) delete d.dispatchId;\n return this.client?.mutate({\n mutation: CUSTODY_OUT,\n variables: {\n input: {\n dispatchId: dspID,\n data: data,\n },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async postWorkflowUpdate(data: any, workflowId: string) {\n return this.client?.mutate({\n mutation: WORKFLOW_UPDATE,\n variables: {\n input: { workflow: data, workflowInstanceId: workflowId },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n}\nexport enum API_CONTENT_TYPES {\n APPLICATION_JSON = 'application/json',\n}\n"],"mappings":";;;AAAA,SAASA,YAAY,EAAEC,aAAa,QAAQ,gBAAgB;AAC5D,OAAOC,UAAU,MAAM,sBAAsB;AAC7C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,iBAAiB,EACjBC,UAAU,EACVC,WAAW,EACXC,aAAa,EACbC,eAAe,QACV,WAAW;AAClB,SAASC,UAAU,QAAQ,gBAAgB;AAE3C,eAAe,MAAMC,aAAa,CAAC;EAIzBC,WAAWA,CAACC,OAAe,EAAE;IAAAC,eAAA,iBAFM,IAAI;IAG7C,IAAI,CAACC,MAAM,GAAG,IAAId,YAAY,CAAC;MAC7Be,GAAG,EAAEH,OAAO,GAAG,UAAU;MACzBI,KAAK,EAAE,IAAIf,aAAa;
|
|
1
|
+
{"version":3,"names":["ApolloClient","InMemoryCache","ErrorCodes","BaseError","CREATE_FMS_FOLDER","CUSTODY_IN","CUSTODY_OUT","FETCH_REASONS","WORKFLOW_UPDATE","getHeaders","GraphQLClient","constructor","baseURL","_defineProperty","client","uri","cache","init","instance","getInstance","GRAPHQL_CLIENT_NOT_INITIALIZED","fetchReasonCodes","_this$client","query","variables","offset","limit","fetchPolicy","context","headers","API_CONTENT_TYPES","APPLICATION_JSON","createFmsFolder","folderName","desc","_this$client2","gRequest","name","description","mutate","mutation","input","postCustodyIn","data","dspID","_this$client3","d","dispatchId","postCustodyOut","_this$client4","postWorkflowUpdate","workflowId","_this$client5","workflow","workflowInstanceId"],"sources":["GraphQLClient.ts"],"sourcesContent":["import { ApolloClient, InMemoryCache } from '@apollo/client';\nimport ErrorCodes from '../errors/ErrorCodes';\nimport { BaseError } from '../errors/BaseError';\nimport {\n CREATE_FMS_FOLDER,\n CUSTODY_IN,\n CUSTODY_OUT,\n FETCH_REASONS,\n WORKFLOW_UPDATE,\n} from './Queries';\nimport { getHeaders } from './NetworkUtils';\n\nexport default class GraphQLClient {\n private static instance: GraphQLClient;\n private client: ApolloClient<any> | null = null;\n\n private constructor(baseURL: string) {\n this.client = new ApolloClient({\n uri: baseURL + '/graphql',\n cache: new InMemoryCache(),\n });\n }\n\n public static init(baseURL: string) {\n if (!GraphQLClient.instance) {\n GraphQLClient.instance = new GraphQLClient(baseURL);\n }\n return GraphQLClient.instance;\n }\n public static getInstance(): GraphQLClient {\n if (!GraphQLClient.instance) {\n throw new BaseError(\n ErrorCodes.GRAPHQL_CLIENT_NOT_INITIALIZED,\n 'Client is not initialized'\n );\n }\n return GraphQLClient.instance;\n }\n\n public async fetchReasonCodes() {\n return this.client?.query({\n query: FETCH_REASONS,\n variables: {\n offset: '1',\n limit: '500',\n },\n fetchPolicy: 'network-only',\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async createFmsFolder(folderName: string, desc: string) {\n const gRequest = {\n name: folderName,\n description: desc,\n };\n return this.client?.mutate({\n mutation: CREATE_FMS_FOLDER,\n variables: {\n input: gRequest,\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async postCustodyIn(data: any[], dspID: string) {\n for (const d of data) delete d.dispatchId;\n return this.client?.mutate({\n mutation: CUSTODY_IN,\n variables: {\n input: { dispatchId: dspID, data: data },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n public async postCustodyOut(data: any[], dspID: string) {\n for (const d of data) delete d.dispatchId;\n return this.client?.mutate({\n mutation: CUSTODY_OUT,\n variables: {\n input: {\n dispatchId: dspID,\n data: data,\n },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async postWorkflowUpdate(data: any, workflowId: string) {\n return this.client?.mutate({\n mutation: WORKFLOW_UPDATE,\n variables: {\n input: { workflow: data, workflowInstanceId: workflowId },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n}\nexport enum API_CONTENT_TYPES {\n APPLICATION_JSON = 'application/json',\n}\n"],"mappings":";;;AAAA,SAASA,YAAY,EAAEC,aAAa,QAAQ,gBAAgB;AAC5D,OAAOC,UAAU,MAAM,sBAAsB;AAC7C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,iBAAiB,EACjBC,UAAU,EACVC,WAAW,EACXC,aAAa,EACbC,eAAe,QACV,WAAW;AAClB,SAASC,UAAU,QAAQ,gBAAgB;AAE3C,eAAe,MAAMC,aAAa,CAAC;EAIzBC,WAAWA,CAACC,OAAe,EAAE;IAAAC,eAAA,iBAFM,IAAI;IAG7C,IAAI,CAACC,MAAM,GAAG,IAAId,YAAY,CAAC;MAC7Be,GAAG,EAAEH,OAAO,GAAG,UAAU;MACzBI,KAAK,EAA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AAQ,EAAEV,IAAI;UAAEW,kBAAkB,EAAEH;QAAW;MAC1D,CAAC;MACDvB,OAAO,EAAE;QACPC,OAAO,EAAE,MAAMpB,UAAU,CAACqB,iBAAiB,CAACC,gBAAgB;MAC9D;IACF,CAAC,CAAC;EACJ;AACF;AAAClB,eAAA,CAhGoBH,aAAa;AAiGlC,WAAYoB,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpClient","DispatchSdkCache","cache","getInstance","cacheKeys","KEYS","NetworkClient","constructor","baseURL","requestGet","requestPost","endpoint","requestBody","headers","sdkConfig","getObjectFromCache","SDK_CONFIG","instance","post","requestId","accessToken","tenantID","requestPut","put","JSON","stringify","id","userID"],"sources":["NetworkClient.ts"],"sourcesContent":["import HttpClient from './client';\nimport DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { DispatchSDKConfig } from '../models/sdk';\nimport type { Headers } from '../models/auth';\n\nconst cache = DispatchSdkCache.getInstance();\nconst cacheKeys = DispatchSdkCache.KEYS;\n\nexport default class NetworkClient extends HttpClient {\n constructor(baseURL: string) {\n super(baseURL);\n }\n\n public async requestGet() {}\n\n public async requestPost(\n endpoint: string,\n requestBody: any,\n headers: Headers\n ) {\n const sdkConfig = (await cache.getObjectFromCache(\n cacheKeys.SDK_CONFIG\n )) as DispatchSDKConfig;\n\n return this.instance.post(endpoint, requestBody, {\n headers: {\n 'accept': 'application/json',\n 'X-COREOS-REQUEST-ID':\n 'DispatchSdk:' + ((headers && headers.requestId) || ''),\n 'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',\n 'X-COREOS-TID': sdkConfig.tenantID ?? '',\n 'Content-Type': 'application/json',\n },\n });\n }\n\n public async requestPut(\n endpoint: string,\n requestBody: any,\n headers: Headers\n ) {\n const sdkConfig = (await cache.getObjectFromCache(\n cacheKeys.SDK_CONFIG\n )) as DispatchSDKConfig;\n\n return this.instance.put(endpoint, requestBody, {\n headers: {\n 'accept': 'application/json',\n 'X-COREOS-REQUEST-ID':\n 'DispatchSdk:' + ((headers && headers.requestId) || ''),\n 'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',\n 'X-COREOS-TID': sdkConfig.tenantID ?? '',\n 'X-COREOS-USERINFO': JSON.stringify({ id: sdkConfig.userID ?? '' }),\n 'Content-Type': 'application/json',\n },\n });\n }\n}\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,UAAU;AACjC,OAAOC,gBAAgB,MAAM,iCAAiC;AAI9D,MAAMC,KAAK,GAAGD,gBAAgB,CAACE,WAAW,
|
|
1
|
+
{"version":3,"names":["HttpClient","DispatchSdkCache","cache","getInstance","cacheKeys","KEYS","NetworkClient","constructor","baseURL","requestGet","requestPost","endpoint","requestBody","headers","sdkConfig","getObjectFromCache","SDK_CONFIG","instance","post","requestId","accessToken","tenantID","requestPut","put","JSON","stringify","id","userID"],"sources":["NetworkClient.ts"],"sourcesContent":["import HttpClient from './client';\nimport DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { DispatchSDKConfig } from '../models/sdk';\nimport type { Headers } from '../models/auth';\n\nconst cache = DispatchSdkCache.getInstance();\nconst cacheKeys = DispatchSdkCache.KEYS;\n\nexport default class NetworkClient extends HttpClient {\n constructor(baseURL: string) {\n super(baseURL);\n }\n\n public async requestGet() {}\n\n public async requestPost(\n endpoint: string,\n requestBody: any,\n headers: Headers\n ) {\n const sdkConfig = (await cache.getObjectFromCache(\n cacheKeys.SDK_CONFIG\n )) as DispatchSDKConfig;\n\n return this.instance.post(endpoint, requestBody, {\n headers: {\n 'accept': 'application/json',\n 'X-COREOS-REQUEST-ID':\n 'DispatchSdk:' + ((headers && headers.requestId) || ''),\n 'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',\n 'X-COREOS-TID': sdkConfig.tenantID ?? '',\n 'Content-Type': 'application/json',\n },\n });\n }\n\n public async requestPut(\n endpoint: string,\n requestBody: any,\n headers: Headers\n ) {\n const sdkConfig = (await cache.getObjectFromCache(\n cacheKeys.SDK_CONFIG\n )) as DispatchSDKConfig;\n\n return this.instance.put(endpoint, requestBody, {\n headers: {\n 'accept': 'application/json',\n 'X-COREOS-REQUEST-ID':\n 'DispatchSdk:' + ((headers && headers.requestId) || ''),\n 'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',\n 'X-COREOS-TID': sdkConfig.tenantID ?? '',\n 'X-COREOS-USERINFO': JSON.stringify({ id: sdkConfig.userID ?? '' }),\n 'Content-Type': 'application/json',\n },\n });\n }\n}\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,UAAU;AACjC,OAAOC,gBAAgB,MAAM,iCAAiC;AAI9D,MAAMC,KAAK,GAAGD,gBAAgB,CAACE,WAAW,CAAC,CAAC;AAC5C,MAAMC,SAAS,GAAGH,gBAAgB,CAACI,IAAI;AAEvC,eAAe,MAAMC,aAAa,SAASN,UAAU,CAAC;EACpDO,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAACA,OAAO,CAAC;EAChB;EAEA,MAAaC,UAAUA,CAAA,EAAG,CAAC;EAE3B,MAAaC,WAAWA,CACtBC,QAAgB,EAChBC,WAAgB,EAChBC,OAAgB,EAChB;IACA,MAAMC,SAAS,GAAI,MAAMZ,KAAK,CAACa,kBAAkB,CAC/CX,SAAS,CAACY,UACZ,CAAuB;IAEvB,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAACP,QAAQ,EAAEC,WAAW,EAAE;MAC/CC,OAAO,EAAE;QACP,QAAQ,EAAE,kBAAkB;QAC5B,qBAAqB,EACnB,cAAc,IAAKA,OAAO,IAAIA,OAAO,CAACM,SAAS,IAAK,EAAE,CAAC;QACzD,iBAAiB,EAAEL,SAAS,CAACM,WAAW,IAAI,EAAE;QAC9C,cAAc,EAAEN,SAAS,CAACO,QAAQ,IAAI,EAAE;QACxC,cAAc,EAAE;MAClB;IACF,CAAC,CAAC;EACJ;EAEA,MAAaC,UAAUA,CACrBX,QAAgB,EAChBC,WAAgB,EAChBC,OAAgB,EAChB;IACA,MAAMC,SAAS,GAAI,MAAMZ,KAAK,CAACa,kBAAkB,CAC/CX,SAAS,CAACY,UACZ,CAAuB;IAEvB,OAAO,IAAI,CAACC,QAAQ,CAACM,GAAG,CAACZ,QAAQ,EAAEC,WAAW,EAAE;MAC9CC,OAAO,EAAE;QACP,QAAQ,EAAE,kBAAkB;QAC5B,qBAAqB,EACnB,cAAc,IAAKA,OAAO,IAAIA,OAAO,CAACM,SAAS,IAAK,EAAE,CAAC;QACzD,iBAAiB,EAAEL,SAAS,CAACM,WAAW,IAAI,EAAE;QAC9C,cAAc,EAAEN,SAAS,CAACO,QAAQ,IAAI,EAAE;QACxC,mBAAmB,EAAEG,IAAI,CAACC,SAAS,CAAC;UAAEC,EAAE,EAAEZ,SAAS,CAACa,MAAM,IAAI;QAAG,CAAC,CAAC;QACnE,cAAc,EAAE;MAClB;IACF,CAAC,CAAC;EACJ;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DispatchSdkCache","getHeaders","contentType","cache","getInstance","sdkConfig","getObjectFromCache","KEYS","SDK_CONFIG","newHeadersObj","headers","Object","fromEntries","entries","map","_ref","k","v","toLowerCase","dspID","getKeyFromCache","DISPATCH_ID","keys","length","userID","tenantID","accessToken","JSON","stringify","id","getAddHeaders","addHeaders","forEach","h","key","value"],"sources":["NetworkUtils.ts"],"sourcesContent":["import DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { Headers } from '../components/executiontasks/httpRequest/HttpRequestETSchema';\nimport type { DispatchSDKConfig } from '../models/sdk';\n\nexport async function getHeaders(contentType: string) {\n const cache = DispatchSdkCache.getInstance();\n const sdkConfig: DispatchSDKConfig = await cache.getObjectFromCache(\n DispatchSdkCache.KEYS.SDK_CONFIG\n );\n const newHeadersObj = sdkConfig?.headers\n ? Object.fromEntries(\n Object.entries(sdkConfig.headers || {}).map(([k, v]) => [\n k.toLowerCase(),\n v,\n ])\n )\n : {};\n\n const dspID = await cache.getKeyFromCache(DispatchSdkCache.KEYS.DISPATCH_ID);\n return Object.keys(newHeadersObj).length\n ? newHeadersObj\n : {\n 'x-user-id': sdkConfig?.userID,\n 'x-coreos-tid': sdkConfig?.tenantID,\n 'x-coreos-access': sdkConfig?.accessToken,\n 'content-type': contentType,\n 'x-coreos-request-id': dspID ?? sdkConfig?.userID,\n 'x-coreos-userinfo': JSON.stringify({ id: sdkConfig?.userID }),\n };\n}\n\nexport function getAddHeaders(headers?: Headers[]) {\n if (!headers || headers.length === 0) return {};\n else {\n const addHeaders: { [k: string]: string } = {};\n headers.forEach((h) => {\n if (h.key && h.value) addHeaders[h.key] = h.value;\n });\n return addHeaders;\n }\n}\n"],"mappings":"AAAA,OAAOA,gBAAgB,MAAM,iCAAiC;AAI9D,OAAO,eAAeC,UAAUA,CAACC,WAAmB,EAAE;EACpD,MAAMC,KAAK,GAAGH,gBAAgB,CAACI,WAAW,
|
|
1
|
+
{"version":3,"names":["DispatchSdkCache","getHeaders","contentType","cache","getInstance","sdkConfig","getObjectFromCache","KEYS","SDK_CONFIG","newHeadersObj","headers","Object","fromEntries","entries","map","_ref","k","v","toLowerCase","dspID","getKeyFromCache","DISPATCH_ID","keys","length","userID","tenantID","accessToken","JSON","stringify","id","getAddHeaders","addHeaders","forEach","h","key","value"],"sources":["NetworkUtils.ts"],"sourcesContent":["import DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { Headers } from '../components/executiontasks/httpRequest/HttpRequestETSchema';\nimport type { DispatchSDKConfig } from '../models/sdk';\n\nexport async function getHeaders(contentType: string) {\n const cache = DispatchSdkCache.getInstance();\n const sdkConfig: DispatchSDKConfig = await cache.getObjectFromCache(\n DispatchSdkCache.KEYS.SDK_CONFIG\n );\n const newHeadersObj = sdkConfig?.headers\n ? Object.fromEntries(\n Object.entries(sdkConfig.headers || {}).map(([k, v]) => [\n k.toLowerCase(),\n v,\n ])\n )\n : {};\n\n const dspID = await cache.getKeyFromCache(DispatchSdkCache.KEYS.DISPATCH_ID);\n return Object.keys(newHeadersObj).length\n ? newHeadersObj\n : {\n 'x-user-id': sdkConfig?.userID,\n 'x-coreos-tid': sdkConfig?.tenantID,\n 'x-coreos-access': sdkConfig?.accessToken,\n 'content-type': contentType,\n 'x-coreos-request-id': dspID ?? sdkConfig?.userID,\n 'x-coreos-userinfo': JSON.stringify({ id: sdkConfig?.userID }),\n };\n}\n\nexport function getAddHeaders(headers?: Headers[]) {\n if (!headers || headers.length === 0) return {};\n else {\n const addHeaders: { [k: string]: string } = {};\n headers.forEach((h) => {\n if (h.key && h.value) addHeaders[h.key] = h.value;\n });\n return addHeaders;\n }\n}\n"],"mappings":"AAAA,OAAOA,gBAAgB,MAAM,iCAAiC;AAI9D,OAAO,eAAeC,UAAUA,CAACC,WAAmB,EAAE;EACpD,MAAMC,KAAK,GAAGH,gBAAgB,CAACI,WAAW,CAAC,CAAC;EAC5C,MAAMC,SAA4B,GAAG,MAAMF,KAAK,CAACG,kBAAkB,CACjEN,gBAAgB,CAACO,IAAI,CAACC,UACxB,CAAC;EACD,MAAMC,aAAa,GAAGJ,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEK,OAAO,GACpCC,MAAM,CAACC,WAAW,CAChBD,MAAM,CAACE,OAAO,CAACR,SAAS,CAACK,OAAO,IAAI,CAAC,CAAC,CAAC,CAACI,GAAG,CAACC,IAAA;IAAA,IAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,GAAAF,IAAA;IAAA,OAAK,CACtDC,CAAC,CAACE,WAAW,CAAC,CAAC,EACfD,CAAC,CACF;EAAA,EACH,CAAC,GACD,CAAC,CAAC;EAEN,MAAME,KAAK,GAAG,MAAMhB,KAAK,CAACiB,eAAe,CAACpB,gBAAgB,CAACO,IAAI,CAACc,WAAW,CAAC;EAC5E,OAAOV,MAAM,CAACW,IAAI,CAACb,aAAa,CAAC,CAACc,MAAM,GACpCd,aAAa,GACb;IACE,WAAW,EAAEJ,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEmB,MAAM;IAC9B,cAAc,EAAEnB,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEoB,QAAQ;IACnC,iBAAiB,EAAEpB,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEqB,WAAW;IACzC,cAAc,EAAExB,WAAW;IAC3B,qBAAqB,EAAEiB,KAAK,KAAId,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEmB,MAAM;IACjD,mBAAmB,EAAEG,IAAI,CAACC,SAAS,CAAC;MAAEC,EAAE,EAAExB,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEmB;IAAO,CAAC;EAC/D,CAAC;AACP;AAEA,OAAO,SAASM,aAAaA,CAACpB,OAAmB,EAAE;EACjD,IAAI,CAACA,OAAO,IAAIA,OAAO,CAACa,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAC3C;IACH,MAAMQ,UAAmC,GAAG,CAAC,CAAC;IAC9CrB,OAAO,CAACsB,OAAO,CAAEC,CAAC,IAAK;MACrB,IAAIA,CAAC,CAACC,GAAG,IAAID,CAAC,CAACE,KAAK,EAAEJ,UAAU,CAACE,CAAC,CAACC,GAAG,CAAC,GAAGD,CAAC,CAACE,KAAK;IACnD,CAAC,CAAC;IACF,OAAOJ,UAAU;EACnB;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["axios","StatusCode","HttpClient","constructor","baseURL","_defineProperty","instance","interceptors","response","use","_handleResponse","_handleError","error","status","InternalServerError","Forbidden","Unauthorized","TooManyRequests","request","console","log","message","Promise","reject","create","timeout","_initializeResponseInterceptor"],"sources":["client.ts"],"sourcesContent":["import axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport StatusCode from '../constants/statuscode';\n// import { handleAccessTokenExpiry } from './utils/helper';\n\nexport default abstract class HttpClient {\n protected readonly instance: AxiosInstance;\n\n protected constructor(baseURL: string) {\n this.instance = axios.create({\n baseURL,\n timeout: 15000, // timeout of 15s\n });\n\n this._initializeResponseInterceptor();\n }\n\n private _initializeResponseInterceptor = () => {\n this.instance.interceptors.response.use(\n this._handleResponse,\n this._handleError\n );\n };\n\n protected _handleResponse = (response: AxiosResponse) => {\n return response;\n };\n\n protected _handleError = (error: any) => {\n if (error.response) {\n // Request made and server responded\n const { status } = error.response;\n switch (status) {\n case StatusCode.InternalServerError: {\n // Handle InternalServerError\n break;\n }\n case StatusCode.Forbidden: {\n // Handle Forbidden\n break;\n }\n case StatusCode.Unauthorized: {\n // Handle Unauthorized\n //LoginHelper.handleAccessTokenExpiry(); //commented out as this was causing cycles\n //cycle: ../src/utils/loginHelper.ts -> ../src/resources/Login.ts -> ../src/network/client.ts -> ../src/utils/loginHelper.ts\n break;\n }\n case StatusCode.TooManyRequests: {\n // Handle TooManyRequests\n break;\n }\n }\n } else if (error.request) {\n // The request was made but no response was received\n // Network error should be received here\n } else {\n // Something happened in setting up the request that triggered an Error\n console.log('Error else', error.message);\n }\n return Promise.reject(error);\n };\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAwC,OAAO;AAC3D,OAAOC,UAAU,MAAM,yBAAyB;AAChD;;AAEA,eAAe,MAAeC,UAAU,CAAC;EAG7BC,WAAWA,CAACC,OAAe,EAAE;IAAAC,eAAA;IAAAA,eAAA,yCASE,MAAM;MAC7C,IAAI,CAACC,QAAQ,CAACC,YAAY,CAACC,QAAQ,CAACC,GAAG,CACrC,IAAI,CAACC,eAAe,EACpB,IAAI,CAACC,
|
|
1
|
+
{"version":3,"names":["axios","StatusCode","HttpClient","constructor","baseURL","_defineProperty","instance","interceptors","response","use","_handleResponse","_handleError","error","status","InternalServerError","Forbidden","Unauthorized","TooManyRequests","request","console","log","message","Promise","reject","create","timeout","_initializeResponseInterceptor"],"sources":["client.ts"],"sourcesContent":["import axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport StatusCode from '../constants/statuscode';\n// import { handleAccessTokenExpiry } from './utils/helper';\n\nexport default abstract class HttpClient {\n protected readonly instance: AxiosInstance;\n\n protected constructor(baseURL: string) {\n this.instance = axios.create({\n baseURL,\n timeout: 15000, // timeout of 15s\n });\n\n this._initializeResponseInterceptor();\n }\n\n private _initializeResponseInterceptor = () => {\n this.instance.interceptors.response.use(\n this._handleResponse,\n this._handleError\n );\n };\n\n protected _handleResponse = (response: AxiosResponse) => {\n return response;\n };\n\n protected _handleError = (error: any) => {\n if (error.response) {\n // Request made and server responded\n const { status } = error.response;\n switch (status) {\n case StatusCode.InternalServerError: {\n // Handle InternalServerError\n break;\n }\n case StatusCode.Forbidden: {\n // Handle Forbidden\n break;\n }\n case StatusCode.Unauthorized: {\n // Handle Unauthorized\n //LoginHelper.handleAccessTokenExpiry(); //commented out as this was causing cycles\n //cycle: ../src/utils/loginHelper.ts -> ../src/resources/Login.ts -> ../src/network/client.ts -> ../src/utils/loginHelper.ts\n break;\n }\n case StatusCode.TooManyRequests: {\n // Handle TooManyRequests\n break;\n }\n }\n } else if (error.request) {\n // The request was made but no response was received\n // Network error should be received here\n } else {\n // Something happened in setting up the request that triggered an Error\n console.log('Error else', error.message);\n }\n return Promise.reject(error);\n };\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAwC,OAAO;AAC3D,OAAOC,UAAU,MAAM,yBAAyB;AAChD;;AAEA,eAAe,MAAeC,UAAU,CAAC;EAG7BC,WAAWA,CAACC,OAAe,EAAE;IAAAC,eAAA;IAAAA,eAAA,yCASE,MAAM;MAC7C,IAAI,CAACC,QAAQ,CAACC,YAAY,CAACC,QAAQ,CAACC,GAAG,CACrC,IAAI,CAACC,eAAe,EACpB,IAAI,CAACC,YACP,CAAC;IACH,CAAC;IAAAN,eAAA,0BAE4BG,QAAuB,IAAK;MACvD,OAAOA,QAAQ;IACjB,CAAC;IAAAH,eAAA,uBAEyBO,KAAU,IAAK;MACvC,IAAIA,KAAK,CAACJ,QAAQ,EAAE;QAClB;QACA,MAAM;UAAEK;QAAO,CAAC,GAAGD,KAAK,CAACJ,QAAQ;QACjC,QAAQK,MAAM;UACZ,KAAKZ,UAAU,CAACa,mBAAmB;YAAE;cACnC;cACA;YACF;UACA,KAAKb,UAAU,CAACc,SAAS;YAAE;cACzB;cACA;YACF;UACA,KAAKd,UAAU,CAACe,YAAY;YAAE;cAC5B;cACA;cACA;cACA;YACF;UACA,KAAKf,UAAU,CAACgB,eAAe;YAAE;cAC/B;cACA;YACF;QACF;MACF,CAAC,MAAM,IAAIL,KAAK,CAACM,OAAO,EAAE;QACxB;QACA;MAAA,CACD,MAAM;QACL;QACAC,OAAO,CAACC,GAAG,CAAC,YAAY,EAAER,KAAK,CAACS,OAAO,CAAC;MAC1C;MACA,OAAOC,OAAO,CAACC,MAAM,CAACX,KAAK,CAAC;IAC9B,CAAC;IAnDC,IAAI,CAACN,QAAQ,GAAGN,KAAK,CAACwB,MAAM,CAAC;MAC3BpB,OAAO;MACPqB,OAAO,EAAE,KAAK,CAAE;IAClB,CAAC,CAAC;;IAEF,IAAI,CAACC,8BAA8B,CAAC,CAAC;EACvC;AA8CF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpClient","Login","constructor","_defineProperty","payload","instance","post","accessToken","refreshTokenPayload","Auth"],"sources":["Login.ts"],"sourcesContent":["import HttpClient from '../network/client';\nimport type {\n AccessTokenPayload,\n LoginPayload,\n RefreshTokenPayload,\n} from '../models/auth';\n\nclass Login extends HttpClient {\n public constructor() {\n super('https://delhivery.dev.fxtrt.io/core/api/v1/aaa/');\n }\n public loginMobilePassword = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-password', payload);\n };\n public loginMobileOtp = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-otp', payload);\n };\n public loginMpin = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mpin', payload);\n };\n public loginUserName = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/username-password', payload);\n };\n public loginCredential = (payload: LoginPayload) => {\n return this.instance.post('/auth/client-login', payload);\n };\n public validateToken = (accessToken: AccessTokenPayload) => {\n return this.instance.post('/auth/validate', accessToken);\n };\n public refreshToken = (refreshTokenPayload: RefreshTokenPayload) => {\n return this.instance.post('/auth/validate', refreshTokenPayload);\n };\n}\n\nconst Auth = new Login();\nexport default Auth;\n"],"mappings":";;;AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAO1C,MAAMC,KAAK,SAASD,UAAU,CAAC;EACtBE,WAAWA,CAAA,EAAG;IACnB,KAAK,CAAC,iDAAiD,CAAC;IAACC,eAAA,8BAE7BC,OAAqB,IAAK;MACtD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,6BAA6B,EAAEF,OAAO,CAAC;IACnE,CAAC;IAAAD,eAAA,yBACwBC,OAAqB,IAAK;MACjD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,wBAAwB,EAAEF,OAAO,CAAC;IAC9D,CAAC;IAAAD,eAAA,oBACmBC,OAAqB,IAAK;MAC5C,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,qBAAqB,EAAEF,OAAO,CAAC;IAC3D,CAAC;IAAAD,eAAA,wBACuBC,OAAqB,IAAK;MAChD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,+BAA+B,EAAEF,OAAO,CAAC;IACrE,CAAC;IAAAD,eAAA,0BACyBC,OAAqB,IAAK;MAClD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,oBAAoB,EAAEF,OAAO,CAAC;IAC1D,CAAC;IAAAD,eAAA,wBACuBI,WAA+B,IAAK;MAC1D,OAAO,IAAI,CAACF,QAAQ,CAACC,IAAI,CAAC,gBAAgB,EAAEC,WAAW,CAAC;IAC1D,CAAC;IAAAJ,eAAA,uBACsBK,mBAAwC,IAAK;MAClE,OAAO,IAAI,CAACH,QAAQ,CAACC,IAAI,CAAC,gBAAgB,EAAEE,mBAAmB,CAAC;IAClE,CAAC;EArBD;AAsBF;AAEA,MAAMC,IAAI,GAAG,IAAIR,KAAK,
|
|
1
|
+
{"version":3,"names":["HttpClient","Login","constructor","_defineProperty","payload","instance","post","accessToken","refreshTokenPayload","Auth"],"sources":["Login.ts"],"sourcesContent":["import HttpClient from '../network/client';\nimport type {\n AccessTokenPayload,\n LoginPayload,\n RefreshTokenPayload,\n} from '../models/auth';\n\nclass Login extends HttpClient {\n public constructor() {\n super('https://delhivery.dev.fxtrt.io/core/api/v1/aaa/');\n }\n public loginMobilePassword = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-password', payload);\n };\n public loginMobileOtp = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-otp', payload);\n };\n public loginMpin = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mpin', payload);\n };\n public loginUserName = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/username-password', payload);\n };\n public loginCredential = (payload: LoginPayload) => {\n return this.instance.post('/auth/client-login', payload);\n };\n public validateToken = (accessToken: AccessTokenPayload) => {\n return this.instance.post('/auth/validate', accessToken);\n };\n public refreshToken = (refreshTokenPayload: RefreshTokenPayload) => {\n return this.instance.post('/auth/validate', refreshTokenPayload);\n };\n}\n\nconst Auth = new Login();\nexport default Auth;\n"],"mappings":";;;AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAO1C,MAAMC,KAAK,SAASD,UAAU,CAAC;EACtBE,WAAWA,CAAA,EAAG;IACnB,KAAK,CAAC,iDAAiD,CAAC;IAACC,eAAA,8BAE7BC,OAAqB,IAAK;MACtD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,6BAA6B,EAAEF,OAAO,CAAC;IACnE,CAAC;IAAAD,eAAA,yBACwBC,OAAqB,IAAK;MACjD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,wBAAwB,EAAEF,OAAO,CAAC;IAC9D,CAAC;IAAAD,eAAA,oBACmBC,OAAqB,IAAK;MAC5C,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,qBAAqB,EAAEF,OAAO,CAAC;IAC3D,CAAC;IAAAD,eAAA,wBACuBC,OAAqB,IAAK;MAChD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,+BAA+B,EAAEF,OAAO,CAAC;IACrE,CAAC;IAAAD,eAAA,0BACyBC,OAAqB,IAAK;MAClD,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,oBAAoB,EAAEF,OAAO,CAAC;IAC1D,CAAC;IAAAD,eAAA,wBACuBI,WAA+B,IAAK;MAC1D,OAAO,IAAI,CAACF,QAAQ,CAACC,IAAI,CAAC,gBAAgB,EAAEC,WAAW,CAAC;IAC1D,CAAC;IAAAJ,eAAA,uBACsBK,mBAAwC,IAAK;MAClE,OAAO,IAAI,CAACH,QAAQ,CAACC,IAAI,CAAC,gBAAgB,EAAEE,mBAAmB,CAAC;IAClE,CAAC;EArBD;AAsBF;AAEA,MAAMC,IAAI,GAAG,IAAIR,KAAK,CAAC,CAAC;AACxB,eAAeQ,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpClient","Network","constructor","_defineProperty","instance","head","network"],"sources":["network.ts"],"sourcesContent":["import HttpClient from '../network/client';\n\nclass Network extends HttpClient {\n public constructor() {\n super('https://google.com');\n }\n public heartBeat = () => {\n return this.instance.head('/');\n };\n}\n\nconst network = new Network();\nexport default network;\n"],"mappings":";;;AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAE1C,MAAMC,OAAO,SAASD,UAAU,CAAC;EACxBE,WAAWA,CAAA,EAAG;IACnB,KAAK,CAAC,oBAAoB,CAAC;IAACC,eAAA,oBAEX,MAAM;MACvB,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,GAAG,CAAC;IAChC,CAAC;EAHD;AAIF;AAEA,MAAMC,OAAO,GAAG,IAAIL,OAAO,
|
|
1
|
+
{"version":3,"names":["HttpClient","Network","constructor","_defineProperty","instance","head","network"],"sources":["network.ts"],"sourcesContent":["import HttpClient from '../network/client';\n\nclass Network extends HttpClient {\n public constructor() {\n super('https://google.com');\n }\n public heartBeat = () => {\n return this.instance.head('/');\n };\n}\n\nconst network = new Network();\nexport default network;\n"],"mappings":";;;AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAE1C,MAAMC,OAAO,SAASD,UAAU,CAAC;EACxBE,WAAWA,CAAA,EAAG;IACnB,KAAK,CAAC,oBAAoB,CAAC;IAACC,eAAA,oBAEX,MAAM;MACvB,OAAO,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,GAAG,CAAC;IAChC,CAAC;EAHD;AAIF;AAEA,MAAMC,OAAO,GAAG,IAAIL,OAAO,CAAC,CAAC;AAC7B,eAAeK,OAAO"}
|
|
@@ -5,14 +5,16 @@ export let ColorTheme = /*#__PURE__*/function (ColorTheme) {
|
|
|
5
5
|
}({});
|
|
6
6
|
const tintColor = '#4e9bde';
|
|
7
7
|
const darkTintColor = '#1a74b3';
|
|
8
|
-
const primaryButton = '#
|
|
8
|
+
const primaryButton = '#5B80F7';
|
|
9
9
|
const exitButton = '#DC2626';
|
|
10
|
+
const defaultColor = '#3D445C';
|
|
10
11
|
export default {
|
|
11
12
|
[ColorTheme.LIGHT]: {
|
|
12
13
|
tintColor,
|
|
13
14
|
darkTintColor,
|
|
14
15
|
primaryButton,
|
|
15
|
-
exitButton
|
|
16
|
+
exitButton,
|
|
17
|
+
defaultColor
|
|
16
18
|
},
|
|
17
19
|
[ColorTheme.DARK]: {
|
|
18
20
|
tintColor: darkTintColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ColorTheme","tintColor","darkTintColor","primaryButton","exitButton","LIGHT","DARK"],"sources":["SdkColors.ts"],"sourcesContent":["export enum ColorTheme {\n LIGHT = 'light',\n DARK = 'dark',\n}\n\nconst tintColor = '#4e9bde';\nconst darkTintColor = '#1a74b3';\nconst primaryButton = '#
|
|
1
|
+
{"version":3,"names":["ColorTheme","tintColor","darkTintColor","primaryButton","exitButton","defaultColor","LIGHT","DARK"],"sources":["SdkColors.ts"],"sourcesContent":["export enum ColorTheme {\n LIGHT = 'light',\n DARK = 'dark',\n}\n\nconst tintColor = '#4e9bde';\nconst darkTintColor = '#1a74b3';\nconst primaryButton = '#5B80F7';\nconst exitButton = '#DC2626';\nconst defaultColor = '#3D445C';\n\nexport default {\n [ColorTheme.LIGHT]: {\n tintColor,\n darkTintColor,\n primaryButton,\n exitButton,\n defaultColor,\n },\n [ColorTheme.DARK]: {\n tintColor: darkTintColor,\n darkTintColor: tintColor,\n },\n};\n"],"mappings":"AAAA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAKtB,MAAMC,SAAS,GAAG,SAAS;AAC3B,MAAMC,aAAa,GAAG,SAAS;AAC/B,MAAMC,aAAa,GAAG,SAAS;AAC/B,MAAMC,UAAU,GAAG,SAAS;AAC5B,MAAMC,YAAY,GAAG,SAAS;AAE9B,eAAe;EACb,CAACL,UAAU,CAACM,KAAK,GAAG;IAClBL,SAAS;IACTC,aAAa;IACbC,aAAa;IACbC,UAAU;IACVC;EACF,CAAC;EACD,CAACL,UAAU,CAACO,IAAI,GAAG;IACjBN,SAAS,EAAEC,aAAa;IACxBA,aAAa,EAAED;EACjB;AACF,CAAC"}
|
|
@@ -66,25 +66,35 @@ export const CommonStyles = StyleSheet.create({
|
|
|
66
66
|
},
|
|
67
67
|
nextButtonLabel: {
|
|
68
68
|
color: '#ffffff',
|
|
69
|
-
fontFamily:
|
|
69
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
70
70
|
fontSize: 14,
|
|
71
71
|
lineHeight: 20,
|
|
72
|
-
letterSpacing: 1.56,
|
|
73
72
|
textAlign: 'center',
|
|
74
73
|
fontStyle: 'normal',
|
|
75
|
-
fontWeight: '
|
|
74
|
+
fontWeight: '500'
|
|
76
75
|
},
|
|
77
76
|
cancelButton: {
|
|
78
77
|
borderWidth: 1,
|
|
79
78
|
borderColor: SdkColors[ColorTheme.LIGHT].primaryButton
|
|
80
79
|
},
|
|
81
80
|
cancelButtonLabel: {
|
|
82
|
-
color: SdkColors[ColorTheme.LIGHT].
|
|
83
|
-
fontFamily: Fonts.
|
|
81
|
+
color: SdkColors[ColorTheme.LIGHT].defaultColor,
|
|
82
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
84
83
|
fontSize: 14,
|
|
85
|
-
fontWeight: '
|
|
84
|
+
fontWeight: '500',
|
|
85
|
+
lineHeight: 20,
|
|
86
|
+
textAlign: 'center',
|
|
87
|
+
fontStyle: 'normal'
|
|
88
|
+
},
|
|
89
|
+
mainExitButton: {
|
|
90
|
+
backgroundColor: SdkColors[ColorTheme.LIGHT].exitButton
|
|
91
|
+
},
|
|
92
|
+
mainExitButtonLabel: {
|
|
93
|
+
color: '#ffffff',
|
|
94
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
95
|
+
fontSize: 14,
|
|
96
|
+
fontWeight: '500',
|
|
86
97
|
lineHeight: 20,
|
|
87
|
-
letterSpacing: 1.56,
|
|
88
98
|
textAlign: 'center',
|
|
89
99
|
fontStyle: 'normal'
|
|
90
100
|
},
|
|
@@ -94,11 +104,10 @@ export const CommonStyles = StyleSheet.create({
|
|
|
94
104
|
},
|
|
95
105
|
exitButtonLabel: {
|
|
96
106
|
color: SdkColors[ColorTheme.LIGHT].exitButton,
|
|
97
|
-
fontFamily: Fonts.
|
|
107
|
+
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
98
108
|
fontSize: 14,
|
|
99
|
-
fontWeight: '
|
|
109
|
+
fontWeight: '500',
|
|
100
110
|
lineHeight: 20,
|
|
101
|
-
letterSpacing: 1.56,
|
|
102
111
|
textAlign: 'center',
|
|
103
112
|
fontStyle: 'normal'
|
|
104
113
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","SdkColors","ColorTheme","Fonts","deliverETStyles","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","LIGHT","primaryButton","nextButtonLabel","fontFamily","
|
|
1
|
+
{"version":3,"names":["StyleSheet","SdkColors","ColorTheme","Fonts","deliverETStyles","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","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: '#000000',\n },\n});\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,OAAOC,SAAS,IAAIC,UAAU,QAAQ,cAAc;AAEpD,WAAYC,KAAK,0BAALA,KAAK;EAALA,KAAK;EAALA,KA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