@os1-platform/dispatch-mobile 1.0.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +310 -74
- package/android/.gradle/7.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0.2/gc.properties +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +0 -1
- package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
- package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
- package/lib/commonjs/@types/assets/index.d.js +2 -0
- package/lib/commonjs/@types/assets/index.d.js.map +1 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +50 -43
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +10 -48
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +66 -18
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
- package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +212 -95
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -25
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +65 -29
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +74 -30
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +139 -50
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -17
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +5 -14
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -15
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +11 -36
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +73 -48
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +76 -29
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +138 -32
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +741 -0
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +43 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/commonjs/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -29
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +109 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/{scanner/returns/ReasonDropDown.js → scan/sub_components/ERDropDown.js} +72 -55
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +762 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +333 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +63 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/commonjs/components/utils/index.js +14 -0
- package/lib/commonjs/components/utils/index.js.map +1 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +88 -0
- package/lib/commonjs/components/widgets/Card.js.map +1 -0
- package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
- package/lib/commonjs/components/widgets/IconButton.js +34 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
- package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +74 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js +48 -40
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +0 -2
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js +17 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +7 -3
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js +3 -5
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -8
- package/lib/commonjs/errors/BaseError.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js +7 -6
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +23 -0
- package/lib/commonjs/events/EventDispatcher.js.map +1 -0
- package/lib/commonjs/events/EventListener.js +20 -0
- package/lib/commonjs/events/EventListener.js.map +1 -0
- package/lib/commonjs/events/constants.js +15 -0
- package/lib/commonjs/events/constants.js.map +1 -0
- package/lib/commonjs/events/index.js +11 -0
- package/lib/commonjs/events/index.js.map +1 -0
- package/lib/commonjs/events/interface.js +2 -0
- package/lib/commonjs/events/interface.js.map +1 -0
- package/lib/commonjs/index.js +40 -35
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +328 -272
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +23 -0
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/commonjs/manager/location/LocationManager.js +3 -20
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +23 -37
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +26 -46
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +48 -9
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js +17 -0
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/database.js +28 -12
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -36
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +8 -26
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +19 -58
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +414 -29
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +208 -103
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +157 -36
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js +4 -5
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/ReasonCodes.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js +4 -5
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +7 -35
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +2 -13
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +10 -8
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js +0 -2
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +6 -21
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/res/strings.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -15
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +3 -8
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +10 -8
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +58 -25
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +67 -27
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +15 -16
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -23
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +30 -17
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +17 -13
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +17 -20
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +43 -31
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +10 -19
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +105 -17
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +16 -14
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +14 -11
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +38 -17
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +28 -29
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +41 -19
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +121 -0
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +64 -38
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +55 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +24 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +129 -0
- package/lib/commonjs/utils/ApiUtils.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +111 -41
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +10 -29
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +3 -19
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -31
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +61 -43
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +59 -11
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -21
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +0 -5
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +53 -0
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
- package/lib/commonjs/utils/hooks/useTimer.js +44 -0
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +6 -18
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +87 -31
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +8 -11
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/@types/assets/index.d.js +2 -0
- package/lib/module/@types/assets/index.d.js.map +1 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js +50 -32
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -5
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +68 -10
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
- package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +214 -86
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -15
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +68 -15
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +75 -20
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +142 -37
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -6
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +6 -4
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -6
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +11 -11
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +77 -18
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +64 -11
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +72 -11
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +141 -25
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +732 -0
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js +17 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scan/constants.js +7 -0
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/module/components/executiontasks/scan/interfaces.js +33 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/module/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -16
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +101 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +107 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +726 -0
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +324 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +53 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +5 -9
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/module/components/utils/index.js +8 -0
- package/lib/module/components/utils/index.js.map +1 -0
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +80 -0
- package/lib/module/components/widgets/Card.js.map +1 -0
- package/lib/module/components/widgets/GoBackModal.js +40 -0
- package/lib/module/components/widgets/GoBackModal.js.map +1 -0
- package/lib/module/components/widgets/IconButton.js +26 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -0
- package/lib/module/components/widgets/ModalWidget.js +92 -0
- package/lib/module/components/widgets/ModalWidget.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +0 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +66 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -0
- package/lib/module/components/widgets/SnackBarCustom.js +46 -20
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +84 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/module/components/widgets/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -1
- package/lib/module/config/DispatchSDKConfig.js +3 -4
- package/lib/module/config/DispatchSDKConfig.js.map +1 -1
- package/lib/module/constants/apiConstants.js +9 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +4 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/constants/statuscode.js +3 -5
- package/lib/module/constants/statuscode.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -6
- package/lib/module/errors/BaseError.js.map +1 -1
- package/lib/module/errors/ErrorCodes.js +5 -5
- package/lib/module/errors/ErrorCodes.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +16 -0
- package/lib/module/events/EventDispatcher.js.map +1 -0
- package/lib/module/events/EventListener.js +13 -0
- package/lib/module/events/EventListener.js.map +1 -0
- package/lib/module/events/constants.js +8 -0
- package/lib/module/events/constants.js.map +1 -0
- package/lib/module/events/index.js +3 -0
- package/lib/module/events/index.js.map +1 -0
- package/lib/module/events/interface.js +2 -0
- package/lib/module/events/interface.js.map +1 -0
- package/lib/module/index.js +9 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +334 -247
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +22 -0
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/module/manager/location/LocationManager.js +3 -14
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +23 -15
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +19 -0
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +26 -26
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +41 -7
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/constants.js +6 -0
- package/lib/module/manager/syncmanager/constants.js.map +1 -0
- package/lib/module/manager/syncmanager/database.js +27 -3
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -24
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +8 -20
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +19 -41
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +415 -22
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +209 -82
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +152 -24
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js +3 -4
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/ReasonCodes.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +22 -29
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js +3 -4
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +3 -18
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js +6 -26
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +2 -6
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +10 -3
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +7 -17
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/res/strings.js.map +1 -1
- package/lib/module/resources/Login.js +4 -13
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js +3 -6
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +9 -7
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +57 -14
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +68 -15
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +17 -6
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -8
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +32 -7
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +16 -6
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +19 -9
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +45 -19
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +3 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +104 -9
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +15 -6
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +15 -5
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +37 -9
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +30 -17
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +40 -12
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +111 -0
- package/lib/module/ui/screens/ScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +64 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +45 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +23 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +116 -0
- package/lib/module/utils/ApiUtils.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +110 -31
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +9 -21
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -15
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +2 -15
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +62 -14
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +63 -3
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +86 -7
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +0 -3
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useModal.js +43 -0
- package/lib/module/utils/hooks/useModal.js.map +1 -0
- package/lib/module/utils/hooks/useTimer.js +37 -0
- package/lib/module/utils/hooks/useTimer.js.map +1 -0
- package/lib/module/utils/loginHelper.js +6 -16
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +86 -29
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +8 -6
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -7
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
- package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +8 -7
- package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +3 -3
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
- package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +17 -11
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +86 -0
- package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +94 -0
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/{scanner → scan/sub_components}/CScanner.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +37 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
- package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
- package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +6 -6
- package/lib/typescript/components/utils/index.d.ts +2 -0
- package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/Card.d.ts +17 -0
- package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
- package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
- package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +10 -5
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +7 -0
- package/lib/typescript/constants/constants.d.ts +4 -2
- package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
- package/lib/typescript/events/EventDispatcher.d.ts +3 -0
- package/lib/typescript/events/EventListener.d.ts +5 -0
- package/lib/typescript/events/constants.d.ts +7 -0
- package/lib/typescript/events/index.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -0
- package/lib/typescript/index.d.ts +12 -9
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +38 -17
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
- package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +1 -0
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +3 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +80 -4
- package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +15 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +4 -2
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +6 -3
- package/lib/typescript/models/DispatchModels.d.ts +59 -5
- package/lib/typescript/models/ReasonCodes.d.ts +5 -0
- package/lib/typescript/models/auth.d.ts +1 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +44 -20
- package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
- package/lib/typescript/models/sdk.d.ts +12 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +2 -2
- package/lib/typescript/network/NetworkUtils.d.ts +1 -5
- package/lib/typescript/styles/SdkColors.d.ts +2 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +50 -5
- package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -2
- package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +14 -0
- package/lib/typescript/utils/ApiUtils.d.ts +61 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +10 -4
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -3
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
- package/lib/typescript/utils/storage.d.ts +32 -0
- package/package.json +26 -26
- package/tsconfig.json +9 -9
- package/file_unzip.js +0 -5
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -28
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -32
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -193
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -20
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -49
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -107
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -317
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -276
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -118
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -158
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -9
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -38
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -86
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -287
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -80
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -253
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -93
- package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
- package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
- package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
- package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
- package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
- package/mobile-execution-lib-0.6.4.tgz +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
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); }
|
|
3
4
|
import { ApolloClient, InMemoryCache } from '@apollo/client';
|
|
4
5
|
import ErrorCodes from '../errors/ErrorCodes';
|
|
5
6
|
import { BaseError } from '../errors/BaseError';
|
|
@@ -8,32 +9,25 @@ import { getHeaders } from './NetworkUtils';
|
|
|
8
9
|
export default class GraphQLClient {
|
|
9
10
|
constructor(baseURL) {
|
|
10
11
|
_defineProperty(this, "client", null);
|
|
11
|
-
|
|
12
12
|
this.client = new ApolloClient({
|
|
13
13
|
uri: baseURL + '/graphql',
|
|
14
14
|
cache: new InMemoryCache()
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
static init(baseURL) {
|
|
19
18
|
if (!GraphQLClient.instance) {
|
|
20
19
|
GraphQLClient.instance = new GraphQLClient(baseURL);
|
|
21
20
|
}
|
|
22
|
-
|
|
23
21
|
return GraphQLClient.instance;
|
|
24
22
|
}
|
|
25
|
-
|
|
26
23
|
static getInstance() {
|
|
27
24
|
if (!GraphQLClient.instance) {
|
|
28
25
|
throw new BaseError(ErrorCodes.GRAPHQL_CLIENT_NOT_INITIALIZED, 'Client is not initialized');
|
|
29
26
|
}
|
|
30
|
-
|
|
31
27
|
return GraphQLClient.instance;
|
|
32
28
|
}
|
|
33
|
-
|
|
34
29
|
async fetchReasonCodes() {
|
|
35
30
|
var _this$client;
|
|
36
|
-
|
|
37
31
|
return (_this$client = this.client) === null || _this$client === void 0 ? void 0 : _this$client.query({
|
|
38
32
|
query: FETCH_REASONS,
|
|
39
33
|
variables: {
|
|
@@ -46,10 +40,8 @@ export default class GraphQLClient {
|
|
|
46
40
|
}
|
|
47
41
|
});
|
|
48
42
|
}
|
|
49
|
-
|
|
50
43
|
async createFmsFolder(folderName, desc) {
|
|
51
44
|
var _this$client2;
|
|
52
|
-
|
|
53
45
|
const gRequest = {
|
|
54
46
|
name: folderName,
|
|
55
47
|
description: desc
|
|
@@ -64,12 +56,9 @@ export default class GraphQLClient {
|
|
|
64
56
|
}
|
|
65
57
|
});
|
|
66
58
|
}
|
|
67
|
-
|
|
68
59
|
async postCustodyIn(data, dspID) {
|
|
69
60
|
var _this$client3;
|
|
70
|
-
|
|
71
61
|
for (const d of data) delete d.dispatchId;
|
|
72
|
-
|
|
73
62
|
return (_this$client3 = this.client) === null || _this$client3 === void 0 ? void 0 : _this$client3.mutate({
|
|
74
63
|
mutation: CUSTODY_IN,
|
|
75
64
|
variables: {
|
|
@@ -83,12 +72,9 @@ export default class GraphQLClient {
|
|
|
83
72
|
}
|
|
84
73
|
});
|
|
85
74
|
}
|
|
86
|
-
|
|
87
75
|
async postCustodyOut(data, dspID) {
|
|
88
76
|
var _this$client4;
|
|
89
|
-
|
|
90
77
|
for (const d of data) delete d.dispatchId;
|
|
91
|
-
|
|
92
78
|
return (_this$client4 = this.client) === null || _this$client4 === void 0 ? void 0 : _this$client4.mutate({
|
|
93
79
|
mutation: CUSTODY_OUT,
|
|
94
80
|
variables: {
|
|
@@ -102,10 +88,8 @@ export default class GraphQLClient {
|
|
|
102
88
|
}
|
|
103
89
|
});
|
|
104
90
|
}
|
|
105
|
-
|
|
106
91
|
async postWorkflowUpdate(data, workflowId) {
|
|
107
92
|
var _this$client5;
|
|
108
|
-
|
|
109
93
|
return (_this$client5 = this.client) === null || _this$client5 === void 0 ? void 0 : _this$client5.mutate({
|
|
110
94
|
mutation: WORKFLOW_UPDATE,
|
|
111
95
|
variables: {
|
|
@@ -119,14 +103,10 @@ export default class GraphQLClient {
|
|
|
119
103
|
}
|
|
120
104
|
});
|
|
121
105
|
}
|
|
122
|
-
|
|
123
106
|
}
|
|
124
|
-
|
|
125
107
|
_defineProperty(GraphQLClient, "instance", void 0);
|
|
126
|
-
|
|
127
|
-
export let API_CONTENT_TYPES;
|
|
128
|
-
|
|
129
|
-
(function (API_CONTENT_TYPES) {
|
|
108
|
+
export let API_CONTENT_TYPES = /*#__PURE__*/function (API_CONTENT_TYPES) {
|
|
130
109
|
API_CONTENT_TYPES["APPLICATION_JSON"] = "application/json";
|
|
131
|
-
|
|
110
|
+
return API_CONTENT_TYPES;
|
|
111
|
+
}({});
|
|
132
112
|
//# sourceMappingURL=GraphQLClient.js.map
|
|
@@ -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","client","uri","cache","init","instance","getInstance","GRAPHQL_CLIENT_NOT_INITIALIZED","fetchReasonCodes","query","variables","offset","limit","fetchPolicy","context","headers","API_CONTENT_TYPES","APPLICATION_JSON","createFmsFolder","folderName","desc","gRequest","name","description","mutate","mutation","input","postCustodyIn","data","dspID","d","dispatchId","postCustodyOut","postWorkflowUpdate","workflowId","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":"
|
|
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,CAAC;IAC3B,CAAC,CAAC;EACJ;EAEA,OAAcgB,IAAIA,CAACL,OAAe,EAAE;IAClC,IAAI,CAACF,aAAa,CAACQ,QAAQ,EAAE;MAC3BR,aAAa,CAACQ,QAAQ,GAAG,IAAIR,aAAa,CAACE,OAAO,CAAC;IACrD;IACA,OAAOF,aAAa,CAACQ,QAAQ;EAC/B;EACA,OAAcC,WAAWA,CAAA,EAAkB;IACzC,IAAI,CAACT,aAAa,CAACQ,QAAQ,EAAE;MAC3B,MAAM,IAAIf,SAAS,CACjBD,UAAU,CAACkB,8BAA8B,EACzC,2BACF,CAAC;IACH;IACA,OAAOV,aAAa,CAACQ,QAAQ;EAC/B;EAEA,MAAaG,gBAAgBA,CAAA,EAAG;IAAA,IAAAC,YAAA;IAC9B,QAAAA,YAAA,GAAO,IAAI,CAACR,MAAM,cAAAQ,YAAA,uBAAXA,YAAA,CAAaC,KAAK,CAAC;MACxBA,KAAK,EAAEhB,aAAa;MACpBiB,SAAS,EAAE;QACTC,MAAM,EAAE,GAAG;QACXC,KAAK,EAAE;MACT,CAAC;MACDC,WAAW,EAAE,cAAc;MAC3BC,OAAO,EAAE;QACPC,OAAO,EAAE,MAAMpB,UAAU,CAACqB,iBAAiB,CAACC,gBAAgB;MAC9D;IACF,CAAC,CAAC;EACJ;EAEA,MAAaC,eAAeA,CAACC,UAAkB,EAAEC,IAAY,EAAE;IAAA,IAAAC,aAAA;IAC7D,MAAMC,QAAQ,GAAG;MACfC,IAAI,EAAEJ,UAAU;MAChBK,WAAW,EAAEJ;IACf,CAAC;IACD,QAAAC,aAAA,GAAO,IAAI,CAACrB,MAAM,cAAAqB,aAAA,uBAAXA,aAAA,CAAaI,MAAM,CAAC;MACzBC,QAAQ,EAAEpC,iBAAiB;MAC3BoB,SAAS,EAAE;QACTiB,KAAK,EAAEL;MACT,CAAC;MACDR,OAAO,EAAE;QACPC,OAAO,EAAE,MAAMpB,UAAU,CAACqB,iBAAiB,CAACC,gBAAgB;MAC9D;IACF,CAAC,CAAC;EACJ;EAEA,MAAaW,aAAaA,CAACC,IAAW,EAAEC,KAAa,EAAE;IAAA,IAAAC,aAAA;IACrD,KAAK,MAAMC,CAAC,IAAIH,IAAI,EAAE,OAAOG,CAAC,CAACC,UAAU;IACzC,QAAAF,aAAA,GAAO,IAAI,CAAC/B,MAAM,cAAA+B,aAAA,uBAAXA,aAAA,CAAaN,MAAM,CAAC;MACzBC,QAAQ,EAAEnC,UAAU;MACpBmB,SAAS,EAAE;QACTiB,KAAK,EAAE;UAAEM,UAAU,EAAEH,KAAK;UAAED,IAAI,EAAEA;QAAK;MACzC,CAAC;MACDf,OAAO,EAAE;QACPC,OAAO,EAAE,MAAMpB,UAAU,CAACqB,iBAAiB,CAACC,gBAAgB;MAC9D;IACF,CAAC,CAAC;EACJ;EACA,MAAaiB,cAAcA,CAACL,IAAW,EAAEC,KAAa,EAAE;IAAA,IAAAK,aAAA;IACtD,KAAK,MAAMH,CAAC,IAAIH,IAAI,EAAE,OAAOG,CAAC,CAACC,UAAU;IACzC,QAAAE,aAAA,GAAO,IAAI,CAACnC,MAAM,cAAAmC,aAAA,uBAAXA,aAAA,CAAaV,MAAM,CAAC;MACzBC,QAAQ,EAAElC,WAAW;MACrBkB,SAAS,EAAE;QACTiB,KAAK,EAAE;UACLM,UAAU,EAAEH,KAAK;UACjBD,IAAI,EAAEA;QACR;MACF,CAAC;MACDf,OAAO,EAAE;QACPC,OAAO,EAAE,MAAMpB,UAAU,CAACqB,iBAAiB,CAACC,gBAAgB;MAC9D;IACF,CAAC,CAAC;EACJ;EAEA,MAAamB,kBAAkBA,CAACP,IAAS,EAAEQ,UAAkB,EAAE;IAAA,IAAAC,aAAA;IAC7D,QAAAA,aAAA,GAAO,IAAI,CAACtC,MAAM,cAAAsC,aAAA,uBAAXA,aAAA,CAAab,MAAM,CAAC;MACzBC,QAAQ,EAAEhC,eAAe;MACzBgB,SAAS,EAAE;QACTiB,KAAK,EAAE;UAAEY,QAAQ,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"}
|
|
@@ -6,28 +6,25 @@ export default class NetworkClient extends HttpClient {
|
|
|
6
6
|
constructor(baseURL) {
|
|
7
7
|
super(baseURL);
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
async requestGet() {}
|
|
11
|
-
|
|
12
10
|
async requestPost(endpoint, requestBody, headers) {
|
|
13
11
|
const sdkConfig = await cache.getObjectFromCache(cacheKeys.SDK_CONFIG);
|
|
14
12
|
return this.instance.post(endpoint, requestBody, {
|
|
15
13
|
headers: {
|
|
16
14
|
'accept': 'application/json',
|
|
17
|
-
'X-COREOS-REQUEST-ID': headers.requestId
|
|
15
|
+
'X-COREOS-REQUEST-ID': 'DispatchSdk:' + (headers && headers.requestId || ''),
|
|
18
16
|
'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',
|
|
19
17
|
'X-COREOS-TID': sdkConfig.tenantID ?? '',
|
|
20
18
|
'Content-Type': 'application/json'
|
|
21
19
|
}
|
|
22
20
|
});
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
async requestPut(endpoint, requestBody, headers) {
|
|
26
23
|
const sdkConfig = await cache.getObjectFromCache(cacheKeys.SDK_CONFIG);
|
|
27
24
|
return this.instance.put(endpoint, requestBody, {
|
|
28
25
|
headers: {
|
|
29
26
|
'accept': 'application/json',
|
|
30
|
-
'X-COREOS-REQUEST-ID': headers.requestId
|
|
27
|
+
'X-COREOS-REQUEST-ID': 'DispatchSdk:' + (headers && headers.requestId || ''),
|
|
31
28
|
'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',
|
|
32
29
|
'X-COREOS-TID': sdkConfig.tenantID ?? '',
|
|
33
30
|
'X-COREOS-USERINFO': JSON.stringify({
|
|
@@ -37,6 +34,5 @@ export default class NetworkClient extends HttpClient {
|
|
|
37
34
|
}
|
|
38
35
|
});
|
|
39
36
|
}
|
|
40
|
-
|
|
41
37
|
}
|
|
42
38
|
//# sourceMappingURL=NetworkClient.js.map
|
|
@@ -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': headers.requestId
|
|
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"}
|
|
@@ -2,13 +2,20 @@ import DispatchSdkCache from '../manager/sdk/DispatchSdkCache';
|
|
|
2
2
|
export async function getHeaders(contentType) {
|
|
3
3
|
const cache = DispatchSdkCache.getInstance();
|
|
4
4
|
const sdkConfig = await cache.getObjectFromCache(DispatchSdkCache.KEYS.SDK_CONFIG);
|
|
5
|
+
const newHeadersObj = sdkConfig !== null && sdkConfig !== void 0 && sdkConfig.headers ? Object.fromEntries(Object.entries(sdkConfig.headers || {}).map(_ref => {
|
|
6
|
+
let [k, v] = _ref;
|
|
7
|
+
return [k.toLowerCase(), v];
|
|
8
|
+
})) : {};
|
|
5
9
|
const dspID = await cache.getKeyFromCache(DispatchSdkCache.KEYS.DISPATCH_ID);
|
|
6
|
-
return {
|
|
10
|
+
return Object.keys(newHeadersObj).length ? newHeadersObj : {
|
|
7
11
|
'x-user-id': sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID,
|
|
8
12
|
'x-coreos-tid': sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.tenantID,
|
|
9
13
|
'x-coreos-access': sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.accessToken,
|
|
10
|
-
'
|
|
11
|
-
'x-coreos-request-id': dspID ?? (sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID)
|
|
14
|
+
'content-type': contentType,
|
|
15
|
+
'x-coreos-request-id': dspID ?? (sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID),
|
|
16
|
+
'x-coreos-userinfo': JSON.stringify({
|
|
17
|
+
id: sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID
|
|
18
|
+
})
|
|
12
19
|
};
|
|
13
20
|
}
|
|
14
21
|
export function getAddHeaders(headers) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DispatchSdkCache","getHeaders","contentType","cache","getInstance","sdkConfig","getObjectFromCache","KEYS","SDK_CONFIG","dspID","getKeyFromCache","DISPATCH_ID","userID","tenantID","accessToken","
|
|
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":["gql","FETCH_REASONS","CREATE_FMS_FOLDER","CUSTODY_IN","CUSTODY_OUT","WORKFLOW_UPDATE"],"sources":["Queries.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nexport const FETCH_REASONS = gql`\n query ($limit: String, $offset: String) {\n reasonList(limit: $limit, offset: $offset) {\n data {\n description\n isEnabled\n reasonCode\n isSystemDefined\n }\n }\n }\n`;\n\nexport const CREATE_FMS_FOLDER = gql`\n mutation CreateDispatch($input: Folder!) {\n createFolder(input: $input) {\n id\n }\n }\n`;\n\nexport const CUSTODY_IN = gql`\n mutation CustodyInBatch($input: CustodyBatchInput!) {\n custodyInBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const CUSTODY_OUT = gql`\n mutation CustodyOutBatch($input: CustodyBatchInput!) {\n custodyOutBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const WORKFLOW_UPDATE = gql`\n mutation ($input: WorkflowUpdateStatusInput!) {\n updateWorkflowStatus(input: $input) {\n id\n }\n }\n`;\n"],"mappings":"AAAA,SAASA,
|
|
1
|
+
{"version":3,"names":["gql","FETCH_REASONS","CREATE_FMS_FOLDER","CUSTODY_IN","CUSTODY_OUT","WORKFLOW_UPDATE"],"sources":["Queries.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nexport const FETCH_REASONS = gql`\n query ($limit: String, $offset: String) {\n reasonList(limit: $limit, offset: $offset) {\n data {\n description\n isEnabled\n reasonCode\n isSystemDefined\n }\n }\n }\n`;\n\nexport const CREATE_FMS_FOLDER = gql`\n mutation CreateDispatch($input: Folder!) {\n createFolder(input: $input) {\n id\n }\n }\n`;\n\nexport const CUSTODY_IN = gql`\n mutation CustodyInBatch($input: CustodyBatchInput!) {\n custodyInBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const CUSTODY_OUT = gql`\n mutation CustodyOutBatch($input: CustodyBatchInput!) {\n custodyOutBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const WORKFLOW_UPDATE = gql`\n mutation ($input: WorkflowUpdateStatusInput!) {\n updateWorkflowStatus(input: $input) {\n id\n }\n }\n`;\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,OAAO,MAAMC,aAAa,GAAGD,GAAI;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAME,iBAAiB,GAAGF,GAAI;AACrC;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMG,UAAU,GAAGH,GAAI;AAC9B;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMI,WAAW,GAAGJ,GAAI;AAC/B;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMK,eAAe,GAAGL,GAAI;AACnC;AACA;AACA;AACA;AACA;AACA,CAAC"}
|
|
@@ -1,41 +1,36 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
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); }
|
|
3
4
|
import axios from 'axios';
|
|
4
|
-
import StatusCode from '../constants/statuscode';
|
|
5
|
+
import StatusCode from '../constants/statuscode';
|
|
6
|
+
// import { handleAccessTokenExpiry } from './utils/helper';
|
|
5
7
|
|
|
6
8
|
export default class HttpClient {
|
|
7
9
|
constructor(baseURL) {
|
|
8
10
|
_defineProperty(this, "instance", void 0);
|
|
9
|
-
|
|
10
11
|
_defineProperty(this, "_initializeResponseInterceptor", () => {
|
|
11
12
|
this.instance.interceptors.response.use(this._handleResponse, this._handleError);
|
|
12
13
|
});
|
|
13
|
-
|
|
14
14
|
_defineProperty(this, "_handleResponse", response => {
|
|
15
15
|
return response;
|
|
16
16
|
});
|
|
17
|
-
|
|
18
17
|
_defineProperty(this, "_handleError", error => {
|
|
19
18
|
if (error.response) {
|
|
20
19
|
// Request made and server responded
|
|
21
|
-
// console.log('_handleError if', error.response.status);
|
|
22
20
|
const {
|
|
23
21
|
status
|
|
24
22
|
} = error.response;
|
|
25
|
-
|
|
26
23
|
switch (status) {
|
|
27
24
|
case StatusCode.InternalServerError:
|
|
28
25
|
{
|
|
29
26
|
// Handle InternalServerError
|
|
30
27
|
break;
|
|
31
28
|
}
|
|
32
|
-
|
|
33
29
|
case StatusCode.Forbidden:
|
|
34
30
|
{
|
|
35
31
|
// Handle Forbidden
|
|
36
32
|
break;
|
|
37
33
|
}
|
|
38
|
-
|
|
39
34
|
case StatusCode.Unauthorized:
|
|
40
35
|
{
|
|
41
36
|
// Handle Unauthorized
|
|
@@ -43,32 +38,27 @@ export default class HttpClient {
|
|
|
43
38
|
//cycle: ../src/utils/loginHelper.ts -> ../src/resources/Login.ts -> ../src/network/client.ts -> ../src/utils/loginHelper.ts
|
|
44
39
|
break;
|
|
45
40
|
}
|
|
46
|
-
|
|
47
41
|
case StatusCode.TooManyRequests:
|
|
48
42
|
{
|
|
49
43
|
// Handle TooManyRequests
|
|
50
44
|
break;
|
|
51
45
|
}
|
|
52
46
|
}
|
|
53
|
-
} else if (error.request) {
|
|
47
|
+
} else if (error.request) {
|
|
48
|
+
// The request was made but no response was received
|
|
54
49
|
// Network error should be received here
|
|
55
|
-
// console.log('else if ', error.request);
|
|
56
50
|
} else {
|
|
57
51
|
// Something happened in setting up the request that triggered an Error
|
|
58
52
|
console.log('Error else', error.message);
|
|
59
53
|
}
|
|
60
|
-
|
|
61
54
|
return Promise.reject(error);
|
|
62
55
|
});
|
|
63
|
-
|
|
64
56
|
this.instance = axios.create({
|
|
65
57
|
baseURL,
|
|
66
58
|
timeout: 15000 // timeout of 15s
|
|
67
|
-
|
|
68
59
|
});
|
|
69
60
|
|
|
70
61
|
this._initializeResponseInterceptor();
|
|
71
62
|
}
|
|
72
|
-
|
|
73
63
|
}
|
|
74
64
|
//# sourceMappingURL=client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["axios","StatusCode","HttpClient","constructor","baseURL","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
|
|
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":["PLEASE_WAIT"],"sources":["strings.ts"],"sourcesContent":["export const PLEASE_WAIT = 'Please wait...';\n"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,
|
|
1
|
+
{"version":3,"names":["PLEASE_WAIT"],"sources":["strings.ts"],"sourcesContent":["export const PLEASE_WAIT = 'Please wait...';\n"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,gBAAgB"}
|
|
@@ -1,42 +1,33 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
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); }
|
|
3
4
|
import HttpClient from '../network/client';
|
|
4
|
-
|
|
5
5
|
class Login extends HttpClient {
|
|
6
6
|
constructor() {
|
|
7
|
-
super('
|
|
8
|
-
|
|
7
|
+
super('https://delhivery.dev.fxtrt.io/core/api/v1/aaa/');
|
|
9
8
|
_defineProperty(this, "loginMobilePassword", payload => {
|
|
10
9
|
return this.instance.post('/auth/login/mobile-password', payload);
|
|
11
10
|
});
|
|
12
|
-
|
|
13
11
|
_defineProperty(this, "loginMobileOtp", payload => {
|
|
14
12
|
return this.instance.post('/auth/login/mobile-otp', payload);
|
|
15
13
|
});
|
|
16
|
-
|
|
17
14
|
_defineProperty(this, "loginMpin", payload => {
|
|
18
15
|
return this.instance.post('/auth/login/mpin', payload);
|
|
19
16
|
});
|
|
20
|
-
|
|
21
17
|
_defineProperty(this, "loginUserName", payload => {
|
|
22
18
|
return this.instance.post('/auth/login/username-password', payload);
|
|
23
19
|
});
|
|
24
|
-
|
|
25
20
|
_defineProperty(this, "loginCredential", payload => {
|
|
26
21
|
return this.instance.post('/auth/client-login', payload);
|
|
27
22
|
});
|
|
28
|
-
|
|
29
23
|
_defineProperty(this, "validateToken", accessToken => {
|
|
30
24
|
return this.instance.post('/auth/validate', accessToken);
|
|
31
25
|
});
|
|
32
|
-
|
|
33
26
|
_defineProperty(this, "refreshToken", refreshTokenPayload => {
|
|
34
27
|
return this.instance.post('/auth/validate', refreshTokenPayload);
|
|
35
28
|
});
|
|
36
29
|
}
|
|
37
|
-
|
|
38
30
|
}
|
|
39
|
-
|
|
40
31
|
const Auth = new Login();
|
|
41
32
|
export default Auth;
|
|
42
33
|
//# sourceMappingURL=Login.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpClient","Login","constructor","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('
|
|
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,18 +1,15 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
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); }
|
|
3
4
|
import HttpClient from '../network/client';
|
|
4
|
-
|
|
5
5
|
class Network extends HttpClient {
|
|
6
6
|
constructor() {
|
|
7
7
|
super('https://google.com');
|
|
8
|
-
|
|
9
8
|
_defineProperty(this, "heartBeat", () => {
|
|
10
9
|
return this.instance.head('/');
|
|
11
10
|
});
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
const network = new Network();
|
|
17
14
|
export default network;
|
|
18
15
|
//# sourceMappingURL=network.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpClient","Network","constructor","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":"
|
|
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"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
export let ColorTheme
|
|
2
|
-
|
|
3
|
-
(function (ColorTheme) {
|
|
1
|
+
export let ColorTheme = /*#__PURE__*/function (ColorTheme) {
|
|
4
2
|
ColorTheme["LIGHT"] = "light";
|
|
5
3
|
ColorTheme["DARK"] = "dark";
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return ColorTheme;
|
|
5
|
+
}({});
|
|
8
6
|
const tintColor = '#4e9bde';
|
|
9
7
|
const darkTintColor = '#1a74b3';
|
|
10
|
-
const primaryButton = '#
|
|
8
|
+
const primaryButton = '#5B80F7';
|
|
9
|
+
const exitButton = '#DC2626';
|
|
10
|
+
const defaultColor = '#3D445C';
|
|
11
11
|
export default {
|
|
12
12
|
[ColorTheme.LIGHT]: {
|
|
13
13
|
tintColor,
|
|
14
14
|
darkTintColor,
|
|
15
|
-
primaryButton
|
|
15
|
+
primaryButton,
|
|
16
|
+
exitButton,
|
|
17
|
+
defaultColor
|
|
16
18
|
},
|
|
17
19
|
[ColorTheme.DARK]: {
|
|
18
20
|
tintColor: darkTintColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ColorTheme","tintColor","darkTintColor","primaryButton","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"}
|