@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,442 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _SyncManagerUtils = require("../../utils/SyncManagerUtils");
|
|
9
|
+
|
|
10
|
+
var _storage = _interopRequireDefault(require("../../utils/storage"));
|
|
11
|
+
|
|
12
|
+
var _mobileExecutionLib = require("@foxtrotplatform/mobile-execution-lib");
|
|
13
|
+
|
|
14
|
+
var _Toaster = require("../../components/widgets/Toaster");
|
|
15
|
+
|
|
16
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
17
|
+
|
|
18
|
+
var _EventsSyncManager = _interopRequireDefault(require("../syncmanager/events/EventsSyncManager"));
|
|
19
|
+
|
|
20
|
+
var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
|
|
21
|
+
|
|
22
|
+
var _DispatchSdkCache = _interopRequireDefault(require("../sdk/DispatchSdkCache"));
|
|
23
|
+
|
|
24
|
+
var _BaseError = require("../../errors/BaseError");
|
|
25
|
+
|
|
26
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
27
|
+
|
|
28
|
+
var _ReasonCodeContainer = _interopRequireDefault(require("../dispatchCodes/ReasonCodeContainer"));
|
|
29
|
+
|
|
30
|
+
var _ErrorCodes = _interopRequireWildcard(require("../../errors/ErrorCodes"));
|
|
31
|
+
|
|
32
|
+
var _RouteParams = require("../../ui/uiConfig/RouteParams");
|
|
33
|
+
|
|
34
|
+
var _lodash = require("lodash");
|
|
35
|
+
|
|
36
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
|
+
|
|
38
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
39
|
+
|
|
40
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
class DispatchStateContainer {
|
|
45
|
+
constructor() {
|
|
46
|
+
_defineProperty(this, "dispatchExecutor", new _mobileExecutionLib.ExecutionEngine());
|
|
47
|
+
|
|
48
|
+
_defineProperty(this, "successRoute", null);
|
|
49
|
+
|
|
50
|
+
_defineProperty(this, "failureRoute", null);
|
|
51
|
+
|
|
52
|
+
_defineProperty(this, "_stateKeys", []);
|
|
53
|
+
|
|
54
|
+
_defineProperty(this, "_jobObjectives", null);
|
|
55
|
+
|
|
56
|
+
_defineProperty(this, "_mappedStates", new Map());
|
|
57
|
+
|
|
58
|
+
_defineProperty(this, "saveAndProceedToNextET", (0, _lodash.debounce)(async (baseETProps, etOutput, etStates, navigation, isLastTask) => {
|
|
59
|
+
try {
|
|
60
|
+
await this.sendETOutput(etOutput, etStates);
|
|
61
|
+
await this.moveToNextET(baseETProps, etStates, navigation, isLastTask);
|
|
62
|
+
} catch (error) {
|
|
63
|
+
_Logger.default.getInstance().logEvent('saveAndProceed', error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
64
|
+
|
|
65
|
+
baseETProps.showProgress(false);
|
|
66
|
+
(0, _Toaster.showToast)(error.message);
|
|
67
|
+
}
|
|
68
|
+
}, 800));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
get stateKeys() {
|
|
72
|
+
return this._stateKeys;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
set stateKeys(value) {
|
|
76
|
+
this._stateKeys = value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
get mappedStates() {
|
|
80
|
+
return this._mappedStates;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
set mappedStates(value) {
|
|
84
|
+
this._mappedStates = value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Call this function when dispatch data is fetched successfully in client app
|
|
89
|
+
* @param dispatchID
|
|
90
|
+
* @param jobs
|
|
91
|
+
* @param logging
|
|
92
|
+
* @param maxTaskReattempt
|
|
93
|
+
*/
|
|
94
|
+
async initDispatchExecutor(dispatchID, jobs, logging, maxTaskReattempt) {
|
|
95
|
+
if (!dispatchID || !jobs || jobs.length < 1) {
|
|
96
|
+
_Logger.default.getInstance().logEvent('initDispatchExecutor', _ErrorCodes.InvalidArgumentsError, _Logger.LOG_TYPE.SDK_WARNING);
|
|
97
|
+
|
|
98
|
+
throw new _BaseError.BaseError(_ErrorCodes.default.InvalidArgumentError, _ErrorCodes.InvalidArgumentsError);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
let storage = _storage.default.getInstance();
|
|
102
|
+
|
|
103
|
+
await (0, _SyncManagerUtils.clearCache)(dispatchID);
|
|
104
|
+
await _DispatchSdkCache.default.getInstance().setKeyInCache(_DispatchSdkCache.default.KEYS.DISPATCH_ID, dispatchID);
|
|
105
|
+
await (0, _SyncManagerUtils.createFmsFolder)(dispatchID);
|
|
106
|
+
await this.dispatchExecutor.init(dispatchID, jobs, {
|
|
107
|
+
storeDbItemCallback: storage.setObject,
|
|
108
|
+
readDbItemCallback: storage.getObject,
|
|
109
|
+
deleteDbItemsCallback: storage.deleteMultiple,
|
|
110
|
+
getDbKeysCallback: storage.getAllKeys,
|
|
111
|
+
eventSyncCallback: _SyncManagerUtils.pushEventForSync
|
|
112
|
+
}, {
|
|
113
|
+
startTaskName: _ETConfig.FinalETName.START_WORKFLOW,
|
|
114
|
+
successTaskName: _ETConfig.FinalETName.COMPLETED_SUCCESS,
|
|
115
|
+
failureTaskName: _ETConfig.FinalETName.COMPLETED_FAILURE,
|
|
116
|
+
maxTaskReattempts: maxTaskReattempt,
|
|
117
|
+
logLevel: logging ? 'debug' : 'emerg'
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
async bulkQueryNextET(jobObjectiveList) {
|
|
122
|
+
if (!jobObjectiveList || jobObjectiveList.length === 0) {
|
|
123
|
+
_Logger.default.getInstance().logEvent('bulkQueryNextET', 'CONSTRAINTS FAILED', _Logger.LOG_TYPE.SDK_ERROR);
|
|
124
|
+
|
|
125
|
+
throw new _BaseError.BaseError(_ErrorCodes.default.MERGING_ERROR, 'CONSTRAINTS FAILED');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
for (const o of jobObjectiveList) {
|
|
129
|
+
let nState = null;
|
|
130
|
+
|
|
131
|
+
try {
|
|
132
|
+
nState = await this.queryObjective(o.objectiveId, o.jobId);
|
|
133
|
+
} catch (error) {
|
|
134
|
+
_Logger.default.getInstance().logEvent('bulkQueryNextET', JSON.stringify({
|
|
135
|
+
error: error.message,
|
|
136
|
+
jobId: o.jobId,
|
|
137
|
+
objRef: o.objectiveId
|
|
138
|
+
}), _Logger.LOG_TYPE.SDK_ERROR);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (nState) {
|
|
142
|
+
if (this._mappedStates.has(nState.taskId)) {
|
|
143
|
+
const val = this._mappedStates.get(nState.taskId);
|
|
144
|
+
|
|
145
|
+
val === null || val === void 0 ? void 0 : val.push({
|
|
146
|
+
nextState: nState,
|
|
147
|
+
objRef: o.objectiveId,
|
|
148
|
+
jobId: o.jobId
|
|
149
|
+
});
|
|
150
|
+
} else {
|
|
151
|
+
this._stateKeys.push(nState.taskId);
|
|
152
|
+
|
|
153
|
+
this._mappedStates.set(nState.taskId, [{
|
|
154
|
+
nextState: nState,
|
|
155
|
+
objRef: o.objectiveId,
|
|
156
|
+
jobId: o.jobId
|
|
157
|
+
}]);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const taskID = this._stateKeys.pop();
|
|
163
|
+
|
|
164
|
+
if (taskID) {
|
|
165
|
+
const nextStates = this._mappedStates.get(taskID);
|
|
166
|
+
|
|
167
|
+
this._mappedStates.delete(taskID);
|
|
168
|
+
|
|
169
|
+
return nextStates ?? [];
|
|
170
|
+
} else return null;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
async queryNextTask(jobObjectiveList) {
|
|
174
|
+
try {
|
|
175
|
+
const promises = [];
|
|
176
|
+
jobObjectiveList.forEach(jobObjective => {
|
|
177
|
+
promises.push(this.queryObjective(jobObjective.objectiveId, jobObjective.jobId));
|
|
178
|
+
});
|
|
179
|
+
return await Promise.all(promises);
|
|
180
|
+
} catch (error) {
|
|
181
|
+
if (error instanceof _mobileExecutionLib.QuerySucceededObjectiveError) {
|
|
182
|
+
(0, _Toaster.showToast)('OBJECTIVE IS ALREADY COMPLETED');
|
|
183
|
+
} else if (error instanceof _mobileExecutionLib.EngineNotReadyError) {
|
|
184
|
+
(0, _Toaster.showToast)('ENGINE NOT READY! Please Try again after some time');
|
|
185
|
+
} else if (error instanceof _mobileExecutionLib.ObjectiveNotFoundError) {
|
|
186
|
+
(0, _Toaster.showToast)('NO SUCH OBJECTIVE FOUND');
|
|
187
|
+
} else if (error instanceof _mobileExecutionLib.ObjectiveNotReadyError) {
|
|
188
|
+
(0, _Toaster.showToast)('OBJECTIVE NOT READY');
|
|
189
|
+
} else if (error instanceof _mobileExecutionLib.ObjectiveJobAlreadyCompletedError) {
|
|
190
|
+
(0, _Toaster.showToast)('OBJECTIVE CANNOT BE ATTEMPTED');
|
|
191
|
+
} else if (error instanceof _mobileExecutionLib.JobStatusInvalidError || error instanceof _mobileExecutionLib.JobNotFoundError || error instanceof _mobileExecutionLib.EmptyJobError || error instanceof _mobileExecutionLib.ETIdInvalidError) {
|
|
192
|
+
(0, _Toaster.showToast)('INVALID JOB');
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
async queryObjective(objRef, jobID) {
|
|
200
|
+
return await this.dispatchExecutor.queryObjectiveState(objRef, jobID);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
async sendETOutput(etOutput, etState) {
|
|
204
|
+
if (!etState || etState.length === 0) {
|
|
205
|
+
_Logger.default.getInstance().logEvent('sendETOutput', 'CONSTRAINTS FAILED', _Logger.LOG_TYPE.SDK_ERROR);
|
|
206
|
+
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const promises = [];
|
|
211
|
+
etState.forEach(objItem => {
|
|
212
|
+
if (objItem.nextState.taskId === _ETConfig.ExecutionTaskID.DELIVER_CASH) {
|
|
213
|
+
var _objItem$nextState$da, _objItem$nextState$da2;
|
|
214
|
+
|
|
215
|
+
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;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
objItem.nextState.data.output = { ...etOutput
|
|
219
|
+
};
|
|
220
|
+
promises.push(this.dispatchExecutor.lockObjectiveState(objItem.objRef, objItem.jobId, objItem.nextState));
|
|
221
|
+
});
|
|
222
|
+
await Promise.all(promises);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
async saveETOutput(jobId, objRef, etState) {
|
|
226
|
+
await this.dispatchExecutor.lockObjectiveState(objRef, jobId, etState);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
static getInstance() {
|
|
230
|
+
if (!DispatchStateContainer.instance) {
|
|
231
|
+
DispatchStateContainer.instance = new DispatchStateContainer();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
return DispatchStateContainer.instance;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
fetchObjectiveState(objRef, jobID) {
|
|
238
|
+
return this.dispatchExecutor.queryObjectiveStatus(objRef, jobID);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
setSuccessRoute(route) {
|
|
242
|
+
this.successRoute = route;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
getSuccessRoute() {
|
|
246
|
+
return this.successRoute;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
setFailureRoute(route) {
|
|
250
|
+
this.failureRoute = route;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
getFailureRoute() {
|
|
254
|
+
return this.failureRoute;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
async getObjectiveSummary(jobObjective) {
|
|
258
|
+
try {
|
|
259
|
+
let response = [];
|
|
260
|
+
let summaryData = await _EventsSyncManager.default.getInstance().getObjectiveSummary(jobObjective.jobId + jobObjective.objectiveId);
|
|
261
|
+
|
|
262
|
+
if (summaryData) {
|
|
263
|
+
for (const k in summaryData) {
|
|
264
|
+
if (k === 'inputs') continue;else {
|
|
265
|
+
const reason = await _ReasonCodeContainer.default.getInstance().getReasonByCode(summaryData[k].output.reasonCode);
|
|
266
|
+
response.push({
|
|
267
|
+
eventCode: summaryData[k].output.eventCode,
|
|
268
|
+
reasonCode: summaryData[k].output.reasonCode,
|
|
269
|
+
reasonCodeDesc: reason === null || reason === void 0 ? void 0 : reason.description,
|
|
270
|
+
name: k
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
return response;
|
|
276
|
+
} else return response;
|
|
277
|
+
} catch (error) {
|
|
278
|
+
_Logger.default.getInstance().logEvent('getObjectiveSummary', error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
279
|
+
|
|
280
|
+
return [];
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
async navigateToNextTask(navigation, route, etOutput, etSuccess, entityCode, eTaskID, baseETProps, isLastTask) {
|
|
285
|
+
try {
|
|
286
|
+
baseETProps.showProgress(true);
|
|
287
|
+
|
|
288
|
+
const reasonsContainer = _ReasonCodeContainer.default.getInstance();
|
|
289
|
+
|
|
290
|
+
if (etSuccess) {
|
|
291
|
+
const successCodes = await reasonsContainer.getReasonCodes(route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input.applicableReasons, _ETConfig.BaseEventCodes.ENTITY_SUCCESS);
|
|
292
|
+
|
|
293
|
+
if (successCodes && successCodes.length > 0) {
|
|
294
|
+
if (successCodes.length === 1) {
|
|
295
|
+
etOutput.reasonCode = successCodes[0].reasonCode;
|
|
296
|
+
await this.saveAndProceed(baseETProps, etOutput, route.params[_RouteParams.RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
297
|
+
} else {
|
|
298
|
+
let rParams;
|
|
299
|
+
rParams = { ...route.params
|
|
300
|
+
};
|
|
301
|
+
rParams[_RouteParams.RouteParams.ET_SUCCESS] = true;
|
|
302
|
+
rParams[_RouteParams.RouteParams.ET_SUCCESS_RESPONSE] = etOutput;
|
|
303
|
+
rParams[_RouteParams.RouteParams.CURRENT_ET_NAME] = eTaskID;
|
|
304
|
+
rParams[_RouteParams.RouteParams.REASONS] = successCodes;
|
|
305
|
+
rParams[_RouteParams.RouteParams.IS_LAST_ET] = isLastTask;
|
|
306
|
+
navigation.replace(_ETConfig.CustomScreens.REMARK_SCREEN, rParams);
|
|
307
|
+
}
|
|
308
|
+
} else {
|
|
309
|
+
await this.saveAndProceed(baseETProps, etOutput, route.params[_RouteParams.RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
310
|
+
}
|
|
311
|
+
} else {
|
|
312
|
+
const failureCodes = await reasonsContainer.getReasonCodes(route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input.applicableReasons, _ETConfig.BaseEventCodes.ENTITY_FAILURE);
|
|
313
|
+
|
|
314
|
+
if (failureCodes && failureCodes.length > 0) {
|
|
315
|
+
if (failureCodes.length === 1) {
|
|
316
|
+
await this.saveAndProceed(baseETProps, await (0, _ExecTaskUtils.getBaseETResponse)(entityCode, false, _ETConfig.BaseEventCodes.ENTITY_FAILURE, failureCodes[0].reasonCode), route.params[_RouteParams.RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
317
|
+
} else {
|
|
318
|
+
let rParams;
|
|
319
|
+
rParams = { ...route.params
|
|
320
|
+
};
|
|
321
|
+
rParams[_RouteParams.RouteParams.ET_SUCCESS] = false;
|
|
322
|
+
rParams[_RouteParams.RouteParams.CURRENT_ET_NAME] = eTaskID;
|
|
323
|
+
rParams[_RouteParams.RouteParams.REASONS] = failureCodes;
|
|
324
|
+
rParams[_RouteParams.RouteParams.IS_LAST_ET] = isLastTask;
|
|
325
|
+
navigation.replace(_ETConfig.CustomScreens.REMARK_SCREEN, rParams);
|
|
326
|
+
}
|
|
327
|
+
} else {
|
|
328
|
+
await this.saveAndProceed(baseETProps, await (0, _ExecTaskUtils.getBaseETResponse)(entityCode, false, _ETConfig.BaseEventCodes.ENTITY_FAILURE, ''), route.params[_RouteParams.RouteParams.NEXT_STATES], navigation, isLastTask);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
} catch (error) {
|
|
332
|
+
baseETProps.showProgress(false);
|
|
333
|
+
|
|
334
|
+
_Logger.default.getInstance().logEvent('navigateToNextTask', error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
getJobObjectiveList(nextStates) {
|
|
339
|
+
const result = [];
|
|
340
|
+
nextStates.forEach(s => {
|
|
341
|
+
result.push({
|
|
342
|
+
jobId: s.jobId,
|
|
343
|
+
objectiveId: s.objRef
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
return result;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
async moveToNextET(baseETProps, etStates, navigation, isLastTask) {
|
|
350
|
+
try {
|
|
351
|
+
baseETProps.showProgress(true);
|
|
352
|
+
|
|
353
|
+
if (isLastTask && etStates && etStates.length > 0) {
|
|
354
|
+
if (this._stateKeys.length !== 0) {
|
|
355
|
+
const st = this._stateKeys.pop();
|
|
356
|
+
|
|
357
|
+
if (st) {
|
|
358
|
+
baseETProps.showProgress(false);
|
|
359
|
+
|
|
360
|
+
let nextStateList = this._mappedStates.get(st);
|
|
361
|
+
|
|
362
|
+
this._mappedStates.delete(st);
|
|
363
|
+
|
|
364
|
+
if (nextStateList != null && nextStateList.length > 0) {
|
|
365
|
+
let rParams = {};
|
|
366
|
+
rParams[_RouteParams.RouteParams.NEXT_STATES] = nextStateList;
|
|
367
|
+
navigation.replace(nextStateList[0].nextState.taskId, rParams);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
let nextState = etStates[0];
|
|
375
|
+
let completeJobsSummary = [];
|
|
376
|
+
let objSummary = await this.getObjectiveSummary({
|
|
377
|
+
jobId: etStates[0].jobId,
|
|
378
|
+
objectiveId: etStates[0].objRef
|
|
379
|
+
});
|
|
380
|
+
completeJobsSummary.push({
|
|
381
|
+
jobId: etStates[0].jobId,
|
|
382
|
+
objectiveRef: etStates[0].objRef,
|
|
383
|
+
jobObjectiveSummary: objSummary
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
for (let i = 1; i < etStates.length; i++) {
|
|
387
|
+
let obs = await this.getObjectiveSummary({
|
|
388
|
+
jobId: etStates[i].jobId,
|
|
389
|
+
objectiveId: etStates[i].objRef
|
|
390
|
+
});
|
|
391
|
+
completeJobsSummary.push({
|
|
392
|
+
jobId: etStates[i].jobId,
|
|
393
|
+
objectiveRef: etStates[i].objRef,
|
|
394
|
+
jobObjectiveSummary: obs
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
baseETProps.showProgress(false);
|
|
399
|
+
|
|
400
|
+
if (nextState.nextState.taskId === _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS) {
|
|
401
|
+
navigation.replace(this.getSuccessRoute(), {
|
|
402
|
+
summary: objSummary,
|
|
403
|
+
completeSummary: completeJobsSummary,
|
|
404
|
+
objList: this.getJobObjectiveList(etStates),
|
|
405
|
+
objSuccess: true
|
|
406
|
+
});
|
|
407
|
+
} else {
|
|
408
|
+
navigation.replace(this.getFailureRoute(), {
|
|
409
|
+
summary: objSummary,
|
|
410
|
+
completeSummary: completeJobsSummary,
|
|
411
|
+
objList: this.getJobObjectiveList(etStates),
|
|
412
|
+
objSuccess: false
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
} else {
|
|
416
|
+
let nextStateList = await this.bulkQueryNextET(this.getJobObjectiveList(etStates));
|
|
417
|
+
baseETProps.showProgress(false);
|
|
418
|
+
|
|
419
|
+
if (nextStateList != null && nextStateList.length > 0) {
|
|
420
|
+
let rParams = {};
|
|
421
|
+
rParams[_RouteParams.RouteParams.NEXT_STATES] = nextStateList;
|
|
422
|
+
navigation.replace(nextStateList[0].nextState.taskId, rParams);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
} catch (error) {
|
|
426
|
+
baseETProps.showProgress(false);
|
|
427
|
+
|
|
428
|
+
_Logger.default.getInstance().logEvent('moveToNextET', error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
async saveAndProceed(baseETProps, etOutput, etStates, navigation, isLastTask) {
|
|
433
|
+
baseETProps.showProgress(true);
|
|
434
|
+
await this.saveAndProceedToNextET(baseETProps, etOutput, etStates, navigation, isLastTask);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
exports.default = DispatchStateContainer;
|
|
440
|
+
|
|
441
|
+
_defineProperty(DispatchStateContainer, "instance", void 0);
|
|
442
|
+
//# sourceMappingURL=DispatchStateContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DispatchStateContainer","ExecutionEngine","Map","debounce","baseETProps","etOutput","etStates","navigation","isLastTask","sendETOutput","moveToNextET","error","Logger","getInstance","logEvent","message","LOG_TYPE","SDK_ERROR","showProgress","showToast","stateKeys","_stateKeys","value","mappedStates","_mappedStates","initDispatchExecutor","dispatchID","jobs","logging","maxTaskReattempt","length","InvalidArgumentsError","SDK_WARNING","BaseError","BaseErrorCodes","InvalidArgumentError","storage","Storage","clearCache","DispatchSdkCache","setKeyInCache","KEYS","DISPATCH_ID","createFmsFolder","dispatchExecutor","init","storeDbItemCallback","setObject","readDbItemCallback","getObject","deleteDbItemsCallback","deleteMultiple","getDbKeysCallback","getAllKeys","eventSyncCallback","pushEventForSync","startTaskName","FinalETName","START_WORKFLOW","successTaskName","COMPLETED_SUCCESS","failureTaskName","COMPLETED_FAILURE","maxTaskReattempts","logLevel","bulkQueryNextET","jobObjectiveList","ErrorCodes","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","QuerySucceededObjectiveError","EngineNotReadyError","ObjectiveNotFoundError","ObjectiveNotReadyError","ObjectiveJobAlreadyCompletedError","JobStatusInvalidError","JobNotFoundError","EmptyJobError","ETIdInvalidError","jobID","queryObjectiveState","etState","objItem","ExecutionTaskID","DELIVER_CASH","amount","data","input","expectedAmount","output","lockObjectiveState","saveETOutput","instance","fetchObjectiveState","queryObjectiveStatus","setSuccessRoute","route","successRoute","getSuccessRoute","setFailureRoute","failureRoute","getFailureRoute","getObjectiveSummary","response","summaryData","EventsSyncManager","k","reason","ReasonCodeContainer","getReasonByCode","reasonCode","eventCode","reasonCodeDesc","description","name","navigateToNextTask","etSuccess","entityCode","eTaskID","reasonsContainer","successCodes","getReasonCodes","params","RouteParams","NEXT_STATES","applicableReasons","BaseEventCodes","ENTITY_SUCCESS","saveAndProceed","rParams","ET_SUCCESS","ET_SUCCESS_RESPONSE","CURRENT_ET_NAME","REASONS","IS_LAST_ET","replace","CustomScreens","REMARK_SCREEN","failureCodes","ENTITY_FAILURE","getBaseETResponse","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;;AAKA;;AAEA;;AAYA;;AACA;;AAUA;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEe,MAAMA,sBAAN,CAA6B;EAAA;IAAA,0CAgBf,IAAIC,mCAAJ,EAhBe;;IAAA,sCAiBJ,IAjBI;;IAAA,sCAkBJ,IAlBI;;IAAA,oCAoBX,EApBW;;IAAA,wCAqBS,IArBT;;IAAA,uCAsBc,IAAIC,GAAJ,EAtBd;;IAAA,gDA4bT,IAAAC,gBAAA,EAC/B,OACEC,WADF,EAEEC,QAFF,EAGEC,QAHF,EAIEC,UAJF,EAKEC,UALF,KAMK;MACH,IAAI;QACF,MAAM,KAAKC,YAAL,CAAkBJ,QAAlB,EAA4BC,QAA5B,CAAN;QACA,MAAM,KAAKI,YAAL,CAAkBN,WAAlB,EAA+BE,QAA/B,EAAyCC,UAAzC,EAAqDC,UAArD,CAAN;MACD,CAHD,CAGE,OAAOG,KAAP,EAAmB;QACnBC,eAAA,CAAOC,WAAP,GAAqBC,QAArB,CACE,gBADF,EAEEH,KAAK,CAACI,OAFR,EAGEC,gBAAA,CAASC,SAHX;;QAKAb,WAAW,CAACc,YAAZ,CAAyB,KAAzB;QACA,IAAAC,kBAAA,EAAUR,KAAK,CAACI,OAAhB;MACD;IACF,CApB8B,EAqB/B,GArB+B,CA5bS;EAAA;;EAC7B,IAATK,SAAS,GAAa;IACxB,OAAO,KAAKC,UAAZ;EACD;;EAEY,IAATD,SAAS,CAACE,KAAD,EAAkB;IAC7B,KAAKD,UAAL,GAAk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N;EAOD;;AAleyC;;;;gBAAvBR,sB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getEventCodeByET = getEventCodeByET;
|
|
7
|
+
|
|
8
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
9
|
+
|
|
10
|
+
function getEventCodeByET(_etName, success) {
|
|
11
|
+
return success ? _ETConfig.BaseEventCodes.ENTITY_SUCCESS : _ETConfig.BaseEventCodes.ENTITY_FAILURE;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=EventCodeContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getEventCodeByET","_etName","success","BaseEventCodes","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;;AAEO,SAASA,gBAAT,CAA0BC,OAA1B,EAA2CC,OAA3C,EAAqE;EAC1E,OAAOA,OAAO,GACVC,wBAAA,CAAeC,cADL,GAEVD,wBAAA,CAAeE,cAFnB;AAGD"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _DispatchSdkCache = _interopRequireDefault(require("../sdk/DispatchSdkCache"));
|
|
9
|
+
|
|
10
|
+
var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
|
|
11
|
+
|
|
12
|
+
var _BaseError = require("../../errors/BaseError");
|
|
13
|
+
|
|
14
|
+
var _ErrorCodes = _interopRequireDefault(require("../../errors/ErrorCodes"));
|
|
15
|
+
|
|
16
|
+
var _ReasonCodeRepo = _interopRequireDefault(require("./ReasonCodeRepo"));
|
|
17
|
+
|
|
18
|
+
var _GraphQLClient = _interopRequireDefault(require("../../network/GraphQLClient"));
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
class ReasonCodeContainer {
|
|
29
|
+
constructor() {
|
|
30
|
+
_defineProperty(this, "cache", _DispatchSdkCache.default.getInstance());
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static getInstance() {
|
|
34
|
+
if (!ReasonCodeContainer.instance) {
|
|
35
|
+
ReasonCodeContainer.instance = new ReasonCodeContainer();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return ReasonCodeContainer.instance;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async getReasonCodes(applicableCodes, entityCode) {
|
|
42
|
+
if (!applicableCodes || applicableCodes[entityCode] == null || applicableCodes[entityCode].length < 1) return [];
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
const codes = applicableCodes[entityCode];
|
|
46
|
+
let finalApplicableCodes = await _ReasonCodeRepo.default.getInstance().getReasonsByCode(codes);
|
|
47
|
+
|
|
48
|
+
if (finalApplicableCodes && finalApplicableCodes.length > 0) {
|
|
49
|
+
return finalApplicableCodes;
|
|
50
|
+
} else return [];
|
|
51
|
+
} catch (error) {
|
|
52
|
+
return [];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static getReasonCodeFromText(reasonText, reasons) {
|
|
57
|
+
for (const r of reasons) {
|
|
58
|
+
if (r.description === reasonText) {
|
|
59
|
+
return r.reasonCode;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return '';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async getReasonByCode(code) {
|
|
67
|
+
try {
|
|
68
|
+
if (!code) return null;else {
|
|
69
|
+
const queryResult = await _ReasonCodeRepo.default.getInstance().getReasonByCode(code);
|
|
70
|
+
|
|
71
|
+
if (queryResult && queryResult.length > 0) {
|
|
72
|
+
return queryResult[0];
|
|
73
|
+
} else return null;
|
|
74
|
+
}
|
|
75
|
+
} catch (error) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
async fetchReasonCode() {
|
|
81
|
+
const currentDate = new Date().toLocaleDateString();
|
|
82
|
+
const lastFetchedTime = await this.cache.getKeyFromCache(_DispatchSdkCache.default.KEYS.REASON_FETCH_TIME);
|
|
83
|
+
const reasonFetchDate = new Date(lastFetchedTime ? parseInt(lastFetchedTime) : 0).toLocaleDateString();
|
|
84
|
+
|
|
85
|
+
if (currentDate !== reasonFetchDate) {
|
|
86
|
+
try {
|
|
87
|
+
let graphlQLResponse = await _GraphQLClient.default.getInstance().fetchReasonCodes();
|
|
88
|
+
|
|
89
|
+
if (graphlQLResponse && graphlQLResponse.data && graphlQLResponse.data.reasonList && graphlQLResponse.data.reasonList.data) {
|
|
90
|
+
await _ReasonCodeRepo.default.getInstance().saveReasonCode(graphlQLResponse.data.reasonList.data);
|
|
91
|
+
await this.cache.setKeyInCache(_DispatchSdkCache.default.KEYS.REASON_FETCH_TIME, Date.now().toString());
|
|
92
|
+
} else {
|
|
93
|
+
_Logger.default.getInstance().logEvent('fetchReasonCode', JSON.stringify(graphlQLResponse), _Logger.LOG_TYPE.SDK_ERROR);
|
|
94
|
+
|
|
95
|
+
throw new _BaseError.BaseError(_ErrorCodes.default.REASON_CODE_API_ERROR, 'Unexpected error');
|
|
96
|
+
}
|
|
97
|
+
} catch (error) {
|
|
98
|
+
_Logger.default.getInstance().logEvent('fetchReasonCode', JSON.stringify(error), _Logger.LOG_TYPE.SDK_ERROR);
|
|
99
|
+
|
|
100
|
+
throw new _BaseError.BaseError(_ErrorCodes.default.REASON_CODE_API_ERROR, error.message);
|
|
101
|
+
}
|
|
102
|
+
} else {
|
|
103
|
+
_Logger.default.getInstance().logEvent('fetchReasonCode', 'NO Fetch REQUIRED', _Logger.LOG_TYPE.SDK_INFO);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
exports.default = ReasonCodeContainer;
|
|
110
|
+
|
|
111
|
+
_defineProperty(ReasonCodeContainer, "instance", void 0);
|
|
112
|
+
//# sourceMappingURL=ReasonCodeContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ReasonCodeContainer","constructor","DispatchSdkCache","getInstance","instance","getReasonCodes","applicableCodes","entityCode","length","codes","finalApplicableCodes","ReasonCodeRepo","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","GraphQLClient","fetchReasonCodes","data","reasonList","saveReasonCode","setKeyInCache","now","toString","Logger","logEvent","JSON","stringify","LOG_TYPE","SDK_ERROR","BaseError","ErrorCodes","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;;AACA;;AACA;;AACA;;AACA;;AAGA;;;;;;;;;;AAEe,MAAMA,mBAAN,CAA0B;EAG/BC,WAAW,GAAG;IAAA,+BADYC,yBAAA,CAAiBC,WAAjB,E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