@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,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
11
|
+
|
|
12
|
+
var _reactNative = require("react-native");
|
|
13
|
+
|
|
14
|
+
var _reactNativeDropdownPicker = _interopRequireDefault(require("react-native-dropdown-picker"));
|
|
15
|
+
|
|
16
|
+
var _FontAwesome = _interopRequireDefault(require("react-native-vector-icons/FontAwesome"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
function getDropDownItems(reasonItem) {
|
|
25
|
+
if (!reasonItem || reasonItem.length === 0) return [];
|
|
26
|
+
let items = [];
|
|
27
|
+
reasonItem.forEach(it => {
|
|
28
|
+
items.push({
|
|
29
|
+
label: it.reasonText,
|
|
30
|
+
value: it.reasonCode,
|
|
31
|
+
icon: () => /*#__PURE__*/_react.default.createElement(_FontAwesome.default, {
|
|
32
|
+
size: 10,
|
|
33
|
+
name: 'circle',
|
|
34
|
+
color: it.success ? '#10B981' : '#DC2626'
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
return items;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function findReasonByCode(code, reasonItems) {
|
|
42
|
+
if (!reasonItems || reasonItems.length === 0) return null;
|
|
43
|
+
|
|
44
|
+
for (let i = 0; i < reasonItems.length; i++) {
|
|
45
|
+
if (reasonItems[i].reasonCode === code) {
|
|
46
|
+
return reasonItems[i];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const ReasonDropDown = props => {
|
|
54
|
+
var _props$selectedReason;
|
|
55
|
+
|
|
56
|
+
const [open, setOpen] = (0, _react.useState)(false);
|
|
57
|
+
const [selectedReason, setSelectedReason] = (0, _react.useState)(((_props$selectedReason = props.selectedReason) === null || _props$selectedReason === void 0 ? void 0 : _props$selectedReason.reasonText) ?? null);
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
59
|
+
style: props.style
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
61
|
+
style: styles.headerText
|
|
62
|
+
}, 'Choose reason code'), /*#__PURE__*/_react.default.createElement(_reactNativeDropdownPicker.default, {
|
|
63
|
+
dropDownContainerStyle: {
|
|
64
|
+
backgroundColor: '#ffffff'
|
|
65
|
+
},
|
|
66
|
+
placeholder: selectedReason ?? '',
|
|
67
|
+
open: open,
|
|
68
|
+
value: selectedReason,
|
|
69
|
+
items: getDropDownItems(props.items),
|
|
70
|
+
setOpen: setOpen,
|
|
71
|
+
setValue: setSelectedReason,
|
|
72
|
+
textStyle: {
|
|
73
|
+
fontSize: 16,
|
|
74
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
|
|
75
|
+
},
|
|
76
|
+
labelStyle: {
|
|
77
|
+
fontSize: 16,
|
|
78
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
|
|
79
|
+
},
|
|
80
|
+
onChangeValue: value => {
|
|
81
|
+
if (value) {
|
|
82
|
+
props.onItemChange(findReasonByCode(value, props.items));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
var _default = /*#__PURE__*/_react.default.memo(ReasonDropDown);
|
|
89
|
+
|
|
90
|
+
exports.default = _default;
|
|
91
|
+
|
|
92
|
+
const styles = _reactNative.StyleSheet.create({
|
|
93
|
+
headerText: {
|
|
94
|
+
fontSize: 16,
|
|
95
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|
|
96
|
+
marginTop: 10,
|
|
97
|
+
marginBottom: 10
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=ReasonDropDown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getDropDownItems","reasonItem","length","items","forEach","it","push","label","reasonText","value","reasonCode","icon","success","findReasonByCode","code","reasonItems","i","ReasonDropDown","props","open","setOpen","useState","selectedReason","setSelectedReason","style","styles","headerText","backgroundColor","fontSize","fontFamily","Fonts","IBMPlexSans_400Regular","onItemChange","React","memo","StyleSheet","create","IBMPlexSans_600SemiBold","marginTop","marginBottom"],"sources":["ReasonDropDown.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Fonts } from '../../../../styles/executionTasks/CommonStyles';\nimport { StyleSheet, Text, View } from 'react-native';\nimport DropDownPicker from 'react-native-dropdown-picker';\nimport FIcon from 'react-native-vector-icons/FontAwesome';\n\nfunction getDropDownItems(reasonItem: ReasonItem[]) {\n if (!reasonItem || reasonItem.length === 0) return [];\n let items: { label: string; value: string; icon: () => void }[] = [];\n\n reasonItem.forEach((it) => {\n items.push({\n label: it.reasonText,\n value: it.reasonCode,\n icon: () => (\n <FIcon\n size={10}\n name={'circle'}\n color={it.success ? '#10B981' : '#DC2626'}\n />\n ),\n });\n });\n return items;\n}\n\nfunction findReasonByCode(\n code: string,\n reasonItems: ReasonItem[]\n): ReasonItem | null {\n if (!reasonItems || reasonItems.length === 0) return null;\n for (let i = 0; i < reasonItems.length; i++) {\n if (reasonItems[i].reasonCode === code) {\n return reasonItems[i];\n }\n }\n return null;\n}\n\nconst ReasonDropDown = (props: DropDownPickerProps) => {\n const [open, setOpen] = useState(false);\n const [selectedReason, setSelectedReason] = useState(\n props.selectedReason?.reasonText ?? null\n );\n\n return (\n <View style={props.style}>\n <Text style={styles.headerText}>{'Choose reason code'}</Text>\n <DropDownPicker\n dropDownContainerStyle={{ backgroundColor: '#ffffff' }}\n placeholder={selectedReason ?? ''}\n open={open}\n value={selectedReason}\n items={getDropDownItems(props.items)}\n setOpen={setOpen}\n setValue={setSelectedReason}\n textStyle={{\n fontSize: 16,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n labelStyle={{\n fontSize: 16,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n onChangeValue={(value) => {\n if (value) {\n props.onItemChange(findReasonByCode(value, props.items));\n }\n }}\n />\n </View>\n );\n};\nexport default React.memo(ReasonDropDown);\n\nexport interface DropDownPickerProps {\n style: object;\n items: ReasonItem[];\n selectedReason?: ReasonItem;\n onItemChange: (selectedReason: ReasonItem | null) => void;\n}\n\nexport interface ReasonItem {\n reasonText: string;\n reasonCode: string;\n success: boolean;\n}\n\nconst styles = StyleSheet.create({\n headerText: {\n fontSize: 16,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 10,\n marginBottom: 10,\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,SAASA,gBAAT,CAA0BC,UAA1B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CAACC;EAApB,GAAiC,oBAAjC,CADF,eAEE,6BAAC,kCAAD;IACE,sBAAsB,EAAE;MAAEC,eAAe,EAAE;IAAnB,CAD1B;IAEE,WAAW,EAAEL,cAAc,IAAI,EAFjC;IAGE,IAAI,EAAEH,IAHR;IAIE,KAAK,EAAEG,cAJT;IAKE,KAAK,EAAEtB,gBAAgB,CAACkB,KAAK,CAACf,KAAP,CALzB;IAME,OAAO,EAAEiB,OANX;IAOE,QAAQ,EAAEG,iBAPZ;IAQE,SAAS,EAAE;MACTK,QAAQ,EAAE,EADD;MAETC,UAAU,EAAEC,mBAAA,CAAMC;IAFT,CARb;IAYE,UAAU,EAAE;MACVH,QAAQ,EAAE,EADA;MAEVC,UAAU,EAAEC,mBAAA,CAAMC;IAFR,CAZd;IAgBE,aAAa,EAAGtB,KAAD,IAAW;MACxB,IAAIA,KAAJ,EAAW;QACTS,KAAK,CAACc,YAAN,CAAmBnB,gBAAgB,CAACJ,KAAD,EAAQS,KAAK,CAACf,KAAd,CAAnC;MACD;IACF;EApBH,EAFF,CADF;AA2BD,CAjCD;;4BAkCe8B,cAAA,CAAMC,IAAN,CAAWjB,cAAX,C;;;;AAef,MAAMQ,MAAM,GAAGU,uBAAA,CAAWC,MAAX,CAAkB;EAC/BV,UAAU,EAAE;IACVE,QAAQ,EAAE,EADA;IAEVC,UAAU,EAAEC,mBAAA,CAAMO,uBAFR;IAGVC,SAAS,EAAE,EAHD;IAIVC,YAAY,EAAE;EAJJ;AADmB,CAAlB,CAAf"}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
|
|
12
|
+
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
13
|
+
|
|
14
|
+
var _reactNativePaper = require("react-native-paper");
|
|
15
|
+
|
|
16
|
+
var _ScannerSchema = require("../ScannerSchema");
|
|
17
|
+
|
|
18
|
+
var _FontAwesome = _interopRequireDefault(require("react-native-vector-icons/FontAwesome"));
|
|
19
|
+
|
|
20
|
+
var _ScannerUtils = require("../ScannerUtils");
|
|
21
|
+
|
|
22
|
+
var _RTReasonSelection = _interopRequireDefault(require("./RTReasonSelection"));
|
|
23
|
+
|
|
24
|
+
var _Toaster = require("../../../widgets/Toaster");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
+
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
32
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
|
+
|
|
34
|
+
const StatusView = props => {
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
36
|
+
style: [styles.wbnStatusView, {
|
|
37
|
+
backgroundColor: props.backgroundColor
|
|
38
|
+
}]
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_FontAwesome.default, {
|
|
40
|
+
name: 'circle',
|
|
41
|
+
color: props.iconColor
|
|
42
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
43
|
+
style: {
|
|
44
|
+
color: props.color,
|
|
45
|
+
marginStart: 5
|
|
46
|
+
}
|
|
47
|
+
}, props.text));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const ItemStatus = props => {
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
52
|
+
style: styles.itemStatusView
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
54
|
+
style: styles.text1
|
|
55
|
+
}, props.status), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
56
|
+
style: styles.text2
|
|
57
|
+
}, props.count));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const ScannedItemStatus = props => {
|
|
61
|
+
switch (props.scanStatus) {
|
|
62
|
+
case _ScannerSchema.SCAN_STATUS.ACCEPTED:
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(StatusView, {
|
|
64
|
+
text: props.text,
|
|
65
|
+
color: '#10B981',
|
|
66
|
+
backgroundColor: '#ECFDF5',
|
|
67
|
+
iconColor: '#10B981'
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
case _ScannerSchema.SCAN_STATUS.REJECTED:
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(StatusView, {
|
|
72
|
+
text: props.text,
|
|
73
|
+
color: '#DC2626',
|
|
74
|
+
backgroundColor: '#FEF2F2',
|
|
75
|
+
iconColor: '#DC2626'
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
case _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED:
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(StatusView, {
|
|
80
|
+
text: props.text,
|
|
81
|
+
color: '#999999',
|
|
82
|
+
backgroundColor: '#F9F9F9',
|
|
83
|
+
iconColor: '#999999'
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
default:
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
class Item extends _react.default.Component {
|
|
92
|
+
render() {
|
|
93
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
94
|
+
style: styles.rowItem
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
96
|
+
style: {
|
|
97
|
+
flex: 1,
|
|
98
|
+
flexDirection: 'row'
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
101
|
+
style: {
|
|
102
|
+
marginEnd: 20
|
|
103
|
+
}
|
|
104
|
+
}, this.props.data.value), /*#__PURE__*/_react.default.createElement(ScannedItemStatus, {
|
|
105
|
+
scanStatus: this.props.data.scanStatus,
|
|
106
|
+
text: (0, _ScannerUtils.getScannedItemStatus)(this.props.data.scanStatus)
|
|
107
|
+
})), this.props.data.scanStatus !== _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
108
|
+
style: {
|
|
109
|
+
fontSize: 16,
|
|
110
|
+
color: '#5B80F7',
|
|
111
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_500Medium
|
|
112
|
+
},
|
|
113
|
+
onPress: () => {
|
|
114
|
+
this.props.refreshList(this.props.data.value, this.props.data.reasonCode ? _ScannerUtils.SCAN_ACTIONS.CHANGE_STATUS : _ScannerUtils.SCAN_ACTIONS.DELETE);
|
|
115
|
+
}
|
|
116
|
+
}, 'Undo')));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const ScanList = props => {
|
|
122
|
+
const [reasonSelectionPage, showReasonSelectionPage] = (0, _react.useState)(false);
|
|
123
|
+
|
|
124
|
+
const renderItem = _ref => {
|
|
125
|
+
let {
|
|
126
|
+
item
|
|
127
|
+
} = _ref;
|
|
128
|
+
return /*#__PURE__*/_react.default.createElement(Item, {
|
|
129
|
+
data: item,
|
|
130
|
+
refreshList: props.filterList
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const handleSubmit = async () => {
|
|
135
|
+
if (props.preSelectReasonCode && props.scans && props.scans.length > 0) {
|
|
136
|
+
if (props.scanList && props.scanList.length > 0) {
|
|
137
|
+
const totalScanned = (0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.ACCEPTED) + (0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.REJECTED);
|
|
138
|
+
|
|
139
|
+
if (totalScanned === props.scans.length) {
|
|
140
|
+
props.onSubmitET(props.scanList);
|
|
141
|
+
} else {
|
|
142
|
+
showReasonSelectionPage(true);
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
(0, _Toaster.showToast)('No shipments scanned!');
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
if (props.scanMode === 'SINGLE') {
|
|
149
|
+
if (props.scanList && props.scanList.length > 0) {
|
|
150
|
+
props.onSubmitET(await (0, _ScannerUtils.getScannerETOutput)(props.scanList));
|
|
151
|
+
} else {
|
|
152
|
+
(0, _Toaster.showToast)(`Nothing scanned yet`);
|
|
153
|
+
}
|
|
154
|
+
} else {
|
|
155
|
+
if (props.scanCountLimit && props.scanCountLimit > 0) {
|
|
156
|
+
if (props.scanList && props.scanList.length <= props.scanCountLimit) {
|
|
157
|
+
props.onSubmitET(await (0, _ScannerUtils.getScannerETOutput)(props.scanList));
|
|
158
|
+
} else {
|
|
159
|
+
(0, _Toaster.showToast)(`Max Scans count reached`);
|
|
160
|
+
}
|
|
161
|
+
} else {
|
|
162
|
+
if (props.scanList && props.scanList.length > 0) {
|
|
163
|
+
props.onSubmitET(await (0, _ScannerUtils.getScannerETOutput)(props.scanList));
|
|
164
|
+
} else {
|
|
165
|
+
(0, _Toaster.showToast)(`Nothing scanned yet`);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
if (reasonSelectionPage) {
|
|
173
|
+
return /*#__PURE__*/_react.default.createElement(_RTReasonSelection.default, _extends({}, props, {
|
|
174
|
+
showReasonSelectionPage: showReasonSelectionPage
|
|
175
|
+
}));
|
|
176
|
+
} else return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
177
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
178
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
179
|
+
style: {
|
|
180
|
+
flexDirection: 'row',
|
|
181
|
+
marginStart: 10,
|
|
182
|
+
marginEnd: 10,
|
|
183
|
+
marginTop: 10
|
|
184
|
+
}
|
|
185
|
+
}, /*#__PURE__*/_react.default.createElement(ItemStatus, {
|
|
186
|
+
status: 'Completed',
|
|
187
|
+
count: (0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.ACCEPTED)
|
|
188
|
+
}), props.preSelectReasonCode && /*#__PURE__*/_react.default.createElement(ItemStatus, {
|
|
189
|
+
status: 'Rejected',
|
|
190
|
+
count: (0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.REJECTED)
|
|
191
|
+
}), props.scans && props.scans.length >= 0 && /*#__PURE__*/_react.default.createElement(ItemStatus, {
|
|
192
|
+
status: 'To be scanned',
|
|
193
|
+
count: (0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED)
|
|
194
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
195
|
+
style: {
|
|
196
|
+
flex: 1
|
|
197
|
+
}
|
|
198
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
199
|
+
data: props.scanList,
|
|
200
|
+
renderItem: renderItem,
|
|
201
|
+
keyExtractor: item => item.value
|
|
202
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
203
|
+
style: {
|
|
204
|
+
justifyContent: 'flex-end',
|
|
205
|
+
marginStart: 10,
|
|
206
|
+
marginEnd: 10,
|
|
207
|
+
marginBottom: 10
|
|
208
|
+
}
|
|
209
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, `${(0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.REJECTED) + (0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.ACCEPTED)} shipments scanned. If you have more please continue scanning.`), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
210
|
+
onPress: async () => {
|
|
211
|
+
await handleSubmit();
|
|
212
|
+
},
|
|
213
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
214
|
+
marginTop: 10
|
|
215
|
+
}],
|
|
216
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel
|
|
217
|
+
}, 'Complete Scan')));
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
var _default = ScanList;
|
|
221
|
+
exports.default = _default;
|
|
222
|
+
|
|
223
|
+
const styles = _reactNative.StyleSheet.create({
|
|
224
|
+
rowItem: {
|
|
225
|
+
padding: 14,
|
|
226
|
+
flexDirection: 'row',
|
|
227
|
+
backgroundColor: '#ffffff',
|
|
228
|
+
alignItems: 'center',
|
|
229
|
+
marginTop: 10,
|
|
230
|
+
marginStart: 10,
|
|
231
|
+
marginEnd: 10
|
|
232
|
+
},
|
|
233
|
+
text1: {
|
|
234
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
235
|
+
fontSize: 18,
|
|
236
|
+
textAlign: 'center'
|
|
237
|
+
},
|
|
238
|
+
text2: {
|
|
239
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|
|
240
|
+
fontSize: 18,
|
|
241
|
+
textAlign: 'center'
|
|
242
|
+
},
|
|
243
|
+
itemStatus: {},
|
|
244
|
+
itemStatusView: {
|
|
245
|
+
backgroundColor: '#ffffff',
|
|
246
|
+
flex: 1,
|
|
247
|
+
justifyContent: 'center',
|
|
248
|
+
alignItems: 'center',
|
|
249
|
+
padding: 8,
|
|
250
|
+
borderRightWidth: 0.6,
|
|
251
|
+
borderRightColor: '#E4E4E4'
|
|
252
|
+
},
|
|
253
|
+
wbnStatusView: {
|
|
254
|
+
flexDirection: 'row',
|
|
255
|
+
paddingEnd: 6,
|
|
256
|
+
paddingStart: 6,
|
|
257
|
+
paddingTop: 3,
|
|
258
|
+
paddingBottom: 3,
|
|
259
|
+
borderRadius: 10,
|
|
260
|
+
alignItems: 'center',
|
|
261
|
+
justifyContent: 'center'
|
|
262
|
+
},
|
|
263
|
+
topContainer: {
|
|
264
|
+
flexDirection: 'row',
|
|
265
|
+
marginStart: 10,
|
|
266
|
+
marginEnd: 10,
|
|
267
|
+
marginTop: 10
|
|
268
|
+
},
|
|
269
|
+
bottomContainer: {
|
|
270
|
+
justifyContent: 'flex-end',
|
|
271
|
+
marginStart: 10,
|
|
272
|
+
marginEnd: 10,
|
|
273
|
+
marginBottom: 10
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
//# sourceMappingURL=ScanList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StatusView","props","styles","wbnStatusView","backgroundColor","iconColor","color","marginStart","text","ItemStatus","itemStatusView","text1","status","text2","count","ScannedItemStatus","scanStatus","SCAN_STATUS","ACCEPTED","REJECTED","TO_BE_SCANNED","Item","React","Component","render","rowItem","flex","flexDirection","marginEnd","data","value","getScannedItemStatus","fontSize","fontFamily","Fonts","IBMPlexSans_500Medium","refreshList","reasonCode","SCAN_ACTIONS","CHANGE_STATUS","DELETE","ScanList","reasonSelectionPage","showReasonSelectionPage","useState","renderItem","item","filterList","handleSubmit","preSelectReasonCode","scans","length","scanList","totalScanned","getScannedItemCount","onSubmitET","showToast","scanMode","getScannerETOutput","scanCountLimit","CommonStyles","mainContainer","marginTop","justifyContent","marginBottom","nextButton","nextButtonLabel","StyleSheet","create","padding","alignItems","IBMPlexSans_400Regular","textAlign","IBMPlexSans_600SemiBold","itemStatus","borderRightWidth","borderRightColor","paddingEnd","paddingStart","paddingTop","paddingBottom","borderRadius","topContainer","bottomContainer"],"sources":["ScanList.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport {\n FlatList,\n StyleSheet,\n Text,\n TouchableOpacity,\n View,\n} from 'react-native';\nimport {\n CommonStyles,\n Fonts,\n} from '../../../../styles/executionTasks/CommonStyles';\nimport { Button } from 'react-native-paper';\nimport type { ScannedItemData, ScannerInput } from '../ScannerSchema';\nimport { SCAN_STATUS } from '../ScannerSchema';\nimport FIcon from 'react-native-vector-icons/FontAwesome';\nimport {\n getScannedItemCount,\n getScannedItemStatus,\n getScannerETOutput,\n SCAN_ACTIONS,\n} from '../ScannerUtils';\nimport RTReasonSelection from './RTReasonSelection';\nimport type { ReasonItem } from './ReasonDropDown';\nimport { showToast } from '../../../widgets/Toaster';\n\ninterface ItemStatusProps {\n status: string;\n count: number;\n}\ninterface WbnStatusProps {\n scanStatus: SCAN_STATUS;\n text: string;\n}\nconst StatusView = (props: StatusProps) => {\n return (\n <View\n style={[styles.wbnStatusView, { backgroundColor: props.backgroundColor }]}\n >\n <FIcon name={'circle'} color={props.iconColor} />\n <Text style={{ color: props.color, marginStart: 5 }}>{props.text}</Text>\n </View>\n );\n};\n\nconst ItemStatus = (props: ItemStatusProps) => {\n return (\n <View style={styles.itemStatusView}>\n <Text style={styles.text1}>{props.status}</Text>\n <Text style={styles.text2}>{props.count}</Text>\n </View>\n );\n};\n\nconst ScannedItemStatus = (props: WbnStatusProps) => {\n switch (props.scanStatus) {\n case SCAN_STATUS.ACCEPTED:\n return (\n <StatusView\n text={props.text}\n color={'#10B981'}\n backgroundColor={'#ECFDF5'}\n iconColor={'#10B981'}\n />\n );\n case SCAN_STATUS.REJECTED:\n return (\n <StatusView\n text={props.text}\n color={'#DC2626'}\n backgroundColor={'#FEF2F2'}\n iconColor={'#DC2626'}\n />\n );\n case SCAN_STATUS.TO_BE_SCANNED:\n return (\n <StatusView\n text={props.text}\n color={'#999999'}\n backgroundColor={'#F9F9F9'}\n iconColor={'#999999'}\n />\n );\n default:\n return null;\n }\n};\n\nclass Item extends React.Component<any, any> {\n render() {\n return (\n <View style={styles.rowItem}>\n <View style={{ flex: 1, flexDirection: 'row' }}>\n <Text style={{ marginEnd: 20 }}>{this.props.data.value}</Text>\n <ScannedItemStatus\n scanStatus={this.props.data.scanStatus}\n text={getScannedItemStatus(this.props.data.scanStatus)}\n />\n </View>\n {this.props.data.scanStatus !== SCAN_STATUS.TO_BE_SCANNED && (\n <TouchableOpacity>\n <Text\n style={{\n fontSize: 16,\n color: '#5B80F7',\n fontFamily: Fonts.IBMPlexSans_500Medium,\n }}\n onPress={() => {\n this.props.refreshList(\n this.props.data.value,\n this.props.data.reasonCode\n ? SCAN_ACTIONS.CHANGE_STATUS\n : SCAN_ACTIONS.DELETE\n );\n }}\n >\n {'Undo'}\n </Text>\n </TouchableOpacity>\n )}\n </View>\n );\n }\n}\n\nconst ScanList = (props: ScanListProps) => {\n const [reasonSelectionPage, showReasonSelectionPage] = useState(false);\n const renderItem = ({ item }: { item: ScannedItemData }) => (\n <Item data={item} refreshList={props.filterList} />\n );\n\n const handleSubmit = async () => {\n if (props.preSelectReasonCode && props.scans && props.scans.length > 0) {\n if (props.scanList && props.scanList.length > 0) {\n const totalScanned =\n getScannedItemCount(props.scanList, SCAN_STATUS.ACCEPTED) +\n getScannedItemCount(props.scanList, SCAN_STATUS.REJECTED);\n if (totalScanned === props.scans.length) {\n props.onSubmitET(props.scanList);\n } else {\n showReasonSelectionPage(true);\n }\n } else {\n showToast('No shipments scanned!');\n }\n } else {\n if (props.scanMode === 'SINGLE') {\n if (props.scanList && props.scanList.length > 0) {\n props.onSubmitET(await getScannerETOutput(props.scanList));\n } else {\n showToast(`Nothing scanned yet`);\n }\n } else {\n if (props.scanCountLimit && props.scanCountLimit > 0) {\n if (props.scanList && props.scanList.length <= props.scanCountLimit) {\n props.onSubmitET(await getScannerETOutput(props.scanList));\n } else {\n showToast(`Max Scans count reached`);\n }\n } else {\n if (props.scanList && props.scanList.length > 0) {\n props.onSubmitET(await getScannerETOutput(props.scanList));\n } else {\n showToast(`Nothing scanned yet`);\n }\n }\n }\n }\n };\n if (reasonSelectionPage) {\n return (\n <RTReasonSelection\n {...props}\n showReasonSelectionPage={showReasonSelectionPage}\n />\n );\n } else\n return (\n <View style={CommonStyles.mainContainer}>\n <View\n style={{\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n marginTop: 10,\n }}\n >\n <ItemStatus\n status={'Completed'}\n count={getScannedItemCount(props.scanList, SCAN_STATUS.ACCEPTED)}\n />\n {props.preSelectReasonCode && (\n <ItemStatus\n status={'Rejected'}\n count={getScannedItemCount(props.scanList, SCAN_STATUS.REJECTED)}\n />\n )}\n {props.scans && props.scans.length >= 0 && (\n <ItemStatus\n status={'To be scanned'}\n count={getScannedItemCount(\n props.scanList,\n SCAN_STATUS.TO_BE_SCANNED\n )}\n />\n )}\n </View>\n <View style={{ flex: 1 }}>\n <FlatList\n data={props.scanList}\n renderItem={renderItem}\n keyExtractor={(item) => item.value}\n />\n </View>\n <View\n style={{\n justifyContent: 'flex-end',\n marginStart: 10,\n marginEnd: 10,\n marginBottom: 10,\n }}\n >\n <Text>{`${\n getScannedItemCount(props.scanList, SCAN_STATUS.REJECTED) +\n getScannedItemCount(props.scanList, SCAN_STATUS.ACCEPTED)\n } shipments scanned. If you have more please continue scanning.`}</Text>\n <Button\n onPress={async () => {\n await handleSubmit();\n }}\n style={[CommonStyles.nextButton, { marginTop: 10 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n >\n {'Complete Scan'}\n </Button>\n </View>\n </View>\n );\n};\nexport default ScanList;\n\nexport type ScanListProps = ScannerInput & {\n reasons: ReasonItem[];\n scanList: ScannedItemData[] | undefined;\n filterList: (shipment: string, action: SCAN_ACTIONS) => void;\n};\n\nexport interface StatusProps {\n text: string;\n color: string;\n backgroundColor: string;\n iconColor: string;\n}\n\nconst styles = StyleSheet.create({\n rowItem: {\n padding: 14,\n flexDirection: 'row',\n backgroundColor: '#ffffff',\n alignItems: 'center',\n marginTop: 10,\n marginStart: 10,\n marginEnd: 10,\n },\n\n text1: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontSize: 18,\n textAlign: 'center',\n },\n text2: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 18,\n textAlign: 'center',\n },\n itemStatus: {},\n itemStatusView: {\n backgroundColor: '#ffffff',\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n padding: 8,\n borderRightWidth: 0.6,\n borderRightColor: '#E4E4E4',\n },\n wbnStatusView: {\n flexDirection: 'row',\n paddingEnd: 6,\n paddingStart: 6,\n paddingTop: 3,\n paddingBottom: 3,\n borderRadius: 10,\n alignItems: 'center',\n justifyContent: 'center',\n },\n topContainer: {\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n marginTop: 10,\n },\n bottomContainer: {\n justifyContent: 'flex-end',\n marginStart: 10,\n marginEnd: 10,\n marginBottom: 10,\n },\n});\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAOA;;AAIA;;AAEA;;AACA;;AACA;;AAMA;;AAEA;;;;;;;;;;AAUA,MAAMA,UAAU,GAAIC,KAAD,IAAwB;EACzC,oBACE,6BAAC,iBAAD;IACE,KAAK,EAAE,CAACC,MA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seModels';\n\nexport type VerifyInput =\n | (BaseETRequest & {\n input: Input;\n value: Value;\n })\n | (BaseETRequest & {\n input: Input1;\n api: API;\n });\n/**\n * Input entered by user\n */\nexport type Input = string | number;\n/**\n * Value\n */\nexport type Value = string | number;\n/**\n * Input entered by user\n */\nexport type Input1 = string | number;\n/**\n * Verification api URI\n */\nexport type HeaderKey = string;\nexport type HeaderValue = string;\n/**\n * Verification api headers\n */\nexport type Headers = {\n key?: HeaderKey;\n value?: HeaderValue;\n};\n\n/**\n * Api\n */\nexport interface API {\n uri: string;\n headers?: Headers[];\n valueJsonPath: string;\n}\n\nexport type VerifyInputResponse = BaseETResponse;\n"],"mappings":""}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.verifyLocation = verifyLocation;
|
|
7
|
+
|
|
8
|
+
var Location = _interopRequireWildcard(require("expo-location"));
|
|
9
|
+
|
|
10
|
+
var _BaseError = require("../../../errors/BaseError");
|
|
11
|
+
|
|
12
|
+
var _ErrorCodes = _interopRequireDefault(require("../../../errors/ErrorCodes"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
20
|
+
async function verifyLocation(params) {
|
|
21
|
+
const {
|
|
22
|
+
status
|
|
23
|
+
} = await Location.getForegroundPermissionsAsync();
|
|
24
|
+
let response;
|
|
25
|
+
|
|
26
|
+
if (status === 'granted') {
|
|
27
|
+
response = await geofenceLogic(params);
|
|
28
|
+
} else {
|
|
29
|
+
const {
|
|
30
|
+
status
|
|
31
|
+
} = await Location.requestForegroundPermissionsAsync();
|
|
32
|
+
|
|
33
|
+
if (status === 'granted') {
|
|
34
|
+
response = await geofenceLogic(params);
|
|
35
|
+
} else {
|
|
36
|
+
throw new _BaseError.BaseError(_ErrorCodes.default.LOCATION_PERMISSION_DENIED, 'Location Permission denied');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return response;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async function geofenceLogic(params) {
|
|
44
|
+
const options = {
|
|
45
|
+
accuracy: Location.Accuracy.Highest
|
|
46
|
+
};
|
|
47
|
+
const location = await Location.getCurrentPositionAsync(options);
|
|
48
|
+
if (params.geolocation.accuracy && location.coords.accuracy && params.geolocation.accuracy < location.coords.accuracy) return false;else {
|
|
49
|
+
const latitude = +params.geolocation.latitude;
|
|
50
|
+
const longitude = +params.geolocation.longitude;
|
|
51
|
+
const radlat1 = Math.PI * latitude / 180;
|
|
52
|
+
const radlat2 = Math.PI * location.coords.latitude / 180;
|
|
53
|
+
const theta = longitude - location.coords.longitude;
|
|
54
|
+
const radtheta = Math.PI * theta / 180;
|
|
55
|
+
let dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);
|
|
56
|
+
|
|
57
|
+
if (dist > 1) {
|
|
58
|
+
dist = 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const multiplier = 180 * 60 * 1.1515 * 1.609344 * 1000 / Math.PI;
|
|
62
|
+
dist = Math.acos(dist) * multiplier;
|
|
63
|
+
return params.geolocation.geofencing.radius >= dist;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=GeofenceUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["verifyLocation","params","status","Location","getForegroundPermissionsAsync","response","geofenceLogic","requestForegroundPermissionsAsync","BaseError","ErrorCodes","LOCATION_PERMISSION_DENIED","options","accuracy","Accuracy","Highest","location","getCurrentPositionAsync","geolocation","coords","latitude","longitude","radlat1","Math","PI","radlat2","theta","radtheta","dist","sin","cos","multiplier","acos","geofencing","radius"],"sources":["GeofenceUtils.ts"],"sourcesContent":["import type { VerifyLocationInput } from './VerifyLocSchema';\nimport * as Location from 'expo-location';\nimport { BaseError } from '../../../errors/BaseError';\nimport ErrorCodes from '../../../errors/ErrorCodes';\n\nexport async function verifyLocation(\n params: VerifyLocationInput\n): Promise<boolean> {\n const { status } = await Location.getForegroundPermissionsAsync();\n let response: boolean;\n if (status === 'granted') {\n response = await geofenceLogic(params);\n } else {\n const { status } = await Location.requestForegroundPermissionsAsync();\n if (status === 'granted') {\n response = await geofenceLogic(params);\n } else {\n throw new BaseError(\n ErrorCodes.LOCATION_PERMISSION_DENIED,\n 'Location Permission denied'\n );\n }\n }\n return response;\n}\n\nasync function geofenceLogic(params: VerifyLocationInput): Promise<boolean> {\n const options = {\n accuracy: Location.Accuracy.Highest,\n };\n const location = await Location.getCurrentPositionAsync(options);\n if (\n params.geolocation.accuracy &&\n location.coords.accuracy &&\n params.geolocation.accuracy < location.coords.accuracy\n )\n return false;\n else {\n const latitude: number = +params.geolocation.latitude;\n const longitude: number = +params.geolocation.longitude;\n const radlat1 = (Math.PI * latitude) / 180;\n const radlat2 = (Math.PI * location.coords.latitude) / 180;\n const theta = longitude - location.coords.longitude;\n const radtheta = (Math.PI * theta) / 180;\n let dist =\n Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n if (dist > 1) {\n dist = 1;\n }\n const multiplier = (180 * 60 * 1.1515 * 1.609344 * 1000) / Math.PI;\n dist = Math.acos(dist) * multiplier;\n return params.geolocation.geofencing.radius >= dist;\n }\n}\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;;;;;;;AAEO,eAAeA,cAAf,CACLC,MADK,EAEa;EAClB,MAAM;IAAEC;EAAF,IAAa,MAAMC,QAAQ,CAACC,6BAAT,EAAzB;EACA,IAAIC,QAAJ;;EACA,IAAIH,MAAM,KAAK,SAAf,EAA0B;IACxBG,QAAQ,GAAG,MAAMC,aAAa,CAACL,MAAD,CAA9B;EACD,CAFD,MAEO;IACL,MAAM;MAAEC;IAAF,IAAa,MAAMC,QAAQ,CAACI,iCAAT,EAAzB;;IACA,IAAIL,MAAM,KAAK,SAAf,EAA0B;MACxBG,QAAQ,GAAG,MAAMC,aAAa,CAACL,MAAD,CAA9B;IACD,CAFD,MAEO;MACL,MAAM,IAAIO,oBAAJ,CACJC,mBAAA,CAAWC,0BADP,EAEJ,4BAFI,CAAN;IAID;EACF;;EACD,OAAOL,QAAP;AACD;;AAED,eAAeC,aAAf,CAA6BL,MAA7B,EAA4E;EAC1E,MAAMU,OAAO,GAAG;IACdC,QAAQ,EAAET,QAAQ,CAACU,QAAT,CAAkBC;EADd,CAAhB;EAGA,MAAMC,QAAQ,GAAG,MAAMZ,QAAQ,CAACa,uBAAT,CAAiCL,OAAjC,CAAvB;EACA,IACEV,MAAM,CAACgB,WAAP,CAAmBL,QAAnB,IACAG,QAAQ,CAACG,MAAT,CAAgBN,QADhB,IAEAX,MAAM,CAACgB,WAAP,CAAmBL,QAAnB,GAA8BG,QAAQ,CAACG,MAAT,CAAgBN,QAHhD,EAKE,OAAO,KAAP,CALF,KAMK;IACH,MAAMO,QAAgB,GAAG,CAAClB,MAAM,CAACgB,WAAP,CAAmBE,QAA7C;IACA,MAAMC,SAAiB,GAAG,CAACnB,MAAM,CAACgB,WAAP,CAAmBG,SAA9C;IACA,MAAMC,OAAO,GAAIC,IAAI,CAACC,EAAL,GAAUJ,QAAX,GAAuB,GAAvC;IACA,MAAMK,OAAO,GAAIF,IAAI,CAACC,EAAL,GAAUR,QAAQ,CAACG,MAAT,CAAgBC,QAA3B,GAAuC,GAAvD;IACA,MAAMM,KAAK,GAAGL,SAAS,GAAGL,QAAQ,CAACG,MAAT,CAAgBE,SAA1C;IACA,MAAMM,QAAQ,GAAIJ,IAAI,CAACC,EAAL,GAAUE,KAAX,GAAoB,GAArC;IACA,IAAIE,IAAI,GACNL,IAAI,CAACM,GAAL,CAASP,OAAT,IAAoBC,IAAI,CAACM,GAAL,CAASJ,OAAT,CAApB,GACAF,IAAI,CAACO,GAAL,CAASR,OAAT,IAAoBC,IAAI,CAACO,GAAL,CAASL,OAAT,CAApB,GAAwCF,IAAI,CAACO,GAAL,CAASH,QAAT,CAF1C;;IAGA,IAAIC,IAAI,GAAG,CAAX,EAAc;MACZA,IAAI,GAAG,CAAP;IACD;;IACD,MAAMG,UAAU,GAAI,MAAM,EAAN,GAAW,MAAX,GAAoB,QAApB,GAA+B,IAAhC,GAAwCR,IAAI,CAACC,EAAhE;IACAI,IAAI,GAAGL,IAAI,CAACS,IAAL,CAAUJ,IAAV,IAAkBG,UAAzB;IACA,OAAO7B,MAAM,CAACgB,WAAP,CAAmBe,UAAnB,CAA8BC,MAA9B,IAAwCN,IAA/C;EACD;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["VerifyLocSchema.ts"],"sourcesContent":["/**\n * Longitude\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type Longitude = string;\n/**\n * Latitude\n */\nexport type Latitude = string;\n/**\n * Accuracy in meters of the geolocation\n */\nexport type Accuracy = number | null;\n/**\n * Boolean key to enable/disable geofencing feature\n */\nexport type GeofencingEnabled = boolean;\n/**\n * Radius in meters around the verifyLocation for geo-fencing\n */\nexport type Radius = number;\n/**\n * Boolean key to enable manual override the geo-fencing feature\n */\nexport type Override = boolean;\n/**\n * Any manual instruction to display for the Operator to work on\n */\nexport type Instruction = string;\n\nexport type VerifyLocationInput = BaseETRequest & {\n geolocation: GeoLocation;\n address?: string;\n onSubmitET: (value: VerifyLocationOutput) => void;\n};\n/**\n * Details of geo-verifyLocation\n */\nexport interface GeoLocation {\n longitude: Longitude;\n latitude: Latitude;\n accuracy?: Accuracy;\n geofencing: Geofencing;\n}\n/**\n * Details of geo-fencing around the verifyLocation\n */\nexport interface Geofencing {\n radius: Radius;\n}\n\nexport type VerifyLocationOutput = BaseETResponse;\n"],"mappings":""}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _GeofenceUtils = require("./GeofenceUtils");
|
|
13
|
+
|
|
14
|
+
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
15
|
+
|
|
16
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
17
|
+
|
|
18
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
19
|
+
|
|
20
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
21
|
+
|
|
22
|
+
var _ProgressDialog = _interopRequireDefault(require("../../widgets/ProgressDialog"));
|
|
23
|
+
|
|
24
|
+
var _BaseError = require("../../../errors/BaseError");
|
|
25
|
+
|
|
26
|
+
var _AlertDisplay = require("../../widgets/AlertDisplay");
|
|
27
|
+
|
|
28
|
+
var _SdkUtils = _interopRequireDefault(require("../../../utils/SdkUtils"));
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
36
|
+
const VerifyLocationET = props => {
|
|
37
|
+
const [geofencing, setGeofencing] = (0, _react.useState)(true);
|
|
38
|
+
const submitLocationResponse = (0, _react.useCallback)(async response => {
|
|
39
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.VERIFY_LOCATION, response, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.VERIFY_LOCATION, response), ''))
|
|
40
|
+
});
|
|
41
|
+
}, [props]);
|
|
42
|
+
(0, _react.useEffect)(() => {
|
|
43
|
+
(async () => {
|
|
44
|
+
try {
|
|
45
|
+
let response = await (0, _GeofenceUtils.verifyLocation)(props);
|
|
46
|
+
await submitLocationResponse(response);
|
|
47
|
+
setGeofencing(false);
|
|
48
|
+
} catch (error) {
|
|
49
|
+
if (error instanceof _BaseError.BaseError) {
|
|
50
|
+
(0, _AlertDisplay.showAlert)('Permission Denied', 'Please enable Location permissions from settings and Try again', false, 'Open Settings', () => {
|
|
51
|
+
_SdkUtils.default.openAppSettings();
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
await submitLocationResponse(false);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
})();
|
|
58
|
+
}, []);
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
60
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement(_ProgressDialog.default, {
|
|
62
|
+
visible: geofencing,
|
|
63
|
+
label: props.message ?? 'Verifying Location...'
|
|
64
|
+
}));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var _default = VerifyLocationET;
|
|
68
|
+
exports.default = _default;
|
|
69
|
+
//# sourceMappingURL=VerifyLocationET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VerifyLocationET","props","geofencing","setGeofencing","useState","submitLocationResponse","useCallback","response","onSubmitET","getBaseETResponse","EntityCode","VERIFY_LOCATION","getEventCodeByET","ExecutionTaskID","useEffect","verifyLocation","error","BaseError","showAlert","SdkUtils","openAppSettings","CommonStyles","mainContainer","message"],"sources":["VerifyLocationET.tsx"],"sourcesContent":["import { View } from 'react-native';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport type { VerifyLocationInput } from './VerifyLocSchema';\nimport { verifyLocation } from './GeofenceUtils';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { CommonStyles } from '../../../styles/executionTasks/CommonStyles';\nimport ProgressDialog from '../../widgets/ProgressDialog';\nimport { BaseError } from '../../../errors/BaseError';\nimport { showAlert } from '../../widgets/AlertDisplay';\nimport SdkUtils from '../../../utils/SdkUtils';\n\nconst VerifyLocationET = (props: VerifyLocationInput) => {\n const [geofencing, setGeofencing] = useState(true);\n const submitLocationResponse = useCallback(\n async (response: boolean) => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.VERIFY_LOCATION,\n response,\n getEventCodeByET(ExecutionTaskID.VERIFY_LOCATION, response),\n ''\n )),\n });\n },\n [props]\n );\n useEffect(() => {\n (async () => {\n try {\n let response = await verifyLocation(props);\n await submitLocationResponse(response);\n setGeofencing(false);\n } catch (error: any) {\n if (error instanceof BaseError) {\n showAlert(\n 'Permission Denied',\n 'Please enable Location permissions from settings and Try again',\n false,\n 'Open Settings',\n () => {\n SdkUtils.openAppSettings();\n }\n );\n } else {\n await submitLocationResponse(false);\n }\n }\n })();\n }, []);\n return (\n <View style={CommonStyles.mainContainer}>\n <ProgressDialog\n visible={geofencing}\n label={props.message ?? 'Verifying Location...'}\n />\n </View>\n );\n};\nexport default VerifyLocationET;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AAIA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,gBAAgB,GAAIC,KAAD,IAAgC;EACvD,MAAM,CAACC,UAAD,EAAaC,aAAb,IAA8B,IAAAC,eAAA,EAAS,IAAT,CAApC;EACA,MAAMC,sBAAsB,GAAG,IAAAC,kBAAA,EAC7B,MAAOC,QAAP,IAA6B;IAC3BN,KAAK,CAACO,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,eADH,EAERJ,QAFQ,EAGR,IAAAK,oCAAA,EAAiBC,yBAAA,CAAgBF,eAAjC,EAAkDJ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