@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,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 _reactNativePaper = require("react-native-paper");
|
|
11
|
+
|
|
12
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
17
|
+
|
|
18
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
19
|
+
|
|
20
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
+
|
|
22
|
+
var _ScannerUtils = require("../scanner/ScannerUtils");
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
28
|
+
const CaptureText = props => {
|
|
29
|
+
const [input, setInput] = (0, _react.useState)('');
|
|
30
|
+
const [disableNext, setDisableNext] = (0, _react.useState)(false);
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
32
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, {
|
|
34
|
+
multiline: false,
|
|
35
|
+
autoComplete: 'off',
|
|
36
|
+
style: _CommonStyles.deliverETStyles.input,
|
|
37
|
+
label: "Enter input",
|
|
38
|
+
value: input,
|
|
39
|
+
mode: 'outlined',
|
|
40
|
+
onChangeText: text => setInput(text)
|
|
41
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
42
|
+
style: _CommonStyles.deliverETStyles.footerButtonStyles
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
44
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
45
|
+
style: _CommonStyles.CommonStyles.cancelButton,
|
|
46
|
+
mode: 'outlined',
|
|
47
|
+
onPress: async () => {
|
|
48
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.CAPTURE_INPUT, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.CAPTURE_INPUT, false), ''))
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
52
|
+
disabled: disableNext,
|
|
53
|
+
style: _CommonStyles.CommonStyles.nextButton,
|
|
54
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
55
|
+
mode: 'contained',
|
|
56
|
+
onPress: async () => {
|
|
57
|
+
setDisableNext(true);
|
|
58
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.CAPTURE_INPUT, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.CAPTURE_INPUT, true), '')),
|
|
59
|
+
value: input,
|
|
60
|
+
validated: (await (0, _ScannerUtils.checkForValidation)(input, props.validationRegex, undefined)) ?? false,
|
|
61
|
+
attemptCount: 0
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}, "Next")));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var _default = CaptureText;
|
|
68
|
+
exports.default = _default;
|
|
69
|
+
//# sourceMappingURL=CaptureText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CaptureText","props","input","setInput","useState","disableNext","setDisableNext","CommonStyles","mainContainer","deliverETStyles","text","footerButtonStyles","cancelButtonLabel","cancelButton","onSubmitET","getBaseETResponse","EntityCode","CAPTURE_INPUT","getEventCodeByET","ExecutionTaskID","nextButton","nextButtonLabel","value","validated","checkForValidation","validationRegex","undefined","attemptCount"],"sources":["CaptureText.tsx"],"sourcesContent":["import type { CaptureTextInput } from './CaptureInputSchema';\nimport { View } from 'react-native';\nimport { Button, TextInput } from 'react-native-paper';\nimport {\n CommonStyles,\n deliverETStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport React, { useState } from 'react';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { checkForValidation } from '../scanner/ScannerUtils';\n\nconst CaptureText = (props: CaptureTextInput) => {\n const [input, setInput] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n return (\n <View style={CommonStyles.mainContainer}>\n <TextInput\n multiline={false}\n autoComplete={'off'}\n style={deliverETStyles.input}\n label=\"Enter input\"\n value={input}\n mode={'outlined'}\n onChangeText={(text) => setInput(text)}\n />\n <View style={deliverETStyles.footerButtonStyles}>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={CommonStyles.cancelButton}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.CAPTURE_INPUT,\n false,\n getEventCodeByET(ExecutionTaskID.CAPTURE_INPUT, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={CommonStyles.nextButton}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n setDisableNext(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.CAPTURE_INPUT,\n true,\n getEventCodeByET(ExecutionTaskID.CAPTURE_INPUT, true),\n ''\n )),\n value: input,\n validated:\n (await checkForValidation(\n input,\n props.validationRegex,\n undefined\n )) ?? false,\n attemptCount: 0,\n });\n }}\n >\n Next\n </Button>\n </View>\n </View>\n );\n};\nexport default CaptureText;\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AAIA;;AACA;;AACA;;AACA;;AAIA;;;;;;AAEA,MAAMA,WAAW,GAAIC,KAAD,IAA6B;EAC/C,MAAM,CAACC,KAAD,EAAQC,QAAR,IAAoB,IAAAC,eAAA,EAAS,EAAT,CAA1B;EACA,MAAM,CAACC,WAAD,EAAcC,cAAd,IAAgC,IAAAF,eAAA,EAAS,KAAT,CAAtC;EAEA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEG,0BAAA,CAAaC;EAA1B,gBACE,6BAAC,2BAAD;IACE,SAAS,EAAE,KADb;IAEE,YAAY,EAAE,KAFhB;IAGE,KAAK,EAAEC,6BAAA,CAAgBP,KAHzB;IAIE,KAAK,EAAC,aAJR;IAKE,KAAK,EAAEA,KALT;IAME,IAAI,EAAE,UANR;IAOE,YAAY,EAAGQ,IAAD,IAAUP,QAAQ,CAACO,IAAD;EAPlC,EADF,eAUE,6BAAC,iBAAD;IAAM,KAAK,EAAED,6BAAA,CAAgBE;EAA7B,gBACE,6BAAC,wBAAD;IACE,UAAU,EAAEJ,0BAAA,CAAaK,iBAD3B;IAEE,KAAK,EAAEL,0BAAA,CAAaM,YAFtB;IAGE,IAAI,EAAE,UAHR;IAIE,OAAO,EAAE,YAAY;MACnBZ,KAAK,CAACa,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,aADH,EAER,KAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,aAAjC,EAAgD,KAAhD,CAHQ,EAIR,EAJQ,CAAV;MADe,CAAjB;IAQD;EAbH,YADF,eAkBE,6BAAC,wBAAD;IACE,QAAQ,EAAEZ,WADZ;IAEE,KAAK,EAAEE,0BAAA,CAAaa,UAFtB;IAGE,UAAU,EAAEb,0BAAA,CAAac,eAH3B;IAIE,IAAI,EAAE,WAJR;IAKE,OAAO,EAAE,YAAY;MACnBf,cAAc,CAAC,IAAD,CAAd;MACAL,KAAK,CAACa,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,aADH,EAER,IAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,aAAjC,EAAgD,IAAhD,CAHQ,EAIR,EAJQ,CAAV,CADe;QAOfK,KAAK,EAAEpB,KAPQ;QAQfqB,SAAS,EACP,CAAC,MAAM,IAAAC,gCAAA,EACLtB,KADK,EAELD,KAAK,CAACwB,eAFD,EAGLC,SAHK,CAAP,KAIM,KAbO;QAcfC,YAAY,EAAE;MAdC,CAAjB;IAgBD;EAvBH,UAlBF,CAVF,CADF;AA2DD,CA/DD;;eAgEe3B,W"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactNativePaper = require("react-native-paper");
|
|
13
|
+
|
|
14
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
15
|
+
|
|
16
|
+
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
17
|
+
|
|
18
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
19
|
+
|
|
20
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
const ListItem = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
lineItem
|
|
29
|
+
} = _ref;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Card, {
|
|
31
|
+
style: _CommonStyles.deliverETStyles.item
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Card.Title, {
|
|
33
|
+
title: lineItem.skuId,
|
|
34
|
+
subtitle: lineItem.count ? lineItem.count + ' Qty.' : ''
|
|
35
|
+
}), lineItem.productDescription && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Card.Content, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Paragraph, null, lineItem.productDescription)));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const renderItem = _ref2 => {
|
|
39
|
+
let {
|
|
40
|
+
item
|
|
41
|
+
} = _ref2;
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(ListItem, {
|
|
43
|
+
lineItem: item
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const DeliverET = props => {
|
|
48
|
+
const [remarks, setRemarks] = (0, _react.useState)('');
|
|
49
|
+
const [disableNext, setDisableNext] = (0, _react.useState)(false);
|
|
50
|
+
|
|
51
|
+
if (props && props.items && props.items.length > 0) {
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
53
|
+
style: [_CommonStyles.CommonStyles.mainContainer, {
|
|
54
|
+
padding: 10
|
|
55
|
+
}]
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
57
|
+
data: props.items,
|
|
58
|
+
renderItem: renderItem,
|
|
59
|
+
keyExtractor: item => item.skuId
|
|
60
|
+
}), props.message && props.message.length > 0 && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Paragraph, null, props.message), /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, {
|
|
61
|
+
multiline: false,
|
|
62
|
+
autoComplete: 'off',
|
|
63
|
+
style: _CommonStyles.deliverETStyles.input,
|
|
64
|
+
label: "Enter Delivery remarks",
|
|
65
|
+
value: remarks,
|
|
66
|
+
mode: 'outlined',
|
|
67
|
+
onChangeText: text => setRemarks(text)
|
|
68
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
69
|
+
style: _CommonStyles.deliverETStyles.footerButtonStyles
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
71
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
72
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
73
|
+
marginEnd: 5,
|
|
74
|
+
flex: 1
|
|
75
|
+
}],
|
|
76
|
+
mode: 'outlined',
|
|
77
|
+
onPress: async () => {
|
|
78
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, false), ''))
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
82
|
+
disabled: disableNext,
|
|
83
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
84
|
+
marginStart: 5,
|
|
85
|
+
flex: 1
|
|
86
|
+
}],
|
|
87
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
88
|
+
mode: 'contained',
|
|
89
|
+
onPress: async () => {
|
|
90
|
+
setDisableNext(true);
|
|
91
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, true), '')),
|
|
92
|
+
remark: remarks
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}, "Deliver"))));
|
|
96
|
+
} else {
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
98
|
+
style: _CommonStyles.deliverETStyles.errorText
|
|
99
|
+
}, "No Item(s) found for Delivery"));
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var _default = DeliverET;
|
|
104
|
+
exports.default = _default;
|
|
105
|
+
//# sourceMappingURL=DeliverET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ListItem","lineItem","deliverETStyles","item","skuId","count","productDescription","renderItem","DeliverET","props","remarks","setRemarks","useState","disableNext","setDisableNext","items","length","CommonStyles","mainContainer","padding","message","input","text","footerButtonStyles","cancelButtonLabel","cancelButton","marginEnd","flex","onSubmitET","getBaseETResponse","EntityCode","DELIVER","getEventCodeByET","ExecutionTaskID","nextButton","marginStart","nextButtonLabel","remark","errorText"],"sources":["DeliverET.tsx"],"sourcesContent":["import type { DeliverETInput, LineItem } from './DeliverETInput';\nimport { FlatList, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';\nimport {\n CommonStyles,\n deliverETStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <Card style={deliverETStyles.item}>\n <Card.Title\n title={lineItem.skuId}\n subtitle={lineItem.count ? lineItem.count + ' Qty.' : ''}\n />\n {lineItem.productDescription && (\n <Card.Content>\n <Paragraph>{lineItem.productDescription}</Paragraph>\n </Card.Content>\n )}\n </Card>\n);\n\nconst renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst DeliverET = (props: DeliverETInput) => {\n const [remarks, setRemarks] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n if (props && props.items && props.items.length > 0) {\n return (\n <View style={[CommonStyles.mainContainer, { padding: 10 }]}>\n <FlatList\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n {props.message && props.message.length > 0 && (\n <Paragraph>{props.message}</Paragraph>\n )}\n <TextInput\n multiline={false}\n autoComplete={'off'}\n style={deliverETStyles.input}\n label=\"Enter Delivery remarks\"\n value={remarks}\n mode={'outlined'}\n onChangeText={(text) => setRemarks(text)}\n />\n <View>\n <View style={deliverETStyles.footerButtonStyles}>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginEnd: 5, flex: 1 }]}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[CommonStyles.nextButton, { marginStart: 5, flex: 1 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n setDisableNext(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: remarks,\n });\n }}\n >\n Deliver\n </Button>\n </View>\n </View>\n </View>\n );\n } else {\n return (\n <View>\n <Title style={deliverETStyles.errorText}>\n No Item(s) found for Delivery\n </Title>\n </View>\n );\n }\n};\n\nexport default DeliverET;\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AACA;;AAIA;;AACA;;AACA;;;;;;AAKA,MAAMA,QAAQ,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACf,6BAAC,sBAAD;IAAM,KAAK,EAAEC,6BAAA,CAAgBC;EAA7B,gBACE,6BAAC,sBAAD,CAAM,KAAN;IACE,KAAK,EAAEF,QAAQ,CAACG,KADlB;IAEE,QAAQ,EAAEH,QAAQ,CAACI,KAAT,GAAiBJ,QAAQ,CAACI,KAAT,GAAiB,OAAlC,GAA4C;EAFxD,EADF,EAKGJ,QAAQ,CAACK,kBAAT,iBACC,6BAAC,sBAAD,CAAM,OAAN,qBACE,6BAAC,2BAAD,QAAYL,QAAQ,CAACK,kBAArB,CADF,CANJ,CADe;AAAA,CAAjB;;AAcA,MAAMC,UAAU,GAAG;EAAA,IAAC;IAAEJ;EAAF,CAAD;EAAA,oBACjB,6BAAC,QAAD;IAAU,QAA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CAFT;MAGE,IAAI,EAAE,UAHR;MAIE,OAAO,EAAE,YAAY;QACnBlB,KAAK,CAACmB,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAER,KAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0C,KAA1C,CAHQ,EAIR,EAJQ,CAAV;QADe,CAAjB;MAQD;IAbH,YADF,eAkBE,6BAAC,wBAAD;MACE,QAAQ,EAAElB,WADZ;MAEE,KAAK,EAAE,CAACI,0BAAA,CAAaiB,UAAd,EAA0B;QAAEC,WAAW,EAAE,CAAf;QAAkBR,IAAI,EAAE;MAAxB,CAA1B,CAFT;MAGE,UAAU,EAAEV,0BAAA,CAAamB,eAH3B;MAIE,IAAI,EAAE,WAJR;MAKE,OAAO,EAAE,YAAY;QACnBtB,cAAc,CAAC,IAAD,CAAd;QACAL,KAAK,CAACmB,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAER,IAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0C,IAA1C,CAHQ,EAIR,EAJQ,CAAV,CADe;UAOfM,MAAM,EAAE3B;QAPO,CAAjB;MASD;IAhBH,aAlBF,CADF,CAlBF,CADF;EA8DD,CA/DD,MA+DO;IACL,oBACE,6BAAC,iBAAD,qBACE,6BAAC,uBAAD;MAAO,KAAK,EAAER,6BAAA,CAAgBoC;IAA9B,mCADF,CADF;EAOD;AACF,CA5ED;;eA8Ee9B,S"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["DeliverETInput.ts"],"sourcesContent":["/**\n * Unique identifier for the item\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type SKU = string;\n/**\n * Description of item\n */\nexport type ProductDescription = string;\n/**\n * Count of items\n */\nexport type ItemCount = number;\n/**\n * Items to be delivered\n */\nexport type LineItem = {\n skuId: SKU;\n productDescription?: ProductDescription;\n count?: ItemCount;\n};\n/**\n * Any manual instruction to display for the Operator to work on\n */\nexport type Instruction = string;\nexport interface DeliverRemarks {\n remark: string;\n success: boolean;\n}\n\nexport type DeliverETInput = BaseETRequest & {\n items: LineItem[];\n confirmCustodyExchange?: boolean;\n confirmShipments?: boolean;\n onSubmitET(response: DeliverOutput): void;\n returnPackageCount?: number;\n};\nexport type DeliverOutput = BaseETResponse & {\n /**\n * Remark captured at time of delivery\n */\n remark?: string;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.renderItem = exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactNativePaper = require("react-native-paper");
|
|
13
|
+
|
|
14
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
15
|
+
|
|
16
|
+
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
17
|
+
|
|
18
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
19
|
+
|
|
20
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
+
|
|
22
|
+
var _utils = require("../../../utils/utils");
|
|
23
|
+
|
|
24
|
+
var _constants = require("../../../constants/constants");
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
const ListItem = _ref => {
|
|
31
|
+
let {
|
|
32
|
+
lineItem
|
|
33
|
+
} = _ref;
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
35
|
+
style: {
|
|
36
|
+
justifyContent: 'center'
|
|
37
|
+
}
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
39
|
+
style: _CommonStyles.DeliverPickupStyles.itemTextStyle
|
|
40
|
+
}, `Order ID: ${lineItem.skuId}`));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const renderItem = _ref2 => {
|
|
44
|
+
let {
|
|
45
|
+
item
|
|
46
|
+
} = _ref2;
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(ListItem, {
|
|
48
|
+
lineItem: item
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.renderItem = renderItem;
|
|
53
|
+
|
|
54
|
+
const getMessage = (returnPackageCount, message) => {
|
|
55
|
+
try {
|
|
56
|
+
const msg = message || _constants.DEFAULT_DELIVER_MESSAGE;
|
|
57
|
+
return returnPackageCount && returnPackageCount > 1 ? msg.replace('$', (returnPackageCount === null || returnPackageCount === void 0 ? void 0 : returnPackageCount.toString()) || '') : msg.replace('$', '');
|
|
58
|
+
} catch (error) {
|
|
59
|
+
return message || '';
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const DeliverET = props => {
|
|
64
|
+
const [pkgCount, setPkgCount] = (0, _react.useState)(props.confirmShipments ? '' : `${props.returnPackageCount}`);
|
|
65
|
+
const [inputError, setInputError] = (0, _react.useState)('');
|
|
66
|
+
const [disableYes, setDisableYes] = (0, _react.useState)(false);
|
|
67
|
+
const [disableConfirm, setDisableConfirm] = (0, _react.useState)(false);
|
|
68
|
+
|
|
69
|
+
if (props.confirmCustodyExchange) {
|
|
70
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
|
+
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
73
|
+
visible: true,
|
|
74
|
+
dismissable: false,
|
|
75
|
+
contentContainerStyle: _CommonStyles.DeliverPickupStyles.modalContent
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
77
|
+
style: _CommonStyles.DeliverPickupStyles.modalView
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
79
|
+
style: _CommonStyles.DeliverPickupStyles.titleText
|
|
80
|
+
}, props.title || _constants.DEFAULT_DELIVER_TITLE), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
81
|
+
style: {
|
|
82
|
+
marginTop: 15,
|
|
83
|
+
marginBottom: 15,
|
|
84
|
+
flexDirection: 'row'
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
87
|
+
style: {
|
|
88
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
89
|
+
fontStyle: 'normal',
|
|
90
|
+
fontWeight: '400',
|
|
91
|
+
fontSize: 14,
|
|
92
|
+
flex: 1,
|
|
93
|
+
textAlign: 'left',
|
|
94
|
+
lineHeight: 28,
|
|
95
|
+
color: '#111111'
|
|
96
|
+
}
|
|
97
|
+
}, 'Expected Shipments'), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
98
|
+
style: {
|
|
99
|
+
textAlign: 'right',
|
|
100
|
+
fontSize: 14,
|
|
101
|
+
lineHeight: 28,
|
|
102
|
+
fontStyle: 'normal',
|
|
103
|
+
color: '#111111',
|
|
104
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
|
|
105
|
+
}
|
|
106
|
+
}, props.returnPackageCount)), props.confirmShipments && /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, {
|
|
107
|
+
style: {
|
|
108
|
+
fontSize: 14,
|
|
109
|
+
lineHeight: 24,
|
|
110
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
|
|
111
|
+
},
|
|
112
|
+
multiline: false,
|
|
113
|
+
autoComplete: 'off',
|
|
114
|
+
label: `Shipment(s) handed over`,
|
|
115
|
+
value: pkgCount,
|
|
116
|
+
mode: 'outlined',
|
|
117
|
+
error: !(0, _utils.isEmptyOrBlank)(inputError),
|
|
118
|
+
selectionColor: '#6200EE',
|
|
119
|
+
keyboardType: 'numeric',
|
|
120
|
+
onChangeText: text => {
|
|
121
|
+
setInputError('');
|
|
122
|
+
setPkgCount(text);
|
|
123
|
+
}
|
|
124
|
+
}), !(0, _utils.isEmptyOrBlank)(inputError) && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
125
|
+
style: {
|
|
126
|
+
color: '#B00020'
|
|
127
|
+
}
|
|
128
|
+
}, inputError), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
129
|
+
disabled: disableConfirm,
|
|
130
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
131
|
+
marginTop: 20
|
|
132
|
+
}],
|
|
133
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
134
|
+
uppercase: false,
|
|
135
|
+
mode: 'contained',
|
|
136
|
+
onPress: async () => {
|
|
137
|
+
if (!(0, _utils.isEmptyOrBlank)(pkgCount) && !Number.isNaN(+pkgCount)) {
|
|
138
|
+
if (+pkgCount !== props.returnPackageCount) {
|
|
139
|
+
setInputError(`Package count should be equal to ${props.returnPackageCount}`);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
setDisableConfirm(true);
|
|
144
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, true), '')),
|
|
145
|
+
remark: `${pkgCount} Packages returned`
|
|
146
|
+
});
|
|
147
|
+
} else setInputError('Please enter valid count.');
|
|
148
|
+
}
|
|
149
|
+
}, "Confirm"))))));
|
|
150
|
+
} else return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
151
|
+
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
152
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
153
|
+
visible: true,
|
|
154
|
+
dismissable: false,
|
|
155
|
+
contentContainerStyle: _CommonStyles.DeliverPickupStyles.modalContent
|
|
156
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
157
|
+
style: _CommonStyles.DeliverPickupStyles.modalView
|
|
158
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
159
|
+
style: _CommonStyles.DeliverPickupStyles.titleText
|
|
160
|
+
}, props.title || _constants.DEFAULT_DELIVER_TITLE), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
161
|
+
style: _CommonStyles.DeliverPickupStyles.messageText
|
|
162
|
+
}, getMessage(props.returnPackageCount, props.message)), props.returnPackageCount === 1 && /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
163
|
+
style: _CommonStyles.DeliverPickupStyles.flatList,
|
|
164
|
+
data: props.items,
|
|
165
|
+
renderItem: renderItem,
|
|
166
|
+
keyExtractor: item => item.skuId
|
|
167
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
168
|
+
disabled: disableYes,
|
|
169
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
170
|
+
marginTop: 20
|
|
171
|
+
}],
|
|
172
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
173
|
+
uppercase: false,
|
|
174
|
+
mode: 'contained',
|
|
175
|
+
onPress: async () => {
|
|
176
|
+
setDisableYes(true);
|
|
177
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, true), '')),
|
|
178
|
+
remark: ''
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}, "Yes"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
182
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
183
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
184
|
+
marginTop: 10
|
|
185
|
+
}],
|
|
186
|
+
mode: 'outlined',
|
|
187
|
+
uppercase: false,
|
|
188
|
+
onPress: async () => {
|
|
189
|
+
props.onSubmitET({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, false), ''))
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}, "No"))))));
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
var _default = DeliverET;
|
|
196
|
+
exports.default = _default;
|
|
197
|
+
//# sourceMappingURL=SLDeliverET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ListItem","lineItem","justifyContent","DeliverPickupStyles","itemTextStyle","skuId","renderItem","item","getMessage","returnPackageCount","message","msg","DEFAULT_DELIVER_MESSAGE","replace","toString","error","DeliverET","props","pkgCount","setPkgCount","useState","confirmShipments","inputError","setInputError","disableYes","setDisableYes","disableConfirm","setDisableConfirm","confirmCustodyExchange","mainContainer","modalContent","modalView","titleText","title","DEFAULT_DELIVER_TITLE","marginTop","marginBottom","flexDirection","fontFamily","Fonts","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","flex","textAlign","lineHeight","color","IBMPlexSans_600SemiBold","isEmptyOrBlank","text","CommonStyles","nextButton","nextButtonLabel","Number","isNaN","onSubmitET","getBaseETResponse","EntityCode","DELIVER","getEventCodeByET","ExecutionTaskID","remark","messageText","flatList","items","cancelButtonLabel","cancelButton"],"sources":["SLDeliverET.tsx"],"sourcesContent":["import type { DeliverETInput } from './DeliverETInput';\nimport { FlatList, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Modal, Portal, Provider, TextInput } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_DELIVER_MESSAGE,\n DEFAULT_DELIVER_TITLE,\n} from '../../../constants/constants';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${lineItem.skuId}`}</Text>\n </View>\n);\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst getMessage = (\n returnPackageCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_DELIVER_MESSAGE;\n return returnPackageCount && returnPackageCount > 1\n ? msg.replace('$', returnPackageCount?.toString() || '')\n : msg.replace('$', '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nconst DeliverET = (props: DeliverETInput) => {\n const [pkgCount, setPkgCount] = useState(\n props.confirmShipments ? '' : `${props.returnPackageCount}`\n );\n const [inputError, setInputError] = useState('');\n const [disableYes, setDisableYes] = useState(false);\n const [disableConfirm, setDisableConfirm] = useState(false);\n\n if (props.confirmCustodyExchange) {\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <View\n style={{\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n }}\n >\n <Text\n style={{\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n }}\n >\n {'Expected Shipments'}\n </Text>\n <Text\n style={{\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n }}\n >\n {props.returnPackageCount}\n </Text>\n </View>\n {props.confirmShipments && (\n <TextInput\n style={{\n fontSize: 14,\n lineHeight: 24,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n multiline={false}\n autoComplete={'off'}\n label={`Shipment(s) handed over`}\n value={pkgCount}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setPkgCount(text);\n }}\n />\n )}\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n <Button\n disabled={disableConfirm}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n if (!isEmptyOrBlank(pkgCount) && !Number.isNaN(+pkgCount)) {\n if (+pkgCount !== props.returnPackageCount) {\n setInputError(\n `Package count should be equal to ${props.returnPackageCount}`\n );\n return;\n }\n setDisableConfirm(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: `${pkgCount} Packages returned`,\n });\n } else setInputError('Please enter valid count.');\n }}\n >\n Confirm\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n } else\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.returnPackageCount, props.message)}\n </Text>\n\n {props.returnPackageCount === 1 && (\n <FlatList\n style={DeliverPickupStyles.flatList}\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n )}\n <Button\n disabled={disableYes}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n setDisableYes(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: '',\n });\n }}\n >\n Yes\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n uppercase={false}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER, false),\n ''\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default DeliverET;\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AAEA;;AAKA;;AACA;;AACA;;AAIA;;AAEA;;;;;;AAKA,MAAMA,QAAQ,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACf,6BAAC,iBAAD;IAAM,KAAK,EAAE;MAAEC,cAAc,EAAE;IAAlB;EAAb,gBACE,6BAAC,iBAAD;IACE,KAAK,EAAEC,iCAAA,CAAoBC;EAD7B,GAEG,aAAYH,QAAQ,CAACI,KAAM,EAF9B,CADF,CADe;AAAA,CAAjB;;AAQO,MAAMC,UAAU,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACxB,6BAAC,QAAD;IAAU,QAAQ,EAAEA;EAApB,EADwB;AAAA,CAAnB;;;;AAIP,MAAMC,UAAU,GAAG,CACjBC,kBADiB,EAEjBC,OAFiB,KAGd;EACH,IAAI;IACF,MAAMC,GAAG,GAAGD,OAAO,IAAIE,kCAAvB;IACA,OAAOH,kBAAkB,IAAIA,kBAAkB,GAAG,CAA3C,GACHE,GAAG,CAACE,OAAJ,CAAY,GAAZ,EAAiB,CAAAJ,kBAAkB,SAAlB,IAAAA,kBAAkB,WAAlB,YAAAA,kBAAkB,CAAEK,QAApB,OAAkC,EAAnD,CADG,GAEHH,GAAG,CAACE,OAAJ,CAAY,GAAZ,EAAiB,EAAjB,CAFJ;EAGD,CALD,CAKE,OAAOE,KAAP,EAAmB;IACnB,OAAOL,OAAO,IAAI,EAAlB;EACD;AACF,CAZD;;AAcA,MAAMM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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 _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
13
|
+
|
|
14
|
+
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
15
|
+
|
|
16
|
+
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
17
|
+
|
|
18
|
+
var _reactNativePaper = require("react-native-paper");
|
|
19
|
+
|
|
20
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
const DisplayModalET = etProps => {
|
|
27
|
+
const [modalVisible, setModalVisible] = (0, _react.useState)(etProps.showDialog);
|
|
28
|
+
const sendEtOutput = (0, _react.useCallback)(async success => {
|
|
29
|
+
setModalVisible(false);
|
|
30
|
+
etProps.onSubmit({ ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DISPLAY, success, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DISPLAY, success), ''))
|
|
31
|
+
});
|
|
32
|
+
}, [etProps]);
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
34
|
+
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
36
|
+
dismissable: false,
|
|
37
|
+
visible: modalVisible,
|
|
38
|
+
contentContainerStyle: _CommonStyles.DeliverPickupStyles.modalContent
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
40
|
+
style: _CommonStyles.DeliverPickupStyles.modalView
|
|
41
|
+
}, etProps.displayType === 'WARNING' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
42
|
+
style: styles.warningTitle
|
|
43
|
+
}, etProps.title, "!"), etProps.displayType === 'ALERT' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
44
|
+
style: styles.alertTitle
|
|
45
|
+
}, etProps.title), etProps.displayType === 'MESSAGE' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
46
|
+
style: styles.messageTitle
|
|
47
|
+
}, etProps.title), etProps.text && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Paragraph, {
|
|
48
|
+
style: styles.messageText
|
|
49
|
+
}, etProps.text), etProps.message && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Text, {
|
|
50
|
+
style: [styles.messageText]
|
|
51
|
+
}, etProps.message), etProps.image && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
52
|
+
style: styles.imageView
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
54
|
+
source: {
|
|
55
|
+
width: 200,
|
|
56
|
+
height: 300,
|
|
57
|
+
uri: etProps.image
|
|
58
|
+
}
|
|
59
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
60
|
+
style: styles.buttons
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
62
|
+
mode: 'outlined',
|
|
63
|
+
uppercase: false,
|
|
64
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
65
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
66
|
+
marginBottom: 5
|
|
67
|
+
}],
|
|
68
|
+
onPress: async () => {
|
|
69
|
+
await sendEtOutput(true);
|
|
70
|
+
},
|
|
71
|
+
testID: "primary"
|
|
72
|
+
}, etProps.positiveBtn), etProps.negativeBtn && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
73
|
+
uppercase: false,
|
|
74
|
+
mode: 'outlined',
|
|
75
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
76
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
77
|
+
marginTop: 5
|
|
78
|
+
}],
|
|
79
|
+
onPress: async () => {
|
|
80
|
+
await sendEtOutput(false);
|
|
81
|
+
},
|
|
82
|
+
testID: "secondary"
|
|
83
|
+
}, etProps.negativeBtn)))))));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
var _default = DisplayModalET;
|
|
87
|
+
exports.default = _default;
|
|
88
|
+
|
|
89
|
+
const styles = _reactNative.StyleSheet.create({
|
|
90
|
+
warningTitle: {
|
|
91
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|
|
92
|
+
marginTop: 0,
|
|
93
|
+
marginBottom: 15,
|
|
94
|
+
textAlign: 'center',
|
|
95
|
+
color: '#856404'
|
|
96
|
+
},
|
|
97
|
+
messageTitle: {
|
|
98
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|
|
99
|
+
marginTop: 0,
|
|
100
|
+
marginBottom: 15,
|
|
101
|
+
textAlign: 'center',
|
|
102
|
+
color: '#000000'
|
|
103
|
+
},
|
|
104
|
+
alertTitle: {
|
|
105
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|
|
106
|
+
marginTop: 0,
|
|
107
|
+
marginBottom: 15,
|
|
108
|
+
textAlign: 'center',
|
|
109
|
+
color: 'red'
|
|
110
|
+
},
|
|
111
|
+
messageText: {
|
|
112
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
113
|
+
marginTop: 20,
|
|
114
|
+
fontSize: 16,
|
|
115
|
+
textAlign: 'center',
|
|
116
|
+
color: '#004085'
|
|
117
|
+
},
|
|
118
|
+
buttons: {
|
|
119
|
+
marginTop: 25,
|
|
120
|
+
flexDirection: 'column'
|
|
121
|
+
},
|
|
122
|
+
imageView: {
|
|
123
|
+
padding: 10
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=DisplayModalET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DisplayModalET","etProps","modalVisible","setModalVisible","useState","showDialog","sendEtOutput","useCallback","success","onSubmit","getBaseETResponse","EntityCode","DISPLAY","getEventCodeByET","ExecutionTaskID","DeliverPickupStyles","mainContainer","modalContent","modalView","displayType","styles","warningTitle","title","alertTitle","messageTitle","text","messageText","message","image","imageView","width","height","uri","buttons","CommonStyles","nextButtonLabel","nextButton","marginBottom","positiveBtn","negativeBtn","cancelButtonLabel","cancelButton","marginTop","StyleSheet","create","fontFamily","Fonts","IBMPlexSans_600SemiBold","textAlign","color","IBMPlexSans_400Regular","fontSize","flexDirection","padding"],"sources":["DisplayModalET.tsx"],"sourcesContent":["import type { DisplayETInput } from './DisplaySchema';\nimport { Image, StyleSheet, View } from 'react-native';\nimport React, { useCallback, useState } from 'react';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport {\n Button,\n Modal,\n Paragraph,\n Portal,\n Provider,\n Text,\n Title,\n} from 'react-native-paper';\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\n\nconst DisplayModalET = (etProps: DisplayETInput) => {\n const [modalVisible, setModalVisible] = useState(etProps.showDialog);\n const sendEtOutput = useCallback(\n async (success: boolean) => {\n setModalVisible(false);\n etProps.onSubmit({\n ...(await getBaseETResponse(\n EntityCode.DISPLAY,\n success,\n getEventCodeByET(ExecutionTaskID.DISPLAY, success),\n ''\n )),\n });\n },\n [etProps]\n );\n\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n dismissable={false}\n visible={modalVisible}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n {etProps.displayType === 'WARNING' && (\n <Title style={styles.warningTitle}>{etProps.title}!</Title>\n )}\n {etProps.displayType === 'ALERT' && (\n <Title style={styles.alertTitle}>{etProps.title}</Title>\n )}\n {etProps.displayType === 'MESSAGE' && (\n <Title style={styles.messageTitle}>{etProps.title}</Title>\n )}\n {etProps.text && (\n <Paragraph style={styles.messageText}>{etProps.text}</Paragraph>\n )}\n {etProps.message && (\n <Text style={[styles.messageText]}>{etProps.message}</Text>\n )}\n {etProps.image && (\n <View style={styles.imageView}>\n <Image\n source={{\n width: 200,\n height: 300,\n uri: etProps.image,\n }}\n />\n </View>\n )}\n <View style={styles.buttons}>\n <Button\n mode={'outlined'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[\n CommonStyles.nextButton,\n {\n marginBottom: 5,\n },\n ]}\n onPress={async () => {\n await sendEtOutput(true);\n }}\n testID=\"primary\"\n >\n {etProps.positiveBtn}\n </Button>\n {etProps.negativeBtn && (\n <Button\n uppercase={false}\n mode={'outlined'}\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n onPress={async () => {\n await sendEtOutput(false);\n }}\n testID=\"secondary\"\n >\n {etProps.negativeBtn}\n </Button>\n )}\n </View>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default DisplayModalET;\n\nconst styles = StyleSheet.create({\n warningTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#856404',\n },\n messageTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#000000',\n },\n alertTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: 'red',\n },\n messageText: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n marginTop: 20,\n fontSize: 16,\n textAlign: 'center',\n color: '#004085',\n },\n buttons: {\n marginTop: 25,\n flexDirection: 'column',\n },\n imageView: {\n padding: 10,\n },\n});\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AAIA;;AASA;;;;;;AAMA,MAAMA,cAAc,GAAIC,OAAD,IAA6B;EAClD,MAAM,CAACC,YAAD,EAAeC,eAAf,IAAkC,IAAAC,eAAA,EAASH,OAAO,CAACI,UAAjB,CAAxC;EACA,MAAMC,YAAY,GAAG,IAAAC,kBAAA,EACnB,MAAOC,OAAP,IAA4B;IAC1BL,eAAe,CAAC,KAAD,CAAf;IACAF,OAAO,CAACQ,QAAR,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAERJ,OAFQ,EAGR,IAAAK,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0CJ,OAA1C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Ae/B1B,UAAU,EAAE;IACVsB,UAAU,EAAEC,mBAAA,CAAMC,uBADR;IAEVL,SAAS,EAAE,CAFD;IAGVL,YAAY,EAAE,EAHJ;IAIVW,SAAS,EAAE,QAJD;IAKVC,KAAK,EAAE;EALG,CAfmB;EAsB/BvB,WAAW,EAAE;IACXmB,UAAU,EAAEC,mBAAA,CAAMI,sBADP;IAEXR,SAAS,EAAE,EAFA;IAGXS,QAAQ,EAAE,EAHC;IAIXH,SAAS,EAAE,QAJA;IAKXC,KAAK,EAAE;EALI,CAtBkB;EA6B/BhB,OAAO,EAAE;IACPS,SAAS,EAAE,EADJ;IAEPU,aAAa,EAAE;EAFR,CA7BsB;EAiC/BvB,SAAS,EAAE;IACTwB,OAAO,EAAE;EADA;AAjCoB,CAAlB,CAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["DisplaySchema.ts"],"sourcesContent":["import type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\n/**\n * Type of display\n */\nexport type DisplayType = 'ALERT' | 'WARNING' | 'MESSAGE';\n/**\n * Text to be displayed\n */\nexport type DisplayText = string;\n/**\n * Url of image to be displayed\n */\nexport type DisplayImageURL = string;\n\nexport type DisplayETInput = BaseETRequest & {\n showDialog: boolean;\n displayType: DisplayType;\n text?: DisplayText;\n image?: DisplayImageURL;\n positiveBtn: string;\n negativeBtn?: string;\n onSubmit: (displayOutput: DisplayETOutput) => void;\n};\n\nexport type DisplayETOutput = BaseETResponse;\n"],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getJobIDs = getJobIDs;
|
|
7
|
+
exports.getObjectiveRefs = getObjectiveRefs;
|
|
8
|
+
|
|
9
|
+
function getJobIDs(nextStates) {
|
|
10
|
+
let result = [];
|
|
11
|
+
if (!nextStates || nextStates.length === 0) return result;else {
|
|
12
|
+
nextStates.forEach(s => {
|
|
13
|
+
result.push(s.jobId);
|
|
14
|
+
});
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function getObjectiveRefs(nextStates) {
|
|
20
|
+
let result = [];
|
|
21
|
+
if (!nextStates || nextStates.length === 0) return result;else {
|
|
22
|
+
nextStates.forEach(s => {
|
|
23
|
+
result.push(s.objRef);
|
|
24
|
+
});
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=DoodleUtils.js.map
|