@os1-platform/dispatch-mobile 1.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/LICENSE +21 -0
- package/README.md +551 -0
- package/android/build/.transforms/22228dd0a4a527a24ec811806cb09b83/classes/classes.dex +0 -0
- package/android/build/.transforms/22228dd0a4a527a24ec811806cb09b83.bin +1 -0
- package/android/build/.transforms/94a07ea3e1b6cf7284a0d41cd59f08ef/classes/classes.dex +0 -0
- package/android/build/.transforms/94a07ea3e1b6cf7284a0d41cd59f08ef.bin +1 -0
- package/android/build/generated/source/buildConfig/debug/com/dispatchsdk/BuildConfig.java +12 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +34 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +26 -0
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +4928 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/drawable_alert_background.xml.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/drawable_ic_baseline_sync_24.xml.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/font_ibmplexsans.ttf.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/xml_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +5 -0
- package/android/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml +9 -0
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +7 -0
- package/android/build/intermediates/javac/debug/classes/com/dispatchsdk/BuildConfig.class +0 -0
- package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +34 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +7 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +63 -0
- package/android/build/intermediates/merged_manifests/debug/output.json +26 -0
- package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/build/intermediates/packaged_res/debug/drawable/alert_background.xml +8 -0
- package/android/build/intermediates/packaged_res/debug/drawable/ic_baseline_sync_24.xml +5 -0
- package/android/build/intermediates/packaged_res/debug/font/ibmplexsans.ttf +0 -0
- package/android/build/intermediates/packaged_res/debug/values/values.xml +9 -0
- package/android/build/intermediates/packaged_res/debug/xml/file_paths.xml +10 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +3391 -0
- package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +79 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/dispatchsdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/DispatchSdkPackage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/errors/NativeSdkErrors.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureContextModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureMainView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$OnSignedListener.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$SignatureCallback.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/Bezier.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/ControlTimedPoints.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/TimedPoint.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncEventService$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncEventService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService$runnableCode$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$showAndroidDialog$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$showAndroidDialog$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/ModuleConfig$IntentConfig.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/ModuleConfig.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/Tracer.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/Utils.class +0 -0
- package/android/build.gradle +130 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +4 -0
- package/android/gradlew +185 -0
- package/android/gradlew.bat +89 -0
- package/android/src/main/AndroidManifest.xml +33 -0
- package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +23 -0
- package/android/src/main/java/com/dispatchsdk/errors/NativeSdkErrors.kt +24 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureContextModule.kt +15 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureMainView.kt +150 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureView.kt +355 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager.kt +132 -0
- package/android/src/main/java/com/dispatchsdk/signatureUtils/Bezier.kt +45 -0
- package/android/src/main/java/com/dispatchsdk/signatureUtils/ControlTimedPoints.kt +3 -0
- package/android/src/main/java/com/dispatchsdk/signatureUtils/TimedPoint.kt +19 -0
- package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +28 -0
- package/android/src/main/java/com/dispatchsdk/sync/SyncManagerService.kt +128 -0
- package/android/src/main/java/com/dispatchsdk/sync/SyncModule.kt +45 -0
- package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +121 -0
- package/android/src/main/java/com/dispatchsdk/utils/ModuleConfig.kt +21 -0
- package/android/src/main/java/com/dispatchsdk/utils/Tracer.kt +9 -0
- package/android/src/main/java/com/dispatchsdk/utils/Utils.kt +100 -0
- package/android/src/main/res/drawable/alert_background.xml +8 -0
- package/android/src/main/res/drawable/ic_baseline_sync_24.xml +5 -0
- package/android/src/main/res/font/ibmplexsans.ttf +0 -0
- package/android/src/main/res/values/styles.xml +10 -0
- package/android/src/main/res/xml/file_paths.xml +10 -0
- package/babel.config.js +3 -0
- package/foxtrotplatform-mobile-execution-lib-v0.6.4.tgz +0 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +249 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -0
- package/lib/commonjs/components/executiontasks/CompletedWFSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/CompletedWFSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +192 -0
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +110 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +69 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +105 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js +6 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +197 -0
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +126 -0
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/display/DisplaySchema.js +6 -0
- package/lib/commonjs/components/executiontasks/display/DisplaySchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +28 -0
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +190 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +130 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +137 -0
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +116 -0
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/FormSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/forms/FormSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +152 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +155 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +54 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +53 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +61 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +159 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +256 -0
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +91 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +17 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +111 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +139 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +146 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +103 -0
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +115 -0
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +123 -0
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +32 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +193 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +20 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +49 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +107 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +317 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +100 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +276 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +66 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +69 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +100 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js +25 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -0
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +101 -0
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +59 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js +165 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +15 -0
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -0
- package/lib/commonjs/config/DispatchSDKConfig.js +14 -0
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +11 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +25 -0
- package/lib/commonjs/constants/constants.js.map +1 -0
- package/lib/commonjs/constants/statuscode.js +18 -0
- package/lib/commonjs/constants/statuscode.js.map +1 -0
- package/lib/commonjs/errors/BaseError.js +30 -0
- package/lib/commonjs/errors/BaseError.js.map +1 -0
- package/lib/commonjs/errors/ErrorCodes.js +44 -0
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -0
- package/lib/commonjs/index.js +164 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +442 -0
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +13 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +112 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +87 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/reasonCodes.json +137 -0
- package/lib/commonjs/manager/location/LocationManager.js +97 -0
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -0
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +103 -0
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -0
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +69 -0
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +158 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/DBConfig.js +62 -0
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +15 -0
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/database.js +48 -0
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +125 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +113 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +200 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/models.js +2 -0
- package/lib/commonjs/manager/syncmanager/document/models.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +117 -0
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js +2 -0
- package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +279 -0
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +79 -0
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -0
- package/lib/commonjs/models/DispatchModels.js +14 -0
- package/lib/commonjs/models/DispatchModels.js.map +1 -0
- package/lib/commonjs/models/ReasonCodes.js +2 -0
- package/lib/commonjs/models/ReasonCodes.js.map +1 -0
- package/lib/commonjs/models/auth.js +2 -0
- package/lib/commonjs/models/auth.js.map +1 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js +2 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -0
- package/lib/commonjs/models/execTasks/ETConfig.js +116 -0
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -0
- package/lib/commonjs/models/execution.js +2 -0
- package/lib/commonjs/models/execution.js.map +1 -0
- package/lib/commonjs/models/fcm.js +2 -0
- package/lib/commonjs/models/fcm.js.map +1 -0
- package/lib/commonjs/models/sdk.js +15 -0
- package/lib/commonjs/models/sdk.js.map +1 -0
- package/lib/commonjs/native/signature/SignatureCapture.js +94 -0
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -0
- package/lib/commonjs/network/GraphQLClient.js +149 -0
- package/lib/commonjs/network/GraphQLClient.js.map +1 -0
- package/lib/commonjs/network/NetworkClient.js +57 -0
- package/lib/commonjs/network/NetworkClient.js.map +1 -0
- package/lib/commonjs/network/NetworkUtils.js +36 -0
- package/lib/commonjs/network/NetworkUtils.js.map +1 -0
- package/lib/commonjs/network/Queries.js +55 -0
- package/lib/commonjs/network/Queries.js.map +1 -0
- package/lib/commonjs/network/client.js +87 -0
- package/lib/commonjs/network/client.js.map +1 -0
- package/lib/commonjs/res/strings.js +9 -0
- package/lib/commonjs/res/strings.js.map +1 -0
- package/lib/commonjs/resources/Login.js +52 -0
- package/lib/commonjs/resources/Login.js.map +1 -0
- package/lib/commonjs/resources/network.js +28 -0
- package/lib/commonjs/resources/network.js.map +1 -0
- package/lib/commonjs/styles/SdkColors.js +30 -0
- package/lib/commonjs/styles/SdkColors.js.map +1 -0
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +168 -0
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -0
- package/lib/commonjs/ui/screens/CancellationScreen.js +64 -0
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +74 -0
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +68 -0
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DeliverScreen.js +75 -0
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DisplayScreen.js +43 -0
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DoodleScreen.js +79 -0
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DropCashScreen.js +89 -0
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ETScreensIndex.js +128 -0
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -0
- package/lib/commonjs/ui/screens/FormsScreen.js +45 -0
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/GeofenceScreen.js +47 -0
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +38 -0
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +44 -0
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PaymentScreen.js +142 -0
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PickupScreen.js +48 -0
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/RTScanScreen.js +118 -0
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +137 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +52 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -0
- package/lib/commonjs/ui/uiConfig/RouteParams.js +16 -0
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +113 -0
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -0
- package/lib/commonjs/utils/Logger.js +114 -0
- package/lib/commonjs/utils/Logger.js.map +1 -0
- package/lib/commonjs/utils/NetworkUtil.js +66 -0
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -0
- package/lib/commonjs/utils/SdkUtils.js +129 -0
- package/lib/commonjs/utils/SdkUtils.js.map +1 -0
- package/lib/commonjs/utils/SyncManagerUtils.js +136 -0
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -0
- package/lib/commonjs/utils/fcm/FCM.js +58 -0
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -0
- package/lib/commonjs/utils/fcm/FcmUtils.js +98 -0
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -0
- package/lib/commonjs/utils/helper.js +37 -0
- package/lib/commonjs/utils/helper.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +70 -0
- package/lib/commonjs/utils/loginHelper.js.map +1 -0
- package/lib/commonjs/utils/storage.js +153 -0
- package/lib/commonjs/utils/storage.js.map +1 -0
- package/lib/commonjs/utils/test.json +17 -0
- package/lib/commonjs/utils/utils.js +38 -0
- package/lib/commonjs/utils/utils.js.map +1 -0
- package/lib/foxtrotplatform-mobile-execution-lib-v0.6.4.tgz +0 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js +228 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -0
- package/lib/module/components/executiontasks/CompletedWFSchema.js +2 -0
- package/lib/module/components/executiontasks/CompletedWFSchema.js.map +1 -0
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +25 -0
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js +93 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -0
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js +2 -0
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -0
- package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js +2 -0
- package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -0
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +50 -0
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +87 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js +2 -0
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +175 -0
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -0
- package/lib/module/components/executiontasks/display/DisplayModalET.js +107 -0
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -0
- package/lib/module/components/executiontasks/display/DisplaySchema.js +2 -0
- package/lib/module/components/executiontasks/display/DisplaySchema.js.map +1 -0
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js +19 -0
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +1 -0
- package/lib/module/components/executiontasks/doodle/SignatureET.js +163 -0
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -0
- package/lib/module/components/executiontasks/doodle/SignatureSchema.js +2 -0
- package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -0
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +108 -0
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -0
- package/lib/module/components/executiontasks/dropCash/DropCashSchema.js +2 -0
- package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -0
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +117 -0
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -0
- package/lib/module/components/executiontasks/forms/FormGenerator.js +90 -0
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -0
- package/lib/module/components/executiontasks/forms/FormSchema.js +2 -0
- package/lib/module/components/executiontasks/forms/FormSchema.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +132 -0
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +134 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +37 -0
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -0
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +33 -0
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +42 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js +2 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js +2 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +120 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -0
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +232 -0
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -0
- package/lib/module/components/executiontasks/payments/PaymentStyles.js +80 -0
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -0
- package/lib/module/components/executiontasks/payments/PaymentUtils.js +8 -0
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +90 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js +2 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +116 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js +2 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +124 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js +2 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/pickup/PickpSchema.js +2 -0
- package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -0
- package/lib/module/components/executiontasks/pickup/PickupET.js +85 -0
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -0
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +94 -0
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/CScanner.js +101 -0
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +24 -0
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +158 -0
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +9 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +38 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +86 -0
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +287 -0
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +80 -0
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +253 -0
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +1 -0
- package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js +2 -0
- package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +50 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js +2 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +45 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +78 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js +2 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -0
- package/lib/module/components/widgets/AlertDisplay.js +12 -0
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -0
- package/lib/module/components/widgets/CancelOrderDialog.js +81 -0
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +46 -0
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -0
- package/lib/module/components/widgets/SnackBarCustom.js +138 -0
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js +7 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -0
- package/lib/module/config/DispatchSDKConfig.js +7 -0
- package/lib/module/config/DispatchSDKConfig.js.map +1 -0
- package/lib/module/constants/apiConstants.js +4 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +10 -0
- package/lib/module/constants/constants.js.map +1 -0
- package/lib/module/constants/statuscode.js +11 -0
- package/lib/module/constants/statuscode.js.map +1 -0
- package/lib/module/errors/BaseError.js +21 -0
- package/lib/module/errors/BaseError.js.map +1 -0
- package/lib/module/errors/ErrorCodes.js +32 -0
- package/lib/module/errors/ErrorCodes.js.map +1 -0
- package/lib/module/index.js +24 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js +405 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -0
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +5 -0
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +89 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +72 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/reasonCodes.json +137 -0
- package/lib/module/manager/location/LocationManager.js +83 -0
- package/lib/module/manager/location/LocationManager.js.map +1 -0
- package/lib/module/manager/sdk/DispatchSDKManager.js +71 -0
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -0
- package/lib/module/manager/sdk/DispatchSdkCache.js +57 -0
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +128 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/DBConfig.js +48 -0
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -0
- package/lib/module/manager/syncmanager/NativeSyncManager.js +6 -0
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/database.js +30 -0
- package/lib/module/manager/syncmanager/database.js.map +1 -0
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +104 -0
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -0
- package/lib/module/manager/syncmanager/document/DocumentManager.js +98 -0
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -0
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +173 -0
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/document/models.js +2 -0
- package/lib/module/manager/syncmanager/document/models.js.map +1 -0
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +101 -0
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -0
- package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js +2 -0
- package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -0
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +247 -0
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +63 -0
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -0
- package/lib/module/models/DispatchModels.js +7 -0
- package/lib/module/models/DispatchModels.js.map +1 -0
- package/lib/module/models/ReasonCodes.js +2 -0
- package/lib/module/models/ReasonCodes.js.map +1 -0
- package/lib/module/models/auth.js +2 -0
- package/lib/module/models/auth.js.map +1 -0
- package/lib/module/models/execTasks/ETBaseModels.js +2 -0
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -0
- package/lib/module/models/execTasks/ETConfig.js +104 -0
- package/lib/module/models/execTasks/ETConfig.js.map +1 -0
- package/lib/module/models/execution.js +2 -0
- package/lib/module/models/execution.js.map +1 -0
- package/lib/module/models/fcm.js +2 -0
- package/lib/module/models/fcm.js.map +1 -0
- package/lib/module/models/sdk.js +8 -0
- package/lib/module/models/sdk.js.map +1 -0
- package/lib/module/native/signature/SignatureCapture.js +80 -0
- package/lib/module/native/signature/SignatureCapture.js.map +1 -0
- package/lib/module/network/GraphQLClient.js +132 -0
- package/lib/module/network/GraphQLClient.js.map +1 -0
- package/lib/module/network/NetworkClient.js +42 -0
- package/lib/module/network/NetworkClient.js.map +1 -0
- package/lib/module/network/NetworkUtils.js +23 -0
- package/lib/module/network/NetworkUtils.js.map +1 -0
- package/lib/module/network/Queries.js +42 -0
- package/lib/module/network/Queries.js.map +1 -0
- package/lib/module/network/client.js +74 -0
- package/lib/module/network/client.js.map +1 -0
- package/lib/module/res/strings.js +2 -0
- package/lib/module/res/strings.js.map +1 -0
- package/lib/module/resources/Login.js +42 -0
- package/lib/module/resources/Login.js.map +1 -0
- package/lib/module/resources/network.js +18 -0
- package/lib/module/resources/network.js.map +1 -0
- package/lib/module/styles/SdkColors.js +22 -0
- package/lib/module/styles/SdkColors.js.map +1 -0
- package/lib/module/styles/executionTasks/CommonStyles.js +146 -0
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -0
- package/lib/module/ui/screens/CancellationScreen.js +41 -0
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -0
- package/lib/module/ui/screens/CaptureInputScreen.js +52 -0
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -0
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +42 -0
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -0
- package/lib/module/ui/screens/DeliverScreen.js +53 -0
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -0
- package/lib/module/ui/screens/DisplayScreen.js +27 -0
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -0
- package/lib/module/ui/screens/DoodleScreen.js +56 -0
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -0
- package/lib/module/ui/screens/DropCashScreen.js +67 -0
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -0
- package/lib/module/ui/screens/ETScreensIndex.js +17 -0
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -0
- package/lib/module/ui/screens/FormsScreen.js +28 -0
- package/lib/module/ui/screens/FormsScreen.js.map +1 -0
- package/lib/module/ui/screens/GeofenceScreen.js +30 -0
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -0
- package/lib/module/ui/screens/HttpRequestScreen.js +23 -0
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -0
- package/lib/module/ui/screens/ImageCaptureScreen.js +27 -0
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -0
- package/lib/module/ui/screens/PaymentScreen.js +119 -0
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -0
- package/lib/module/ui/screens/PickupScreen.js +32 -0
- package/lib/module/ui/screens/PickupScreen.js.map +1 -0
- package/lib/module/ui/screens/RTScanScreen.js +93 -0
- package/lib/module/ui/screens/RTScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +105 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +35 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -0
- package/lib/module/ui/uiConfig/RouteParams.js +9 -0
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +93 -0
- package/lib/module/utils/ExecTaskUtils.js.map +1 -0
- package/lib/module/utils/Logger.js +97 -0
- package/lib/module/utils/Logger.js.map +1 -0
- package/lib/module/utils/NetworkUtil.js +54 -0
- package/lib/module/utils/NetworkUtil.js.map +1 -0
- package/lib/module/utils/SdkUtils.js +103 -0
- package/lib/module/utils/SdkUtils.js.map +1 -0
- package/lib/module/utils/SyncManagerUtils.js +93 -0
- package/lib/module/utils/SyncManagerUtils.js.map +1 -0
- package/lib/module/utils/fcm/FCM.js +36 -0
- package/lib/module/utils/fcm/FCM.js.map +1 -0
- package/lib/module/utils/fcm/FcmUtils.js +68 -0
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -0
- package/lib/module/utils/helper.js +27 -0
- package/lib/module/utils/helper.js.map +1 -0
- package/lib/module/utils/loginHelper.js +60 -0
- package/lib/module/utils/loginHelper.js.map +1 -0
- package/lib/module/utils/storage.js +142 -0
- package/lib/module/utils/storage.js.map +1 -0
- package/lib/module/utils/test.json +17 -0
- package/lib/module/utils/utils.js +24 -0
- package/lib/module/utils/utils.js.map +1 -0
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +5 -0
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +18 -0
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +42 -0
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +12 -0
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +43 -0
- package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +4 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +42 -0
- package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +8 -0
- package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +23 -0
- package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +3 -0
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +48 -0
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +17 -0
- package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +4 -0
- package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +4 -0
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +24 -0
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +11 -0
- package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +8 -0
- package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +4 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +4 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +36 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +79 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureUtils.d.ts +9 -0
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/PaymentStyles.d.ts +78 -0
- package/lib/typescript/components/executiontasks/payments/PaymentUtils.d.ts +2 -0
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +18 -0
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +31 -0
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +33 -0
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +25 -0
- package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +8 -0
- package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +75 -0
- package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +15 -0
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +3 -0
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +3 -0
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +4 -0
- package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +14 -0
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +17 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +41 -0
- package/lib/typescript/components/executiontasks/verifyLocation/GeofenceUtils.d.ts +2 -0
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +50 -0
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +21 -0
- package/lib/typescript/components/widgets/AlertDisplay.d.ts +1 -0
- package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +13 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +7 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +20 -0
- package/lib/typescript/components/widgets/Toaster.d.ts +1 -0
- package/lib/typescript/config/DispatchSDKConfig.d.ts +4 -0
- package/lib/typescript/constants/apiConstants.d.ts +3 -0
- package/lib/typescript/constants/constants.d.ts +9 -0
- package/lib/typescript/constants/statuscode.d.ts +7 -0
- package/lib/typescript/errors/BaseError.d.ts +10 -0
- package/lib/typescript/errors/ErrorCodes.d.ts +28 -0
- package/lib/typescript/index.d.ts +31 -0
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +41 -0
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +1 -0
- package/lib/typescript/manager/dispatchCodes/ReasonCodeContainer.d.ts +12 -0
- package/lib/typescript/manager/dispatchCodes/ReasonCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/location/LocationManager.d.ts +14 -0
- package/lib/typescript/manager/sdk/DispatchSDKManager.d.ts +14 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +17 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +24 -0
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +77 -0
- package/lib/typescript/manager/syncmanager/NativeSyncManager.d.ts +6 -0
- package/lib/typescript/manager/syncmanager/database.d.ts +2 -0
- package/lib/typescript/manager/syncmanager/document/DocumentHttpClient.d.ts +9 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +15 -0
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +25 -0
- package/lib/typescript/manager/syncmanager/document/models.d.ts +4 -0
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +16 -0
- package/lib/typescript/manager/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +30 -0
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +9 -0
- package/lib/typescript/models/DispatchModels.d.ts +17 -0
- package/lib/typescript/models/ReasonCodes.d.ts +6 -0
- package/lib/typescript/models/auth.d.ts +32 -0
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +81 -0
- package/lib/typescript/models/execTasks/ETConfig.d.ts +86 -0
- package/lib/typescript/models/execution.d.ts +9 -0
- package/lib/typescript/models/fcm.d.ts +3 -0
- package/lib/typescript/models/sdk.d.ts +24 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +33 -0
- package/lib/typescript/network/GraphQLClient.d.ts +15 -0
- package/lib/typescript/network/NetworkClient.d.ts +8 -0
- package/lib/typescript/network/NetworkUtils.d.ts +11 -0
- package/lib/typescript/network/Queries.d.ts +5 -0
- package/lib/typescript/network/client.d.ts +8 -0
- package/lib/typescript/res/strings.d.ts +1 -0
- package/lib/typescript/resources/Login.d.ts +14 -0
- package/lib/typescript/resources/network.d.ts +7 -0
- package/lib/typescript/styles/SdkColors.d.ts +16 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +140 -0
- package/lib/typescript/ui/screens/CancellationScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DeliverScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DisplayScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DoodleScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DropCashScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +16 -0
- package/lib/typescript/ui/screens/FormsScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/GeofenceScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/PaymentScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/PickupScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/RTScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +3 -0
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +8 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +7 -0
- package/lib/typescript/utils/Logger.d.ts +22 -0
- package/lib/typescript/utils/NetworkUtil.d.ts +14 -0
- package/lib/typescript/utils/SdkUtils.d.ts +25 -0
- package/lib/typescript/utils/SyncManagerUtils.d.ts +10 -0
- package/lib/typescript/utils/fcm/FCM.d.ts +8 -0
- package/lib/typescript/utils/fcm/FcmUtils.d.ts +5 -0
- package/lib/typescript/utils/helper.d.ts +14 -0
- package/lib/typescript/utils/loginHelper.d.ts +13 -0
- package/lib/typescript/utils/storage.d.ts +49 -0
- package/lib/typescript/utils/utils.d.ts +3 -0
- package/package.json +254 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +31 -0
|
@@ -0,0 +1,405 @@
|
|
|
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
|
+
|
|
3
|
+
import { clearCache, createFmsFolder, pushEventForSync } from '../../utils/SyncManagerUtils';
|
|
4
|
+
import Storage from '../../utils/storage';
|
|
5
|
+
import { EmptyJobError, EngineNotReadyError, ETIdInvalidError, ExecutionEngine, JobNotFoundError, JobStatusInvalidError, ObjectiveJobAlreadyCompletedError, ObjectiveNotFoundError, ObjectiveNotReadyError, QuerySucceededObjectiveError } from '@foxtrotplatform/mobile-execution-lib';
|
|
6
|
+
import { showToast } from '../../components/widgets/Toaster';
|
|
7
|
+
import { BaseEventCodes, CustomScreens, ExecutionTaskID, FinalETName } from '../../models/execTasks/ETConfig';
|
|
8
|
+
import EventsSyncManager from '../syncmanager/events/EventsSyncManager';
|
|
9
|
+
import Logger, { LOG_TYPE } from '../../utils/Logger';
|
|
10
|
+
import DispatchSdkCache from '../sdk/DispatchSdkCache';
|
|
11
|
+
import { BaseError } from '../../errors/BaseError';
|
|
12
|
+
import { getBaseETResponse } from '../../utils/ExecTaskUtils';
|
|
13
|
+
import ReasonCodeContainer from '../dispatchCodes/ReasonCodeContainer';
|
|
14
|
+
import BaseErrorCodes from '../../errors/ErrorCodes';
|
|
15
|
+
import ErrorCodes, { InvalidArgumentsError } from '../../errors/ErrorCodes';
|
|
16
|
+
import { RouteParams } from '../../ui/uiConfig/RouteParams';
|
|
17
|
+
import { debounce } from 'lodash';
|
|
18
|
+
export default class DispatchStateContainer {
|
|
19
|
+
constructor() {
|
|
20
|
+
_defineProperty(this, "dispatchExecutor", new ExecutionEngine());
|
|
21
|
+
|
|
22
|
+
_defineProperty(this, "successRoute", null);
|
|
23
|
+
|
|
24
|
+
_defineProperty(this, "failureRoute", null);
|
|
25
|
+
|
|
26
|
+
_defineProperty(this, "_stateKeys", []);
|
|
27
|
+
|
|
28
|
+
_defineProperty(this, "_jobObjectives", null);
|
|
29
|
+
|
|
30
|
+
_defineProperty(this, "_mappedStates", new Map());
|
|
31
|
+
|
|
32
|
+
_defineProperty(this, "saveAndProceedToNextET", debounce(async (baseETProps, etOutput, etStates, navigation, isLastTask) => {
|
|
33
|
+
try {
|
|
34
|
+
await this.sendETOutput(etOutput, etStates);
|
|
35
|
+
await this.moveToNextET(baseETProps, etStates, navigation, isLastTask);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
Logger.getInstance().logEvent('saveAndProceed', error.message, LOG_TYPE.SDK_ERROR);
|
|
38
|
+
baseETProps.showProgress(false);
|
|
39
|
+
showToast(error.message);
|
|
40
|
+
}
|
|
41
|
+
}, 800));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
get stateKeys() {
|
|
45
|
+
return this._stateKeys;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
set stateKeys(value) {
|
|
49
|
+
this._stateKeys = value;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
get mappedStates() {
|
|
53
|
+
return this._mappedStates;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
set mappedStates(value) {
|
|
57
|
+
this._mappedStates = value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Call this function when dispatch data is fetched successfully in client app
|
|
62
|
+
* @param dispatchID
|
|
63
|
+
* @param jobs
|
|
64
|
+
* @param logging
|
|
65
|
+
* @param maxTaskReattempt
|
|
66
|
+
*/
|
|
67
|
+
async initDispatchExecutor(dispatchID, jobs, logging, maxTaskReattempt) {
|
|
68
|
+
if (!dispatchID || !jobs || jobs.length < 1) {
|
|
69
|
+
Logger.getInstance().logEvent('initDispatchExecutor', InvalidArgumentsError, LOG_TYPE.SDK_WARNING);
|
|
70
|
+
throw new BaseError(BaseErrorCodes.InvalidArgumentError, InvalidArgumentsError);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
let storage = Storage.getInstance();
|
|
74
|
+
await clearCache(dispatchID);
|
|
75
|
+
await DispatchSdkCache.getInstance().setKeyInCache(DispatchSdkCache.KEYS.DISPATCH_ID, dispatchID);
|
|
76
|
+
await createFmsFolder(dispatchID);
|
|
77
|
+
await this.dispatchExecutor.init(dispatchID, jobs, {
|
|
78
|
+
storeDbItemCallback: storage.setObject,
|
|
79
|
+
readDbItemCallback: storage.getObject,
|
|
80
|
+
deleteDbItemsCallback: storage.deleteMultiple,
|
|
81
|
+
getDbKeysCallback: storage.getAllKeys,
|
|
82
|
+
eventSyncCallback: pushEventForSync
|
|
83
|
+
}, {
|
|
84
|
+
startTaskName: FinalETName.START_WORKFLOW,
|
|
85
|
+
successTaskName: FinalETName.COMPLETED_SUCCESS,
|
|
86
|
+
failureTaskName: FinalETName.COMPLETED_FAILURE,
|
|
87
|
+
maxTaskReattempts: maxTaskReattempt,
|
|
88
|
+
logLevel: logging ? 'debug' : 'emerg'
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async bulkQueryNextET(jobObjectiveList) {
|
|
93
|
+
if (!jobObjectiveList || jobObjectiveList.length === 0) {
|
|
94
|
+
Logger.getInstance().logEvent('bulkQueryNextET', 'CONSTRAINTS FAILED', LOG_TYPE.SDK_ERROR);
|
|
95
|
+
throw new BaseError(ErrorCodes.MERGING_ERROR, 'CONSTRAINTS FAILED');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
for (const o of jobObjectiveList) {
|
|
99
|
+
let nState = null;
|
|
100
|
+
|
|
101
|
+
try {
|
|
102
|
+
nState = await this.queryObjective(o.objectiveId, o.jobId);
|
|
103
|
+
} catch (error) {
|
|
104
|
+
Logger.getInstance().logEvent('bulkQueryNextET', JSON.stringify({
|
|
105
|
+
error: error.message,
|
|
106
|
+
jobId: o.jobId,
|
|
107
|
+
objRef: o.objectiveId
|
|
108
|
+
}), LOG_TYPE.SDK_ERROR);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (nState) {
|
|
112
|
+
if (this._mappedStates.has(nState.taskId)) {
|
|
113
|
+
const val = this._mappedStates.get(nState.taskId);
|
|
114
|
+
|
|
115
|
+
val === null || val === void 0 ? void 0 : val.push({
|
|
116
|
+
nextState: nState,
|
|
117
|
+
objRef: o.objectiveId,
|
|
118
|
+
jobId: o.jobId
|
|
119
|
+
});
|
|
120
|
+
} else {
|
|
121
|
+
this._stateKeys.push(nState.taskId);
|
|
122
|
+
|
|
123
|
+
this._mappedStates.set(nState.taskId, [{
|
|
124
|
+
nextState: nState,
|
|
125
|
+
objRef: o.objectiveId,
|
|
126
|
+
jobId: o.jobId
|
|
127
|
+
}]);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const taskID = this._stateKeys.pop();
|
|
133
|
+
|
|
134
|
+
if (taskID) {
|
|
135
|
+
const nextStates = this._mappedStates.get(taskID);
|
|
136
|
+
|
|
137
|
+
this._mappedStates.delete(taskID);
|
|
138
|
+
|
|
139
|
+
return nextStates ?? [];
|
|
140
|
+
} else return null;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
async queryNextTask(jobObjectiveList) {
|
|
144
|
+
try {
|
|
145
|
+
const promises = [];
|
|
146
|
+
jobObjectiveList.forEach(jobObjective => {
|
|
147
|
+
promises.push(this.queryObjective(jobObjective.objectiveId, jobObjective.jobId));
|
|
148
|
+
});
|
|
149
|
+
return await Promise.all(promises);
|
|
150
|
+
} catch (error) {
|
|
151
|
+
if (error instanceof QuerySucceededObjectiveError) {
|
|
152
|
+
showToast('OBJECTIVE IS ALREADY COMPLETED');
|
|
153
|
+
} else if (error instanceof EngineNotReadyError) {
|
|
154
|
+
showToast('ENGINE NOT READY! Please Try again after some time');
|
|
155
|
+
} else if (error instanceof ObjectiveNotFoundError) {
|
|
156
|
+
showToast('NO SUCH OBJECTIVE FOUND');
|
|
157
|
+
} else if (error instanceof ObjectiveNotReadyError) {
|
|
158
|
+
showToast('OBJECTIVE NOT READY');
|
|
159
|
+
} else if (error instanceof ObjectiveJobAlreadyCompletedError) {
|
|
160
|
+
showToast('OBJECTIVE CANNOT BE ATTEMPTED');
|
|
161
|
+
} else if (error instanceof JobStatusInvalidError || error instanceof JobNotFoundError || error instanceof EmptyJobError || error instanceof ETIdInvalidError) {
|
|
162
|
+
showToast('INVALID JOB');
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
async queryObjective(objRef, jobID) {
|
|
170
|
+
return await this.dispatchExecutor.queryObjectiveState(objRef, jobID);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
async sendETOutput(etOutput, etState) {
|
|
174
|
+
if (!etState || etState.length === 0) {
|
|
175
|
+
Logger.getInstance().logEvent('sendETOutput', 'CONSTRAINTS FAILED', LOG_TYPE.SDK_ERROR);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const promises = [];
|
|
180
|
+
etState.forEach(objItem => {
|
|
181
|
+
if (objItem.nextState.taskId === ExecutionTaskID.DELIVER_CASH) {
|
|
182
|
+
var _objItem$nextState$da, _objItem$nextState$da2;
|
|
183
|
+
|
|
184
|
+
etOutput.amount = (_objItem$nextState$da = objItem.nextState.data) === null || _objItem$nextState$da === void 0 ? void 0 : (_objItem$nextState$da2 = _objItem$nextState$da.input) === null || _objItem$nextState$da2 === void 0 ? void 0 : _objItem$nextState$da2.expectedAmount;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
objItem.nextState.data.output = { ...etOutput
|
|
188
|
+
};
|
|
189
|
+
promises.push(this.dispatchExecutor.lockObjectiveState(objItem.objRef, objItem.jobId, objItem.nextState));
|
|
190
|
+
});
|
|
191
|
+
await Promise.all(promises);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
async saveETOutput(jobId, objRef, etState) {
|
|
195
|
+
await this.dispatchExecutor.lockObjectiveState(objRef, jobId, etState);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
static getInstance() {
|
|
199
|
+
if (!DispatchStateContainer.instance) {
|
|
200
|
+
DispatchStateContainer.instance = new DispatchStateContainer();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return DispatchStateContainer.instance;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
fetchObjectiveState(objRef, jobID) {
|
|
207
|
+
return this.dispatchExecutor.queryObjectiveStatus(objRef, jobID);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
setSuccessRoute(route) {
|
|
211
|
+
this.successRoute = route;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
getSuccessRoute() {
|
|
215
|
+
return this.successRoute;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
setFailureRoute(route) {
|
|
219
|
+
this.failureRoute = route;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
getFailureRoute() {
|
|
223
|
+
return this.failureRoute;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
async getObjectiveSummary(jobObjective) {
|
|
227
|
+
try {
|
|
228
|
+
let response = [];
|
|
229
|
+
let summaryData = await EventsSyncManager.getInstance().getObjectiveSummary(jobObjective.jobId + jobObjective.objectiveId);
|
|
230
|
+
|
|
231
|
+
if (summaryData) {
|
|
232
|
+
for (const k in summaryData) {
|
|
233
|
+
if (k === 'inputs') continue;else {
|
|
234
|
+
const reason = await ReasonCodeContainer.getInstance().getReasonByCode(summaryData[k].output.reasonCode);
|
|
235
|
+
response.push({
|
|
236
|
+
eventCode: summaryData[k].output.eventCode,
|
|
237
|
+
reasonCode: summaryData[k].output.reasonCode,
|
|
238
|
+
reasonCodeDesc: reason === null || reason === void 0 ? void 0 : reason.description,
|
|
239
|
+
name: k
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return response;
|
|
245
|
+
} else return response;
|
|
246
|
+
} catch (error) {
|
|
247
|
+
Logger.getInstance().logEvent('getObjectiveSummary', error.message, LOG_TYPE.SDK_ERROR);
|
|
248
|
+
return [];
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
async navigateToNextTask(navigation, route, etOutput, etSuccess, entityCode, eTaskID, baseETProps, isLastTask) {
|
|
253
|
+
try {
|
|
254
|
+
baseETProps.showProgress(true);
|
|
255
|
+
const reasonsContainer = ReasonCodeContainer.getInstance();
|
|
256
|
+
|
|
257
|
+
if (etSuccess) {
|
|
258
|
+
const successCodes = await reasonsContainer.getReasonCodes(route.params[RouteParams.NEXT_STATES][0].nextState.data.input.applicableReasons, BaseEventCodes.ENTITY_SUCCESS);
|
|
259
|
+
|
|
260
|
+
if (successCodes && successCodes.length > 0) {
|
|
261
|
+
if (successCodes.length === 1) {
|
|
262
|
+
etOutput.reasonCode = successCodes[0].reasonCode;
|
|
263
|
+
await this.saveAndProceed(baseETProps, etOutput, route.params[RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
264
|
+
} else {
|
|
265
|
+
let rParams;
|
|
266
|
+
rParams = { ...route.params
|
|
267
|
+
};
|
|
268
|
+
rParams[RouteParams.ET_SUCCESS] = true;
|
|
269
|
+
rParams[RouteParams.ET_SUCCESS_RESPONSE] = etOutput;
|
|
270
|
+
rParams[RouteParams.CURRENT_ET_NAME] = eTaskID;
|
|
271
|
+
rParams[RouteParams.REASONS] = successCodes;
|
|
272
|
+
rParams[RouteParams.IS_LAST_ET] = isLastTask;
|
|
273
|
+
navigation.replace(CustomScreens.REMARK_SCREEN, rParams);
|
|
274
|
+
}
|
|
275
|
+
} else {
|
|
276
|
+
await this.saveAndProceed(baseETProps, etOutput, route.params[RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
277
|
+
}
|
|
278
|
+
} else {
|
|
279
|
+
const failureCodes = await reasonsContainer.getReasonCodes(route.params[RouteParams.NEXT_STATES][0].nextState.data.input.applicableReasons, BaseEventCodes.ENTITY_FAILURE);
|
|
280
|
+
|
|
281
|
+
if (failureCodes && failureCodes.length > 0) {
|
|
282
|
+
if (failureCodes.length === 1) {
|
|
283
|
+
await this.saveAndProceed(baseETProps, await getBaseETResponse(entityCode, false, BaseEventCodes.ENTITY_FAILURE, failureCodes[0].reasonCode), route.params[RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
284
|
+
} else {
|
|
285
|
+
let rParams;
|
|
286
|
+
rParams = { ...route.params
|
|
287
|
+
};
|
|
288
|
+
rParams[RouteParams.ET_SUCCESS] = false;
|
|
289
|
+
rParams[RouteParams.CURRENT_ET_NAME] = eTaskID;
|
|
290
|
+
rParams[RouteParams.REASONS] = failureCodes;
|
|
291
|
+
rParams[RouteParams.IS_LAST_ET] = isLastTask;
|
|
292
|
+
navigation.replace(CustomScreens.REMARK_SCREEN, rParams);
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
await this.saveAndProceed(baseETProps, await getBaseETResponse(entityCode, false, BaseEventCodes.ENTITY_FAILURE, ''), route.params[RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
} catch (error) {
|
|
299
|
+
baseETProps.showProgress(false);
|
|
300
|
+
Logger.getInstance().logEvent('navigateToNextTask', error.message, LOG_TYPE.SDK_ERROR);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
getJobObjectiveList(nextStates) {
|
|
305
|
+
const result = [];
|
|
306
|
+
nextStates.forEach(s => {
|
|
307
|
+
result.push({
|
|
308
|
+
jobId: s.jobId,
|
|
309
|
+
objectiveId: s.objRef
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
return result;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
async moveToNextET(baseETProps, etStates, navigation, isLastTask) {
|
|
316
|
+
try {
|
|
317
|
+
baseETProps.showProgress(true);
|
|
318
|
+
|
|
319
|
+
if (isLastTask && etStates && etStates.length > 0) {
|
|
320
|
+
if (this._stateKeys.length !== 0) {
|
|
321
|
+
const st = this._stateKeys.pop();
|
|
322
|
+
|
|
323
|
+
if (st) {
|
|
324
|
+
baseETProps.showProgress(false);
|
|
325
|
+
|
|
326
|
+
let nextStateList = this._mappedStates.get(st);
|
|
327
|
+
|
|
328
|
+
this._mappedStates.delete(st);
|
|
329
|
+
|
|
330
|
+
if (nextStateList != null && nextStateList.length > 0) {
|
|
331
|
+
let rParams = {};
|
|
332
|
+
rParams[RouteParams.NEXT_STATES] = nextStateList;
|
|
333
|
+
navigation.replace(nextStateList[0].nextState.taskId, rParams);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
let nextState = etStates[0];
|
|
341
|
+
let completeJobsSummary = [];
|
|
342
|
+
let objSummary = await this.getObjectiveSummary({
|
|
343
|
+
jobId: etStates[0].jobId,
|
|
344
|
+
objectiveId: etStates[0].objRef
|
|
345
|
+
});
|
|
346
|
+
completeJobsSummary.push({
|
|
347
|
+
jobId: etStates[0].jobId,
|
|
348
|
+
objectiveRef: etStates[0].objRef,
|
|
349
|
+
jobObjectiveSummary: objSummary
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
for (let i = 1; i < etStates.length; i++) {
|
|
353
|
+
let obs = await this.getObjectiveSummary({
|
|
354
|
+
jobId: etStates[i].jobId,
|
|
355
|
+
objectiveId: etStates[i].objRef
|
|
356
|
+
});
|
|
357
|
+
completeJobsSummary.push({
|
|
358
|
+
jobId: etStates[i].jobId,
|
|
359
|
+
objectiveRef: etStates[i].objRef,
|
|
360
|
+
jobObjectiveSummary: obs
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
baseETProps.showProgress(false);
|
|
365
|
+
|
|
366
|
+
if (nextState.nextState.taskId === ExecutionTaskID.COMPLETED_SUCCESS) {
|
|
367
|
+
navigation.replace(this.getSuccessRoute(), {
|
|
368
|
+
summary: objSummary,
|
|
369
|
+
completeSummary: completeJobsSummary,
|
|
370
|
+
objList: this.getJobObjectiveList(etStates),
|
|
371
|
+
objSuccess: true
|
|
372
|
+
});
|
|
373
|
+
} else {
|
|
374
|
+
navigation.replace(this.getFailureRoute(), {
|
|
375
|
+
summary: objSummary,
|
|
376
|
+
completeSummary: completeJobsSummary,
|
|
377
|
+
objList: this.getJobObjectiveList(etStates),
|
|
378
|
+
objSuccess: false
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
} else {
|
|
382
|
+
let nextStateList = await this.bulkQueryNextET(this.getJobObjectiveList(etStates));
|
|
383
|
+
baseETProps.showProgress(false);
|
|
384
|
+
|
|
385
|
+
if (nextStateList != null && nextStateList.length > 0) {
|
|
386
|
+
let rParams = {};
|
|
387
|
+
rParams[RouteParams.NEXT_STATES] = nextStateList;
|
|
388
|
+
navigation.replace(nextStateList[0].nextState.taskId, rParams);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
} catch (error) {
|
|
392
|
+
baseETProps.showProgress(false);
|
|
393
|
+
Logger.getInstance().logEvent('moveToNextET', error.message, LOG_TYPE.SDK_ERROR);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
async saveAndProceed(baseETProps, etOutput, etStates, navigation, isLastTask) {
|
|
398
|
+
baseETProps.showProgress(true);
|
|
399
|
+
await this.saveAndProceedToNextET(baseETProps, etOutput, etStates, navigation, isLastTask);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
_defineProperty(DispatchStateContainer, "instance", void 0);
|
|
405
|
+
//# sourceMappingURL=DispatchStateContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["clearCache","createFmsFolder","pushEventForSync","Storage","EmptyJobError","EngineNotReadyError","ETIdInvalidError","ExecutionEngine","JobNotFoundError","JobStatusInvalidError","ObjectiveJobAlreadyCompletedError","ObjectiveNotFoundError","ObjectiveNotReadyError","QuerySucceededObjectiveError","showToast","BaseEventCodes","CustomScreens","ExecutionTaskID","FinalETName","EventsSyncManager","Logger","LOG_TYPE","DispatchSdkCache","BaseError","getBaseETResponse","ReasonCodeContainer","BaseErrorCodes","ErrorCodes","InvalidArgumentsError","RouteParams","debounce","DispatchStateContainer","Map","baseETProps","etOutput","etStates","navigation","isLastTask","sendETOutput","moveToNextET","error","getInstance","logEvent","message","SDK_ERROR","showProgress","stateKeys","_stateKeys","value","mappedStates","_mappedStates","initDispatchExecutor","dispatchID","jobs","logging","maxTaskReattempt","length","SDK_WARNING","InvalidArgumentError","storage","setKeyInCache","KEYS","DISPATCH_ID","dispatchExecutor","init","storeDbItemCallback","setObject","readDbItemCallback","getObject","deleteDbItemsCallback","deleteMultiple","getDbKeysCallback","getAllKeys","eventSyncCallback","startTaskName","START_WORKFLOW","successTaskName","COMPLETED_SUCCESS","failureTaskName","COMPLETED_FAILURE","maxTaskReattempts","logLevel","bulkQueryNextET","jobObjectiveList","MERGING_ERROR","o","nState","queryObjective","objectiveId","jobId","JSON","stringify","objRef","has","taskId","val","get","push","nextState","set","taskID","pop","nextStates","delete","queryNextTask","promises","forEach","jobObjective","Promise","all","jobID","queryObjectiveState","etState","objItem","DELIVER_CASH","amount","data","input","expectedAmount","output","lockObjectiveState","saveETOutput","instance","fetchObjectiveState","queryObjectiveStatus","setSuccessRoute","route","successRoute","getSuccessRoute","setFailureRoute","failureRoute","getFailureRoute","getObjectiveSummary","response","summaryData","k","reason","getReasonByCode","reasonCode","eventCode","reasonCodeDesc","description","name","navigateToNextTask","etSuccess","entityCode","eTaskID","reasonsContainer","successCodes","getReasonCodes","params","NEXT_STATES","applicableReasons","ENTITY_SUCCESS","saveAndProceed","rParams","ET_SUCCESS","ET_SUCCESS_RESPONSE","CURRENT_ET_NAME","REASONS","IS_LAST_ET","replace","REMARK_SCREEN","failureCodes","ENTITY_FAILURE","getJobObjectiveList","result","s","st","nextStateList","completeJobsSummary","objSummary","objectiveRef","jobObjectiveSummary","i","obs","summary","completeSummary","objList","objSuccess","saveAndProceedToNextET"],"sources":["DispatchStateContainer.tsx"],"sourcesContent":["import {\n clearCache,\n createFmsFolder,\n pushEventForSync,\n} from '../../utils/SyncManagerUtils';\nimport Storage from '../../utils/storage';\nimport type { Job, state } from '@foxtrotplatform/mobile-execution-lib';\nimport {\n EmptyJobError,\n EngineNotReadyError,\n ETIdInvalidError,\n ExecutionEngine,\n JobNotFoundError,\n JobStatusInvalidError,\n ObjectiveJobAlreadyCompletedError,\n ObjectiveNotFoundError,\n ObjectiveNotReadyError,\n QuerySucceededObjectiveError,\n} from '@foxtrotplatform/mobile-execution-lib';\nimport { showToast } from '../../components/widgets/Toaster';\nimport {\n BaseEventCodes,\n CustomScreens,\n ExecutionTaskID,\n FinalETName,\n} from '../../models/execTasks/ETConfig';\nimport type {\n CompleteSummary,\n ETSummary,\n} from '../../models/execTasks/ETBaseModels';\nimport EventsSyncManager from '../syncmanager/events/EventsSyncManager';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport DispatchSdkCache from '../sdk/DispatchSdkCache';\nimport type {\n BaseETProps,\n JobObjectiveType,\n stateWithObjRef,\n} from '../../models/DispatchModels';\nimport { BaseError } from '../../errors/BaseError';\nimport { getBaseETResponse } from '../../utils/ExecTaskUtils';\nimport ReasonCodeContainer from '../dispatchCodes/ReasonCodeContainer';\nimport BaseErrorCodes from '../../errors/ErrorCodes';\nimport ErrorCodes, { InvalidArgumentsError } from '../../errors/ErrorCodes';\nimport { RouteParams } from '../../ui/uiConfig/RouteParams';\nimport { debounce } from 'lodash';\n\nexport default class DispatchStateContainer {\n get stateKeys(): string[] {\n return this._stateKeys;\n }\n\n set stateKeys(value: string[]) {\n this._stateKeys = value;\n }\n get mappedStates(): Map<string, stateWithObjRef[]> {\n return this._mappedStates;\n }\n\n set mappedStates(value: Map<string, stateWithObjRef[]>) {\n this._mappedStates = value;\n }\n private static instance: DispatchStateContainer;\n private dispatchExecutor = new ExecutionEngine();\n private successRoute: string | null = null;\n private failureRoute: string | null = null;\n\n private _stateKeys: string[] = [];\n public _jobObjectives: JobObjectiveType[] | null = null;\n private _mappedStates: Map<string, stateWithObjRef[]> = new Map<\n string,\n stateWithObjRef[]\n >();\n\n /**\n * Call this function when dispatch data is fetched successfully in client app\n * @param dispatchID\n * @param jobs\n * @param logging\n * @param maxTaskReattempt\n */\n public async initDispatchExecutor(\n dispatchID: string,\n jobs: Job[],\n logging: boolean,\n maxTaskReattempt?: number\n ) {\n if (!dispatchID || !jobs || jobs.length < 1) {\n Logger.getInstance().logEvent(\n 'initDispatchExecutor',\n InvalidArgumentsError,\n LOG_TYPE.SDK_WARNING\n );\n throw new BaseError(\n BaseErrorCodes.InvalidArgumentError,\n InvalidArgumentsError\n );\n }\n let storage = Storage.getInstance();\n await clearCache(dispatchID);\n await DispatchSdkCache.getInstance().setKeyInCache(\n DispatchSdkCache.KEYS.DISPATCH_ID,\n dispatchID\n );\n await createFmsFolder(dispatchID);\n await this.dispatchExecutor.init(\n dispatchID,\n jobs,\n {\n storeDbItemCallback: storage.setObject,\n readDbItemCallback: storage.getObject,\n deleteDbItemsCallback: storage.deleteMultiple,\n getDbKeysCallback: storage.getAllKeys,\n eventSyncCallback: pushEventForSync,\n },\n {\n startTaskName: FinalETName.START_WORKFLOW,\n successTaskName: FinalETName.COMPLETED_SUCCESS,\n failureTaskName: FinalETName.COMPLETED_FAILURE,\n maxTaskReattempts: maxTaskReattempt,\n logLevel: logging ? 'debug' : 'emerg',\n }\n );\n }\n\n public async bulkQueryNextET(\n jobObjectiveList: JobObjectiveType[]\n ): Promise<stateWithObjRef[] | null> {\n if (!jobObjectiveList || jobObjectiveList.length === 0) {\n Logger.getInstance().logEvent(\n 'bulkQueryNextET',\n 'CONSTRAINTS FAILED',\n LOG_TYPE.SDK_ERROR\n );\n throw new BaseError(ErrorCodes.MERGING_ERROR, 'CONSTRAINTS FAILED');\n }\n for (const o of jobObjectiveList) {\n let nState = null;\n try {\n nState = await this.queryObjective(o.objectiveId, o.jobId);\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'bulkQueryNextET',\n JSON.stringify({\n error: error.message,\n jobId: o.jobId,\n objRef: o.objectiveId,\n }),\n LOG_TYPE.SDK_ERROR\n );\n }\n if (nState) {\n if (this._mappedStates.has(nState.taskId)) {\n const val = this._mappedStates.get(nState.taskId);\n val?.push({\n nextState: nState,\n objRef: o.objectiveId,\n jobId: o.jobId,\n });\n } else {\n this._stateKeys.push(nState.taskId);\n this._mappedStates.set(nState.taskId, [\n { nextState: nState, objRef: o.objectiveId, jobId: o.jobId },\n ]);\n }\n }\n }\n const taskID = this._stateKeys.pop();\n if (taskID) {\n const nextStates = this._mappedStates.get(taskID);\n this._mappedStates.delete(taskID);\n return nextStates ?? [];\n } else return null;\n }\n\n public async queryNextTask(\n jobObjectiveList: JobObjectiveType[]\n ): Promise<state[] | null> {\n try {\n const promises: any[] = [];\n jobObjectiveList.forEach((jobObjective) => {\n promises.push(\n this.queryObjective(jobObjective.objectiveId, jobObjective.jobId)\n );\n });\n return await Promise.all(promises);\n } catch (error: any) {\n if (error instanceof QuerySucceededObjectiveError) {\n showToast('OBJECTIVE IS ALREADY COMPLETED');\n } else if (error instanceof EngineNotReadyError) {\n showToast('ENGINE NOT READY! Please Try again after some time');\n } else if (error instanceof ObjectiveNotFoundError) {\n showToast('NO SUCH OBJECTIVE FOUND');\n } else if (error instanceof ObjectiveNotReadyError) {\n showToast('OBJECTIVE NOT READY');\n } else if (error instanceof ObjectiveJobAlreadyCompletedError) {\n showToast('OBJECTIVE CANNOT BE ATTEMPTED');\n } else if (\n error instanceof JobStatusInvalidError ||\n error instanceof JobNotFoundError ||\n error instanceof EmptyJobError ||\n error instanceof ETIdInvalidError\n ) {\n showToast('INVALID JOB');\n }\n return null;\n }\n }\n public async queryObjective(objRef: string, jobID: string): Promise<state> {\n return await this.dispatchExecutor.queryObjectiveState(objRef, jobID);\n }\n public async sendETOutput(etOutput: any, etState: stateWithObjRef[]) {\n if (!etState || etState.length === 0) {\n Logger.getInstance().logEvent(\n 'sendETOutput',\n 'CONSTRAINTS FAILED',\n LOG_TYPE.SDK_ERROR\n );\n return;\n }\n const promises: any[] = [];\n etState.forEach((objItem) => {\n if (objItem.nextState.taskId === ExecutionTaskID.DELIVER_CASH) {\n etOutput.amount = objItem.nextState.data?.input?.expectedAmount;\n }\n objItem.nextState.data.output = { ...etOutput };\n promises.push(\n this.dispatchExecutor.lockObjectiveState(\n objItem.objRef,\n objItem.jobId,\n objItem.nextState\n )\n );\n });\n await Promise.all(promises);\n }\n public async saveETOutput(jobId: string, objRef: string, etState: state) {\n await this.dispatchExecutor.lockObjectiveState(objRef, jobId, etState);\n }\n\n public static getInstance(): DispatchStateContainer {\n if (!DispatchStateContainer.instance) {\n DispatchStateContainer.instance = new DispatchStateContainer();\n }\n return DispatchStateContainer.instance;\n }\n\n public fetchObjectiveState(objRef: string, jobID: string): string {\n return this.dispatchExecutor.queryObjectiveStatus(objRef, jobID);\n }\n public setSuccessRoute(route: string) {\n this.successRoute = route;\n }\n public getSuccessRoute(): string | null {\n return this.successRoute;\n }\n public setFailureRoute(route: string) {\n this.failureRoute = route;\n }\n public getFailureRoute(): string | null {\n return this.failureRoute;\n }\n public async getObjectiveSummary(\n jobObjective: JobObjectiveType\n ): Promise<ETSummary[]> {\n try {\n let response: ETSummary[] = [];\n let summaryData =\n await EventsSyncManager.getInstance().getObjectiveSummary(\n jobObjective.jobId + jobObjective.objectiveId\n );\n if (summaryData) {\n for (const k in summaryData) {\n if (k === 'inputs') continue;\n else {\n const reason =\n await ReasonCodeContainer.getInstance().getReasonByCode(\n summaryData[k].output.reasonCode\n );\n response.push({\n eventCode: summaryData[k].output.eventCode,\n reasonCode: summaryData[k].output.reasonCode,\n reasonCodeDesc: reason?.description,\n name: k,\n });\n }\n }\n return response;\n } else return response;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'getObjectiveSummary',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n return [];\n }\n }\n public async navigateToNextTask(\n navigation: any,\n route: any,\n etOutput: any,\n etSuccess: boolean,\n entityCode: string,\n eTaskID: string,\n baseETProps: BaseETProps,\n isLastTask?: boolean\n ) {\n try {\n baseETProps.showProgress(true);\n const reasonsContainer = ReasonCodeContainer.getInstance();\n if (etSuccess) {\n const successCodes = await reasonsContainer.getReasonCodes(\n route.params[RouteParams.NEXT_STATES][0].nextState.data.input\n .applicableReasons,\n BaseEventCodes.ENTITY_SUCCESS\n );\n if (successCodes && successCodes.length > 0) {\n if (successCodes.length === 1) {\n etOutput.reasonCode = successCodes[0].reasonCode;\n await this.saveAndProceed(\n baseETProps,\n etOutput,\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n isLastTask\n );\n } else {\n let rParams: any;\n rParams = { ...route.params };\n rParams[RouteParams.ET_SUCCESS] = true;\n rParams[RouteParams.ET_SUCCESS_RESPONSE] = etOutput;\n rParams[RouteParams.CURRENT_ET_NAME] = eTaskID;\n rParams[RouteParams.REASONS] = successCodes;\n rParams[RouteParams.IS_LAST_ET] = isLastTask;\n navigation.replace(CustomScreens.REMARK_SCREEN, rParams);\n }\n } else {\n await this.saveAndProceed(\n baseETProps,\n etOutput,\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n isLastTask\n );\n }\n } else {\n const failureCodes = await reasonsContainer.getReasonCodes(\n route.params[RouteParams.NEXT_STATES][0].nextState.data.input\n .applicableReasons,\n BaseEventCodes.ENTITY_FAILURE\n );\n if (failureCodes && failureCodes.length > 0) {\n if (failureCodes.length === 1) {\n await this.saveAndProceed(\n baseETProps,\n await getBaseETResponse(\n entityCode,\n false,\n BaseEventCodes.ENTITY_FAILURE,\n failureCodes[0].reasonCode\n ),\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n isLastTask\n );\n } else {\n let rParams: any;\n rParams = { ...route.params };\n rParams[RouteParams.ET_SUCCESS] = false;\n rParams[RouteParams.CURRENT_ET_NAME] = eTaskID;\n rParams[RouteParams.REASONS] = failureCodes;\n rParams[RouteParams.IS_LAST_ET] = isLastTask;\n navigation.replace(CustomScreens.REMARK_SCREEN, rParams);\n }\n } else {\n await this.saveAndProceed(\n baseETProps,\n await getBaseETResponse(\n entityCode,\n false,\n BaseEventCodes.ENTITY_FAILURE,\n ''\n ),\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n isLastTask\n );\n }\n }\n } catch (error: any) {\n baseETProps.showProgress(false);\n Logger.getInstance().logEvent(\n 'navigateToNextTask',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n }\n }\n\n private getJobObjectiveList(\n nextStates: stateWithObjRef[]\n ): JobObjectiveType[] {\n const result: JobObjectiveType[] = [];\n nextStates.forEach((s) => {\n result.push({ jobId: s.jobId, objectiveId: s.objRef });\n });\n return result;\n }\n\n async moveToNextET(\n baseETProps: BaseETProps,\n etStates: stateWithObjRef[],\n navigation: any,\n isLastTask?: boolean\n ) {\n try {\n baseETProps.showProgress(true);\n if (isLastTask && etStates && etStates.length > 0) {\n if (this._stateKeys.length !== 0) {\n const st = this._stateKeys.pop();\n if (st) {\n baseETProps.showProgress(false);\n let nextStateList = this._mappedStates.get(st);\n this._mappedStates.delete(st);\n if (nextStateList != null && nextStateList.length > 0) {\n let rParams: any = {};\n rParams[RouteParams.NEXT_STATES] = nextStateList;\n navigation.replace(nextStateList[0].nextState.taskId, rParams);\n }\n return;\n }\n }\n let nextState: stateWithObjRef = etStates[0] as stateWithObjRef;\n let completeJobsSummary: CompleteSummary[] = [];\n let objSummary = await this.getObjectiveSummary({\n jobId: etStates[0].jobId,\n objectiveId: etStates[0].objRef,\n });\n completeJobsSummary.push({\n jobId: etStates[0].jobId,\n objectiveRef: etStates[0].objRef,\n jobObjectiveSummary: objSummary,\n });\n for (let i = 1; i < etStates.length; i++) {\n let obs = await this.getObjectiveSummary({\n jobId: etStates[i].jobId,\n objectiveId: etStates[i].objRef,\n });\n completeJobsSummary.push({\n jobId: etStates[i].jobId,\n objectiveRef: etStates[i].objRef,\n jobObjectiveSummary: obs,\n });\n }\n baseETProps.showProgress(false);\n if (nextState.nextState.taskId === ExecutionTaskID.COMPLETED_SUCCESS) {\n navigation.replace(this.getSuccessRoute(), {\n summary: objSummary,\n completeSummary: completeJobsSummary,\n objList: this.getJobObjectiveList(etStates),\n objSuccess: true,\n });\n } else {\n navigation.replace(this.getFailureRoute(), {\n summary: objSummary,\n completeSummary: completeJobsSummary,\n objList: this.getJobObjectiveList(etStates),\n objSuccess: false,\n });\n }\n } else {\n let nextStateList = await this.bulkQueryNextET(\n this.getJobObjectiveList(etStates)\n );\n baseETProps.showProgress(false);\n if (nextStateList != null && nextStateList.length > 0) {\n let rParams: any = {};\n rParams[RouteParams.NEXT_STATES] = nextStateList;\n navigation.replace(nextStateList[0].nextState.taskId, rParams);\n }\n }\n } catch (error: any) {\n baseETProps.showProgress(false);\n Logger.getInstance().logEvent(\n 'moveToNextET',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n }\n }\n private saveAndProceedToNextET = debounce(\n async (\n baseETProps: BaseETProps,\n etOutput: any,\n etStates: stateWithObjRef[],\n navigation: any,\n isLastTask?: boolean\n ) => {\n try {\n await this.sendETOutput(etOutput, etStates);\n await this.moveToNextET(baseETProps, etStates, navigation, isLastTask);\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'saveAndProceed',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n baseETProps.showProgress(false);\n showToast(error.message);\n }\n },\n 800\n );\n public async saveAndProceed(\n baseETProps: BaseETProps,\n etOutput: any,\n etStates: stateWithObjRef[],\n navigation: any,\n isLastTask?: boolean\n ) {\n baseETProps.showProgress(true);\n await this.saveAndProceedToNextET(\n baseETProps,\n etOutput,\n etStates,\n navigation,\n isLastTask\n );\n }\n}\n"],"mappings":";;AAAA,SACEA,UADF,EAEEC,eAFF,EAGEC,gBAHF,QAIO,8BAJP;AAKA,OAAOC,OAAP,MAAoB,qBAApB;AAEA,SACEC,aADF,EAEEC,mBAFF,EAGEC,gBAHF,EAIEC,eAJF,EAKEC,gBALF,EAMEC,qBANF,EAOEC,iCAPF,EAQEC,sBARF,EASEC,sBATF,EAUEC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,IAAzB;IACA,MAAM,KAAKuI,sBAAL,CACJnJ,WADI,EAEJC,QAFI,EAGJC,QAHI,EAIJC,UAJI,EAKJC,UALI,CAAN;EAOD;;AAleyC;;gBAAvBN,sB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BaseEventCodes","getEventCodeByET","_etName","success","ENTITY_SUCCESS","ENTITY_FAILURE"],"sources":["EventCodeContainer.ts"],"sourcesContent":["import { BaseEventCodes } from '../../models/execTasks/ETConfig';\n\nexport function getEventCodeByET(_etName: string, success: boolean): string {\n return success\n ? BaseEventCodes.ENTITY_SUCCESS\n : BaseEventCodes.ENTITY_FAILURE;\n}\n"],"mappings":"AAAA,SAASA,cAAT,QAA+B,iCAA/B;AAEA,OAAO,SAASC,gBAAT,CAA0BC,OAA1B,EAA2CC,OAA3C,EAAqE;EAC1E,OAAOA,OAAO,GACVH,cAAc,CAACI,cADL,GAEVJ,cAAc,CAACK,cAFnB;AAGD"}
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
|
|
3
|
+
import DispatchSdkCache from '../sdk/DispatchSdkCache';
|
|
4
|
+
import Logger, { LOG_TYPE } from '../../utils/Logger';
|
|
5
|
+
import { BaseError } from '../../errors/BaseError';
|
|
6
|
+
import ErrorCodes from '../../errors/ErrorCodes';
|
|
7
|
+
import ReasonCodeRepo from './ReasonCodeRepo';
|
|
8
|
+
import GraphQLClient from '../../network/GraphQLClient';
|
|
9
|
+
export default class ReasonCodeContainer {
|
|
10
|
+
constructor() {
|
|
11
|
+
_defineProperty(this, "cache", DispatchSdkCache.getInstance());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static getInstance() {
|
|
15
|
+
if (!ReasonCodeContainer.instance) {
|
|
16
|
+
ReasonCodeContainer.instance = new ReasonCodeContainer();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return ReasonCodeContainer.instance;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async getReasonCodes(applicableCodes, entityCode) {
|
|
23
|
+
if (!applicableCodes || applicableCodes[entityCode] == null || applicableCodes[entityCode].length < 1) return [];
|
|
24
|
+
|
|
25
|
+
try {
|
|
26
|
+
const codes = applicableCodes[entityCode];
|
|
27
|
+
let finalApplicableCodes = await ReasonCodeRepo.getInstance().getReasonsByCode(codes);
|
|
28
|
+
|
|
29
|
+
if (finalApplicableCodes && finalApplicableCodes.length > 0) {
|
|
30
|
+
return finalApplicableCodes;
|
|
31
|
+
} else return [];
|
|
32
|
+
} catch (error) {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static getReasonCodeFromText(reasonText, reasons) {
|
|
38
|
+
for (const r of reasons) {
|
|
39
|
+
if (r.description === reasonText) {
|
|
40
|
+
return r.reasonCode;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async getReasonByCode(code) {
|
|
48
|
+
try {
|
|
49
|
+
if (!code) return null;else {
|
|
50
|
+
const queryResult = await ReasonCodeRepo.getInstance().getReasonByCode(code);
|
|
51
|
+
|
|
52
|
+
if (queryResult && queryResult.length > 0) {
|
|
53
|
+
return queryResult[0];
|
|
54
|
+
} else return null;
|
|
55
|
+
}
|
|
56
|
+
} catch (error) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async fetchReasonCode() {
|
|
62
|
+
const currentDate = new Date().toLocaleDateString();
|
|
63
|
+
const lastFetchedTime = await this.cache.getKeyFromCache(DispatchSdkCache.KEYS.REASON_FETCH_TIME);
|
|
64
|
+
const reasonFetchDate = new Date(lastFetchedTime ? parseInt(lastFetchedTime) : 0).toLocaleDateString();
|
|
65
|
+
|
|
66
|
+
if (currentDate !== reasonFetchDate) {
|
|
67
|
+
try {
|
|
68
|
+
let graphlQLResponse = await GraphQLClient.getInstance().fetchReasonCodes();
|
|
69
|
+
|
|
70
|
+
if (graphlQLResponse && graphlQLResponse.data && graphlQLResponse.data.reasonList && graphlQLResponse.data.reasonList.data) {
|
|
71
|
+
await ReasonCodeRepo.getInstance().saveReasonCode(graphlQLResponse.data.reasonList.data);
|
|
72
|
+
await this.cache.setKeyInCache(DispatchSdkCache.KEYS.REASON_FETCH_TIME, Date.now().toString());
|
|
73
|
+
} else {
|
|
74
|
+
Logger.getInstance().logEvent('fetchReasonCode', JSON.stringify(graphlQLResponse), LOG_TYPE.SDK_ERROR);
|
|
75
|
+
throw new BaseError(ErrorCodes.REASON_CODE_API_ERROR, 'Unexpected error');
|
|
76
|
+
}
|
|
77
|
+
} catch (error) {
|
|
78
|
+
Logger.getInstance().logEvent('fetchReasonCode', JSON.stringify(error), LOG_TYPE.SDK_ERROR);
|
|
79
|
+
throw new BaseError(ErrorCodes.REASON_CODE_API_ERROR, error.message);
|
|
80
|
+
}
|
|
81
|
+
} else {
|
|
82
|
+
Logger.getInstance().logEvent('fetchReasonCode', 'NO Fetch REQUIRED', LOG_TYPE.SDK_INFO);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
_defineProperty(ReasonCodeContainer, "instance", void 0);
|
|
89
|
+
//# sourceMappingURL=ReasonCodeContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DispatchSdkCache","Logger","LOG_TYPE","BaseError","ErrorCodes","ReasonCodeRepo","GraphQLClient","ReasonCodeContainer","constructor","getInstance","instance","getReasonCodes","applicableCodes","entityCode","length","codes","finalApplicableCodes","getReasonsByCode","error","getReasonCodeFromText","reasonText","reasons","r","description","reasonCode","getReasonByCode","code","queryResult","fetchReasonCode","currentDate","Date","toLocaleDateString","lastFetchedTime","cache","getKeyFromCache","KEYS","REASON_FETCH_TIME","reasonFetchDate","parseInt","graphlQLResponse","fetchReasonCodes","data","reasonList","saveReasonCode","setKeyInCache","now","toString","logEvent","JSON","stringify","SDK_ERROR","REASON_CODE_API_ERROR","message","SDK_INFO"],"sources":["ReasonCodeContainer.ts"],"sourcesContent":["import DispatchSdkCache from '../sdk/DispatchSdkCache';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport { BaseError } from '../../errors/BaseError';\nimport ErrorCodes from '../../errors/ErrorCodes';\nimport ReasonCodeRepo from './ReasonCodeRepo';\nimport type { ApplicableReasons } from '../../models/execTasks/ETBaseModels';\nimport type { ReasonsRow } from '../syncmanager/DBConfig';\nimport GraphQLClient from '../../network/GraphQLClient';\n\nexport default class ReasonCodeContainer {\n private static instance: ReasonCodeContainer;\n private cache: DispatchSdkCache = DispatchSdkCache.getInstance();\n private constructor() {}\n\n public static getInstance(): ReasonCodeContainer {\n if (!ReasonCodeContainer.instance) {\n ReasonCodeContainer.instance = new ReasonCodeContainer();\n }\n return ReasonCodeContainer.instance;\n }\n public async getReasonCodes(\n applicableCodes: ApplicableReasons,\n entityCode: string\n ): Promise<ReasonsRow[]> {\n if (\n !applicableCodes ||\n applicableCodes[entityCode] == null ||\n applicableCodes[entityCode].length < 1\n )\n return [];\n try {\n const codes: string[] = applicableCodes[entityCode];\n let finalApplicableCodes =\n await ReasonCodeRepo.getInstance().getReasonsByCode(codes);\n if (finalApplicableCodes && finalApplicableCodes.length > 0) {\n return finalApplicableCodes;\n } else return [];\n } catch (error: any) {\n return [];\n }\n }\n public static getReasonCodeFromText(\n reasonText: string,\n reasons: ReasonsRow[]\n ): string {\n for (const r of reasons) {\n if (r.description === reasonText) {\n return r.reasonCode;\n }\n }\n return '';\n }\n public async getReasonByCode(code: string): Promise<ReasonsRow | null> {\n try {\n if (!code) return null;\n else {\n const queryResult = await ReasonCodeRepo.getInstance().getReasonByCode(\n code\n );\n if (queryResult && queryResult.length > 0) {\n return queryResult[0];\n } else return null;\n }\n } catch (error: any) {\n return null;\n }\n }\n\n public async fetchReasonCode() {\n const currentDate = new Date().toLocaleDateString();\n const lastFetchedTime = await this.cache.getKeyFromCache(\n DispatchSdkCache.KEYS.REASON_FETCH_TIME\n );\n const reasonFetchDate = new Date(\n lastFetchedTime ? parseInt(lastFetchedTime) : 0\n ).toLocaleDateString();\n if (currentDate !== reasonFetchDate) {\n try {\n let graphlQLResponse =\n await GraphQLClient.getInstance().fetchReasonCodes();\n if (\n graphlQLResponse &&\n graphlQLResponse.data &&\n graphlQLResponse.data.reasonList &&\n graphlQLResponse.data.reasonList.data\n ) {\n await ReasonCodeRepo.getInstance().saveReasonCode(\n graphlQLResponse.data.reasonList.data\n );\n await this.cache.setKeyInCache(\n DispatchSdkCache.KEYS.REASON_FETCH_TIME,\n Date.now().toString()\n );\n } else {\n Logger.getInstance().logEvent(\n 'fetchReasonCode',\n JSON.stringify(graphlQLResponse),\n LOG_TYPE.SDK_ERROR\n );\n throw new BaseError(\n ErrorCodes.REASON_CODE_API_ERROR,\n 'Unexpected error'\n );\n }\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'fetchReasonCode',\n JSON.stringify(error),\n LOG_TYPE.SDK_ERROR\n );\n throw new BaseError(ErrorCodes.REASON_CODE_API_ERROR, error.message);\n }\n } else {\n Logger.getInstance().logEvent(\n 'fetchReasonCode',\n 'NO Fetch REQUIRED',\n LOG_TYPE.SDK_INFO\n );\n }\n }\n}\n"],"mappings":";;AAAA,OAAOA,gBAAP,MAA6B,yBAA7B;AACA,OAAOC,MAAP,IAAiBC,QAAjB,QAAiC,oBAAjC;AACA,SAASC,SAAT,QAA0B,wBAA1B;AACA,OAAOC,UAAP,MAAuB,yBAAvB;AACA,OAAOC,cAAP,MAA2B,kBAA3B;AAGA,OAAOC,aAAP,MAA0B,6BAA1B;AAEA,eAAe,MAAMC,mBAAN,CAA0B;EAG/BC,WAAW,GAAG;IAAA,+BADYR,gBAAgB,CAACS,WAAjB,EACZ;EAAE;;EAEC,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