@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,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _CancelET = _interopRequireDefault(require("../../components/executiontasks/cancellation/CancelET"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _EventCodeContainer = require("../../manager/dispatchCodes/EventCodeContainer");
|
|
13
|
+
|
|
14
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
15
|
+
|
|
16
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
17
|
+
|
|
18
|
+
var _ReasonCodeContainer = _interopRequireDefault(require("../../manager/dispatchCodes/ReasonCodeContainer"));
|
|
19
|
+
|
|
20
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
21
|
+
|
|
22
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
|
|
30
|
+
const instance = _DispatchStateContainer.default.getInstance();
|
|
31
|
+
|
|
32
|
+
const CancellationScreen = _ref => {
|
|
33
|
+
let {
|
|
34
|
+
route,
|
|
35
|
+
navigation,
|
|
36
|
+
baseETProps
|
|
37
|
+
} = _ref;
|
|
38
|
+
const [reasons, setReasons] = (0, _react.useState)([]);
|
|
39
|
+
(0, _react.useEffect)(() => {
|
|
40
|
+
const values = [];
|
|
41
|
+
|
|
42
|
+
for (let reasonCode of route.params[_RouteParams.RouteParams.REASONS]) {
|
|
43
|
+
values.push(reasonCode.description);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
setReasons(values);
|
|
47
|
+
}, [route.params]);
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement(_CancelET.default, {
|
|
49
|
+
cancellationReasons: reasons,
|
|
50
|
+
onSubmitET: async reason => {
|
|
51
|
+
if (route.params[_RouteParams.RouteParams.ET_SUCCESS]) {
|
|
52
|
+
route.params[_RouteParams.RouteParams.ET_SUCCESS_RESPONSE].reasonCode = _ReasonCodeContainer.default.getReasonCodeFromText(reason, route.params[_RouteParams.RouteParams.REASONS]);
|
|
53
|
+
await instance.saveAndProceed(baseETProps, route.params[_RouteParams.RouteParams.ET_SUCCESS_RESPONSE], route.params[_RouteParams.RouteParams.NEXT_STATES], navigation, route.params[_RouteParams.RouteParams.IS_LAST_ET]);
|
|
54
|
+
} else {
|
|
55
|
+
await instance.saveAndProceed(baseETProps, await (0, _ExecTaskUtils.getBaseETResponse)((0, _ExecTaskUtils.getEntityCodeByET)(route.params[_RouteParams.RouteParams.CURRENT_ET_NAME]), false, (0, _EventCodeContainer.getEventCodeByET)(route.params[_RouteParams.RouteParams.CURRENT_ET_NAME], false), _ReasonCodeContainer.default.getReasonCodeFromText(reason, route.params[_RouteParams.RouteParams.REASONS])), route.params[_RouteParams.RouteParams.NEXT_STATES], navigation, route.params[_RouteParams.RouteParams.IS_LAST_ET]);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var _default = (0, _WithBaseDispatchScreen.default)(CancellationScreen);
|
|
62
|
+
|
|
63
|
+
exports.default = _default;
|
|
64
|
+
//# sourceMappingURL=CancellationScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["instance","DispatchStateContainer","getInstance","CancellationScreen","route","navigation","baseETProps","reasons","setReasons","useState","useEffect","values","reasonCode","params","RouteParams","REASONS","push","description","reason","ET_SUCCESS","ET_SUCCESS_RESPONSE","ReasonCodeContainer","getReasonCodeFromText","saveAndProceed","NEXT_STATES","IS_LAST_ET","getBaseETResponse","getEntityCodeByET","CURRENT_ET_NAME","getEventCodeByET","withBaseDispatchScreen"],"sources":["CancellationScreen.tsx"],"sourcesContent":["import CancelET from '../../components/executiontasks/cancellation/CancelET';\nimport React, { useEffect, useState } from 'react';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps, stateWithObjRef } from '../../models/DispatchModels';\nimport {\n getBaseETResponse,\n getEntityCodeByET,\n} from '../../utils/ExecTaskUtils';\nimport ReasonCodeContainer from '../../manager/dispatchCodes/ReasonCodeContainer';\nimport type { ReasonsRow } from '../../manager/syncmanager/DBConfig';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\n\nconst instance = DispatchStateContainer.getInstance();\nconst CancellationScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [reasons, setReasons] = useState<string[]>([]);\n useEffect(() => {\n const values: string[] = [];\n for (let reasonCode of route.params[RouteParams.REASONS] as ReasonsRow[]) {\n values.push(reasonCode.description);\n }\n setReasons(values);\n }, [route.params]);\n return (\n <CancelET\n cancellationReasons={reasons}\n onSubmitET={async (reason) => {\n if (route.params[RouteParams.ET_SUCCESS]) {\n route.params[RouteParams.ET_SUCCESS_RESPONSE].reasonCode =\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n );\n await instance.saveAndProceed(\n baseETProps,\n route.params[RouteParams.ET_SUCCESS_RESPONSE],\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n route.params[RouteParams.IS_LAST_ET]\n );\n } else {\n await instance.saveAndProceed(\n baseETProps,\n await getBaseETResponse(\n getEntityCodeByET(route.params[RouteParams.CURRENT_ET_NAME]),\n false,\n getEventCodeByET(\n route.params[RouteParams.CURRENT_ET_NAME],\n false\n ),\n ReasonCodeContainer.getReasonCodeFromText(\n reason,\n route.params[RouteParams.REASONS]\n )\n ),\n route.params[RouteParams.NEXT_STATES] as stateWithObjRef[],\n navigation,\n route.params[RouteParams.IS_LAST_ET]\n );\n }\n }}\n />\n );\n};\nexport default withBaseDispatchScreen(CancellationScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AAIA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,QAAQ,GAAGC,+BAAA,CAAuBC,WAAvB,EAAjB;;AACA,MAAMC,kBAAkB,GAAG,QAQrB;EAAA,IARsB;IAC1BC,KAD0B;IAE1BC,UAF0B;IAG1BC;EAH0B,CAQtB;EACJ,MAAM,CAACC,OAAD,EAAUC,UAAV,IAAwB,IAAAC,eAAA,EAAmB,EAAnB,CAA9B;EACA,IAAAC,gBAAA,EAAU,MAAM;IACd,MAAMC,MAAgB,GAAG,EAAzB;;IACA,KAAK,IAAIC,UAAT,IAAuBR,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYC,OAAzB,CAAvB,EAA0E;MACxEJ,MAAM,CAACK,IAAP,CAAYJ,UAAU,CAACK,WAAvB;IACD;;IACDT,UAAU,CAACG,MAAD,CAAV;EACD,CAND,EAMG,CAACP,KAAK,CAACS,MAAP,CANH;EAOA,oBACE,6BAAC,iBAAD;IACE,mBAAmB,EAAEN,OADvB;IAEE,UAAU,EAAE,MAAOW,MAAP,IAAkB;MAC5B,IAAId,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYK,UAAzB,CAAJ,EAA0C;QACxCf,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYM,mBAAzB,EAA8CR,UAA9C,GACES,4BAAA,CAAoBC,qBAApB,CACEJ,MADF,EAEEd,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYC,OAAzB,CAFF,CADF;QAKA,MAAMf,QAAQ,CAACuB,cAAT,CACJjB,WADI,EAEJF,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYM,mBAAzB,CAFI,EAGJhB,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYU,WAAzB,CAHI,EAIJnB,UAJI,EAKJD,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYW,UAAzB,CALI,CAAN;MAOD,CAbD,MAaO;QACL,MAAMzB,QAAQ,CAACuB,cAAT,CACJjB,WADI,EAEJ,MAAM,IAAAoB,gCAAA,EACJ,IAAAC,gCAAA,EAAkBvB,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYc,eAAzB,CAAlB,CADI,EAEJ,KAFI,EAGJ,IAAAC,oCAAA,EACEzB,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYc,eAAzB,CADF,EAEE,KAFF,CAHI,EAOJP,4BAAA,CAAoBC,qBAApB,CACEJ,MADF,EAEEd,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYC,OAAzB,CAFF,CAPI,CAFF,EAcJX,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYU,WAAzB,CAdI,EAeJnB,UAfI,EAgBJD,KAAK,CAACS,MAAN,CAAaC,wBAAA,CAAYW,UAAzB,CAhBI,CAAN;MAkBD;IACF;EApCH,EADF;AAwCD,CAzDD;;eA0De,IAAAK,+BAAA,EAAuB3B,kBAAvB,C"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
13
|
+
|
|
14
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
15
|
+
|
|
16
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
17
|
+
|
|
18
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
19
|
+
|
|
20
|
+
var _reactNative = require("react-native");
|
|
21
|
+
|
|
22
|
+
var _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
32
|
+
const CaptureInputScreen = _ref => {
|
|
33
|
+
let {
|
|
34
|
+
route,
|
|
35
|
+
navigation,
|
|
36
|
+
baseETProps
|
|
37
|
+
} = _ref;
|
|
38
|
+
const [showAlert, setShowAlert] = (0, _react.useState)(false);
|
|
39
|
+
const [sResponse, setResponse] = (0, _react.useState)();
|
|
40
|
+
const submitOutput = (0, _react.useCallback)(async response => {
|
|
41
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, response, response.success, _ETConfig.EntityCode.CAPTURE_INPUT, _ETConfig.ExecutionTaskID.CAPTURE_INPUT, baseETProps, false);
|
|
42
|
+
}, [baseETProps, navigation, route]);
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
44
|
+
style: {
|
|
45
|
+
flex: 1
|
|
46
|
+
}
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.CaptureText, _extends({}, route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input, {
|
|
48
|
+
onSubmitET: async etResponse => {
|
|
49
|
+
if (etResponse.success) {
|
|
50
|
+
await submitOutput(etResponse);
|
|
51
|
+
} else {
|
|
52
|
+
setResponse(_prevState => {
|
|
53
|
+
setShowAlert(true);
|
|
54
|
+
return etResponse;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
})), /*#__PURE__*/_react.default.createElement(_CancelOrderDialog.default, {
|
|
59
|
+
visible: showAlert,
|
|
60
|
+
onSubmit: async value => {
|
|
61
|
+
if (value) {
|
|
62
|
+
setShowAlert(false);
|
|
63
|
+
await submitOutput(sResponse);
|
|
64
|
+
} else {
|
|
65
|
+
setShowAlert(false);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
var _default = (0, _WithBaseDispatchScreen.default)(CaptureInputScreen);
|
|
72
|
+
|
|
73
|
+
exports.default = _default;
|
|
74
|
+
//# sourceMappingURL=CaptureInputScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CaptureInputScreen","route","navigation","baseETProps","showAlert","setShowAlert","useState","sResponse","setResponse","submitOutput","useCallback","response","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","CAPTURE_INPUT","ExecutionTaskID","flex","params","RouteParams","NEXT_STATES","nextState","data","input","etResponse","_prevState","value","withBaseDispatchScreen"],"sources":["CaptureInputScreen.tsx"],"sourcesContent":["import { CaptureText } from '../../components/executiontasks/ExecutionTasksIndex';\nimport React, { useCallback, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport { View } from 'react-native';\nimport CancelOrderDialog from '../../components/widgets/CancelOrderDialog';\n\nconst CaptureInputScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [showAlert, setShowAlert] = useState(false);\n const [sResponse, setResponse] = useState<any>();\n const submitOutput = useCallback(\n async (response: any) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n response,\n response.success,\n EntityCode.CAPTURE_INPUT,\n ExecutionTaskID.CAPTURE_INPUT,\n baseETProps,\n false\n );\n },\n [baseETProps, navigation, route]\n );\n return (\n <View style={{ flex: 1 }}>\n <CaptureText\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onSubmitET={async (etResponse) => {\n if (etResponse.success) {\n await submitOutput(etResponse);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return etResponse;\n });\n }\n }}\n />\n <CancelOrderDialog\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n};\nexport default withBaseDispatchScreen(CaptureInputScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,kBAAkB,GAAG,QAQrB;EAAA,IARsB;IAC1BC,KAD0B;IAE1BC,UAF0B;IAG1BC;EAH0B,CAQtB;EACJ,MAAM,CAACC,SAAD,EAAYC,YAAZ,IAA4B,IAAAC,eAAA,EAAS,KAAT,CAAlC;EACA,MAAM,CAACC,SAAD,EAAYC,WAAZ,IAA2B,IAAAF,eAAA,GAAjC;EACA,MAAMG,YAAY,GAAG,IAAAC,kBAAA,EACnB,MAAOC,QAAP,IAAyB;IACvB,MAAMC,+BAAA,CAAuBC,WAAvB,GAAqCC,kBAArC,CACJZ,UADI,EAEJD,KAFI,EAGJU,QAHI,EAIJA,QAAQ,CAACI,OAJL,EAKJC,oBAAA,CAAWC,aALP,EAMJC,yBAAA,CAAgBD,aANZ,EAOJd,WAPI,EAQJ,KARI,CAAN;EAUD,CAZkB,EAanB,CAACA,WAAD,EAAcD,UAAd,EAA0BD,KAA1B,CAbmB,CAArB;EAeA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAE;MAAEkB,IAAI,EAAE;IAAR;EAAb,gBACE,6BAAC,gCAAD,eACMlB,KAAK,CAACmB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,UAAU,EAAE,MAAOC,UAAP,IAAsB;MAChC,IAAIA,UAAU,CAACX,OAAf,EAAwB;QACtB,MAAMN,YAAY,CAACiB,UAAD,CAAlB;MACD,CAFD,MAEO;QACLlB,WAAW,CAAEmB,UAAD,IAAqB;UAC/BtB,YAAY,CAAC,IAAD,CAAZ;UACA,OAAOqB,UAAP;QACD,CAHU,CAAX;MAID;IACF;EAXH,GADF,eAcE,6BAAC,0BAAD;IACE,OAAO,EAAEtB,SADX;IAEE,QAAQ,EAAE,MAAOwB,KAAP,IAAiB;MACzB,IAAIA,KAAJ,EAAW;QACTvB,YAAY,CAAC,KAAD,CAAZ;QACA,MAAMI,YAAY,CAACF,SAAD,CAAlB;MACD,CAHD,MAGO;QACLF,YAAY,CAAC,KAAD,CAAZ;MACD;IACF;EATH,EAdF,CADF;AA4BD,CAtDD;;eAuDe,IAAAwB,+BAAA,EAAuB7B,kBAAvB,C"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
13
|
+
|
|
14
|
+
var _ExecTaskUtils = require("../../utils/ExecTaskUtils");
|
|
15
|
+
|
|
16
|
+
var _EventCodeContainer = require("../../manager/dispatchCodes/EventCodeContainer");
|
|
17
|
+
|
|
18
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
19
|
+
|
|
20
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
21
|
+
|
|
22
|
+
var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
|
|
23
|
+
|
|
24
|
+
var _Toaster = require("../../components/widgets/Toaster");
|
|
25
|
+
|
|
26
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
const CompleteObjectiveScreen = _ref => {
|
|
35
|
+
let {
|
|
36
|
+
navigation,
|
|
37
|
+
route,
|
|
38
|
+
baseETProps
|
|
39
|
+
} = _ref;
|
|
40
|
+
(0, _react.useEffect)(() => {
|
|
41
|
+
(async () => {
|
|
42
|
+
try {
|
|
43
|
+
baseETProps.showProgress(true);
|
|
44
|
+
let etResponse;
|
|
45
|
+
let nextState = route.params[_RouteParams.RouteParams.NEXT_STATES][0];
|
|
46
|
+
const entityCode = nextState.nextState.taskId === _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS ? _ETConfig.EntityCode.COMPLETED_SUCCESS : _ETConfig.EntityCode.COMPLETED_FAILURE;
|
|
47
|
+
etResponse = await (0, _ExecTaskUtils.getObjectiveCompleteResp)(entityCode, true, (0, _EventCodeContainer.getEventCodeByET)(nextState.nextState.taskId, true), '');
|
|
48
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etResponse, etResponse.success, entityCode, nextState.nextState.taskId === _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS ? _ETConfig.ExecutionTaskID.COMPLETED_SUCCESS : _ETConfig.ExecutionTaskID.COMPLETED_FAILURE, baseETProps, true);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
baseETProps.showProgress(false);
|
|
51
|
+
|
|
52
|
+
_Logger.default.getInstance().logEvent('COMPLETE_OBJECTIVE', error.message, _Logger.LOG_TYPE.SDK_ERROR);
|
|
53
|
+
|
|
54
|
+
(0, _Toaster.showToast)(error.message);
|
|
55
|
+
}
|
|
56
|
+
})();
|
|
57
|
+
|
|
58
|
+
return () => {
|
|
59
|
+
baseETProps.showProgress(false);
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
var _default = (0, _WithBaseDispatchScreen.default)(CompleteObjectiveScreen);
|
|
66
|
+
|
|
67
|
+
exports.default = _default;
|
|
68
|
+
//# sourceMappingURL=CompleteObjectiveScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CompleteObjectiveScreen","navigation","route","baseETProps","useEffect","showProgress","etResponse","nextState","params","RouteParams","NEXT_STATES","entityCode","taskId","ExecutionTaskID","COMPLETED_SUCCESS","EntityCode","COMPLETED_FAILURE","getObjectiveCompleteResp","getEventCodeByET","DispatchStateContainer","getInstance","navigateToNextTask","success","error","Logger","logEvent","message","LOG_TYPE","SDK_ERROR","showToast","withBaseDispatchScreen"],"sources":["CompleteObjectiveScreen.tsx"],"sourcesContent":["import { View } from 'react-native';\nimport React, { useEffect } from 'react';\nimport type { BaseETProps, stateWithObjRef } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { getObjectiveCompleteResp } from '../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport { showToast } from '../../components/widgets/Toaster';\nimport { RouteParams } from '../uiConfig/RouteParams';\n\nconst CompleteObjectiveScreen = ({\n navigation,\n route,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n useEffect(() => {\n (async () => {\n try {\n baseETProps.showProgress(true);\n let etResponse;\n let nextState: stateWithObjRef = route.params[\n RouteParams.NEXT_STATES\n ][0] as stateWithObjRef;\n const entityCode =\n nextState.nextState.taskId === ExecutionTaskID.COMPLETED_SUCCESS\n ? EntityCode.COMPLETED_SUCCESS\n : EntityCode.COMPLETED_FAILURE;\n etResponse = await getObjectiveCompleteResp(\n entityCode,\n true,\n getEventCodeByET(nextState.nextState.taskId, true),\n ''\n );\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n etResponse,\n etResponse.success,\n entityCode,\n nextState.nextState.taskId === ExecutionTaskID.COMPLETED_SUCCESS\n ? ExecutionTaskID.COMPLETED_SUCCESS\n : ExecutionTaskID.COMPLETED_FAILURE,\n baseETProps,\n true\n );\n } catch (error: any) {\n baseETProps.showProgress(false);\n Logger.getInstance().logEvent(\n 'COMPLETE_OBJECTIVE',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n showToast(error.message);\n }\n })();\n\n return () => {\n baseETProps.showProgress(false);\n };\n }, []);\n return <View />;\n};\nexport default withBaseDispatchScreen(CompleteObjectiveScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,uBAAuB,GAAG,QAQ1B;EAAA,IAR2B;IAC/BC,UAD+B;IAE/BC,KAF+B;IAG/BC;EAH+B,CAQ3B;EACJ,IAAAC,gBAAA,EAAU,MAAM;IACd,CAAC,YAAY;MACX,IAAI;QACFD,WAAW,CAACE,YAAZ,CAAyB,IAAzB;QACA,IAAIC,UAAJ;QACA,IAAIC,SAA0B,GAAGL,KAAK,CAACM,MAAN,CAC/BC,wBAAA,CAAYC,WADmB,EAE/B,CAF+B,CAAjC;QAGA,MAAMC,UAAU,GACdJ,SAAS,CAACA,SAAV,CAAoBK,MAApB,KAA+BC,yBAAA,CAAgBC,iBAA/C,GACIC,oBAAA,CAAWD,iBADf,GAEIC,oBAAA,CAAWC,iBAHjB;QAIAV,UAAU,GAAG,MAAM,IAAAW,uCAAA,EACjBN,UADiB,EAEjB,IAFiB,EAGjB,IAAAO,oCAAA,EAAiBX,SAAS,CAACA,SAAV,CAAoBK,MAArC,EAA6C,IAA7C,CAHiB,EAIjB,EAJiB,CAAnB;QAMA,MAAMO,+BAAA,CAAuBC,WAAvB,GAAqCC,kBAArC,CACJpB,UADI,EAEJC,KAFI,EAGJI,UAHI,EAIJA,UAAU,CAACgB,OAJP,EAKJX,UALI,EAMJJ,SAAS,CAACA,SAAV,CAAoBK,MAApB,KAA+BC,yBAAA,CAAgBC,iBAA/C,GACID,yBAAA,CAAgBC,iBADpB,GAEID,yBAAA,CAAgBG,iBARhB,EASJb,WATI,EAUJ,IAVI,CAAN;MAYD,CA5BD,CA4BE,OAAOoB,KAAP,EAAmB;QACnBpB,WAAW,CAACE,YAAZ,CAAyB,KAAzB;;QACAmB,eAAA,CAAOJ,WAAP,GAAqBK,QAArB,CACE,oBADF,EAEEF,KAAK,CAACG,OAFR,EAGEC,gBAAA,CAASC,SAHX;;QAKA,IAAAC,kBAAA,EAAUN,KAAK,CAACG,OAAhB;MACD;IACF,CAtCD;;IAwCA,OAAO,MAAM;MACXvB,WAAW,CAACE,YAAZ,CAAyB,KAAzB;IACD,CAFD;EAGD,CA5CD,EA4CG,EA5CH;EA6CA,oBAAO,6BAAC,iBAAD,OAAP;AACD,CAvDD;;eAwDe,IAAAyB,+BAAA,EAAuB9B,uBAAvB,C"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
11
|
+
|
|
12
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
13
|
+
|
|
14
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
15
|
+
|
|
16
|
+
var _SLDeliverET = _interopRequireDefault(require("../../components/executiontasks/deliver/SLDeliverET"));
|
|
17
|
+
|
|
18
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
19
|
+
|
|
20
|
+
var _reactNative = require("react-native");
|
|
21
|
+
|
|
22
|
+
var _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
32
|
+
const DeliverScreen = _ref => {
|
|
33
|
+
let {
|
|
34
|
+
navigation,
|
|
35
|
+
route,
|
|
36
|
+
baseETProps
|
|
37
|
+
} = _ref;
|
|
38
|
+
const [showAlert, setShowAlert] = (0, _react.useState)(false);
|
|
39
|
+
const [sResponse, setResponse] = (0, _react.useState)();
|
|
40
|
+
const submitOutput = (0, _react.useCallback)(async deliverOutput => {
|
|
41
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, deliverOutput, deliverOutput.success, _ETConfig.EntityCode.DELIVER, _ETConfig.ExecutionTaskID.DELIVER, baseETProps, false);
|
|
42
|
+
}, [baseETProps, navigation, route]);
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
44
|
+
style: {
|
|
45
|
+
flex: 1
|
|
46
|
+
}
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_SLDeliverET.default, _extends({}, route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input, {
|
|
48
|
+
returnPackageCount: route.params[_RouteParams.RouteParams.NEXT_STATES].length,
|
|
49
|
+
onSubmitET: async deliverOutput => {
|
|
50
|
+
if (deliverOutput.success) {
|
|
51
|
+
await submitOutput(deliverOutput);
|
|
52
|
+
} else {
|
|
53
|
+
setResponse(_prevState => {
|
|
54
|
+
setShowAlert(true);
|
|
55
|
+
return deliverOutput;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
})), /*#__PURE__*/_react.default.createElement(_CancelOrderDialog.default, {
|
|
60
|
+
visible: showAlert,
|
|
61
|
+
onSubmit: async value => {
|
|
62
|
+
if (value) {
|
|
63
|
+
setShowAlert(false);
|
|
64
|
+
await submitOutput(sResponse);
|
|
65
|
+
} else {
|
|
66
|
+
setShowAlert(false);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var _default = (0, _WithBaseDispatchScreen.default)(DeliverScreen);
|
|
73
|
+
|
|
74
|
+
exports.default = _default;
|
|
75
|
+
//# sourceMappingURL=DeliverScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DeliverScreen","navigation","route","baseETProps","showAlert","setShowAlert","useState","sResponse","setResponse","submitOutput","useCallback","deliverOutput","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","DELIVER","ExecutionTaskID","flex","params","RouteParams","NEXT_STATES","nextState","data","input","length","_prevState","value","withBaseDispatchScreen"],"sources":["DeliverScreen.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport SLDeliverET from '../../components/executiontasks/deliver/SLDeliverET';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport { View } from 'react-native';\nimport CancelOrderDialog from '../../components/widgets/CancelOrderDialog';\n\nconst DeliverScreen = ({\n navigation,\n route,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [showAlert, setShowAlert] = useState(false);\n const [sResponse, setResponse] = useState<any>();\n const submitOutput = useCallback(\n async (deliverOutput: any) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n deliverOutput,\n deliverOutput.success,\n EntityCode.DELIVER,\n ExecutionTaskID.DELIVER,\n baseETProps,\n false\n );\n },\n [baseETProps, navigation, route]\n );\n return (\n <View style={{ flex: 1 }}>\n <SLDeliverET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n returnPackageCount={route.params[RouteParams.NEXT_STATES].length}\n onSubmitET={async (deliverOutput) => {\n if (deliverOutput.success) {\n await submitOutput(deliverOutput);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return deliverOutput;\n });\n }\n }}\n />\n <CancelOrderDialog\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n};\nexport default withBaseDispatchScreen(DeliverScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,aAAa,GAAG,QAQhB;EAAA,IARiB;IACrBC,UADqB;IAErBC,KAFqB;IAGrBC;EAHqB,CAQjB;EACJ,MAAM,CAACC,SAAD,EAAYC,YAAZ,IAA4B,IAAAC,eAAA,EAAS,KAAT,CAAlC;EACA,MAAM,CAACC,SAAD,EAAYC,WAAZ,IAA2B,IAAAF,eAAA,GAAjC;EACA,MAAMG,YAAY,GAAG,IAAAC,kBAAA,EACnB,MAAOC,aAAP,IAA8B;IAC5B,MAAMC,+BAAA,CAAuBC,WAAvB,GAAqCC,kBAArC,CACJb,UADI,EAEJC,KAFI,EAGJS,aAHI,EAIJA,aAAa,CAACI,OAJV,EAKJC,oBAAA,CAAWC,OALP,EAMJC,yBAAA,CAAgBD,OANZ,EAOJd,WAPI,EAQJ,KARI,CAAN;EAUD,CAZkB,EAanB,CAACA,WAAD,EAAcF,UAAd,EAA0BC,KAA1B,CAbmB,CAArB;EAeA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAE;MAAEiB,IAAI,EAAE;IAAR;EAAb,gBACE,6BAAC,oBAAD,eACMjB,KAAK,CAACkB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,kBAAkB,EAAEvB,KAAK,CAACkB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,EAAsCI,MAF5D;IAGE,UAAU,EAAE,MAAOf,aAAP,IAAyB;MACnC,IAAIA,aAAa,CAACI,OAAlB,EAA2B;QACzB,MAAMN,YAAY,CAACE,aAAD,CAAlB;MACD,CAFD,MAEO;QACLH,WAAW,CAAEmB,UAAD,IAAqB;UAC/BtB,YAAY,CAAC,IAAD,CAAZ;UACA,OAAOM,aAAP;QACD,CAHU,CAAX;MAID;IACF;EAZH,GADF,eAeE,6BAAC,0BAAD;IACE,OAAO,EAAEP,SADX;IAEE,QAAQ,EAAE,MAAOwB,KAAP,IAAiB;MACzB,IAAIA,KAAJ,EAAW;QACTvB,YAAY,CAAC,KAAD,CAAZ;QACA,MAAMI,YAAY,CAACF,SAAD,CAAlB;MACD,CAHD,MAGO;QACLF,YAAY,CAAC,KAAD,CAAZ;MACD;IACF;EATH,EAfF,CADF;AA6BD,CAvDD;;eAwDe,IAAAwB,+BAAA,EAAuB7B,aAAvB,C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
11
|
+
|
|
12
|
+
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
13
|
+
|
|
14
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
15
|
+
|
|
16
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
17
|
+
|
|
18
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
+
|
|
24
|
+
const DisplayScreen = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
route,
|
|
27
|
+
navigation,
|
|
28
|
+
baseETProps
|
|
29
|
+
} = _ref;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.DisplayModalET, _extends({}, route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input, {
|
|
31
|
+
positiveBtn: 'Submit',
|
|
32
|
+
showDialog: true,
|
|
33
|
+
negativeBtn: 'Cancel',
|
|
34
|
+
onSubmit: async displayOutput => {
|
|
35
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, displayOutput, displayOutput.success, _ETConfig.EntityCode.DISPLAY, _ETConfig.ExecutionTaskID.DISPLAY, baseETProps, false);
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var _default = (0, _WithBaseDispatchScreen.default)(DisplayScreen);
|
|
41
|
+
|
|
42
|
+
exports.default = _default;
|
|
43
|
+
//# sourceMappingURL=DisplayScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DisplayScreen","route","navigation","baseETProps","params","RouteParams","NEXT_STATES","nextState","data","input","displayOutput","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","DISPLAY","ExecutionTaskID","withBaseDispatchScreen"],"sources":["DisplayScreen.tsx"],"sourcesContent":["import React from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport { DisplayModalET } from '../../components/executiontasks/ExecutionTasksIndex';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\n\nconst DisplayScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n return (\n <DisplayModalET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n positiveBtn={'Submit'}\n showDialog={true}\n negativeBtn={'Cancel'}\n onSubmit={async (displayOutput) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n displayOutput,\n displayOutput.success,\n EntityCode.DISPLAY,\n ExecutionTaskID.DISPLAY,\n baseETProps,\n false\n );\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(DisplayScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;;;;;AAEA,MAAMA,aAAa,GAAG,QAQhB;EAAA,IARiB;IACrBC,KADqB;IAErBC,UAFqB;IAGrBC;EAHqB,CAQjB;EACJ,oBACE,6BAAC,mCAAD,eACMF,KAAK,CAACG,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,WAAW,EAAE,QAFf;IAGE,UAAU,EAAE,IAHd;IAIE,WAAW,EAAE,QAJf;IAKE,QAAQ,EAAE,MAAOC,aAAP,IAAyB;MACjC,MAAMC,+BAAA,CAAuBC,WAAvB,GAAqCC,kBAArC,CACJX,UADI,EAEJD,KAFI,EAGJS,aAHI,EAIJA,aAAa,CAACI,OAJV,EAKJC,oBAAA,CAAWC,OALP,EAMJC,yBAAA,CAAgBD,OANZ,EAOJb,WAPI,EAQJ,KARI,CAAN;IAUD;EAhBH,GADF;AAoBD,CA7BD;;eA+Be,IAAAe,+BAAA,EAAuBlB,aAAvB,C"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _SignatureET = _interopRequireDefault(require("../../components/executiontasks/doodle/SignatureET"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
13
|
+
|
|
14
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
15
|
+
|
|
16
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
17
|
+
|
|
18
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
19
|
+
|
|
20
|
+
var _reactNative = require("react-native");
|
|
21
|
+
|
|
22
|
+
var _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
23
|
+
|
|
24
|
+
var _DoodleUtils = require("../../components/executiontasks/doodle/DoodleUtils");
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
+
|
|
32
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
|
+
|
|
34
|
+
const DoodleScreen = _ref => {
|
|
35
|
+
let {
|
|
36
|
+
route,
|
|
37
|
+
navigation,
|
|
38
|
+
baseETProps
|
|
39
|
+
} = _ref;
|
|
40
|
+
const [showAlert, setShowAlert] = (0, _react.useState)(false);
|
|
41
|
+
const [sResponse, setResponse] = (0, _react.useState)();
|
|
42
|
+
const submitOutput = (0, _react.useCallback)(async base64Data => {
|
|
43
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, base64Data, base64Data.success, _ETConfig.EntityCode.DOODLE, _ETConfig.ExecutionTaskID.DOODLE, baseETProps, false);
|
|
44
|
+
}, [baseETProps, navigation, route]);
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
46
|
+
style: {
|
|
47
|
+
flex: 1
|
|
48
|
+
}
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_SignatureET.default, _extends({}, route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input, {
|
|
50
|
+
jobIDs: (0, _DoodleUtils.getJobIDs)(route.params[_RouteParams.RouteParams.NEXT_STATES]),
|
|
51
|
+
objRefs: (0, _DoodleUtils.getObjectiveRefs)(route.params[_RouteParams.RouteParams.NEXT_STATES]),
|
|
52
|
+
onSubmitET: async base64Data => {
|
|
53
|
+
if (base64Data.success) {
|
|
54
|
+
await submitOutput(base64Data);
|
|
55
|
+
} else {
|
|
56
|
+
setResponse(_prevState => {
|
|
57
|
+
setShowAlert(true);
|
|
58
|
+
return base64Data;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
})), /*#__PURE__*/_react.default.createElement(_CancelOrderDialog.default, {
|
|
63
|
+
label: 'Cancel Signature',
|
|
64
|
+
visible: showAlert,
|
|
65
|
+
onSubmit: async value => {
|
|
66
|
+
if (value) {
|
|
67
|
+
setShowAlert(false);
|
|
68
|
+
await submitOutput(sResponse);
|
|
69
|
+
} else {
|
|
70
|
+
setShowAlert(false);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var _default = (0, _WithBaseDispatchScreen.default)(DoodleScreen);
|
|
77
|
+
|
|
78
|
+
exports.default = _default;
|
|
79
|
+
//# sourceMappingURL=DoodleScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DoodleScreen","route","navigation","baseETProps","showAlert","setShowAlert","useState","sResponse","setResponse","submitOutput","useCallback","base64Data","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","DOODLE","ExecutionTaskID","flex","params","RouteParams","NEXT_STATES","nextState","data","input","getJobIDs","getObjectiveRefs","_prevState","value","withBaseDispatchScreen"],"sources":["DoodleScreen.tsx"],"sourcesContent":["import SignatureET from '../../components/executiontasks/doodle/SignatureET';\nimport React, { useCallback, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport { View } from 'react-native';\nimport CancelOrderDialog from '../../components/widgets/CancelOrderDialog';\nimport {\n getJobIDs,\n getObjectiveRefs,\n} from '../../components/executiontasks/doodle/DoodleUtils';\n\nconst DoodleScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [showAlert, setShowAlert] = useState(false);\n const [sResponse, setResponse] = useState<any>();\n const submitOutput = useCallback(\n async (base64Data: any) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n base64Data,\n base64Data.success,\n EntityCode.DOODLE,\n ExecutionTaskID.DOODLE,\n baseETProps,\n false\n );\n },\n [baseETProps, navigation, route]\n );\n return (\n <View style={{ flex: 1 }}>\n <SignatureET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n jobIDs={getJobIDs(route.params[RouteParams.NEXT_STATES])}\n objRefs={getObjectiveRefs(route.params[RouteParams.NEXT_STATES])}\n onSubmitET={async (base64Data) => {\n if (base64Data.success) {\n await submitOutput(base64Data);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return base64Data;\n });\n }\n }}\n />\n <CancelOrderDialog\n label={'Cancel Signature'}\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n};\n\nexport default withBaseDispatchScreen(DoodleScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAKA,MAAMA,YAAY,GAAG,QAQf;EAAA,IARgB;IACpBC,KADoB;IAEpBC,UAFoB;IAGpBC;EAHoB,CAQhB;EACJ,MAAM,CAACC,SAAD,EAAYC,YAAZ,IAA4B,IAAAC,eAAA,EAAS,KAAT,CAAlC;EACA,MAAM,CAACC,SAAD,EAAYC,WAAZ,IAA2B,IAAAF,eAAA,GAAjC;EACA,MAAMG,YAAY,GAAG,IAAAC,kBAAA,EACnB,MAAOC,UAAP,IAA2B;IACzB,MAAMC,+BAAA,CAAuBC,WAAvB,GAAqCC,kBAArC,CACJZ,UADI,EAEJD,KAFI,EAGJU,UAHI,EAIJA,UAAU,CAACI,OAJP,EAKJC,oBAAA,CAAWC,MALP,EAMJC,yBAAA,CAAgBD,MANZ,EAOJd,WAPI,EAQJ,KARI,CAAN;EAUD,CAZkB,EAanB,CAACA,WAAD,EAAcD,UAAd,EAA0BD,KAA1B,CAbmB,CAArB;EAeA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAE;MAAEkB,IAAI,EAAE;IAAR;EAAb,gBACE,6BAAC,oBAAD,eACMlB,KAAK,CAACmB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,MAAM,EAAE,IAAAC,sBAAA,EAAUzB,KAAK,CAACmB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,CAAV,CAFV;IAGE,OAAO,EAAE,IAAAK,6BAAA,EAAiB1B,KAAK,CAACmB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,CAAjB,CAHX;IAIE,UAAU,EAAE,MAAOX,UAAP,IAAsB;MAChC,IAAIA,UAAU,CAACI,OAAf,EAAwB;QACtB,MAAMN,YAAY,CAACE,UAAD,CAAlB;MACD,CAFD,MAEO;QACLH,WAAW,CAAEoB,UAAD,IAAqB;UAC/BvB,YAAY,CAAC,IAAD,CAAZ;UACA,OAAOM,UAAP;QACD,CAHU,CAAX;MAID;IACF;EAbH,GADF,eAgBE,6BAAC,0BAAD;IACE,KAAK,EAAE,kBADT;IAEE,OAAO,EAAEP,SAFX;IAGE,QAAQ,EAAE,MAAOyB,KAAP,IAAiB;MACzB,IAAIA,KAAJ,EAAW;QACTxB,YAAY,CAAC,KAAD,CAAZ;QACA,MAAMI,YAAY,CAACF,SAAD,CAAlB;MACD,CAHD,MAGO;QACLF,YAAY,CAAC,KAAD,CAAZ;MACD;IACF;EAVH,EAhBF,CADF;AA+BD,CAzDD;;eA2De,IAAAyB,+BAAA,EAAuB9B,YAAvB,C"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _WithBaseDispatchScreen = _interopRequireDefault(require("./WithBaseDispatchScreen"));
|
|
11
|
+
|
|
12
|
+
var _ExecutionTasksIndex = require("../../components/executiontasks/ExecutionTasksIndex");
|
|
13
|
+
|
|
14
|
+
var _ETConfig = require("../../models/execTasks/ETConfig");
|
|
15
|
+
|
|
16
|
+
var _DispatchStateContainer = _interopRequireDefault(require("../../manager/dispatch/DispatchStateContainer"));
|
|
17
|
+
|
|
18
|
+
var _RouteParams = require("../uiConfig/RouteParams");
|
|
19
|
+
|
|
20
|
+
var _reactNative = require("react-native");
|
|
21
|
+
|
|
22
|
+
var _CancelOrderDialog = _interopRequireDefault(require("../../components/widgets/CancelOrderDialog"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
32
|
+
function getTotalExpected(nextStates) {
|
|
33
|
+
let totalAmount = 0;
|
|
34
|
+
|
|
35
|
+
for (const s of nextStates) {
|
|
36
|
+
totalAmount += s.nextState.data.input.expectedAmount.value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
value: totalAmount,
|
|
41
|
+
minorUnit: nextStates[0].nextState.data.input.expectedAmount.minorUnit,
|
|
42
|
+
currencyCode: nextStates[0].nextState.data.input.expectedAmount.currencyCode
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const DropCashScreen = _ref => {
|
|
47
|
+
let {
|
|
48
|
+
route,
|
|
49
|
+
navigation,
|
|
50
|
+
baseETProps
|
|
51
|
+
} = _ref;
|
|
52
|
+
const [showAlert, setShowAlert] = (0, _react.useState)(false);
|
|
53
|
+
const [sResponse, setResponse] = (0, _react.useState)();
|
|
54
|
+
const submitOutput = (0, _react.useCallback)(async etOutput => {
|
|
55
|
+
await _DispatchStateContainer.default.getInstance().navigateToNextTask(navigation, route, etOutput, etOutput.success, _ETConfig.EntityCode.DELIVER_CASH, _ETConfig.ExecutionTaskID.DELIVER_CASH, baseETProps, false);
|
|
56
|
+
}, [baseETProps, navigation, route]);
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
58
|
+
style: {
|
|
59
|
+
flex: 1
|
|
60
|
+
}
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement(_ExecutionTasksIndex.SLDropCash, _extends({}, route.params[_RouteParams.RouteParams.NEXT_STATES][0].nextState.data.input, {
|
|
62
|
+
expectedAmount: getTotalExpected(route.params[_RouteParams.RouteParams.NEXT_STATES]),
|
|
63
|
+
onSubmitET: async etOutput => {
|
|
64
|
+
if (etOutput.success) {
|
|
65
|
+
await submitOutput(etOutput);
|
|
66
|
+
} else {
|
|
67
|
+
setResponse(_prevState => {
|
|
68
|
+
setShowAlert(true);
|
|
69
|
+
return etOutput;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
})), /*#__PURE__*/_react.default.createElement(_CancelOrderDialog.default, {
|
|
74
|
+
visible: showAlert,
|
|
75
|
+
onSubmit: async value => {
|
|
76
|
+
if (value) {
|
|
77
|
+
setShowAlert(false);
|
|
78
|
+
await submitOutput(sResponse);
|
|
79
|
+
} else {
|
|
80
|
+
setShowAlert(false);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
var _default = (0, _WithBaseDispatchScreen.default)(DropCashScreen);
|
|
87
|
+
|
|
88
|
+
exports.default = _default;
|
|
89
|
+
//# sourceMappingURL=DropCashScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getTotalExpected","nextStates","totalAmount","s","nextState","data","input","expectedAmount","value","minorUnit","currencyCode","DropCashScreen","route","navigation","baseETProps","showAlert","setShowAlert","useState","sResponse","setResponse","submitOutput","useCallback","etOutput","DispatchStateContainer","getInstance","navigateToNextTask","success","EntityCode","DELIVER_CASH","ExecutionTaskID","flex","params","RouteParams","NEXT_STATES","_prevState","withBaseDispatchScreen"],"sources":["DropCashScreen.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { SLDropCash } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport type { ETAmount } from '../../components/executiontasks/payments/init/InitPaymentSchema';\nimport { View } from 'react-native';\nimport CancelOrderDialog from '../../components/widgets/CancelOrderDialog';\n\nfunction getTotalExpected(nextStates: any[]): ETAmount {\n let totalAmount = 0;\n for (const s of nextStates) {\n totalAmount += s.nextState.data.input.expectedAmount.value;\n }\n return {\n value: totalAmount,\n minorUnit: nextStates[0].nextState.data.input.expectedAmount.minorUnit,\n currencyCode:\n nextStates[0].nextState.data.input.expectedAmount.currencyCode,\n };\n}\n\nconst DropCashScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [showAlert, setShowAlert] = useState(false);\n const [sResponse, setResponse] = useState<any>();\n const submitOutput = useCallback(\n async (etOutput: any) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n etOutput,\n etOutput.success,\n EntityCode.DELIVER_CASH,\n ExecutionTaskID.DELIVER_CASH,\n baseETProps,\n false\n );\n },\n [baseETProps, navigation, route]\n );\n return (\n <View style={{ flex: 1 }}>\n <SLDropCash\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n expectedAmount={getTotalExpected(route.params[RouteParams.NEXT_STATES])}\n onSubmitET={async (etOutput) => {\n if (etOutput.success) {\n await submitOutput(etOutput);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return etOutput;\n });\n }\n }}\n />\n <CancelOrderDialog\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n};\nexport default withBaseDispatchScreen(DropCashScreen);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,SAASA,gBAAT,CAA0BC,UAA1B,EAAuD;EACrD,IAAIC,WAAW,GAAG,CAAlB;;EACA,KAAK,MAAMC,CAAX,IAAgBF,UAAhB,EAA4B;IAC1BC,WAAW,IAAIC,CAAC,CAACC,SAAF,CAAYC,IAAZ,CAAiBC,KAAjB,CAAuBC,cAAvB,CAAsCC,KAArD;EACD;;EACD,OAAO;IACLA,KAAK,EAAEN,WADF;IAELO,SAAS,EAAER,UAAU,CAAC,CAAD,CAAV,CAAcG,SAAd,CAAwBC,IAAxB,CAA6BC,KAA7B,CAAmCC,cAAnC,CAAkDE,SAFxD;IAGLC,YAAY,EACVT,UAAU,CAAC,CAAD,CAAV,CAAcG,SAAd,CAAwBC,IAAxB,CAA6BC,KAA7B,CAAmCC,cAAnC,CAAkDG;EAJ/C,CAAP;AAMD;;AAED,MAAMC,cAAc,GAAG,QAQjB;EAAA,IARkB;IACtBC,KADsB;IAEtBC,UAFsB;IAGtBC;EAHsB,CAQlB;EACJ,MAAM,CAACC,SAAD,EAAYC,YAAZ,IAA4B,IAAAC,eAAA,EAAS,KAAT,CAAlC;EACA,MAAM,CAACC,SAAD,EAAYC,WAAZ,IAA2B,IAAAF,eAAA,GAAjC;EACA,MAAMG,YAAY,GAAG,IAAAC,kBAAA,EACnB,MAAOC,QAAP,IAAyB;IACvB,MAAMC,+BAAA,CAAuBC,WAAvB,GAAqCC,kBAArC,CACJZ,UADI,EAEJD,KAFI,EAGJU,QAHI,EAIJA,QAAQ,CAACI,OAJL,EAKJC,oBAAA,CAAWC,YALP,EAMJC,yBAAA,CAAgBD,YANZ,EAOJd,WAPI,EAQJ,KARI,CAAN;EAUD,CAZkB,EAanB,CAACA,WAAD,EAAcD,UAAd,EAA0BD,KAA1B,CAbmB,CAArB;EAeA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAE;MAAEkB,IAAI,EAAE;IAAR;EAAb,gBACE,6BAAC,+BAAD,eACMlB,KAAK,CAACmB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,EAAsC,CAAtC,EAAyC7B,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,cAAc,EAAEN,gBAAgB,CAACY,KAAK,CAACmB,MAAN,CAAaC,wBAAA,CAAYC,WAAzB,CAAD,CAFlC;IAGE,UAAU,EAAE,MAAOX,QAAP,IAAoB;MAC9B,IAAIA,QAAQ,CAACI,OAAb,EAAsB;QACpB,MAAMN,YAAY,CAACE,QAAD,CAAlB;MACD,CAFD,MAEO;QACLH,WAAW,CAAEe,UAAD,IAAqB;UAC/BlB,YAAY,CAAC,IAAD,CAAZ;UACA,OAAOM,QAAP;QACD,CAHU,CAAX;MAID;IACF;EAZH,GADF,eAeE,6BAAC,0BAAD;IACE,OAAO,EAAEP,SADX;IAEE,QAAQ,EAAE,MAAOP,KAAP,IAAiB;MACzB,IAAIA,KAAJ,EAAW;QACTQ,YAAY,CAAC,KAAD,CAAZ;QACA,MAAMI,YAAY,CAACF,SAAD,CAAlB;MACD,CAHD,MAGO;QACLF,YAAY,CAAC,KAAD,CAAZ;MACD;IACF;EATH,EAfF,CADF;AA6BD,CAvDD;;eAwDe,IAAAmB,+BAAA,EAAuBxB,cAAvB,C"}
|