@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,124 @@
|
|
|
1
|
+
import { KeyboardAvoidingView, ScrollView, Text, View } from 'react-native';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Button, TextInput } from 'react-native-paper';
|
|
4
|
+
import { getBaseETResponse } from '../../../../utils/ExecTaskUtils';
|
|
5
|
+
import { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';
|
|
6
|
+
import { EntityCode, ExecutionTaskID } from '../../../../models/execTasks/ETConfig';
|
|
7
|
+
import { PaymentStyles } from '../PaymentStyles';
|
|
8
|
+
import { isEmptyOrBlank } from '../../../../utils/utils';
|
|
9
|
+
import { CommonStyles } from '../../../../styles/executionTasks/CommonStyles';
|
|
10
|
+
import { getPaymentValue } from '../PaymentUtils';
|
|
11
|
+
const styles = PaymentStyles;
|
|
12
|
+
|
|
13
|
+
const ProcessPaymentET = props => {
|
|
14
|
+
const [amountCollected, setAmountCollected] = useState('');
|
|
15
|
+
const [inputError, setInputError] = useState('');
|
|
16
|
+
const [disableNext, setDisableNext] = useState(false);
|
|
17
|
+
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
18
|
+
style: CommonStyles.mainContainer
|
|
19
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
20
|
+
style: CommonStyles.mainContainer
|
|
21
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
22
|
+
style: CommonStyles.mainContainer
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
24
|
+
style: styles.textStyle1
|
|
25
|
+
}, "AMOUNT TO BE COLLECTED"), /*#__PURE__*/React.createElement(Text, {
|
|
26
|
+
style: styles.amountStyle
|
|
27
|
+
}, props.amount.currencyCode + ' ' + getPaymentValue(props.amount.value, props.amount.minorUnit).toLocaleString()), /*#__PURE__*/React.createElement(View, {
|
|
28
|
+
style: {
|
|
29
|
+
marginTop: 20,
|
|
30
|
+
paddingTop: 10,
|
|
31
|
+
paddingStart: 20,
|
|
32
|
+
paddingEnd: 20,
|
|
33
|
+
backgroundColor: 'white',
|
|
34
|
+
paddingBottom: 40
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
37
|
+
multiline: false,
|
|
38
|
+
autoComplete: 'off',
|
|
39
|
+
label: "Total Amount Collected",
|
|
40
|
+
value: amountCollected,
|
|
41
|
+
mode: 'outlined',
|
|
42
|
+
error: !isEmptyOrBlank(inputError),
|
|
43
|
+
selectionColor: '#6200EE',
|
|
44
|
+
keyboardType: 'numeric',
|
|
45
|
+
onChangeText: text => {
|
|
46
|
+
setInputError('');
|
|
47
|
+
setAmountCollected(text);
|
|
48
|
+
}
|
|
49
|
+
}), !isEmptyOrBlank(inputError) && /*#__PURE__*/React.createElement(Text, {
|
|
50
|
+
style: {
|
|
51
|
+
color: '#B00020'
|
|
52
|
+
}
|
|
53
|
+
}, inputError)), props.message && /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: styles.textStyle1
|
|
55
|
+
}, "MESSAGE"), /*#__PURE__*/React.createElement(Text, {
|
|
56
|
+
style: styles.messageStyle
|
|
57
|
+
}, props.message)))), /*#__PURE__*/React.createElement(View, {
|
|
58
|
+
style: {
|
|
59
|
+
margin: 10
|
|
60
|
+
}
|
|
61
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
62
|
+
style: {
|
|
63
|
+
flexDirection: 'row',
|
|
64
|
+
marginStart: 10,
|
|
65
|
+
marginEnd: 10
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
68
|
+
style: [CommonStyles.cancelButton, {
|
|
69
|
+
marginEnd: 5,
|
|
70
|
+
flex: 1
|
|
71
|
+
}],
|
|
72
|
+
labelStyle: CommonStyles.cancelButtonLabel,
|
|
73
|
+
mode: 'outlined',
|
|
74
|
+
onPress: async () => {
|
|
75
|
+
props.onSubmitET({
|
|
76
|
+
paymentMode: props.paymentMode,
|
|
77
|
+
collectedAmount: {
|
|
78
|
+
value: +amountCollected,
|
|
79
|
+
currencyCode: props.amount.currencyCode,
|
|
80
|
+
minorUnit: props.amount.minorUnit
|
|
81
|
+
},
|
|
82
|
+
transactionId: props.transactionId,
|
|
83
|
+
tenantTransactionId: props.transactionId,
|
|
84
|
+
...(await getBaseETResponse(EntityCode.PROCESS_PAYMENT, false, getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, false), ''))
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}, "Cancel"), /*#__PURE__*/React.createElement(Button, {
|
|
88
|
+
disabled: disableNext,
|
|
89
|
+
style: [CommonStyles.nextButton, {
|
|
90
|
+
marginStart: 5,
|
|
91
|
+
flex: 1
|
|
92
|
+
}],
|
|
93
|
+
labelStyle: CommonStyles.nextButtonLabel,
|
|
94
|
+
mode: 'contained',
|
|
95
|
+
onPress: async () => {
|
|
96
|
+
if (!isEmptyOrBlank(amountCollected) && !Number.isNaN(+amountCollected)) {
|
|
97
|
+
const calculatedValue = getPaymentValue(props.amount.value, props.amount.minorUnit);
|
|
98
|
+
|
|
99
|
+
if (+amountCollected !== calculatedValue) {
|
|
100
|
+
setInputError(`Amount should be equal to ${calculatedValue}`);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
setDisableNext(true);
|
|
105
|
+
props.onSubmitET({
|
|
106
|
+
paymentMode: props.paymentMode,
|
|
107
|
+
collectedAmount: {
|
|
108
|
+
value: props.amount.value,
|
|
109
|
+
currencyCode: props.amount.currencyCode,
|
|
110
|
+
minorUnit: props.amount.minorUnit
|
|
111
|
+
},
|
|
112
|
+
transactionId: props.transactionId,
|
|
113
|
+
tenantTransactionId: props.transactionId,
|
|
114
|
+
...(await getBaseETResponse(EntityCode.PROCESS_PAYMENT, true, getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, true), ''))
|
|
115
|
+
});
|
|
116
|
+
} else {
|
|
117
|
+
setInputError('Please enter valid amount.');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}, "Next"))));
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export default ProcessPaymentET;
|
|
124
|
+
//# sourceMappingURL=ProcessPaymentET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["KeyboardAvoidingView","ScrollView","Text","View","React","useState","Button","TextInput","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","PaymentStyles","isEmptyOrBlank","CommonStyles","getPaymentValue","styles","ProcessPaymentET","props","amountCollected","setAmountCollected","inputError","setInputError","disableNext","setDisableNext","mainContainer","textStyle1","amountStyle","amount","currencyCode","value","minorUnit","toLocaleString","marginTop","paddingTop","paddingStart","paddingEnd","backgroundColor","paddingBottom","text","color","message","messageStyle","margin","flexDirection","marginStart","marginEnd","cancelButton","flex","cancelButtonLabel","onSubmitET","paymentMode","collectedAmount","transactionId","tenantTransactionId","PROCESS_PAYMENT","nextButton","nextButtonLabel","Number","isNaN","calculatedValue"],"sources":["ProcessPaymentET.tsx"],"sourcesContent":["import type { ProcessPaymentInput } from './ProcessPaymentSchema';\nimport { KeyboardAvoidingView, ScrollView, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, TextInput } from 'react-native-paper';\nimport { getBaseETResponse } from '../../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../../models/execTasks/ETConfig';\nimport { PaymentStyles } from '../PaymentStyles';\nimport { isEmptyOrBlank } from '../../../../utils/utils';\nimport { CommonStyles } from '../../../../styles/executionTasks/CommonStyles';\nimport { getPaymentValue } from '../PaymentUtils';\n\nconst styles = PaymentStyles;\n\nconst ProcessPaymentET = (props: ProcessPaymentInput) => {\n const [amountCollected, setAmountCollected] = useState('');\n const [inputError, setInputError] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n return (\n <KeyboardAvoidingView style={CommonStyles.mainContainer}>\n <ScrollView style={CommonStyles.mainContainer}>\n <View style={CommonStyles.mainContainer}>\n <Text style={styles.textStyle1}>AMOUNT TO BE COLLECTED</Text>\n <Text style={styles.amountStyle}>\n {props.amount.currencyCode +\n ' ' +\n getPaymentValue(\n props.amount.value,\n props.amount.minorUnit\n ).toLocaleString()}\n </Text>\n <View\n style={{\n marginTop: 20,\n paddingTop: 10,\n paddingStart: 20,\n paddingEnd: 20,\n backgroundColor: 'white',\n paddingBottom: 40,\n }}\n >\n <TextInput\n multiline={false}\n autoComplete={'off'}\n label=\"Total Amount Collected\"\n value={amountCollected}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setAmountCollected(text);\n }}\n />\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n </View>\n {props.message && (\n <View>\n <Text style={styles.textStyle1}>MESSAGE</Text>\n <Text style={styles.messageStyle}>{props.message}</Text>\n </View>\n )}\n </View>\n </ScrollView>\n <View style={{ margin: 10 }}>\n <View\n style={{\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n }}\n >\n <Button\n style={[\n CommonStyles.cancelButton,\n {\n marginEnd: 5,\n flex: 1,\n },\n ]}\n labelStyle={CommonStyles.cancelButtonLabel}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n paymentMode: props.paymentMode,\n collectedAmount: {\n value: +amountCollected,\n currencyCode: props.amount.currencyCode,\n minorUnit: props.amount.minorUnit,\n },\n transactionId: props.transactionId,\n tenantTransactionId: props.transactionId,\n ...(await getBaseETResponse(\n EntityCode.PROCESS_PAYMENT,\n false,\n getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[\n CommonStyles.nextButton,\n {\n marginStart: 5,\n flex: 1,\n },\n ]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n if (\n !isEmptyOrBlank(amountCollected) &&\n !Number.isNaN(+amountCollected)\n ) {\n const calculatedValue = getPaymentValue(\n props.amount.value,\n props.amount.minorUnit\n );\n if (+amountCollected !== calculatedValue) {\n setInputError(`Amount should be equal to ${calculatedValue}`);\n return;\n }\n setDisableNext(true);\n props.onSubmitET({\n paymentMode: props.paymentMode,\n collectedAmount: {\n value: props.amount.value,\n currencyCode: props.amount.currencyCode,\n minorUnit: props.amount.minorUnit,\n },\n transactionId: props.transactionId,\n tenantTransactionId: props.transactionId,\n ...(await getBaseETResponse(\n EntityCode.PROCESS_PAYMENT,\n true,\n getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, true),\n ''\n )),\n });\n } else {\n setInputError('Please enter valid amount.');\n }\n }}\n >\n Next\n </Button>\n </View>\n </View>\n </KeyboardAvoidingView>\n );\n};\nexport default ProcessPaymentET;\n"],"mappings":"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"}
|
package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ProcessPaymentSchema.ts"],"sourcesContent":["/**\n * Amount to be collected\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../../models/execTasks/ETBaseModels';\nimport type { ETAmount } from '../init/InitPaymentSchema';\n/**\n * Payment mode\n */\n\nexport type ProcessPaymentInput = BaseETRequest & {\n amount: ETAmount;\n paymentMode: string;\n transactionId: string;\n onSubmitET: (output: ProcessPaymentOutput) => void;\n};\n/**\n * Amount to be collected (ISO 4217)\n */\n\nexport type ProcessPaymentOutput = BaseETResponse & {\n /**\n * Unique transaction id\n */\n transactionId: string;\n tenantTransactionId: string;\n /**\n * Amount collected (ISO 4217)\n */\n collectedAmount: ETAmount;\n /**\n * Payment meta data\n */\n paymentMeta?: {};\n paymentMode: string;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["PickpSchema.ts"],"sourcesContent":["/**\n * Unique identifier for the item\n */\nimport type { BaseETResponse, LineItem } from '../ExecutionTasksIndex';\nimport type { BaseETRequest } from '../../../models/execTasks/ETBaseModels';\n\n/**\n * Any manual instruction to display for the Operator to work on\n */\nexport type Instruction = string;\nexport interface PickupRemarks {\n pickupRemark: string;\n success: boolean;\n}\n\nexport type PickupETInput = BaseETRequest & {\n items: LineItem[];\n pickupCount?: number;\n confirmCustodyExchange?: boolean;\n onSubmitET(pickupRemark: PickupETOutput): void;\n};\n\nexport type PickupETOutput = BaseETResponse & {\n /**\n * Remark captured at time of delivery\n */\n remark?: string;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { FlatList, View } from 'react-native';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';
|
|
4
|
+
import { CommonStyles, deliverETStyles } from '../../../styles/executionTasks/CommonStyles';
|
|
5
|
+
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
6
|
+
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
7
|
+
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
8
|
+
|
|
9
|
+
const ListItem = _ref => {
|
|
10
|
+
let {
|
|
11
|
+
lineItem
|
|
12
|
+
} = _ref;
|
|
13
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
14
|
+
style: deliverETStyles.item
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Card.Title, {
|
|
16
|
+
title: lineItem.skuId,
|
|
17
|
+
subtitle: lineItem.count ? lineItem.count + ' Qty.' : ''
|
|
18
|
+
}), lineItem.productDescription && /*#__PURE__*/React.createElement(Card.Content, null, /*#__PURE__*/React.createElement(Paragraph, null, lineItem.productDescription)));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const renderItem = _ref2 => {
|
|
22
|
+
let {
|
|
23
|
+
item
|
|
24
|
+
} = _ref2;
|
|
25
|
+
return /*#__PURE__*/React.createElement(ListItem, {
|
|
26
|
+
lineItem: item
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const PickupET = props => {
|
|
31
|
+
const [remarks, setRemarks] = useState('');
|
|
32
|
+
const [disableNext, setDisableNext] = useState(false);
|
|
33
|
+
if (props !== null && props !== void 0 && props.items && props.items.length > 0) return /*#__PURE__*/React.createElement(View, {
|
|
34
|
+
style: [CommonStyles.mainContainer, {
|
|
35
|
+
padding: 10
|
|
36
|
+
}]
|
|
37
|
+
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
38
|
+
data: props.items,
|
|
39
|
+
renderItem: renderItem,
|
|
40
|
+
keyExtractor: item => item.skuId
|
|
41
|
+
}), /*#__PURE__*/React.createElement(View, null, props.message && props.message.length > 0 && /*#__PURE__*/React.createElement(Paragraph, null, props.message), /*#__PURE__*/React.createElement(TextInput, {
|
|
42
|
+
multiline: false,
|
|
43
|
+
autoComplete: 'off',
|
|
44
|
+
style: deliverETStyles.input,
|
|
45
|
+
label: "Enter Pickup remarks",
|
|
46
|
+
value: remarks,
|
|
47
|
+
mode: 'outlined',
|
|
48
|
+
onChangeText: text => setRemarks(text)
|
|
49
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
50
|
+
style: deliverETStyles.footerButtonStyles
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
52
|
+
labelStyle: CommonStyles.cancelButtonLabel,
|
|
53
|
+
style: [CommonStyles.cancelButton, {
|
|
54
|
+
marginEnd: 5,
|
|
55
|
+
flex: 1
|
|
56
|
+
}],
|
|
57
|
+
mode: 'outlined',
|
|
58
|
+
onPress: async () => {
|
|
59
|
+
props.onSubmitET({ ...(await getBaseETResponse(EntityCode.PICKUP, false, getEventCodeByET(ExecutionTaskID.PICKUP, false), ''))
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}, "Cancel"), /*#__PURE__*/React.createElement(Button, {
|
|
63
|
+
disabled: disableNext,
|
|
64
|
+
labelStyle: CommonStyles.nextButtonLabel,
|
|
65
|
+
style: [CommonStyles.nextButton, {
|
|
66
|
+
marginStart: 5,
|
|
67
|
+
flex: 1
|
|
68
|
+
}],
|
|
69
|
+
mode: 'contained',
|
|
70
|
+
onPress: async () => {
|
|
71
|
+
setDisableNext(true);
|
|
72
|
+
props.onSubmitET({
|
|
73
|
+
remark: remarks,
|
|
74
|
+
...(await getBaseETResponse(EntityCode.PICKUP, true, getEventCodeByET(ExecutionTaskID.PICKUP, true), ''))
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}, "Pickup"))));else {
|
|
78
|
+
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Title, {
|
|
79
|
+
style: deliverETStyles.errorText
|
|
80
|
+
}, "No Item(s) found for Pickup"));
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export default PickupET;
|
|
85
|
+
//# sourceMappingURL=PickupET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FlatList","View","React","useState","Button","Card","Paragraph","TextInput","Title","CommonStyles","deliverETStyles","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","ListItem","lineItem","item","skuId","count","productDescription","renderItem","PickupET","props","remarks","setRemarks","disableNext","setDisableNext","items","length","mainContainer","padding","message","input","text","footerButtonStyles","cancelButtonLabel","cancelButton","marginEnd","flex","onSubmitET","PICKUP","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":"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"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { FlatList, Text, View } from 'react-native';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Button, Modal, Portal, Provider } from 'react-native-paper';
|
|
4
|
+
import { CommonStyles, DeliverPickupStyles } from '../../../styles/executionTasks/CommonStyles';
|
|
5
|
+
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
6
|
+
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
7
|
+
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
8
|
+
import { DEFAULT_PICKUP_MESSAGE, DEFAULT_PICKUP_TITLE } from '../../../constants/constants';
|
|
9
|
+
|
|
10
|
+
const ListItem = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
lineItem
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
15
|
+
style: {
|
|
16
|
+
justifyContent: 'center'
|
|
17
|
+
}
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
19
|
+
style: DeliverPickupStyles.itemTextStyle
|
|
20
|
+
}, `Order ID: ${lineItem.skuId}`));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const getMessage = (pickupCount, message) => {
|
|
24
|
+
try {
|
|
25
|
+
const msg = message || DEFAULT_PICKUP_MESSAGE;
|
|
26
|
+
return msg.replace('$', (pickupCount === null || pickupCount === void 0 ? void 0 : pickupCount.toString()) || '');
|
|
27
|
+
} catch (error) {
|
|
28
|
+
return message || '';
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const renderItem = _ref2 => {
|
|
33
|
+
let {
|
|
34
|
+
item
|
|
35
|
+
} = _ref2;
|
|
36
|
+
return /*#__PURE__*/React.createElement(ListItem, {
|
|
37
|
+
lineItem: item
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const SLPickupET = props => {
|
|
42
|
+
const [disableProceed, setDisableProceed] = useState(false);
|
|
43
|
+
return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(View, {
|
|
44
|
+
style: DeliverPickupStyles.mainContainer
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Modal, {
|
|
46
|
+
visible: true,
|
|
47
|
+
dismissable: false,
|
|
48
|
+
contentContainerStyle: DeliverPickupStyles.modalContent
|
|
49
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
50
|
+
style: DeliverPickupStyles.modalView
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
52
|
+
style: DeliverPickupStyles.titleText
|
|
53
|
+
}, props.title || DEFAULT_PICKUP_TITLE), /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: DeliverPickupStyles.messageText
|
|
55
|
+
}, getMessage(props.pickupCount, props.message)), props.pickupCount === 1 && /*#__PURE__*/React.createElement(FlatList, {
|
|
56
|
+
style: DeliverPickupStyles.flatList,
|
|
57
|
+
data: props.items,
|
|
58
|
+
renderItem: renderItem,
|
|
59
|
+
keyExtractor: item => item.skuId
|
|
60
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
61
|
+
disabled: disableProceed,
|
|
62
|
+
uppercase: false,
|
|
63
|
+
labelStyle: CommonStyles.nextButtonLabel,
|
|
64
|
+
style: [CommonStyles.nextButton, {
|
|
65
|
+
marginTop: 20
|
|
66
|
+
}],
|
|
67
|
+
mode: 'contained',
|
|
68
|
+
onPress: async () => {
|
|
69
|
+
setDisableProceed(true);
|
|
70
|
+
props.onSubmitET({
|
|
71
|
+
remark: '',
|
|
72
|
+
...(await getBaseETResponse(EntityCode.PICKUP, true, getEventCodeByET(ExecutionTaskID.PICKUP, true), ''))
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}, "Yes"), /*#__PURE__*/React.createElement(Button, {
|
|
76
|
+
disabled: disableProceed,
|
|
77
|
+
uppercase: false,
|
|
78
|
+
style: [CommonStyles.cancelButton, {
|
|
79
|
+
marginTop: 5
|
|
80
|
+
}],
|
|
81
|
+
mode: "outlined",
|
|
82
|
+
labelStyle: CommonStyles.cancelButtonLabel,
|
|
83
|
+
onPress: async () => {
|
|
84
|
+
setDisableProceed(true);
|
|
85
|
+
props.onSubmitET({
|
|
86
|
+
remark: '',
|
|
87
|
+
...(await getBaseETResponse(EntityCode.PICKUP, false, getEventCodeByET(ExecutionTaskID.PICKUP, false), ''))
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}, "No"))))));
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export default SLPickupET;
|
|
94
|
+
//# sourceMappingURL=SLPickupET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FlatList","Text","View","React","useState","Button","Modal","Portal","Provider","CommonStyles","DeliverPickupStyles","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","DEFAULT_PICKUP_MESSAGE","DEFAULT_PICKUP_TITLE","ListItem","lineItem","justifyContent","itemTextStyle","skuId","getMessage","pickupCount","message","msg","replace","toString","error","renderItem","item","SLPickupET","props","disableProceed","setDisableProceed","mainContainer","modalContent","modalView","titleText","title","messageText","flatList","items","nextButtonLabel","nextButton","marginTop","onSubmitET","remark","PICKUP","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":"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"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React, { memo, useEffect, useState } from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { Camera } from 'expo-camera';
|
|
4
|
+
import { isEmptyOrBlank } from '../../../utils/utils';
|
|
5
|
+
import { checkCameraPermissionUtil } from '../imageCapture/CaptureUtils';
|
|
6
|
+
import { Title } from 'react-native-paper';
|
|
7
|
+
import { BlurView } from 'expo-blur';
|
|
8
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
9
|
+
import { Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
10
|
+
|
|
11
|
+
function Hint(_ref) {
|
|
12
|
+
let {
|
|
13
|
+
children
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/React.createElement(BlurView, {
|
|
16
|
+
style: styles.hint,
|
|
17
|
+
intensity: 50,
|
|
18
|
+
tint: "dark"
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
20
|
+
style: styles.headerText
|
|
21
|
+
}, children));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const CScanner = props => {
|
|
25
|
+
const [isVisible, setVisible] = useState(true);
|
|
26
|
+
const [hasPermission, setHasPermission] = useState(null);
|
|
27
|
+
const {
|
|
28
|
+
bottom
|
|
29
|
+
} = useSafeAreaInsets();
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
(async () => {
|
|
32
|
+
let response = await checkCameraPermissionUtil();
|
|
33
|
+
setHasPermission(response);
|
|
34
|
+
})();
|
|
35
|
+
}, []);
|
|
36
|
+
|
|
37
|
+
const _handleBarCodeScanned = scan => {
|
|
38
|
+
if (!isEmptyOrBlank(scan.data)) {
|
|
39
|
+
setVisible(false);
|
|
40
|
+
props.onScanned(scan.data);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
if (!hasPermission) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
46
|
+
style: {
|
|
47
|
+
flex: 1,
|
|
48
|
+
justifyContent: 'center',
|
|
49
|
+
alignItems: 'center'
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Title, null, 'No Permissions for Camera. Please provide camera permissions from app\
|
|
52
|
+
settings.'));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
56
|
+
style: styles.container
|
|
57
|
+
}, isVisible ? /*#__PURE__*/React.createElement(Camera, {
|
|
58
|
+
barCodeScannerSettings: {
|
|
59
|
+
barCodeTypes: props.barCodeTypes
|
|
60
|
+
},
|
|
61
|
+
onBarCodeScanned: _handleBarCodeScanned,
|
|
62
|
+
style: StyleSheet.absoluteFill
|
|
63
|
+
}) : null, /*#__PURE__*/React.createElement(View, {
|
|
64
|
+
style: [styles.header, {
|
|
65
|
+
bottom: 16 + bottom
|
|
66
|
+
}]
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Hint, null, 'or \nScan AWB Code on shipment')));
|
|
68
|
+
}; // exporting Scanner as Pure Component
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
export default /*#__PURE__*/memo(CScanner);
|
|
72
|
+
const styles = StyleSheet.create({
|
|
73
|
+
container: {
|
|
74
|
+
flex: 1,
|
|
75
|
+
backgroundColor: '#000',
|
|
76
|
+
justifyContent: 'center',
|
|
77
|
+
alignItems: 'center'
|
|
78
|
+
},
|
|
79
|
+
hint: {
|
|
80
|
+
paddingHorizontal: 16,
|
|
81
|
+
paddingVertical: 20,
|
|
82
|
+
overflow: 'hidden',
|
|
83
|
+
justifyContent: 'center',
|
|
84
|
+
alignItems: 'center'
|
|
85
|
+
},
|
|
86
|
+
headerText: {
|
|
87
|
+
color: '#fff',
|
|
88
|
+
backgroundColor: 'transparent',
|
|
89
|
+
textAlign: 'center',
|
|
90
|
+
fontSize: 16,
|
|
91
|
+
fontWeight: '500'
|
|
92
|
+
},
|
|
93
|
+
header: {
|
|
94
|
+
position: 'absolute',
|
|
95
|
+
left: 0,
|
|
96
|
+
right: 0,
|
|
97
|
+
alignItems: 'center',
|
|
98
|
+
fontFamily: Fonts.IBMPlexSans_600SemiBold
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=CScanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useState","StyleSheet","Text","View","Camera","isEmptyOrBlank","checkCameraPermissionUtil","Title","BlurView","useSafeAreaInsets","Fonts","Hint","children","styles","hint","headerText","CScanner","props","isVisible","setVisible","hasPermission","setHasPermission","bottom","response","_handleBarCodeScanned","scan","data","onScanned","flex","justifyContent","alignItems","container","barCodeTypes","absoluteFill","header","create","backgroundColor","paddingHorizontal","paddingVertical","overflow","color","textAlign","fontSize","fontWeight","position","left","right","fontFamily","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":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type of scan
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Mode of scanning
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Max limit of items to be scanned in multi-scan mode
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Regex to validate scanned strings
|
|
15
|
+
*/
|
|
16
|
+
export let SCAN_STATUS;
|
|
17
|
+
|
|
18
|
+
(function (SCAN_STATUS) {
|
|
19
|
+
SCAN_STATUS[SCAN_STATUS["ACCEPTED"] = 0] = "ACCEPTED";
|
|
20
|
+
SCAN_STATUS[SCAN_STATUS["REJECTED"] = 1] = "REJECTED";
|
|
21
|
+
SCAN_STATUS[SCAN_STATUS["TO_BE_SCANNED"] = 2] = "TO_BE_SCANNED";
|
|
22
|
+
SCAN_STATUS[SCAN_STATUS["NONE"] = 3] = "NONE";
|
|
23
|
+
})(SCAN_STATUS || (SCAN_STATUS = {}));
|
|
24
|
+
//# 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;AAuDA,WAAYA,WAAZ;;WAAYA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;GAAAA,W,KAAAA,W"}
|