@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,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
9
|
+
|
|
10
|
+
var _RTScan = _interopRequireDefault(require("../../components/executiontasks/scanner/returns/RTScan"));
|
|
11
|
+
|
|
12
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
17
|
+
|
|
18
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
19
|
+
|
|
20
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
21
|
+
|
|
22
|
+
var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
32
|
+
const instance = _DispatchStateContainer.default.getInstance();
|
|
33
|
+
|
|
34
|
+
const TAG = 'RTScanScreen';
|
|
35
|
+
|
|
36
|
+
function getAllShipments(etInputList) {
|
|
37
|
+
const shipmentsMap = new Map();
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
if (!etInputList || etInputList.length === 0) return shipmentsMap;else {
|
|
41
|
+
etInputList.forEach(item => {
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
const key = item.nextState.data.input.shipment[0] ?? '';
|
|
44
|
+
shipmentsMap.set(key, item);
|
|
45
|
+
});
|
|
46
|
+
return shipmentsMap;
|
|
47
|
+
}
|
|
48
|
+
} catch (error) {
|
|
49
|
+
return shipmentsMap;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const RTScanScreen = _ref => {
|
|
54
|
+
let {
|
|
55
|
+
route,
|
|
56
|
+
navigation,
|
|
57
|
+
baseETProps
|
|
58
|
+
} = _ref;
|
|
59
|
+
const [scanItemsMap, setScanItemMap] = (0, _react.useState)(undefined);
|
|
60
|
+
const [scanItems, setScanItem] = (0, _react.useState)(undefined);
|
|
61
|
+
(0, _react.useEffect)(() => {
|
|
62
|
+
baseETProps.showProgress(true);
|
|
63
|
+
setScanItemMap(_prev => {
|
|
64
|
+
const map = getAllShipments(route.params[_RouteParams.RouteParams.NEXT_STATES]);
|
|
65
|
+
setScanItem(Array.from(map.keys()));
|
|
66
|
+
return map;
|
|
67
|
+
});
|
|
68
|
+
baseETProps.showProgress(false);
|
|
69
|
+
}, [baseETProps, route.params]);
|
|
70
|
+
return /*#__PURE__*/_react.default.createElement(_RTScan.default, _extends({}, route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input, {
|
|
71
|
+
scans: scanItems,
|
|
72
|
+
onSubmitET: async scanETOutput => {
|
|
73
|
+
try {
|
|
74
|
+
baseETProps.showProgress(true);
|
|
75
|
+
|
|
76
|
+
if (Array.isArray(scanETOutput)) {
|
|
77
|
+
const promises = [];
|
|
78
|
+
|
|
79
|
+
for (const scanOut of scanETOutput) {
|
|
80
|
+
if (scanOut) {
|
|
81
|
+
const etOutput = {
|
|
82
|
+
scans: [{
|
|
83
|
+
value: scanOut.value,
|
|
84
|
+
timestamp: scanOut.timestamp ?? Date.now(),
|
|
85
|
+
validated: scanOut.validated
|
|
86
|
+
}],
|
|
87
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.SCAN, scanOut.success ?? false, scanOut.success ? _ETConfig.BaseEventCodes.ENTITY_SUCCESS : _ETConfig.BaseEventCodes.ENTITY_FAILURE, scanOut.reasonCode ?? ''))
|
|
88
|
+
};
|
|
89
|
+
const jobObjective = scanItemsMap === null || scanItemsMap === void 0 ? void 0 : scanItemsMap.get(scanOut.value);
|
|
90
|
+
|
|
91
|
+
if (jobObjective) {
|
|
92
|
+
jobObjective.nextState.data.output = { ...etOutput
|
|
93
|
+
};
|
|
94
|
+
promises.push(instance.saveETOutput(jobObjective.jobId, jobObjective.objRef, jobObjective.nextState));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
await Promise.all(promises);
|
|
100
|
+
await instance.moveToNextET(baseETProps, Array.from((scanItemsMap === null || scanItemsMap === void 0 ? void 0 : scanItemsMap.values()) ?? []), navigation, false);
|
|
101
|
+
} else {
|
|
102
|
+
await instance.navigateToNextTask(navigation, route, scanETOutput, scanETOutput.success, _ETConfig.EntityCode.SCAN, _ETConfig.ExecutionTaskID.SCAN, baseETProps, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
baseETProps.showProgress(false);
|
|
106
|
+
} catch (error) {
|
|
107
|
+
baseETProps.showProgress(false);
|
|
108
|
+
|
|
109
|
+
_Logger.default.getInstance().logEvent(TAG, error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
var _default = (0, _WithBaseDispatchScreen.default)(RTScanScreen);
|
|
116
|
+
|
|
117
|
+
exports.default = _default;
|
|
118
|
+
//# sourceMappingURL=RTScanScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["instance","DispatchStateContainer","getInstance","TAG","getAllShipments","etInputList","shipmentsMap","Map","length","forEach","item","key","nextState","data","input","shipment","set","error","RTScanScreen","route","navigation","baseETProps","scanItemsMap","setScanItemMap","useState","undefined","scanItems","setScanItem","useEffect","showProgress","_prev","map","params","RouteParams","NEXT_STATES","Array","from","keys","scanETOutput","isArray","promises","scanOut","etOutput","scans","value","timestamp","Date","now","validated","getBaseETResponse","EntityCode","SCAN","success","BaseEventCodes","ENTITY_SUCCESS","ENTITY_FAILURE","reasonCode","jobObjective","get","output","push","saveETOutput","jobId","objRef","Promise","all","moveToNextET","values","navigateToNextTask","ExecutionTaskID","Logger","logEvent","message","LOG_TYPE","SDK_ERROR","withBaseDispatchScreen"],"sources":["RTScanScreen.tsx"],"sourcesContent":["import withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport RTScan from '../../components/executiontasks/scanner/returns/RTScan';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport React, { useEffect, useState } from 'react';\nimport type { BaseETProps, stateWithObjRef } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport {\n BaseEventCodes,\n EntityCode,\n ExecutionTaskID,\n} from '../../models/execTasks/ETConfig';\nimport type { ScannerOutput } from '../../components/executiontasks/scanner/ScannerSchema';\nimport { getBaseETResponse } from '../../utils/ExecTaskUtils';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\n\nconst instance = DispatchStateContainer.getInstance();\nconst TAG = 'RTScanScreen';\nfunction getAllShipments(etInputList: stateWithObjRef[]) {\n const shipmentsMap: Map<string, stateWithObjRef> = new Map<\n string,\n stateWithObjRef\n >();\n try {\n if (!etInputList || etInputList.length === 0) return shipmentsMap;\n else {\n etInputList.forEach((item) => {\n // @ts-ignore\n const key: string = item.nextState.data.input.shipment[0] ?? '';\n shipmentsMap.set(key, item);\n });\n return shipmentsMap;\n }\n } catch (error: any) {\n return shipmentsMap;\n }\n}\n\nconst RTScanScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [scanItemsMap, setScanItemMap] = useState<\n Map<string, stateWithObjRef> | undefined\n >(undefined);\n const [scanItems, setScanItem] = useState<string[] | undefined>(undefined);\n useEffect(() => {\n baseETProps.showProgress(true);\n setScanItemMap((_prev) => {\n const map = getAllShipments(route.params[RouteParams.NEXT_STATES]);\n setScanItem(Array.from(map.keys()));\n return map;\n });\n baseETProps.showProgress(false);\n }, [baseETProps, route.params]);\n\n return (\n <RTScan\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n scans={scanItems}\n onSubmitET={async (scanETOutput) => {\n try {\n baseETProps.showProgress(true);\n if (Array.isArray(scanETOutput)) {\n const promises: any[] = [];\n for (const scanOut of scanETOutput) {\n if (scanOut) {\n const etOutput: ScannerOutput = {\n scans: [\n {\n value: scanOut.value,\n timestamp: scanOut.timestamp ?? Date.now(),\n validated: scanOut.validated,\n },\n ],\n ...(await getBaseETResponse(\n EntityCode.SCAN,\n scanOut.success ?? false,\n scanOut.success\n ? BaseEventCodes.ENTITY_SUCCESS\n : BaseEventCodes.ENTITY_FAILURE,\n scanOut.reasonCode ?? ''\n )),\n };\n\n const jobObjective = scanItemsMap?.get(scanOut.value);\n if (jobObjective) {\n jobObjective.nextState.data.output = { ...(etOutput as any) };\n promises.push(\n instance.saveETOutput(\n jobObjective.jobId,\n jobObjective.objRef,\n jobObjective.nextState\n )\n );\n }\n }\n }\n await Promise.all(promises);\n await instance.moveToNextET(\n baseETProps,\n Array.from(scanItemsMap?.values() ?? []),\n navigation,\n false\n );\n } else {\n await instance.navigateToNextTask(\n navigation,\n route,\n scanETOutput,\n scanETOutput.success,\n EntityCode.SCAN,\n ExecutionTaskID.SCAN,\n baseETProps,\n false\n );\n }\n baseETProps.showProgress(false);\n } catch (error: any) {\n baseETProps.showProgress(false);\n Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);\n }\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(RTScanScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AAMA;;AACA;;;;;;;;;;AAEA,MAAMA,QAAQ,GAAGC,+BAAA,CAAuBC,WAAvB,EAAjB;;AACA,MAAMC,GAAG,GAAG,cAAZ;;AACA,SAASC,eAAT,CAAyBC,WAAzB,EAAyD;EACvD,MAAMC,YAA0C,GAAG,IAAIC,GAAJ,EAAnD;;EAIA,IAAI;IACF,IAAI,CAACF,WAAD,IAAgBA,WAAW,CAACG,MAAZ,KAAuB,CAA3C,EAA8C,OAAOF,YAAP,CAA9C,KACK;MACHD,WAAW,CAACI,OAAZ,CAAqBC,IAAD,IAAU;QAC5B;QACA,MAAMC,GAAW,GAAGD,IAAI,CAACE,SAAL,CAAeC,IAAf,CAAoBC,KAApB,CAA0BC,QAA1B,CAAmC,CAAnC,KAAyC,EAA7D;QACAT,YAAY,CAACU,GAAb,CAAiBL,GAAjB,EAAsBD,IAAtB;MACD,CAJD;MAKA,OAAOJ,YAAP;IACD;EACF,CAVD,CAUE,OAAOW,KAAP,EAAmB;IACnB,OAAOX,YAAP;EACD;AACF;;AAED,MAAMY,YAAY,GAAG,QAQf;EAAA,IARgB;IACpBC,KADoB;IAEpBC,UAFoB;IA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;QACAyC,eAAA,CAAOpE,WAAP,GAAqBqE,QAArB,CAA8BpE,GAA9B,EAAmCc,KAAK,CAACuD,OAAzC,EAAkDC,gBAAA,CAASC,SAA3D;MACD;IACF;EAjEH,GADF;AAqED,CA5FD;;eA8Fe,IAAAC,+BAAA,EAAuBzD,YAAvB,C"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
9
|
+
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
14
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
15
|
+
|
|
16
|
+
var _LocationManager = _interopRequireDefault(require("../../manager/location/LocationManager"));
|
|
17
|
+
|
|
18
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
19
|
+
|
|
20
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
21
|
+
|
|
22
|
+
var _EventCodeContainer = require("../../manager/dispatchCodes/EventCodeContainer");
|
|
23
|
+
|
|
24
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
25
|
+
|
|
26
|
+
var _utils = require("../../utils/utils");
|
|
27
|
+
|
|
28
|
+
var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
|
|
29
|
+
|
|
30
|
+
var _SdkUtils = _interopRequireDefault(require("../../utils/SdkUtils"));
|
|
31
|
+
|
|
32
|
+
var _AlertDisplay = require("../../components/widgets/AlertDisplay");
|
|
33
|
+
|
|
34
|
+
var _ErrorCodes = _interopRequireDefault(require("../../errors/ErrorCodes"));
|
|
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
|
+
const instance = _DispatchStateContainer.default.getInstance();
|
|
43
|
+
|
|
44
|
+
const TAG = 'StartWorkFlowScreen';
|
|
45
|
+
|
|
46
|
+
const StartWorkFlowScreen = _ref => {
|
|
47
|
+
let {
|
|
48
|
+
baseETProps,
|
|
49
|
+
route,
|
|
50
|
+
navigation
|
|
51
|
+
} = _ref;
|
|
52
|
+
const showAlertMessage = (0, _react.useCallback)((errorMessage, title) => {
|
|
53
|
+
(0, _AlertDisplay.showAlert)(title, errorMessage, false, 'OK', () => {
|
|
54
|
+
navigation.goBack();
|
|
55
|
+
});
|
|
56
|
+
}, [navigation]);
|
|
57
|
+
const navigateWithError = (0, _react.useCallback)((errorCode, errorMessage) => {
|
|
58
|
+
if (route.params.initRoute) {
|
|
59
|
+
navigation.navigate({
|
|
60
|
+
name: route.params.initRoute,
|
|
61
|
+
params: {
|
|
62
|
+
sdkError: {
|
|
63
|
+
code: errorCode,
|
|
64
|
+
message: errorMessage
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
merge: true
|
|
68
|
+
});
|
|
69
|
+
} else {
|
|
70
|
+
showAlertMessage(errorMessage, 'Error');
|
|
71
|
+
}
|
|
72
|
+
}, [navigation, route.params.initRoute, showAlertMessage]);
|
|
73
|
+
(0, _react.useEffect)(() => {
|
|
74
|
+
(async () => {
|
|
75
|
+
try {
|
|
76
|
+
baseETProps.showProgress(true);
|
|
77
|
+
await _SdkUtils.default.checkMandatory();
|
|
78
|
+
|
|
79
|
+
if (await _LocationManager.default.getInstance().checkForLocationPermissions()) {
|
|
80
|
+
if (!(0, _utils.isMandatoryKeysPresent)(route.params, ['success', 'objectives', 'successRoute', 'failureRoute'])) {
|
|
81
|
+
navigateWithError(_ErrorCodes.default.InvalidArgumentError, 'Missing or Invalid Route Params');
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
instance.setSuccessRoute(route.params.successRoute);
|
|
86
|
+
instance.setFailureRoute(route.params.failureRoute);
|
|
87
|
+
instance._jobObjectives = route.params.objectives;
|
|
88
|
+
/**
|
|
89
|
+
* Clear all prev state and Map before starting new objective / Merged Objective
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
instance.stateKeys = [];
|
|
93
|
+
instance.mappedStates.clear();
|
|
94
|
+
let nextStateList = await instance.bulkQueryNextET(route.params.objectives);
|
|
95
|
+
|
|
96
|
+
if (nextStateList != null && nextStateList.length > 0) {
|
|
97
|
+
if (nextStateList[0].nextState.taskId === _ETConfig.ExecutionTaskID.START_WORKFLOW) {
|
|
98
|
+
let etResponse = { ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.START_WORKFLOW, route.params.success, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.START_WORKFLOW, route.params.success), ''))
|
|
99
|
+
};
|
|
100
|
+
route.params[_RouteParams.RouteParams.NEXT_STATES] = nextStateList;
|
|
101
|
+
await instance.navigateToNextTask(navigation, route, etResponse, route.params.success, _ETConfig.EntityCode.START_WORKFLOW, _ETConfig.ExecutionTaskID.START_WORKFLOW, baseETProps, false);
|
|
102
|
+
} else {
|
|
103
|
+
let rParams = {};
|
|
104
|
+
rParams[_RouteParams.RouteParams.NEXT_STATES] = nextStateList;
|
|
105
|
+
navigation.replace(nextStateList[0].nextState.taskId, rParams);
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
navigateWithError(_ErrorCodes.default.EXECUTION_ENGINE_ERROR, 'Unable to start the given objective');
|
|
109
|
+
}
|
|
110
|
+
} else {
|
|
111
|
+
navigateWithError(_ErrorCodes.default.LOCATION_PERMISSION_DENIED, 'Please enable Location permissions');
|
|
112
|
+
}
|
|
113
|
+
} catch (error) {
|
|
114
|
+
baseETProps.showProgress(false);
|
|
115
|
+
navigateWithError(_ErrorCodes.default.UNEXPECTED_ERROR, error.message);
|
|
116
|
+
|
|
117
|
+
_Logger.default.getInstance().logEvent(TAG, error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
118
|
+
}
|
|
119
|
+
})();
|
|
120
|
+
}, []);
|
|
121
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
122
|
+
style: styles.container
|
|
123
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, "Please wait..."));
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
var _default = (0, _WithBaseDispatchScreen.default)(StartWorkFlowScreen);
|
|
127
|
+
|
|
128
|
+
exports.default = _default;
|
|
129
|
+
|
|
130
|
+
const styles = _reactNative.StyleSheet.create({
|
|
131
|
+
container: {
|
|
132
|
+
flex: 1,
|
|
133
|
+
justifyContent: 'center',
|
|
134
|
+
alignItems: 'center'
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
//# sourceMappingURL=StartWorkFlowScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["instance","DispatchStateContainer","getInstance","TAG","StartWorkFlowScreen","baseETProps","route","navigation","showAlertMessage","useCallback","errorMessage","title","showAlert","goBack","navigateWithError","errorCode","params","initRoute","navigate","name","sdkError","code","message","merge","useEffect","showProgress","SdkUtils","checkMandatory","LocationManager","checkForLocationPermissions","isMandatoryKeysPresent","ErrorCodes","InvalidArgumentError","setSuccessRoute","successRoute","setFailureRoute","failureRoute","_jobObjectives","objectives","stateKeys","mappedStates","clear","nextStateList","bulkQueryNextET","length","nextState","taskId","ExecutionTaskID","START_WORKFLOW","etResponse","getBaseETResponse","EntityCode","success","getEventCodeByET","RouteParams","NEXT_STATES","navigateToNextTask","rParams","replace","EXECUTION_ENGINE_ERROR","LOCATION_PERMISSION_DENIED","error","UNEXPECTED_ERROR","Logger","logEvent","LOG_TYPE","SDK_ERROR","styles","container","withBaseDispatchScreen","StyleSheet","create","flex","justifyContent","alignItems"],"sources":["StartWorkFlowScreen.tsx"],"sourcesContent":["import withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport { StyleSheet, Text, View } from 'react-native';\nimport React, { useCallback, useEffect } from 'react';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport LocationManager from '../../manager/location/LocationManager';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport { getBaseETResponse } from '../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport { isMandatoryKeysPresent } from '../../utils/utils';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport SdkUtils from '../../utils/SdkUtils';\nimport { showAlert } from '../../components/widgets/AlertDisplay';\nimport ErrorCodes from '../../errors/ErrorCodes';\n\nconst instance = DispatchStateContainer.getInstance();\nconst TAG = 'StartWorkFlowScreen';\n\nconst StartWorkFlowScreen = ({\n baseETProps,\n route,\n navigation,\n}: {\n baseETProps: BaseETProps;\n route: any;\n navigation: any;\n}) => {\n const showAlertMessage = useCallback(\n (errorMessage: string, title: string) => {\n showAlert(title, errorMessage, false, 'OK', () => {\n navigation.goBack();\n });\n },\n [navigation]\n );\n const navigateWithError = useCallback(\n (errorCode: string, errorMessage: string) => {\n if (route.params.initRoute) {\n navigation.navigate({\n name: route.params.initRoute,\n params: { sdkError: { code: errorCode, message: errorMessage } },\n merge: true,\n });\n } else {\n showAlertMessage(errorMessage, 'Error');\n }\n },\n [navigation, route.params.initRoute, showAlertMessage]\n );\n useEffect(() => {\n (async () => {\n try {\n baseETProps.showProgress(true);\n await SdkUtils.checkMandatory();\n if (await LocationManager.getInstance().checkForLocationPermissions()) {\n if (\n !isMandatoryKeysPresent(route.params, [\n 'success',\n 'objectives',\n 'successRoute',\n 'failureRoute',\n ])\n ) {\n navigateWithError(\n ErrorCodes.InvalidArgumentError,\n 'Missing or Invalid Route Params'\n );\n return;\n }\n instance.setSuccessRoute(route.params.successRoute);\n instance.setFailureRoute(route.params.failureRoute);\n instance._jobObjectives = route.params.objectives;\n /**\n * Clear all prev state and Map before starting new objective / Merged Objective\n */\n instance.stateKeys = [];\n instance.mappedStates.clear();\n let nextStateList = await instance.bulkQueryNextET(\n route.params.objectives\n );\n if (nextStateList != null && nextStateList.length > 0) {\n if (\n nextStateList[0].nextState.taskId ===\n ExecutionTaskID.START_WORKFLOW\n ) {\n let etResponse = {\n ...(await getBaseETResponse(\n EntityCode.START_WORKFLOW,\n route.params.success,\n getEventCodeByET(\n ExecutionTaskID.START_WORKFLOW,\n route.params.success\n ),\n ''\n )),\n };\n route.params[RouteParams.NEXT_STATES] = nextStateList;\n await instance.navigateToNextTask(\n navigation,\n route,\n etResponse,\n route.params.success,\n EntityCode.START_WORKFLOW,\n ExecutionTaskID.START_WORKFLOW,\n baseETProps,\n false\n );\n } else {\n let rParams: any = {};\n rParams[RouteParams.NEXT_STATES] = nextStateList;\n navigation.replace(nextStateList[0].nextState.taskId, rParams);\n }\n } else {\n navigateWithError(\n ErrorCodes.EXECUTION_ENGINE_ERROR,\n 'Unable to start the given objective'\n );\n }\n } else {\n navigateWithError(\n ErrorCodes.LOCATION_PERMISSION_DENIED,\n 'Please enable Location permissions'\n );\n }\n } catch (error: any) {\n baseETProps.showProgress(false);\n navigateWithError(ErrorCodes.UNEXPECTED_ERROR, error.message);\n Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);\n }\n })();\n }, []);\n return (\n <View style={styles.container}>\n <Text>Please wait...</Text>\n </View>\n );\n};\nexport default withBaseDispatchScreen(StartWorkFlowScreen);\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,QAAQ,GAAGC,+BAAA,CAAuBC,WAAvB,EAAjB;;AACA,MAAMC,GAAG,GAAG,qBAAZ;;AAEA,MAAMC,mBAAmB,GAAG,QAQtB;EAAA,IARuB;IAC3BC,WAD2B;IAE3BC,KAF2B;IAG3BC;EAH2B,CAQvB;EACJ,MAAMC,gBAAgB,GAAG,IAAAC,kBAAA,EACvB,CAACC,YAAD,EAAuBC,KAAvB,KAAyC;IACvC,IAAAC,uBAAA,EAAUD,KAAV,EAAiBD,YAAjB,EAA+B,KAA/B,EAAsC,IAAtC,EAA4C,MAAM;MAChDH,UAAU,CAACM,MAAX;IACD,CAFD;EAGD,CALsB,EAMvB,CAACN,UAAD,CANuB,CAAzB;EAQA,MAAMO,iBAAiB,GAAG,IAAAL,kBAAA,EACxB,CAACM,SAAD,EAAoBL,YAApB,KAA6C;IAC3C,IAAIJ,KAAK,CAACU,MAAN,CAAaC,SAAjB,EAA4B;MAC1BV,UAAU,CAACW,QAAX,CAAoB;QAClBC,IAAI,EAAEb,KAAK,CAACU,MAAN,CAA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8D,QAArB,CAA8B7D,GAA9B,EAAmC0D,KAAK,CAACvC,OAAzC,EAAkD2C,gBAAA,CAASC,SAA3D;MACD;IACF,CA/ED;EAgFD,CAjFD,EAiFG,EAjFH;EAkFA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEC,MAAM,CAACC;EAApB,gBACE,6BAAC,iBAAD,yBADF,CADF;AAKD,CAtHD;;eAuHe,IAAAC,+BAAA,EAAuBjE,mBAAvB,C;;;;AAEf,MAAM+D,MAAM,GAAGG,uBAAA,CAAWC,MAAX,CAAkB;EAC/BH,SAAS,EAAE;IACTI,IAAI,EAAE,CADG;IAETC,cAAc,EAAE,QAFP;IAGTC,UAAU,EAAE;EAHH;AADoB,CAAlB,CAAf"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
|
|
12
|
+
var _ProgressDialog = _interopRequireDefault(require("../../components/widgets/ProgressDialog"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
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); }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
|
|
22
|
+
const withBaseDispatchScreen = WrappedComponent => {
|
|
23
|
+
return props => {
|
|
24
|
+
const [loading, setLoading] = (0, _react.useState)(false);
|
|
25
|
+
(0, _react.useEffect)(() => {
|
|
26
|
+
return () => {
|
|
27
|
+
setLoading(false);
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
30
|
+
let baseProps = {
|
|
31
|
+
showProgress: setLoading
|
|
32
|
+
};
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
34
|
+
style: styles.mainContainer
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, _extends({}, props, {
|
|
36
|
+
baseETProps: baseProps
|
|
37
|
+
})), /*#__PURE__*/_react.default.createElement(_ProgressDialog.default, {
|
|
38
|
+
visible: loading,
|
|
39
|
+
label: 'Please wait...'
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
var _default = withBaseDispatchScreen;
|
|
45
|
+
exports.default = _default;
|
|
46
|
+
|
|
47
|
+
const styles = _reactNative.StyleSheet.create({
|
|
48
|
+
mainContainer: {
|
|
49
|
+
flex: 1
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=WithBaseDispatchScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["withBaseDispatchScreen","WrappedComponent","props","loading","setLoading","useState","useEffect","baseProps","showProgress","styles","mainContainer","StyleSheet","create","flex"],"sources":["WithBaseDispatchScreen.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport ProgressDialog from '../../components/widgets/ProgressDialog';\n\nconst withBaseDispatchScreen = (WrappedComponent: any) => {\n return (props: any) => {\n const [loading, setLoading] = useState(false);\n useEffect(() => {\n return () => {\n setLoading(false);\n };\n }, []);\n let baseProps: BaseETProps = {\n showProgress: setLoading,\n };\n\n return (\n <View style={styles.mainContainer}>\n <WrappedComponent {...props} baseETProps={baseProps} />\n <ProgressDialog visible={loading} label={'Please wait...'} />\n </View>\n );\n };\n};\nexport default withBaseDispatchScreen;\n\nconst styles = StyleSheet.create({\n mainContainer: {\n flex: 1,\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;;;;;AAEA,MAAMA,sBAAsB,GAAIC,gBAAD,IAA2B;EACxD,OAAQC,KAAD,IAAgB;IACrB,MAAM,CAACC,OAAD,EAAUC,UAAV,IAAwB,IAAAC,eAAA,EAAS,KAAT,CAA9B;IACA,IAAAC,gBAAA,EAAU,MAAM;MACd,OAAO,MAAM;QACXF,UAAU,CAAC,KAAD,CAAV;MACD,CAFD;IAGD,CAJD,EAIG,EAJH;IAKA,IAAIG,SAAsB,GAAG;MAC3BC,YAAY,EAAEJ;IADa,CAA7B;IAIA,oBACE,6BAAC,iBAAD;MAAM,KAAK,EAAEK,MAAM,CAACC;IAApB,gBACE,6BAAC,gBAAD,eAAsBR,KAAtB;MAA6B,WAAW,EAAEK;IAA1C,GADF,eAEE,6BAAC,uBAAD;MAAgB,OAAO,EAAEJ,OAAzB;MAAkC,KAAK,EAAE;IAAzC,EAFF,CADF;EAMD,CAjBD;AAkBD,CAnBD;;eAoBeH,sB;;;AAEf,MAAMS,MAAM,GAAGE,uBAAA,CAAWC,MAAX,CAAkB;EAC/BF,aAAa,EAAE;IACbG,IAAI,EAAE;EADO;AADgB,CAAlB,CAAf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RouteParams = void 0;
|
|
7
|
+
const RouteParams = {
|
|
8
|
+
NEXT_STATES: 'next_states',
|
|
9
|
+
REASONS: 'reason_list',
|
|
10
|
+
ET_SUCCESS: 'etkSuccess',
|
|
11
|
+
ET_SUCCESS_RESPONSE: 'etkSuccessResponse',
|
|
12
|
+
CURRENT_ET_NAME: 'currentETName',
|
|
13
|
+
IS_LAST_ET: 'isLastTask'
|
|
14
|
+
};
|
|
15
|
+
exports.RouteParams = RouteParams;
|
|
16
|
+
//# sourceMappingURL=RouteParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RouteParams","NEXT_STATES","REASONS","ET_SUCCESS","ET_SUCCESS_RESPONSE","CURRENT_ET_NAME","IS_LAST_ET"],"sources":["RouteParams.ts"],"sourcesContent":["export const RouteParams = {\n NEXT_STATES: 'next_states',\n REASONS: 'reason_list',\n ET_SUCCESS: 'etkSuccess',\n ET_SUCCESS_RESPONSE: 'etkSuccessResponse',\n CURRENT_ET_NAME: 'currentETName',\n IS_LAST_ET: 'isLastTask',\n};\n"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAG;EACzBC,WAAW,EAAE,aADY;EAEzBC,OAAO,EAAE,aAFgB;EAGzBC,UAAU,EAAE,YAHa;EAIzBC,mBAAmB,EAAE,oBAJI;EAKzBC,eAAe,EAAE,eALQ;EAMzBC,UAAU,EAAE;AANa,CAApB"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.checkForImagesInEvents = checkForImagesInEvents;
|
|
7
|
+
exports.getBaseETResponse = getBaseETResponse;
|
|
8
|
+
exports.getEntityCodeByET = getEntityCodeByET;
|
|
9
|
+
exports.getObjectiveCompleteResp = getObjectiveCompleteResp;
|
|
10
|
+
|
|
11
|
+
var _LocationManager = _interopRequireDefault(require("../manager/location/LocationManager"));
|
|
12
|
+
|
|
13
|
+
var _DispatchSdkCache = _interopRequireDefault(require("../manager/sdk/DispatchSdkCache"));
|
|
14
|
+
|
|
15
|
+
var _ETConfig = require("../models/execTasks/ETConfig");
|
|
16
|
+
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
|
|
19
|
+
async function getBaseETResponse(entityCode, success, eventCode, reasonCode) {
|
|
20
|
+
let location = _LocationManager.default.getInstance().getLastLocation();
|
|
21
|
+
|
|
22
|
+
let cache = _DispatchSdkCache.default.getInstance();
|
|
23
|
+
|
|
24
|
+
const sdkConfig = await cache.getObjectFromCache(_DispatchSdkCache.default.KEYS.SDK_CONFIG);
|
|
25
|
+
let baseResponse = {
|
|
26
|
+
entityCode: entityCode,
|
|
27
|
+
success: success,
|
|
28
|
+
eventCode: eventCode,
|
|
29
|
+
reasonCode: reasonCode,
|
|
30
|
+
meta: {
|
|
31
|
+
location: {
|
|
32
|
+
latitude: location.latitude,
|
|
33
|
+
longitude: location.longitude
|
|
34
|
+
},
|
|
35
|
+
userDetails: {
|
|
36
|
+
id: (sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID) ?? '',
|
|
37
|
+
name: (sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userName) ?? ''
|
|
38
|
+
},
|
|
39
|
+
startTime: Date.now(),
|
|
40
|
+
endTime: Date.now()
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return baseResponse;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async function getObjectiveCompleteResp(entityCode, success, eventCode, reasonCode) {
|
|
47
|
+
let completeResponse = { ...(await getBaseETResponse(entityCode, success, eventCode, reasonCode))
|
|
48
|
+
};
|
|
49
|
+
return completeResponse;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function getEntityCodeByET(etId) {
|
|
53
|
+
switch (etId) {
|
|
54
|
+
case _ETConfig.ExecutionTaskID.CAPTURE_INPUT:
|
|
55
|
+
return _ETConfig.EntityCode.CAPTURE_INPUT;
|
|
56
|
+
|
|
57
|
+
case _ETConfig.ExecutionTaskID.IMAGE_CAPTURE:
|
|
58
|
+
return _ETConfig.EntityCode.IMAGE_CAPTURE;
|
|
59
|
+
|
|
60
|
+
case _ETConfig.ExecutionTaskID.DELIVER:
|
|
61
|
+
return _ETConfig.EntityCode.DELIVER;
|
|
62
|
+
|
|
63
|
+
case _ETConfig.ExecutionTaskID.DOODLE:
|
|
64
|
+
return _ETConfig.EntityCode.DOODLE;
|
|
65
|
+
|
|
66
|
+
case _ETConfig.ExecutionTaskID.FORMS:
|
|
67
|
+
return _ETConfig.EntityCode.FORMS;
|
|
68
|
+
|
|
69
|
+
case _ETConfig.ExecutionTaskID.SCAN:
|
|
70
|
+
return _ETConfig.EntityCode.SCAN;
|
|
71
|
+
|
|
72
|
+
case _ETConfig.ExecutionTaskID.DISPLAY:
|
|
73
|
+
return _ETConfig.EntityCode.DISPLAY;
|
|
74
|
+
|
|
75
|
+
case _ETConfig.ExecutionTaskID.PICKUP:
|
|
76
|
+
return _ETConfig.EntityCode.PICKUP;
|
|
77
|
+
|
|
78
|
+
case _ETConfig.ExecutionTaskID.START_WORKFLOW:
|
|
79
|
+
return _ETConfig.EntityCode.START_WORKFLOW;
|
|
80
|
+
|
|
81
|
+
case _ETConfig.ExecutionTaskID.VERIFY_LOCATION:
|
|
82
|
+
return _ETConfig.EntityCode.VERIFY_LOCATION;
|
|
83
|
+
|
|
84
|
+
case _ETConfig.ExecutionTaskID.COMPLETED_FAILURE:
|
|
85
|
+
return _ETConfig.EntityCode.COMPLETED_FAILURE;
|
|
86
|
+
|
|
87
|
+
case _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS:
|
|
88
|
+
return _ETConfig.EntityCode.COMPLETED_SUCCESS;
|
|
89
|
+
|
|
90
|
+
case _ETConfig.ExecutionTaskID.INIT_PAYMENT:
|
|
91
|
+
return _ETConfig.EntityCode.INIT_PAYMENT;
|
|
92
|
+
|
|
93
|
+
case _ETConfig.ExecutionTaskID.PROCESS_PAYMENT:
|
|
94
|
+
return _ETConfig.EntityCode.PROCESS_PAYMENT;
|
|
95
|
+
|
|
96
|
+
case _ETConfig.ExecutionTaskID.COMPLETE_PAYMENT:
|
|
97
|
+
return _ETConfig.EntityCode.COMPLETE_PAYMENT;
|
|
98
|
+
|
|
99
|
+
case _ETConfig.ExecutionTaskID.DELIVER_CASH:
|
|
100
|
+
return _ETConfig.EntityCode.DELIVER_CASH;
|
|
101
|
+
|
|
102
|
+
case _ETConfig.ExecutionTaskID.VERIFY_INPUT:
|
|
103
|
+
return _ETConfig.EntityCode.VERIFY_INPUT;
|
|
104
|
+
|
|
105
|
+
default:
|
|
106
|
+
return 'NO_ENTITY_CODE_FOUND';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function checkForImagesInEvents(eventRow) {
|
|
111
|
+
console.log(eventRow);
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=ExecTaskUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getBaseETResponse","entityCode","success","eventCode","reasonCode","location","LocationManager","getInstance","getLastLocation","cache","DispatchSdkCache","sdkConfig","getObjectFromCache","KEYS","SDK_CONFIG","baseResponse","meta","latitude","longitude","userDetails","id","userID","name","userName","startTime","Date","now","endTime","getObjectiveCompleteResp","completeResponse","getEntityCodeByET","etId","ExecutionTaskID","CAPTURE_INPUT","EntityCode","IMAGE_CAPTURE","DELIVER","DOODLE","FORMS","SCAN","DISPLAY","PICKUP","START_WORKFLOW","VERIFY_LOCATION","COMPLETED_FAILURE","COMPLETED_SUCCESS","INIT_PAYMENT","PROCESS_PAYMENT","COMPLETE_PAYMENT","DELIVER_CASH","VERIFY_INPUT","checkForImagesInEvents","eventRow","console","log"],"sources":["ExecTaskUtils.ts"],"sourcesContent":["import type { BaseETResponse } from '../models/execTasks/ETBaseModels';\nimport LocationManager from '../manager/location/LocationManager';\nimport DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { CompletedWFResponse } from '../components/executiontasks/CompletedWFSchema';\nimport { EntityCode, ExecutionTaskID } from '../models/execTasks/ETConfig';\nimport type { EventRow } from '../manager/syncmanager/DBConfig';\nimport type { DispatchSDKConfig } from '../models/sdk';\n\nexport async function getBaseETResponse(\n entityCode: string,\n success: boolean,\n eventCode: string,\n reasonCode: string\n): Promise<BaseETResponse> {\n let location = LocationManager.getInstance().getLastLocation();\n let cache = DispatchSdkCache.getInstance();\n const sdkConfig = (await cache.getObjectFromCache(\n DispatchSdkCache.KEYS.SDK_CONFIG\n )) as DispatchSDKConfig;\n let baseResponse: BaseETResponse = {\n entityCode: entityCode,\n success: success,\n eventCode: eventCode,\n reasonCode: reasonCode,\n meta: {\n location: {\n latitude: location.latitude,\n longitude: location.longitude,\n },\n userDetails: {\n id: sdkConfig?.userID ?? '',\n name: sdkConfig?.userName ?? '',\n },\n startTime: Date.now(),\n endTime: Date.now(),\n },\n };\n return baseResponse;\n}\n\nexport async function getObjectiveCompleteResp(\n entityCode: string,\n success: boolean,\n eventCode: string,\n reasonCode: string\n) {\n let completeResponse: CompletedWFResponse = {\n ...(await getBaseETResponse(entityCode, success, eventCode, reasonCode)),\n };\n return completeResponse;\n}\nexport function getEntityCodeByET(etId: string): string {\n switch (etId) {\n case ExecutionTaskID.CAPTURE_INPUT:\n return EntityCode.CAPTURE_INPUT;\n case ExecutionTaskID.IMAGE_CAPTURE:\n return EntityCode.IMAGE_CAPTURE;\n case ExecutionTaskID.DELIVER:\n return EntityCode.DELIVER;\n case ExecutionTaskID.DOODLE:\n return EntityCode.DOODLE;\n case ExecutionTaskID.FORMS:\n return EntityCode.FORMS;\n case ExecutionTaskID.SCAN:\n return EntityCode.SCAN;\n case ExecutionTaskID.DISPLAY:\n return EntityCode.DISPLAY;\n case ExecutionTaskID.PICKUP:\n return EntityCode.PICKUP;\n case ExecutionTaskID.START_WORKFLOW:\n return EntityCode.START_WORKFLOW;\n case ExecutionTaskID.VERIFY_LOCATION:\n return EntityCode.VERIFY_LOCATION;\n case ExecutionTaskID.COMPLETED_FAILURE:\n return EntityCode.COMPLETED_FAILURE;\n case ExecutionTaskID.COMPLETED_SUCCESS:\n return EntityCode.COMPLETED_SUCCESS;\n case ExecutionTaskID.INIT_PAYMENT:\n return EntityCode.INIT_PAYMENT;\n case ExecutionTaskID.PROCESS_PAYMENT:\n return EntityCode.PROCESS_PAYMENT;\n case ExecutionTaskID.COMPLETE_PAYMENT:\n return EntityCode.COMPLETE_PAYMENT;\n case ExecutionTaskID.DELIVER_CASH:\n return EntityCode.DELIVER_CASH;\n case ExecutionTaskID.VERIFY_INPUT:\n return EntityCode.VERIFY_INPUT;\n default:\n return 'NO_ENTITY_CODE_FOUND';\n }\n}\n\nexport function checkForImagesInEvents(eventRow: EventRow) {\n console.log(eventRow);\n}\n"],"mappings":";;;;;;;;;;AACA;;AACA;;AAEA;;;;AAIO,eAAeA,iBAAf,CACLC,UADK,EAELC,OAFK,EAGLC,SAHK,EAILC,UAJK,EAKoB;EACzB,IAAIC,QAAQ,GAAGC,wBAAA,CAAgBC,WAAhB,GAA8BC,eAA9B,EAAf;;EACA,IAAIC,KAAK,GAAGC,yBAAA,CAAiBH,WAAjB,EAAZ;;EACA,MAAMI,SAAS,GAAI,MAAMF,KAAK,CAACG,kBAAN,CACvBF,yBAAA,CAAiBG,IAAjB,CAAsBC,UADC,CAAzB;EAGA,IAAIC,YAA4B,GAAG;IACjCd,UAAU,EAA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gBO,IAArB;MACE,OAAOL,oBAAA,CAAWK,IAAlB;;IACF,KAAKP,yBAAA,CAAgBQ,OAArB;MACE,OAAON,oBAAA,CAAWM,OAAlB;;IACF,KAAKR,yBAAA,CAAgBS,MAArB;MACE,OAAOP,oBAAA,CAAWO,MAAlB;;IACF,KAAKT,yBAAA,CAAgBU,cAArB;MACE,OAAOR,oBAAA,CAAWQ,cAAlB;;IACF,KAAKV,yBAAA,CAAgBW,eAArB;MACE,OAAOT,oBAAA,CAAWS,eAAlB;;IACF,KAAKX,yBAAA,CAAgBY,iBAArB;MACE,OAAOV,oBAAA,CAAWU,iBAAlB;;IACF,KAAKZ,yBAAA,CAAgBa,iBAArB;MACE,OAAOX,oBAAA,CAAWW,iBAAlB;;IACF,KAAKb,yBAAA,CAAgBc,YAArB;MACE,OAAOZ,oBAAA,CAAWY,YAAlB;;IACF,KAAKd,yBAAA,CAAgBe,eAArB;MACE,OAAOb,oBAAA,CAAWa,eAAlB;;IACF,KAAKf,yBAAA,CAAgBgB,gBAArB;MACE,OAAOd,oBAAA,CAAWc,gBAAlB;;IACF,KAAKhB,yBAAA,CAAgBiB,YAArB;MACE,OAAOf,oBAAA,CAAWe,YAAlB;;IACF,KAAKjB,yBAAA,CAAgBkB,YAArB;MACE,OAAOhB,oBAAA,CAAWgB,YAAlB;;IACF;MACE,OAAO,sBAAP;EApCJ;AAsCD;;AAEM,SAASC,sBAAT,CAAgCC,QAAhC,EAAoD;EACzDC,OAAO,CAACC,GAAR,CAAYF,QAAZ;AACD"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.LOG_TYPE = void 0;
|
|
7
|
+
|
|
8
|
+
var _DispatchSdkCache = _interopRequireDefault(require("../manager/sdk/DispatchSdkCache"));
|
|
9
|
+
|
|
10
|
+
var Sentry = _interopRequireWildcard(require("@sentry/react-native"));
|
|
11
|
+
|
|
12
|
+
var _crashlytics = _interopRequireDefault(require("@react-native-firebase/crashlytics"));
|
|
13
|
+
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
let LOG_TYPE;
|
|
23
|
+
exports.LOG_TYPE = LOG_TYPE;
|
|
24
|
+
|
|
25
|
+
(function (LOG_TYPE) {
|
|
26
|
+
LOG_TYPE["SDK_ERROR"] = "sdk_error";
|
|
27
|
+
LOG_TYPE["SDK_WARNING"] = "sdk_warning";
|
|
28
|
+
LOG_TYPE["SDK_INFO"] = "sdk_info";
|
|
29
|
+
LOG_TYPE["SDK_DEBUG"] = "sdk_debug";
|
|
30
|
+
LOG_TYPE["APP_ERROR"] = "app_error";
|
|
31
|
+
LOG_TYPE["APP_WARNING"] = "app_warning";
|
|
32
|
+
LOG_TYPE["APP_DEBUG"] = "app_debug";
|
|
33
|
+
LOG_TYPE["APP_INFO"] = "app_info";
|
|
34
|
+
})(LOG_TYPE || (exports.LOG_TYPE = LOG_TYPE = {}));
|
|
35
|
+
|
|
36
|
+
class Logger {
|
|
37
|
+
constructor() {
|
|
38
|
+
_defineProperty(this, "enableLogs", true);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
setLogging(enabled, sdkConfig) {
|
|
42
|
+
this.enableLogs = enabled;
|
|
43
|
+
(0, _crashlytics.default)().setUserId(sdkConfig.userID).then().catch();
|
|
44
|
+
(0, _crashlytics.default)().setAttributes({
|
|
45
|
+
userId: sdkConfig.userID,
|
|
46
|
+
userName: sdkConfig.userName,
|
|
47
|
+
tenantId: sdkConfig.tenantID
|
|
48
|
+
}).then().catch();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
logEvent(TAG, message, logType) {
|
|
52
|
+
if (this.enableLogs) console.log(TAG, message);
|
|
53
|
+
(0, _crashlytics.default)().log(`${TAG} - ${logType} -${message}`);
|
|
54
|
+
this.sendSentryMessage(message, TAG, logType);
|
|
55
|
+
|
|
56
|
+
if (logType === LOG_TYPE.SDK_WARNING || logType === LOG_TYPE.SDK_ERROR || logType === LOG_TYPE.APP_ERROR || logType === LOG_TYPE.APP_WARNING) {
|
|
57
|
+
(0, _crashlytics.default)().recordError(new Error(message), TAG);
|
|
58
|
+
this.sendSentryException(new Error(message), TAG, logType);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static getInstance() {
|
|
63
|
+
if (!Logger.instance) {
|
|
64
|
+
Logger.instance = new Logger();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return Logger.instance;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
sendSentryException(exception, logTag, logType) {
|
|
71
|
+
(async () => {
|
|
72
|
+
try {
|
|
73
|
+
Sentry.captureException(exception, await this.getUserConfig(Sentry.Severity.Error, logType, logTag));
|
|
74
|
+
} catch (error) {}
|
|
75
|
+
})();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
sendSentryMessage(message, logTag, logType) {
|
|
79
|
+
(async () => {
|
|
80
|
+
try {
|
|
81
|
+
Sentry.captureMessage(message, await this.getUserConfig(Sentry.Severity.Warning, logType, logTag));
|
|
82
|
+
} catch (error) {}
|
|
83
|
+
})();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async getUserConfig(logLevel, logType, logTag) {
|
|
87
|
+
try {
|
|
88
|
+
const config = await _DispatchSdkCache.default.getInstance().getObjectFromCache(_DispatchSdkCache.default.KEYS.SDK_CONFIG);
|
|
89
|
+
const dspId = await _DispatchSdkCache.default.getInstance().getKeyFromCache(_DispatchSdkCache.default.KEYS.DISPATCH_ID);
|
|
90
|
+
return {
|
|
91
|
+
user: {
|
|
92
|
+
id: config === null || config === void 0 ? void 0 : config.userID,
|
|
93
|
+
username: config === null || config === void 0 ? void 0 : config.userName
|
|
94
|
+
},
|
|
95
|
+
tags: {
|
|
96
|
+
dispatchId: dspId,
|
|
97
|
+
errorTime: Date.now(),
|
|
98
|
+
logType: logType,
|
|
99
|
+
logTag: logTag
|
|
100
|
+
},
|
|
101
|
+
level: logLevel
|
|
102
|
+
};
|
|
103
|
+
} catch (error) {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
_defineProperty(Logger, "instance", void 0);
|
|
111
|
+
|
|
112
|
+
var _default = Logger;
|
|
113
|
+
exports.default = _default;
|
|
114
|
+
//# sourceMappingURL=Logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LOG_TYPE","Logger","setLogging","enabled","sdkConfig","enableLogs","crashlytics","setUserId","userID","then","catch","setAttributes","userId","userName","tenantId","tenantID","logEvent","TAG","message","logType","console","log","sendSentryMessage","SDK_WARNING","SDK_ERROR","APP_ERROR","APP_WARNING","recordError","Error","sendSentryException","getInstance","instance","exception","logTag","Sentry","captureException","getUserConfig","Severity","error","captureMessage","Warning","logLevel","config","DispatchSdkCache","getObjectFromCache","KEYS","SDK_CONFIG","dspId","getKeyFromCache","DISPATCH_ID","user","id","username","tags","dispatchId","errorTime","Date","now","level","undefined"],"sources":["Logger.ts"],"sourcesContent":["import DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { DispatchSDKConfig } from '../models/sdk';\nimport * as Sentry from '@sentry/react-native';\nimport { Severity } from '@sentry/react-native';\nimport crashlytics from '@react-native-firebase/crashlytics';\n\nexport const enum LOG_TYPE {\n SDK_ERROR = 'sdk_error',\n SDK_WARNING = 'sdk_warning',\n SDK_INFO = 'sdk_info',\n SDK_DEBUG = 'sdk_debug',\n APP_ERROR = 'app_error',\n APP_WARNING = 'app_warning',\n APP_DEBUG = 'app_debug',\n APP_INFO = 'app_info',\n}\n\nclass Logger {\n private static instance: Logger;\n private enableLogs: boolean = true;\n\n setLogging(enabled: boolean, sdkConfig: DispatchSDKConfig) {\n this.enableLogs = enabled;\n crashlytics().setUserId(sdkConfig.userID).then().catch();\n crashlytics()\n .setAttributes({\n userId: sdkConfig.userID,\n userName: sdkConfig.userName,\n tenantId: sdkConfig.tenantID,\n })\n .then()\n .catch();\n }\n\n logEvent(TAG: string, message: string, logType: LOG_TYPE) {\n if (this.enableLogs) console.log(TAG, message);\n crashlytics().log(`${TAG} - ${logType} -${message}`);\n this.sendSentryMessage(message, TAG, logType);\n if (\n logType === LOG_TYPE.SDK_WARNING ||\n logType === LOG_TYPE.SDK_ERROR ||\n logType === LOG_TYPE.APP_ERROR ||\n logType === LOG_TYPE.APP_WARNING\n ) {\n crashlytics().recordError(new Error(message), TAG);\n this.sendSentryException(new Error(message), TAG, logType);\n }\n }\n\n public static getInstance(): Logger {\n if (!Logger.instance) {\n Logger.instance = new Logger();\n }\n return Logger.instance;\n }\n\n public sendSentryException(exception: any, logTag: string, logType: string) {\n (async () => {\n try {\n Sentry.captureException(\n exception,\n await this.getUserConfig(Severity.Error, logType, logTag)\n );\n } catch (error: any) {}\n })();\n }\n\n public sendSentryMessage(message: string, logTag: string, logType: string) {\n (async () => {\n try {\n Sentry.captureMessage(\n message,\n await this.getUserConfig(Severity.Warning, logType, logTag)\n );\n } catch (error: any) {}\n })();\n }\n\n private async getUserConfig(\n logLevel: Severity,\n logType: string,\n logTag: string\n ) {\n try {\n const config = (await DispatchSdkCache.getInstance().getObjectFromCache(\n DispatchSdkCache.KEYS.SDK_CONFIG\n )) as DispatchSDKConfig;\n const dspId = await DispatchSdkCache.getInstance().getKeyFromCache(\n DispatchSdkCache.KEYS.DISPATCH_ID\n );\n return {\n user: {\n id: config?.userID,\n username: config?.userName,\n },\n tags: {\n dispatchId: dspId,\n errorTime: Date.now(),\n logType: logType,\n logTag: logTag,\n },\n level: logLevel,\n };\n } catch (error: any) {\n return undefined;\n }\n }\n}\n\nexport default Logger;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;;;;;;;;;IAEkBA,Q;;;WAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;GAAAA,Q,wBAAAA,Q;;AAWlB,MAAMC,MAAN,CAAa;EAAA;IAAA,oCAEmB,IAFnB;EAAA;;EAIXC,UAAU,CAACC,OAAD,EAAmBC,SAAnB,EAAiD;IACzD,KAAKC,UAAL,GAAkBF,OAAlB;IACA,IAAAG,oBAAA,IAAcC,SAAd,CAAwBH,SAAS,CAACI,MAAlC,EAA0CC,IAA1C,GAAiDC,KAAjD;IACA,IAAAJ,oBAAA,IACGK,aADH,CACiB;MACbC,MAAM,EAAER,SAAS,CAACI,MADL;MAEbK,QAAQ,EAAET,SAAS,CAACS,QAFP;MAGbC,QAAQ,EAAEV,SAAS,CAAC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