@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,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactNativePaper = require("react-native-paper");
|
|
13
|
+
|
|
14
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
15
|
+
|
|
16
|
+
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
17
|
+
|
|
18
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
19
|
+
|
|
20
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
const ListItem = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
lineItem
|
|
29
|
+
} = _ref;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Card, {
|
|
31
|
+
style: _CommonStyles.deliverETStyles.item
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Card.Title, {
|
|
33
|
+
title: lineItem.skuId,
|
|
34
|
+
subtitle: lineItem.count ? lineItem.count + ' Qty.' : ''
|
|
35
|
+
}), lineItem.productDescription && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Card.Content, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Paragraph, null, lineItem.productDescription)));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const renderItem = _ref2 => {
|
|
39
|
+
let {
|
|
40
|
+
item
|
|
41
|
+
} = _ref2;
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(ListItem, {
|
|
43
|
+
lineItem: item
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const PickupET = props => {
|
|
48
|
+
const [remarks, setRemarks] = (0, _react.useState)('');
|
|
49
|
+
const [disableNext, setDisableNext] = (0, _react.useState)(false);
|
|
50
|
+
if (props !== null && props !== void 0 && props.items && props.items.length > 0) return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
51
|
+
style: [_CommonStyles.CommonStyles.mainContainer, {
|
|
52
|
+
padding: 10
|
|
53
|
+
}]
|
|
54
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
55
|
+
data: props.items,
|
|
56
|
+
renderItem: renderItem,
|
|
57
|
+
keyExtractor: item => item.skuId
|
|
58
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, null, props.message && props.message.length > 0 && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Paragraph, null, props.message), /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, {
|
|
59
|
+
multiline: false,
|
|
60
|
+
autoComplete: 'off',
|
|
61
|
+
style: _CommonStyles.deliverETStyles.input,
|
|
62
|
+
label: "Enter Pickup remarks",
|
|
63
|
+
value: remarks,
|
|
64
|
+
mode: 'outlined',
|
|
65
|
+
onChangeText: text => setRemarks(text)
|
|
66
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
67
|
+
style: _CommonStyles.deliverETStyles.footerButtonStyles
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
69
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
70
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
71
|
+
marginEnd: 5,
|
|
72
|
+
flex: 1
|
|
73
|
+
}],
|
|
74
|
+
mode: 'outlined',
|
|
75
|
+
onPress: async () => {
|
|
76
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PICKUP, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.PICKUP, false), ''))
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
80
|
+
disabled: disableNext,
|
|
81
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
82
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
83
|
+
marginStart: 5,
|
|
84
|
+
flex: 1
|
|
85
|
+
}],
|
|
86
|
+
mode: 'contained',
|
|
87
|
+
onPress: async () => {
|
|
88
|
+
setDisableNext(true);
|
|
89
|
+
props.onSubmitET({
|
|
90
|
+
remark: remarks,
|
|
91
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PICKUP, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.PICKUP, true), ''))
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}, "Pickup"))));else {
|
|
95
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
96
|
+
style: _CommonStyles.deliverETStyles.errorText
|
|
97
|
+
}, "No Item(s) found for Pickup"));
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var _default = PickupET;
|
|
102
|
+
exports.default = _default;
|
|
103
|
+
//# sourceMappingURL=PickupET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ListItem","lineItem","deliverETStyles","item","skuId","count","productDescription","renderItem","PickupET","props","remarks","setRemarks","useState","disableNext","setDisableNext","items","length","CommonStyles","mainContainer","padding","message","input","text","footerButtonStyles","cancelButtonLabel","cancelButton","marginEnd","flex","onSubmitET","getBaseETResponse","EntityCode","PICKUP","getEventCodeByET","ExecutionTaskID","nextButtonLabel","nextButton","marginStart","remark","errorText"],"sources":["PickupET.tsx"],"sourcesContent":["import { FlatList, View } from 'react-native';\nimport React, { useState } from 'react';\nimport type { PickupETInput } from './PickpSchema';\nimport { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';\nimport {\n CommonStyles,\n deliverETStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { LineItem } from '../deliver/DeliverETInput';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <Card style={deliverETStyles.item}>\n <Card.Title\n title={lineItem.skuId}\n subtitle={lineItem.count ? lineItem.count + ' Qty.' : ''}\n />\n {lineItem.productDescription && (\n <Card.Content>\n <Paragraph>{lineItem.productDescription}</Paragraph>\n </Card.Content>\n )}\n </Card>\n);\n\nconst renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst PickupET = (props: PickupETInput) => {\n const [remarks, setRemarks] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n if (props?.items && props.items.length > 0)\n return (\n <View style={[CommonStyles.mainContainer, { padding: 10 }]}>\n <FlatList\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n <View>\n {props.message && props.message.length > 0 && (\n <Paragraph>{props.message}</Paragraph>\n )}\n <TextInput\n multiline={false}\n autoComplete={'off'}\n style={deliverETStyles.input}\n label=\"Enter Pickup remarks\"\n value={remarks}\n mode={'outlined'}\n onChangeText={(text) => setRemarks(text)}\n />\n <View style={deliverETStyles.footerButtonStyles}>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginEnd: 5, flex: 1 }]}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(ExecutionTaskID.PICKUP, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginStart: 5, flex: 1 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableNext(true);\n props.onSubmitET({\n remark: remarks,\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(ExecutionTaskID.PICKUP, true),\n ''\n )),\n });\n }}\n >\n Pickup\n </Button>\n </View>\n </View>\n </View>\n );\n else {\n return (\n <View>\n <Title style={deliverETStyles.errorText}>\n No Item(s) found for Pickup\n </Title>\n </View>\n );\n }\n};\n\nexport default PickupET;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AAIA;;AACA;;AACA;;;;;;AAMA,MAAMA,QAAQ,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACf,6BAAC,sBAAD;IAAM,KAAK,EAAEC,6BAAA,CAAgBC;EAA7B,gBACE,6BAAC,sBAAD,CAAM,KAAN;IACE,KAAK,EAAEF,QAAQ,CAACG,KADlB;IAEE,QAAQ,EAAEH,QAAQ,CAACI,KAAT,GAAiBJ,QAAQ,CAACI,KAAT,GAAiB,OAAlC,GAA4C;EA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ee9B,Q"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.renderItem = exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactNativePaper = require("react-native-paper");
|
|
13
|
+
|
|
14
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
15
|
+
|
|
16
|
+
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
17
|
+
|
|
18
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
19
|
+
|
|
20
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
+
|
|
22
|
+
var _constants = require("../../../constants/constants");
|
|
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
|
+
const ListItem = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
lineItem
|
|
31
|
+
} = _ref;
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
33
|
+
style: {
|
|
34
|
+
justifyContent: 'center'
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
37
|
+
style: _CommonStyles.DeliverPickupStyles.itemTextStyle
|
|
38
|
+
}, `Order ID: ${lineItem.skuId}`));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const getMessage = (pickupCount, message) => {
|
|
42
|
+
try {
|
|
43
|
+
const msg = message || _constants.DEFAULT_PICKUP_MESSAGE;
|
|
44
|
+
return msg.replace('$', (pickupCount === null || pickupCount === void 0 ? void 0 : pickupCount.toString()) || '');
|
|
45
|
+
} catch (error) {
|
|
46
|
+
return message || '';
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const renderItem = _ref2 => {
|
|
51
|
+
let {
|
|
52
|
+
item
|
|
53
|
+
} = _ref2;
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(ListItem, {
|
|
55
|
+
lineItem: item
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
exports.renderItem = renderItem;
|
|
60
|
+
|
|
61
|
+
const SLPickupET = props => {
|
|
62
|
+
const [disableProceed, setDisableProceed] = (0, _react.useState)(false);
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
64
|
+
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
66
|
+
visible: true,
|
|
67
|
+
dismissable: false,
|
|
68
|
+
contentContainerStyle: _CommonStyles.DeliverPickupStyles.modalContent
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
70
|
+
style: _CommonStyles.DeliverPickupStyles.modalView
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
72
|
+
style: _CommonStyles.DeliverPickupStyles.titleText
|
|
73
|
+
}, props.title || _constants.DEFAULT_PICKUP_TITLE), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
74
|
+
style: _CommonStyles.DeliverPickupStyles.messageText
|
|
75
|
+
}, getMessage(props.pickupCount, props.message)), props.pickupCount === 1 && /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
76
|
+
style: _CommonStyles.DeliverPickupStyles.flatList,
|
|
77
|
+
data: props.items,
|
|
78
|
+
renderItem: renderItem,
|
|
79
|
+
keyExtractor: item => item.skuId
|
|
80
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
81
|
+
disabled: disableProceed,
|
|
82
|
+
uppercase: false,
|
|
83
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
84
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
85
|
+
marginTop: 20
|
|
86
|
+
}],
|
|
87
|
+
mode: 'contained',
|
|
88
|
+
onPress: async () => {
|
|
89
|
+
setDisableProceed(true);
|
|
90
|
+
props.onSubmitET({
|
|
91
|
+
remark: '',
|
|
92
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PICKUP, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.PICKUP, true), ''))
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}, "Yes"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
96
|
+
disabled: disableProceed,
|
|
97
|
+
uppercase: false,
|
|
98
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
99
|
+
marginTop: 5
|
|
100
|
+
}],
|
|
101
|
+
mode: "outlined",
|
|
102
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
103
|
+
onPress: async () => {
|
|
104
|
+
setDisableProceed(true);
|
|
105
|
+
props.onSubmitET({
|
|
106
|
+
remark: '',
|
|
107
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PICKUP, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.PICKUP, false), ''))
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}, "No"))))));
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
var _default = SLPickupET;
|
|
114
|
+
exports.default = _default;
|
|
115
|
+
//# sourceMappingURL=SLPickupET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ListItem","lineItem","justifyContent","DeliverPickupStyles","itemTextStyle","skuId","getMessage","pickupCount","message","msg","DEFAULT_PICKUP_MESSAGE","replace","toString","error","renderItem","item","SLPickupET","props","disableProceed","setDisableProceed","useState","mainContainer","modalContent","modalView","titleText","title","DEFAULT_PICKUP_TITLE","messageText","flatList","items","CommonStyles","nextButtonLabel","nextButton","marginTop","onSubmitET","remark","getBaseETResponse","EntityCode","PICKUP","getEventCodeByET","ExecutionTaskID","cancelButton","cancelButtonLabel"],"sources":["SLPickupET.tsx"],"sourcesContent":["import { FlatList, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Modal, Portal, Provider } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { PickupETInput } from './PickpSchema';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_PICKUP_MESSAGE,\n DEFAULT_PICKUP_TITLE,\n} from '../../../constants/constants';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${lineItem.skuId}`}</Text>\n </View>\n);\n\nconst getMessage = (\n pickupCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_PICKUP_MESSAGE;\n return msg.replace('$', pickupCount?.toString() || '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst SLPickupET = (props: PickupETInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_PICKUP_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.pickupCount, props.message)}\n </Text>\n {props.pickupCount === 1 && (\n <FlatList\n style={DeliverPickupStyles.flatList}\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n )}\n <Button\n disabled={disableProceed}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(ExecutionTaskID.PICKUP, true),\n ''\n )),\n });\n }}\n >\n Yes\n </Button>\n <Button\n disabled={disableProceed}\n uppercase={false}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(ExecutionTaskID.PICKUP, false),\n ''\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default SLPickupET;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AAMA;;;;;;AAKA,MAAMA,QAAQ,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACf,6BAAC,iBAAD;IAAM,KAAK,EAAE;MAAEC,cAAc,EAAE;IAAlB;EAAb,gBACE,6BAAC,iBAAD;IACE,KAAK,EAAEC,iCAAA,CAAoBC;EAD7B,GAEG,aAAYH,QAAQ,CAACI,KAAM,EAF9B,CADF,CADe;AAAA,CAAjB;;AAQA,MAAMC,UAAU,GAAG,CACjBC,WADiB,EAEjBC,OAFiB,KAGd;EACH,IAAI;IACF,MAAMC,GAAG,GAAGD,OAAO,IAAIE,iCAAvB;IACA,OAAOD,GAAG,CAACE,OAAJ,CAAY,GAAZ,EAAiB,CAAAJ,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEK,QAAb,OAA2B,EAA5C,CAAP;EACD,CAHD,CAGE,OAAOC,KAAP,EAAmB;IACnB,OAAOL,OAAO,IAAI,EAAlB;EACD;AACF,CAVD;;AAYO,MAAMM,UAAU,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACxB,6BAAC,QAAD;IAAU,QAAQ,EAAEA;EAApB,EADwB;AAAA,CAAnB;;;;AAGP,MAAMC,UAAU,GAAIC,KAAD,IAA0B;EAC3C,MAAM,CAACC,cAAD,EAAiBC,iBAAjB,IAAsC,IAAAC,eAAA,EAAS,KAAT,CAA5C;EACA,oBACE,6BAAC,0BAAD,qBACE,6BAAC,wBAAD,qBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEjB,iCAAA,CAAoBkB;EAAjC,gBACE,6BAAC,uBAAD;IAC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IAGE,KAAK,EAAE,CAACY,0BAAA,CAAaW,YAAd,EAA4B;MAAER,SAAS,EAAE;IAAb,CAA5B,CAHT;IAIE,IAAI,EAAC,UAJP;IAKE,UAAU,EAAEH,0BAAA,CAAaY,iBAL3B;IAME,OAAO,EAAE,YAAY;MACnBvB,iBAAiB,CAAC,IAAD,CAAjB;MACAF,KAAK,CAACiB,UAAN,CAAiB;QACfC,MAAM,EAAE,EADO;QAEf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,MADH,EAER,KAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,MAAjC,EAAyC,KAAzC,CAHQ,EAIR,EAJQ,CAAV;MAFe,CAAjB;IASD;EAjBH,QApCF,CALF,CADF,CADF,CADF,CADF;AAwED,CA1ED;;eA4EetB,U"}
|
|
@@ -0,0 +1,123 @@
|
|
|
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 _expoCamera = require("expo-camera");
|
|
13
|
+
|
|
14
|
+
var _utils = require("../../../utils/utils");
|
|
15
|
+
|
|
16
|
+
var _CaptureUtils = require("../imageCapture/CaptureUtils");
|
|
17
|
+
|
|
18
|
+
var _reactNativePaper = require("react-native-paper");
|
|
19
|
+
|
|
20
|
+
var _expoBlur = require("expo-blur");
|
|
21
|
+
|
|
22
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
23
|
+
|
|
24
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
function Hint(_ref) {
|
|
31
|
+
let {
|
|
32
|
+
children
|
|
33
|
+
} = _ref;
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_expoBlur.BlurView, {
|
|
35
|
+
style: styles.hint,
|
|
36
|
+
intensity: 50,
|
|
37
|
+
tint: "dark"
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
39
|
+
style: styles.headerText
|
|
40
|
+
}, children));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const CScanner = props => {
|
|
44
|
+
const [isVisible, setVisible] = (0, _react.useState)(true);
|
|
45
|
+
const [hasPermission, setHasPermission] = (0, _react.useState)(null);
|
|
46
|
+
const {
|
|
47
|
+
bottom
|
|
48
|
+
} = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
49
|
+
(0, _react.useEffect)(() => {
|
|
50
|
+
(async () => {
|
|
51
|
+
let response = await (0, _CaptureUtils.checkCameraPermissionUtil)();
|
|
52
|
+
setHasPermission(response);
|
|
53
|
+
})();
|
|
54
|
+
}, []);
|
|
55
|
+
|
|
56
|
+
const _handleBarCodeScanned = scan => {
|
|
57
|
+
if (!(0, _utils.isEmptyOrBlank)(scan.data)) {
|
|
58
|
+
setVisible(false);
|
|
59
|
+
props.onScanned(scan.data);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
if (!hasPermission) {
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
65
|
+
style: {
|
|
66
|
+
flex: 1,
|
|
67
|
+
justifyContent: 'center',
|
|
68
|
+
alignItems: 'center'
|
|
69
|
+
}
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, null, 'No Permissions for Camera. Please provide camera permissions from app\
|
|
71
|
+
settings.'));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
75
|
+
style: styles.container
|
|
76
|
+
}, isVisible ? /*#__PURE__*/_react.default.createElement(_expoCamera.Camera, {
|
|
77
|
+
barCodeScannerSettings: {
|
|
78
|
+
barCodeTypes: props.barCodeTypes
|
|
79
|
+
},
|
|
80
|
+
onBarCodeScanned: _handleBarCodeScanned,
|
|
81
|
+
style: _reactNative.StyleSheet.absoluteFill
|
|
82
|
+
}) : null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
+
style: [styles.header, {
|
|
84
|
+
bottom: 16 + bottom
|
|
85
|
+
}]
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement(Hint, null, 'or \nScan AWB Code on shipment')));
|
|
87
|
+
}; // exporting Scanner as Pure Component
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
var _default = /*#__PURE__*/(0, _react.memo)(CScanner);
|
|
91
|
+
|
|
92
|
+
exports.default = _default;
|
|
93
|
+
|
|
94
|
+
const styles = _reactNative.StyleSheet.create({
|
|
95
|
+
container: {
|
|
96
|
+
flex: 1,
|
|
97
|
+
backgroundColor: '#000',
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
alignItems: 'center'
|
|
100
|
+
},
|
|
101
|
+
hint: {
|
|
102
|
+
paddingHorizontal: 16,
|
|
103
|
+
paddingVertical: 20,
|
|
104
|
+
overflow: 'hidden',
|
|
105
|
+
justifyContent: 'center',
|
|
106
|
+
alignItems: 'center'
|
|
107
|
+
},
|
|
108
|
+
headerText: {
|
|
109
|
+
color: '#fff',
|
|
110
|
+
backgroundColor: 'transparent',
|
|
111
|
+
textAlign: 'center',
|
|
112
|
+
fontSize: 16,
|
|
113
|
+
fontWeight: '500'
|
|
114
|
+
},
|
|
115
|
+
header: {
|
|
116
|
+
position: 'absolute',
|
|
117
|
+
left: 0,
|
|
118
|
+
right: 0,
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=CScanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Hint","children","styles","hint","headerText","CScanner","props","isVisible","setVisible","useState","hasPermission","setHasPermission","bottom","useSafeAreaInsets","useEffect","response","checkCameraPermissionUtil","_handleBarCodeScanned","scan","isEmptyOrBlank","data","onScanned","flex","justifyContent","alignItems","container","barCodeTypes","StyleSheet","absoluteFill","header","memo","create","backgroundColor","paddingHorizontal","paddingVertical","overflow","color","textAlign","fontSize","fontWeight","position","left","right","fontFamily","Fonts","IBMPlexSans_600SemiBold"],"sources":["CScanner.tsx"],"sourcesContent":["import React, { memo, useEffect, useState } from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\nimport { BarCodeScanningResult, Camera } from 'expo-camera';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { checkCameraPermissionUtil } from '../imageCapture/CaptureUtils';\nimport { Title } from 'react-native-paper';\nimport { BlurView } from 'expo-blur';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { Fonts } from '../../../styles/executionTasks/CommonStyles';\n\nfunction Hint({ children }: { children: string }) {\n return (\n <BlurView style={styles.hint} intensity={50} tint=\"dark\">\n <Text style={styles.headerText}>{children}</Text>\n </BlurView>\n );\n}\nconst CScanner = (props: CScannerProps) => {\n const [isVisible, setVisible] = useState(true);\n const [hasPermission, setHasPermission] = useState<boolean | null>(null);\n const { bottom } = useSafeAreaInsets();\n\n useEffect(() => {\n (async () => {\n let response = await checkCameraPermissionUtil();\n setHasPermission(response);\n })();\n }, []);\n\n const _handleBarCodeScanned = (scan: BarCodeScanningResult) => {\n if (!isEmptyOrBlank(scan.data)) {\n setVisible(false);\n props.onScanned(scan.data);\n }\n };\n\n if (!hasPermission) {\n return (\n <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>\n <Title>\n {\n 'No Permissions for Camera. Please provide camera permissions from app\\\n settings.'\n }\n </Title>\n </View>\n );\n }\n return (\n <View style={styles.container}>\n {isVisible ? (\n <Camera\n barCodeScannerSettings={{\n barCodeTypes: props.barCodeTypes,\n }}\n onBarCodeScanned={_handleBarCodeScanned}\n style={StyleSheet.absoluteFill}\n />\n ) : null}\n <View style={[styles.header, { bottom: 16 + bottom }]}>\n <Hint>{'or \\nScan AWB Code on shipment'}</Hint>\n </View>\n </View>\n );\n};\n\n// exporting Scanner as Pure Component\nexport default memo(CScanner);\n\nexport interface CScannerProps {\n barCodeTypes: any[];\n onScanned: (value: string) => void;\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#000',\n justifyContent: 'center',\n alignItems: 'center',\n },\n hint: {\n paddingHorizontal: 16,\n paddingVertical: 20,\n overflow: 'hidden',\n justifyContent: 'center',\n alignItems: 'center',\n },\n\n headerText: {\n color: '#fff',\n backgroundColor: 'transparent',\n textAlign: 'center',\n fontSize: 16,\n fontWeight: '500',\n },\n header: {\n position: 'absolute',\n left: 0,\n right: 0,\n alignItems: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA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 0;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type of scan
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Mode of scanning
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Max limit of items to be scanned in multi-scan mode
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Regex to validate scanned strings
|
|
22
|
+
*/
|
|
23
|
+
let SCAN_STATUS;
|
|
24
|
+
exports.SCAN_STATUS = SCAN_STATUS;
|
|
25
|
+
|
|
26
|
+
(function (SCAN_STATUS) {
|
|
27
|
+
SCAN_STATUS[SCAN_STATUS["ACCEPTED"] = 0] = "ACCEPTED";
|
|
28
|
+
SCAN_STATUS[SCAN_STATUS["REJECTED"] = 1] = "REJECTED";
|
|
29
|
+
SCAN_STATUS[SCAN_STATUS["TO_BE_SCANNED"] = 2] = "TO_BE_SCANNED";
|
|
30
|
+
SCAN_STATUS[SCAN_STATUS["NONE"] = 3] = "NONE";
|
|
31
|
+
})(SCAN_STATUS || (exports.SCAN_STATUS = SCAN_STATUS = {}));
|
|
32
|
+
//# sourceMappingURL=ScannerSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SCAN_STATUS"],"sources":["ScannerSchema.ts"],"sourcesContent":["/**\n * Type of scan\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\nimport type { Headers, HTTPMethod } from '../httpRequest/HttpRequestETSchema';\n\nexport type ScanType = 'BARCODE' | 'QRCODE';\n/**\n * Mode of scanning\n */\nexport type ScanMode = 'SINGLE' | 'MULTI';\n/**\n * Max limit of items to be scanned in multi-scan mode\n */\nexport type MaxScanCount = number;\n/**\n * Regex to validate scanned strings\n */\nexport type ValidationRegex = string;\n\nexport type ScannerInput = BaseETRequest & {\n scanType: ScanType;\n scanMode: ScanMode;\n preSelectReasonCode?: boolean;\n scans?: string[];\n scanCountLimit?: MaxScanCount;\n onSubmitET: (scanETOutput: ScannerOutput | ScannedItemData[]) => void;\n\n validation?: API | ValidationRegex;\n};\n\nexport interface API {\n uri: string;\n timeout?: number;\n httpMethod: HTTPMethod;\n headers?: Headers[];\n responseJsonLogic: object;\n}\n\nexport interface ScanData {\n /**\n * Value of scanned item\n */\n value: string;\n /**\n * Boolean to denote if scan was validate successfully\n */\n validated?: boolean;\n /**\n * Epoch timestamp for the scan\n */\n timestamp: number;\n}\n\nexport interface ScannedItemData {\n /**\n * Value of scanned item\n */\n value: string;\n /**\n * Boolean to denote if scan was validate successfully\n */\n validated?: boolean;\n /**\n * Epoch timestamp for the scan\n */\n timestamp?: number;\n reasonCode?: string;\n reasonText?: string;\n success?: boolean;\n scanStatus: SCAN_STATUS;\n}\nexport enum SCAN_STATUS {\n ACCEPTED,\n REJECTED,\n TO_BE_SCANNED,\n NONE,\n}\n\nexport type ScannerOutput = BaseETResponse & {\n scans: ScanData[];\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;;AAQA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;IAuDYA,W;;;WAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;GAAAA,W,2BAAAA,W"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SCAN_ACTIONS = void 0;
|
|
7
|
+
exports.canScanMore = canScanMore;
|
|
8
|
+
exports.checkForValidation = checkForValidation;
|
|
9
|
+
exports.getBarCodeTypes = getBarCodeTypes;
|
|
10
|
+
exports.getItemsToBeScanned = getItemsToBeScanned;
|
|
11
|
+
exports.getScannedItemCount = getScannedItemCount;
|
|
12
|
+
exports.getScannedItemStatus = getScannedItemStatus;
|
|
13
|
+
exports.getScannedList = getScannedList;
|
|
14
|
+
exports.getScannerETOutput = getScannerETOutput;
|
|
15
|
+
exports.isScannedAlready = isScannedAlready;
|
|
16
|
+
|
|
17
|
+
var _ScannerSchema = require("./ScannerSchema");
|
|
18
|
+
|
|
19
|
+
var _expoBarcodeScanner = require("expo-barcode-scanner");
|
|
20
|
+
|
|
21
|
+
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
22
|
+
|
|
23
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
24
|
+
|
|
25
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
26
|
+
|
|
27
|
+
var _HttpEtUtils = require("../httpRequest/HttpEtUtils");
|
|
28
|
+
|
|
29
|
+
var jsonLogic = _interopRequireWildcard(require("json-logic-js"));
|
|
30
|
+
|
|
31
|
+
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); }
|
|
32
|
+
|
|
33
|
+
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; }
|
|
34
|
+
|
|
35
|
+
async function checkForValidation(data, validationRule, shipments) {
|
|
36
|
+
if (shipments && shipments.length > 0) {
|
|
37
|
+
const found = shipments.find(s => s === data);
|
|
38
|
+
return found !== undefined;
|
|
39
|
+
} else if (validationRule && typeof validationRule === 'string') {
|
|
40
|
+
const regex = new RegExp(validationRule);
|
|
41
|
+
return regex.test(data);
|
|
42
|
+
} else if (validationRule && typeof validationRule === 'object') {
|
|
43
|
+
try {
|
|
44
|
+
const validation = validationRule;
|
|
45
|
+
const apiResponse = await (0, _HttpEtUtils.getApiResponse)({
|
|
46
|
+
errorJsonPath: '',
|
|
47
|
+
responseJsonPath: '',
|
|
48
|
+
uri: validation.uri,
|
|
49
|
+
httpMethod: validation.httpMethod,
|
|
50
|
+
timeout: validation.timeout,
|
|
51
|
+
headers: validation.headers
|
|
52
|
+
});
|
|
53
|
+
return jsonLogic.apply(validation.responseJsonLogic, apiResponse.data);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
} else return false;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function isScannedAlready(value, scansMap) {
|
|
61
|
+
var _scansMap$get;
|
|
62
|
+
|
|
63
|
+
if (!scansMap || scansMap.size === 0) return false;
|
|
64
|
+
return scansMap.has(value) && ((_scansMap$get = scansMap.get(value)) === null || _scansMap$get === void 0 ? void 0 : _scansMap$get.scanStatus) !== _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function getBarCodeTypes(input) {
|
|
68
|
+
if (input.scanType === 'QRCODE') {
|
|
69
|
+
return [_expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.qr];
|
|
70
|
+
} else {
|
|
71
|
+
return [_expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.code128, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.code39, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.code93, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.codabar, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.itf14, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.upc_a, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.ean8, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.ean13, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.upc_e, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.upc_ean];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function getScannerETOutput(scanList) {
|
|
76
|
+
return {
|
|
77
|
+
scans: getScannedItems(scanList),
|
|
78
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.SCAN, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.SCAN, true), ''))
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function getScannedItems(scanList) {
|
|
83
|
+
const items = [];
|
|
84
|
+
if (!scanList || scanList.length === 0) return items;else {
|
|
85
|
+
scanList.forEach(ite => {
|
|
86
|
+
items.push({
|
|
87
|
+
value: ite.value,
|
|
88
|
+
validated: ite.validated,
|
|
89
|
+
timestamp: ite.timestamp ?? Date.now()
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
return items;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function canScanMore(scanMode, size, limit) {
|
|
97
|
+
if (scanMode === 'SINGLE') {
|
|
98
|
+
return size <= 0;
|
|
99
|
+
} else {
|
|
100
|
+
//multi scan mode
|
|
101
|
+
if (limit && limit > 0) {
|
|
102
|
+
return size !== limit;
|
|
103
|
+
} else {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function getScannedList(rtScans) {
|
|
110
|
+
if (!rtScans || rtScans.length === 0) return [];
|
|
111
|
+
let result = [];
|
|
112
|
+
rtScans.forEach(s => {
|
|
113
|
+
result.push({
|
|
114
|
+
value: s.value,
|
|
115
|
+
validated: s.validated,
|
|
116
|
+
timestamp: s.timestamp ?? Date.now()
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
return result;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function getItemsToBeScanned(scansMap) {
|
|
123
|
+
if (!scansMap || scansMap.size === 0) return [];else {
|
|
124
|
+
const result = [];
|
|
125
|
+
scansMap.forEach(value => {
|
|
126
|
+
result.push(value);
|
|
127
|
+
});
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
let SCAN_ACTIONS;
|
|
133
|
+
exports.SCAN_ACTIONS = SCAN_ACTIONS;
|
|
134
|
+
|
|
135
|
+
(function (SCAN_ACTIONS) {
|
|
136
|
+
SCAN_ACTIONS[SCAN_ACTIONS["DELETE"] = 0] = "DELETE";
|
|
137
|
+
SCAN_ACTIONS[SCAN_ACTIONS["CHANGE_STATUS"] = 1] = "CHANGE_STATUS";
|
|
138
|
+
})(SCAN_ACTIONS || (exports.SCAN_ACTIONS = SCAN_ACTIONS = {}));
|
|
139
|
+
|
|
140
|
+
function getScannedItemCount(scannedList, status) {
|
|
141
|
+
if (!scannedList || scannedList.length === 0) return 0;
|
|
142
|
+
let completed = 0;
|
|
143
|
+
let rejected = 0;
|
|
144
|
+
let toBeScanned = 0;
|
|
145
|
+
scannedList.forEach(r => {
|
|
146
|
+
switch (r.scanStatus) {
|
|
147
|
+
case _ScannerSchema.SCAN_STATUS.ACCEPTED:
|
|
148
|
+
case _ScannerSchema.SCAN_STATUS.NONE:
|
|
149
|
+
completed++;
|
|
150
|
+
break;
|
|
151
|
+
|
|
152
|
+
case _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED:
|
|
153
|
+
toBeScanned++;
|
|
154
|
+
break;
|
|
155
|
+
|
|
156
|
+
case _ScannerSchema.SCAN_STATUS.REJECTED:
|
|
157
|
+
rejected++;
|
|
158
|
+
break;
|
|
159
|
+
|
|
160
|
+
default:
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
switch (status) {
|
|
166
|
+
case _ScannerSchema.SCAN_STATUS.ACCEPTED:
|
|
167
|
+
case _ScannerSchema.SCAN_STATUS.NONE:
|
|
168
|
+
return completed;
|
|
169
|
+
|
|
170
|
+
case _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED:
|
|
171
|
+
return toBeScanned;
|
|
172
|
+
|
|
173
|
+
case _ScannerSchema.SCAN_STATUS.REJECTED:
|
|
174
|
+
return rejected;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function getScannedItemStatus(scanStatus) {
|
|
179
|
+
switch (scanStatus) {
|
|
180
|
+
case _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED:
|
|
181
|
+
return 'To be Scanned';
|
|
182
|
+
|
|
183
|
+
case _ScannerSchema.SCAN_STATUS.ACCEPTED:
|
|
184
|
+
return 'Completed';
|
|
185
|
+
|
|
186
|
+
case _ScannerSchema.SCAN_STATUS.REJECTED:
|
|
187
|
+
return 'Rejected';
|
|
188
|
+
|
|
189
|
+
case _ScannerSchema.SCAN_STATUS.NONE:
|
|
190
|
+
return '';
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=ScannerUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["checkForValidation","data","validationRule","shipments","length","found","find","s","undefined","regex","RegExp","test","validation","apiResponse","getApiResponse","errorJsonPath","responseJsonPath","uri","httpMethod","timeout","headers","jsonLogic","apply","responseJsonLogic","error","isScannedAlready","value","scansMap","size","has","get","scanStatus","SCAN_STATUS","TO_BE_SCANNED","getBarCodeTypes","input","scanType","BarCodeScanner","Constants","BarCodeType","qr","code128","code39","code93","codabar","itf14","upc_a","ean8","ean13","upc_e","upc_ean","getScannerETOutput","scanList","scans","getScannedItems","getBaseETResponse","EntityCode","SCAN","getEventCodeByET","ExecutionTaskID","items","forEach","ite","push","validated","timestamp","Date","now","canScanMore","scanMode","limit","getScannedList","rtScans","result","getItemsToBeScanned","SCAN_ACTIONS","getScannedItemCount","scannedList","status","completed","rejected","toBeScanned","r","ACCEPTED","NONE","REJECTED","getScannedItemStatus"],"sources":["ScannerUtils.ts"],"sourcesContent":["import type {\n API,\n ScanData,\n ScanMode,\n ScannedItemData,\n ScannerInput,\n ScannerOutput,\n} from './ScannerSchema';\nimport { SCAN_STATUS } from './ScannerSchema';\nimport { BarCodeScanner } from 'expo-barcode-scanner';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { getApiResponse } from '../httpRequest/HttpEtUtils';\nimport type { RulesLogic } from 'json-logic-js';\nimport * as jsonLogic from 'json-logic-js';\n\nexport async function checkForValidation(\n data: string,\n validationRule: API | string | undefined,\n shipments: string[] | undefined\n) {\n if (shipments && shipments.length > 0) {\n const found = shipments.find((s) => s === data);\n return found !== undefined;\n } else if (validationRule && typeof validationRule === 'string') {\n const regex = new RegExp(validationRule);\n return regex.test(data);\n } else if (validationRule && typeof validationRule === 'object') {\n try {\n const validation = validationRule as API;\n const apiResponse = await getApiResponse({\n errorJsonPath: '',\n responseJsonPath: '',\n uri: validation.uri,\n httpMethod: validation.httpMethod,\n timeout: validation.timeout,\n headers: validation.headers,\n });\n return jsonLogic.apply(\n <RulesLogic>validation.responseJsonLogic,\n apiResponse.data\n );\n } catch (error: any) {\n return false;\n }\n } else return false;\n}\nexport function isScannedAlready(\n value: string,\n scansMap?: Map<string, ScannedItemData>\n) {\n if (!scansMap || scansMap.size === 0) return false;\n return (\n scansMap.has(value) &&\n scansMap.get(value)?.scanStatus !== SCAN_STATUS.TO_BE_SCANNED\n );\n}\n\nexport function getBarCodeTypes(input: ScannerInput): any[] {\n if (input.scanType === 'QRCODE') {\n return [BarCodeScanner.Constants.BarCodeType.qr];\n } else {\n return [\n BarCodeScanner.Constants.BarCodeType.code128,\n BarCodeScanner.Constants.BarCodeType.code39,\n BarCodeScanner.Constants.BarCodeType.code93,\n BarCodeScanner.Constants.BarCodeType.codabar,\n BarCodeScanner.Constants.BarCodeType.itf14,\n BarCodeScanner.Constants.BarCodeType.upc_a,\n BarCodeScanner.Constants.BarCodeType.ean8,\n BarCodeScanner.Constants.BarCodeType.ean13,\n BarCodeScanner.Constants.BarCodeType.upc_e,\n BarCodeScanner.Constants.BarCodeType.upc_ean,\n ];\n }\n}\n\nexport async function getScannerETOutput(\n scanList: ScannedItemData[]\n): Promise<ScannerOutput> {\n return {\n scans: getScannedItems(scanList),\n ...(await getBaseETResponse(\n EntityCode.SCAN,\n true,\n getEventCodeByET(ExecutionTaskID.SCAN, true),\n ''\n )),\n };\n}\n\nfunction getScannedItems(scanList: ScannedItemData[]): ScanData[] {\n const items: ScanData[] = [];\n if (!scanList || scanList.length === 0) return items;\n else {\n scanList.forEach((ite) => {\n items.push({\n value: ite.value,\n validated: ite.validated,\n timestamp: ite.timestamp ?? Date.now(),\n });\n });\n\n return items;\n }\n}\n\nexport function canScanMore(\n scanMode: ScanMode,\n size: number,\n limit?: number\n): boolean {\n if (scanMode === 'SINGLE') {\n return size <= 0;\n } else {\n //multi scan mode\n if (limit && limit > 0) {\n return size !== limit;\n } else {\n return true;\n }\n }\n}\nexport function getScannedList(rtScans?: ScannedItemData[]): ScanData[] {\n if (!rtScans || rtScans.length === 0) return [];\n let result: ScanData[] = [];\n rtScans.forEach((s) => {\n result.push({\n value: s.value,\n validated: s.validated,\n timestamp: s.timestamp ?? Date.now(),\n });\n });\n return result;\n}\nexport function getItemsToBeScanned(scansMap?: Map<string, ScannedItemData>) {\n if (!scansMap || scansMap.size === 0) return [];\n else {\n const result: ScannedItemData[] = [];\n scansMap.forEach((value) => {\n result.push(value);\n });\n return result;\n }\n}\n\nexport enum SCAN_ACTIONS {\n DELETE,\n CHANGE_STATUS,\n}\n\nexport function getScannedItemCount(\n scannedList: ScannedItemData[] | undefined,\n status: SCAN_STATUS\n) {\n if (!scannedList || scannedList.length === 0) return 0;\n let completed = 0;\n let rejected = 0;\n let toBeScanned = 0;\n scannedList.forEach((r) => {\n switch (r.scanStatus) {\n case SCAN_STATUS.ACCEPTED:\n case SCAN_STATUS.NONE:\n completed++;\n break;\n case SCAN_STATUS.TO_BE_SCANNED:\n toBeScanned++;\n break;\n case SCAN_STATUS.REJECTED:\n rejected++;\n break;\n default:\n break;\n }\n });\n switch (status) {\n case SCAN_STATUS.ACCEPTED:\n case SCAN_STATUS.NONE:\n return completed;\n case SCAN_STATUS.TO_BE_SCANNED:\n return toBeScanned;\n case SCAN_STATUS.REJECTED:\n return rejected;\n }\n}\nexport function getScannedItemStatus(scanStatus: SCAN_STATUS) {\n switch (scanStatus) {\n case SCAN_STATUS.TO_BE_SCANNED:\n return 'To be Scanned';\n case SCAN_STATUS.ACCEPTED:\n return 'Completed';\n case SCAN_STATUS.REJECTED:\n return 'Rejected';\n case SCAN_STATUS.NONE:\n return '';\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAQA;;AACA;;AACA;;AACA;;AACA;;AAIA;;AAEA;;;;;;AAEO,eAAeA,kBAAf,CACLC,IADK,EAELC,cAFK,EAGLC,SAHK,EAIL;EACA,IAAIA,SAAS,IAAIA,SAAS,CAACC,MAAV,GAAmB,CAApC,EAAuC;IACrC,MAAMC,KAAK,GAAGF,SAAS,CAACG,IAAV,CAAgBC,CAAD,IAAOA,CAAC,KAAKN,IAA5B,CAAd;IACA,OAAOI,KAAK,KAAKG,SAAjB;EACD,CAHD,MAGO,IAAIN,cAAc,IAAI,OAAOA,cAAP,KAA0B,QAAhD,EAA0D;IAC/D,MAAMO,KAAK,GAAG,IAAIC,MAAJ,CAAWR,cAAX,CAAd;IACA,OAAOO,KAAK,CAACE,IAAN,CAAWV,IAAX,CAAP;EACD,CAHM,MAGA,IAAIC,cAAc,IAAI,OAAOA,cAA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