@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 @@
|
|
|
1
|
+
{"version":3,"names":["Image","StyleSheet","View","React","useCallback","useState","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","Button","Modal","Paragraph","Portal","Provider","Text","Title","CommonStyles","DeliverPickupStyles","Fonts","DisplayModalET","etProps","modalVisible","setModalVisible","showDialog","sendEtOutput","success","onSubmit","DISPLAY","mainContainer","modalContent","modalView","displayType","styles","warningTitle","title","alertTitle","messageTitle","text","messageText","message","image","imageView","width","height","uri","buttons","nextButtonLabel","nextButton","marginBottom","positiveBtn","negativeBtn","cancelButtonLabel","cancelButton","marginTop","create","fontFamily","IBMPlexSans_600SemiBold","textAlign","color","IBMPlexSans_400Regular","fontSize","flexDirection","padding"],"sources":["DisplayModalET.tsx"],"sourcesContent":["import type { DisplayETInput } from './DisplaySchema';\nimport { Image, StyleSheet, View } from 'react-native';\nimport React, { useCallback, useState } from 'react';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport {\n Button,\n Modal,\n Paragraph,\n Portal,\n Provider,\n Text,\n Title,\n} from 'react-native-paper';\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\n\nconst DisplayModalET = (etProps: DisplayETInput) => {\n const [modalVisible, setModalVisible] = useState(etProps.showDialog);\n const sendEtOutput = useCallback(\n async (success: boolean) => {\n setModalVisible(false);\n etProps.onSubmit({\n ...(await getBaseETResponse(\n EntityCode.DISPLAY,\n success,\n getEventCodeByET(ExecutionTaskID.DISPLAY, success),\n ''\n )),\n });\n },\n [etProps]\n );\n\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n dismissable={false}\n visible={modalVisible}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n {etProps.displayType === 'WARNING' && (\n <Title style={styles.warningTitle}>{etProps.title}!</Title>\n )}\n {etProps.displayType === 'ALERT' && (\n <Title style={styles.alertTitle}>{etProps.title}</Title>\n )}\n {etProps.displayType === 'MESSAGE' && (\n <Title style={styles.messageTitle}>{etProps.title}</Title>\n )}\n {etProps.text && (\n <Paragraph style={styles.messageText}>{etProps.text}</Paragraph>\n )}\n {etProps.message && (\n <Text style={[styles.messageText]}>{etProps.message}</Text>\n )}\n {etProps.image && (\n <View style={styles.imageView}>\n <Image\n source={{\n width: 200,\n height: 300,\n uri: etProps.image,\n }}\n />\n </View>\n )}\n <View style={styles.buttons}>\n <Button\n mode={'outlined'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[\n CommonStyles.nextButton,\n {\n marginBottom: 5,\n },\n ]}\n onPress={async () => {\n await sendEtOutput(true);\n }}\n testID=\"primary\"\n >\n {etProps.positiveBtn}\n </Button>\n {etProps.negativeBtn && (\n <Button\n uppercase={false}\n mode={'outlined'}\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n onPress={async () => {\n await sendEtOutput(false);\n }}\n testID=\"secondary\"\n >\n {etProps.negativeBtn}\n </Button>\n )}\n </View>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default DisplayModalET;\n\nconst styles = StyleSheet.create({\n warningTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#856404',\n },\n messageTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#000000',\n },\n alertTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: 'red',\n },\n messageText: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n marginTop: 20,\n fontSize: 16,\n textAlign: 'center',\n color: '#004085',\n },\n buttons: {\n marginTop: 25,\n flexDirection: 'column',\n },\n imageView: {\n padding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EAAE;EADA;AAjCoB,CAAlB,CAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["DisplaySchema.ts"],"sourcesContent":["import type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\n/**\n * Type of display\n */\nexport type DisplayType = 'ALERT' | 'WARNING' | 'MESSAGE';\n/**\n * Text to be displayed\n */\nexport type DisplayText = string;\n/**\n * Url of image to be displayed\n */\nexport type DisplayImageURL = string;\n\nexport type DisplayETInput = BaseETRequest & {\n showDialog: boolean;\n displayType: DisplayType;\n text?: DisplayText;\n image?: DisplayImageURL;\n positiveBtn: string;\n negativeBtn?: string;\n onSubmit: (displayOutput: DisplayETOutput) => void;\n};\n\nexport type DisplayETOutput = BaseETResponse;\n"],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function getJobIDs(nextStates) {
|
|
2
|
+
let result = [];
|
|
3
|
+
if (!nextStates || nextStates.length === 0) return result;else {
|
|
4
|
+
nextStates.forEach(s => {
|
|
5
|
+
result.push(s.jobId);
|
|
6
|
+
});
|
|
7
|
+
return result;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export function getObjectiveRefs(nextStates) {
|
|
11
|
+
let result = [];
|
|
12
|
+
if (!nextStates || nextStates.length === 0) return result;else {
|
|
13
|
+
nextStates.forEach(s => {
|
|
14
|
+
result.push(s.objRef);
|
|
15
|
+
});
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=DoodleUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getJobIDs","nextStates","result","length","forEach","s","push","jobId","getObjectiveRefs","objRef"],"sources":["DoodleUtils.ts"],"sourcesContent":["import type { stateWithObjRef } from '../../../models/DispatchModels';\n\nexport function getJobIDs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.jobId);\n });\n return result;\n }\n}\n\nexport function getObjectiveRefs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.objRef);\n });\n return result;\n }\n}\n"],"mappings":"AAEA,OAAO,SAASA,SAAT,CAAmBC,UAAnB,EAA4D;EACjE,IAAIC,MAAgB,GAAG,EAAvB;EACA,IAAI,CAACD,UAAD,IAAeA,UAAU,CAACE,MAAX,KAAsB,CAAzC,EAA4C,OAAOD,MAAP,CAA5C,KACK;IACHD,UAAU,CAACG,OAAX,CAAoBC,CAAD,IAAO;MACxBH,MAAM,CAACI,IAAP,CAAYD,CAAC,CAACE,KAAd;IACD,CAFD;IAGA,OAAOL,MAAP;EACD;AACF;AAED,OAAO,SAASM,gBAAT,CAA0BP,UAA1B,EAAmE;EACxE,IAAIC,MAAgB,GAAG,EAAvB;EACA,IAAI,CAACD,UAAD,IAAeA,UAAU,CAACE,MAAX,KAAsB,CAAzC,EAA4C,OAAOD,MAAP,CAA5C,KACK;IACHD,UAAU,CAACG,OAAX,CAAoBC,CAAD,IAAO;MACxBH,MAAM,CAACI,IAAP,CAAYD,CAAC,CAACI,MAAd;IACD,CAFD;IAGA,OAAOP,MAAP;EACD;AACF"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
import { Button } from 'react-native-paper';
|
|
4
|
+
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
5
|
+
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
6
|
+
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
7
|
+
import { showToast } from '../../widgets/Toaster';
|
|
8
|
+
import DispatchSdkCache from '../../../manager/sdk/DispatchSdkCache';
|
|
9
|
+
import { CommonStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
10
|
+
import { insertDocumentInDB } from '../../../utils/SyncManagerUtils';
|
|
11
|
+
import SignatureCapture from '../../../native/signature/SignatureCapture';
|
|
12
|
+
import SdkColors, { ColorTheme } from '../../../styles/SdkColors';
|
|
13
|
+
import { DEFAULT_SIGN_ET_MESSAGE } from '../../../constants/constants';
|
|
14
|
+
|
|
15
|
+
const SignatureET = props => {
|
|
16
|
+
const signatureViewRef = useRef();
|
|
17
|
+
const [dragged, setDragged] = useState(0);
|
|
18
|
+
|
|
19
|
+
async function saveAndSubmit(cancel, image) {
|
|
20
|
+
if (cancel) {
|
|
21
|
+
props.onSubmitET({ ...(await getBaseETResponse(EntityCode.DOODLE, false, getEventCodeByET(ExecutionTaskID.DOODLE, false), ''))
|
|
22
|
+
});
|
|
23
|
+
} else {
|
|
24
|
+
if (image != null) {
|
|
25
|
+
const fileName = `SIG_${Date.now().toString()}.jpg`;
|
|
26
|
+
const folderName = (await DispatchSdkCache.getInstance().getKeyFromCache(DispatchSdkCache.KEYS.FMS_FOLDER)) ?? 'NULL';
|
|
27
|
+
let insertID = await insertDocumentInDB(fileName, folderName, JSON.stringify(props.jobIDs), JSON.stringify(props.objRefs), image, props.title ?? 'Signature', null);
|
|
28
|
+
|
|
29
|
+
if (insertID) {
|
|
30
|
+
props.onSubmitET({
|
|
31
|
+
url: '',
|
|
32
|
+
file: {
|
|
33
|
+
folder: folderName,
|
|
34
|
+
name: fileName
|
|
35
|
+
},
|
|
36
|
+
...(await getBaseETResponse(EntityCode.DOODLE, true, getEventCodeByET(ExecutionTaskID.DOODLE, true), ''))
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
showToast('Failed to save signature');
|
|
40
|
+
}
|
|
41
|
+
} else {
|
|
42
|
+
showToast('Please enter signature!');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
48
|
+
style: styles.mainContainer
|
|
49
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
50
|
+
style: styles.doodleView
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
52
|
+
style: styles.messageText
|
|
53
|
+
}, props.message || DEFAULT_SIGN_ET_MESSAGE), /*#__PURE__*/React.createElement(View, {
|
|
54
|
+
style: styles.horizontalLine
|
|
55
|
+
}), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
56
|
+
onPress: () => {
|
|
57
|
+
var _signatureViewRef$cur;
|
|
58
|
+
|
|
59
|
+
setDragged(0);
|
|
60
|
+
(_signatureViewRef$cur = signatureViewRef.current) === null || _signatureViewRef$cur === void 0 ? void 0 : _signatureViewRef$cur.resetImage();
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
63
|
+
style: styles.clearBtn
|
|
64
|
+
}, 'Clear'))), /*#__PURE__*/React.createElement(View, {
|
|
65
|
+
style: {
|
|
66
|
+
flex: 1
|
|
67
|
+
}
|
|
68
|
+
}, /*#__PURE__*/React.createElement(SignatureCapture, {
|
|
69
|
+
ref: signatureViewRef,
|
|
70
|
+
rotateClockwise: false,
|
|
71
|
+
square: false,
|
|
72
|
+
viewMode: 'PORTRAIT',
|
|
73
|
+
showBorder: false,
|
|
74
|
+
showNativeButtons: false,
|
|
75
|
+
showTitleLabel: false,
|
|
76
|
+
maxSize: Math.max(props.resolution.length, props.resolution.breadth),
|
|
77
|
+
minStrokeWidth: 8,
|
|
78
|
+
maxStrokeWidth: 6,
|
|
79
|
+
strokeColor: props.penColor ?? 'black',
|
|
80
|
+
backgroundColor: 'white',
|
|
81
|
+
onSaveEvent: async result => {
|
|
82
|
+
if (dragged > 0) {
|
|
83
|
+
await saveAndSubmit(false, result.encoded);
|
|
84
|
+
} else {
|
|
85
|
+
showToast('Please enter signature');
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
onDragEvent: drag => {
|
|
89
|
+
if (drag.dragged) setDragged(prevState => prevState + 1);
|
|
90
|
+
}
|
|
91
|
+
}))), /*#__PURE__*/React.createElement(View, {
|
|
92
|
+
style: styles.bottomButtons
|
|
93
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
94
|
+
style: [CommonStyles.cancelButton, {
|
|
95
|
+
flex: 1,
|
|
96
|
+
marginEnd: 5
|
|
97
|
+
}],
|
|
98
|
+
labelStyle: CommonStyles.cancelButtonLabel,
|
|
99
|
+
mode: 'outlined',
|
|
100
|
+
onPress: async () => {
|
|
101
|
+
await saveAndSubmit(true, '');
|
|
102
|
+
}
|
|
103
|
+
}, "Skip"), /*#__PURE__*/React.createElement(Button, {
|
|
104
|
+
labelStyle: CommonStyles.nextButtonLabel,
|
|
105
|
+
style: [CommonStyles.nextButton, {
|
|
106
|
+
flex: 1,
|
|
107
|
+
marginStart: 5
|
|
108
|
+
}],
|
|
109
|
+
mode: 'contained',
|
|
110
|
+
onPress: async () => {
|
|
111
|
+
var _signatureViewRef$cur2;
|
|
112
|
+
|
|
113
|
+
return (_signatureViewRef$cur2 = signatureViewRef.current) === null || _signatureViewRef$cur2 === void 0 ? void 0 : _signatureViewRef$cur2.saveImage();
|
|
114
|
+
}
|
|
115
|
+
}, "Proceed")));
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const styles = StyleSheet.create({
|
|
119
|
+
horizontalLine: {
|
|
120
|
+
backgroundColor: '#DDDDDD',
|
|
121
|
+
width: '100%',
|
|
122
|
+
height: 1,
|
|
123
|
+
marginTop: 13,
|
|
124
|
+
marginBottom: 15
|
|
125
|
+
},
|
|
126
|
+
doodleView: {
|
|
127
|
+
flex: 1,
|
|
128
|
+
padding: 20
|
|
129
|
+
},
|
|
130
|
+
mainContainer: {
|
|
131
|
+
flex: 1,
|
|
132
|
+
backgroundColor: '#ffffff'
|
|
133
|
+
},
|
|
134
|
+
bottomButtons: {
|
|
135
|
+
justifyContent: 'flex-end',
|
|
136
|
+
marginBottom: 10,
|
|
137
|
+
flexDirection: 'row',
|
|
138
|
+
marginStart: 10,
|
|
139
|
+
marginEnd: 10
|
|
140
|
+
},
|
|
141
|
+
clearBtn: {
|
|
142
|
+
color: SdkColors[ColorTheme.LIGHT].primaryButton,
|
|
143
|
+
fontFamily: Fonts.IBMPlexSans_600SemiBold,
|
|
144
|
+
fontSize: 15,
|
|
145
|
+
justifyContent: 'flex-end',
|
|
146
|
+
textAlign: 'right'
|
|
147
|
+
},
|
|
148
|
+
messageText: {
|
|
149
|
+
fontSize: 16,
|
|
150
|
+
lineHeight: 20,
|
|
151
|
+
color: '#474A57',
|
|
152
|
+
fontFamily: Fonts.IBMPlexSans_400Regular
|
|
153
|
+
},
|
|
154
|
+
messageText2: {
|
|
155
|
+
flex: 1,
|
|
156
|
+
fontSize: 16,
|
|
157
|
+
lineHeight: 20,
|
|
158
|
+
color: '#999999',
|
|
159
|
+
fontFamily: Fonts.IBMPlexSans_400Regular
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
export default SignatureET;
|
|
163
|
+
//# sourceMappingURL=SignatureET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useRef","useState","StyleSheet","Text","TouchableOpacity","View","Button","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","showToast","DispatchSdkCache","CommonStyles","Fonts","insertDocumentInDB","SignatureCapture","SdkColors","ColorTheme","DEFAULT_SIGN_ET_MESSAGE","SignatureET","props","signatureViewRef","dragged","setDragged","saveAndSubmit","cancel","image","onSubmitET","DOODLE","fileName","Date","now","toString","folderName","getInstance","getKeyFromCache","KEYS","FMS_FOLDER","insertID","JSON","stringify","jobIDs","objRefs","title","url","file","folder","name","styles","mainContainer","doodleView","messageText","message","horizontalLine","current","resetImage","clearBtn","flex","Math","max","resolution","length","breadth","penColor","result","encoded","drag","prevState","bottomButtons","cancelButton","marginEnd","cancelButtonLabel","nextButtonLabel","nextButton","marginStart","saveImage","create","backgroundColor","width","height","marginTop","marginBottom","padding","justifyContent","flexDirection","color","LIGHT","primaryButton","fontFamily","IBMPlexSans_600SemiBold","fontSize","textAlign","lineHeight","IBMPlexSans_400Regular","messageText2"],"sources":["SignatureET.tsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\nimport type { SignatureInput } from './SignatureSchema';\nimport { Button } from 'react-native-paper';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { showToast } from '../../widgets/Toaster';\nimport DispatchSdkCache from '../../../manager/sdk/DispatchSdkCache';\nimport {\n CommonStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { insertDocumentInDB } from '../../../utils/SyncManagerUtils';\nimport SignatureCapture from '../../../native/signature/SignatureCapture';\nimport SdkColors, { ColorTheme } from '../../../styles/SdkColors';\nimport { DEFAULT_SIGN_ET_MESSAGE } from '../../../constants/constants';\n\nconst SignatureET = (props: SignatureInput) => {\n const signatureViewRef = useRef<any>();\n const [dragged, setDragged] = useState(0);\n\n async function saveAndSubmit(cancel: boolean, image: string) {\n if (cancel) {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DOODLE,\n false,\n getEventCodeByET(ExecutionTaskID.DOODLE, false),\n ''\n )),\n });\n } else {\n if (image != null) {\n const fileName = `SIG_${Date.now().toString()}.jpg`;\n const folderName =\n (await DispatchSdkCache.getInstance().getKeyFromCache(\n DispatchSdkCache.KEYS.FMS_FOLDER\n )) ?? 'NULL';\n let insertID = await insertDocumentInDB(\n fileName,\n folderName,\n JSON.stringify(props.jobIDs),\n JSON.stringify(props.objRefs),\n image,\n props.title ?? 'Signature',\n null\n );\n if (insertID) {\n props.onSubmitET({\n url: '',\n file: {\n folder: folderName,\n name: fileName,\n },\n ...(await getBaseETResponse(\n EntityCode.DOODLE,\n true,\n getEventCodeByET(ExecutionTaskID.DOODLE, true),\n ''\n )),\n });\n } else {\n showToast('Failed to save signature');\n }\n } else {\n showToast('Please enter signature!');\n }\n }\n }\n\n return (\n <View style={styles.mainContainer}>\n <View style={styles.doodleView}>\n <Text style={styles.messageText}>\n {props.message || DEFAULT_SIGN_ET_MESSAGE}\n </Text>\n <View style={styles.horizontalLine} />\n <View>\n {/* <Text style={styles.messageText2}>{'Received by'}</Text> */}\n <TouchableOpacity\n onPress={() => {\n setDragged(0);\n signatureViewRef.current?.resetImage();\n }}\n >\n <Text style={styles.clearBtn}>{'Clear'}</Text>\n </TouchableOpacity>\n </View>\n <View style={{ flex: 1 }}>\n <SignatureCapture\n ref={signatureViewRef}\n rotateClockwise={false}\n square={false}\n viewMode={'PORTRAIT'}\n showBorder={false}\n showNativeButtons={false}\n showTitleLabel={false}\n maxSize={Math.max(\n props.resolution.length,\n props.resolution.breadth\n )}\n minStrokeWidth={8}\n maxStrokeWidth={6}\n strokeColor={props.penColor ?? 'black'}\n backgroundColor={'white'}\n onSaveEvent={async (result) => {\n if (dragged > 0) {\n await saveAndSubmit(false, result.encoded);\n } else {\n showToast('Please enter signature');\n }\n }}\n onDragEvent={(drag) => {\n if (drag.dragged) setDragged((prevState) => prevState + 1);\n }}\n />\n </View>\n </View>\n <View style={styles.bottomButtons}>\n <Button\n style={[CommonStyles.cancelButton, { flex: 1, marginEnd: 5 }]}\n labelStyle={CommonStyles.cancelButtonLabel}\n mode={'outlined'}\n onPress={async () => {\n await saveAndSubmit(true, '');\n }}\n >\n Skip\n </Button>\n <Button\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { flex: 1, marginStart: 5 }]}\n mode={'contained'}\n onPress={async () => signatureViewRef.current?.saveImage()}\n >\n Proceed\n </Button>\n </View>\n </View>\n );\n};\nconst styles = StyleSheet.create({\n horizontalLine: {\n backgroundColor: '#DDDDDD',\n width: '100%',\n height: 1,\n marginTop: 13,\n marginBottom: 15,\n },\n doodleView: {\n flex: 1,\n padding: 20,\n },\n mainContainer: {\n flex: 1,\n backgroundColor: '#ffffff',\n },\n bottomButtons: {\n justifyContent: 'flex-end',\n marginBottom: 10,\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n },\n clearBtn: {\n color: SdkColors[ColorTheme.LIGHT].primaryButton,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 15,\n justifyContent: 'flex-end',\n textAlign: 'right',\n },\n messageText: {\n fontSize: 16,\n lineHeight: 20,\n color: '#474A57',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n },\n messageText2: {\n flex: 1,\n fontSize: 16,\n lineHeight: 20,\n color: '#999999',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n },\n});\nexport default SignatureET;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,MAAhB,EAAwBC,QAAxB,QAAwC,OAAxC;AACA,SAASC,UAAT,EAAqBC,IAArB,EAA2BC,gBAA3B,EAA6CC,IAA7C,QAAyD,cAAzD;AAEA,SAASC,MAAT,QAAuB,oBAAvB;AACA,SAASC,iBAAT,QAAkC,8BAAlC;AACA,SAASC,gBAAT,QAAiC,mDAAjC;AACA,SACEC,UADF,EAEEC,eAFF,QAGO,oCAHP;AAIA,SAASC,SAAT,QAA0B,uBAA1B;AACA,OAAOC,gBAAP,MAA6B,uCAA7B;AACA,SACEC,YADF,EAEEC,KAFF,QAGO,6CAHP;AAIA,SAASC,kBAAT,QAAmC,iCAAnC;AACA,OAAOC,gBAAP,MAA6B,4CAA7B;AACA,OAAOC,SAAP,IAAoBC,UAApB,QAAsC,2BAAtC;AACA,SAASC,uBAAT,QAAwC,8BAAxC;;AAEA,MAAMC,WAAW,GAAIC,KAAD,IAA2B;EAC7C,MAAMC,gBAAgB,GAAGtB,MAAM,EAA/B;EACA,MAAM,CAACuB,OAAD,EAAUC,UAAV,IAAwBvB,QAAQ,CAAC,CAAD,CAAtC;;EAEA,eAAewB,a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IAAI,EAAE,CADO;IAEboB,eAAe,EAAE;EAFJ,CAZgB;EAgB/BT,aAAa,EAAE;IACbe,cAAc,EAAE,UADH;IAEbF,YAAY,EAAE,EAFD;IAGbG,aAAa,EAAE,KAHF;IAIbV,WAAW,EAAE,EAJA;IAKbJ,SAAS,EAAE;EALE,CAhBgB;EAuB/Bd,QAAQ,EAAE;IACR6B,KAAK,EAAErE,SAAS,CAACC,UAAU,CAACqE,KAAZ,CAAT,CAA4BC,aAD3B;IAERC,UAAU,EAAE3E,KAAK,CAAC4E,uBAFV;IAGRC,QAAQ,EAAE,EAHF;IAIRP,cAAc,EAAE,UAJR;IAKRQ,SAAS,EAAE;EALH,CAvBqB;EA8B/BxC,WAAW,EAAE;IACXuC,QAAQ,EAAE,EADC;IAEXE,UAAU,EAAE,EAFD;IAGXP,KAAK,EAAE,SAHI;IAIXG,UAAU,EAAE3E,KAAK,CAACgF;EAJP,CA9BkB;EAoC/BC,YAAY,EAAE;IACZrC,IAAI,EAAE,CADM;IAEZiC,QAAQ,EAAE,EAFE;IAGZE,UAAU,EAAE,EAHA;IAIZP,KAAK,EAAE,SAJK;IAKZG,UAAU,EAAE3E,KAAK,CAACgF;EALN;AApCiB,CAAlB,CAAf;AA4CA,eAAe1E,WAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["SignatureSchema.ts"],"sourcesContent":["/**\n * Length (in cm)\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type Length = number;\n/**\n * Breadth (in cm)\n */\nexport type Breadth = number;\n/**\n * Maximum Size limit (in kb) of doodle image\n */\nexport type MaxFileSize = number;\n/**\n * Pen colour hex code\n */\nexport type PenColor = string;\n/**\n * Any manual instruction to display for the Operator\n */\nexport type Instruction = string;\n\nexport type SignatureInput = BaseETRequest & {\n resolution: Dimension;\n fileSizeLimit: MaxFileSize;\n penColor?: PenColor;\n onSubmitET: (value: SignatureOutput) => void;\n} & {\n jobIDs: string[];\n objRefs: string[];\n};\n/**\n * Dimensions of doodle image\n */\nexport interface Dimension {\n length: Length;\n breadth: Breadth;\n}\nexport interface SignatureBaseResponse {\n /**\n * Url of doodle image\n */\n url?: string;\n file?: { folder: string; name: string };\n}\n\nexport type SignatureOutput = BaseETResponse & SignatureBaseResponse;\n"],"mappings":""}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { KeyboardAvoidingView, ScrollView, Text, View } from 'react-native';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Button, TextInput } from 'react-native-paper';
|
|
4
|
+
import { PaymentStyles } from '../payments/PaymentStyles';
|
|
5
|
+
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
6
|
+
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
7
|
+
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
8
|
+
import { isEmptyOrBlank } from '../../../utils/utils';
|
|
9
|
+
import { CommonStyles } from '../../../styles/executionTasks/CommonStyles';
|
|
10
|
+
import { getPaymentValue } from '../payments/PaymentUtils';
|
|
11
|
+
const styles = PaymentStyles;
|
|
12
|
+
|
|
13
|
+
const DropCashET = props => {
|
|
14
|
+
const [amountCollected, setAmountCollected] = useState('');
|
|
15
|
+
const [inputError, setInputError] = useState('');
|
|
16
|
+
const [disableNext, setDisableNext] = useState(false);
|
|
17
|
+
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
18
|
+
style: CommonStyles.mainContainer
|
|
19
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
20
|
+
style: CommonStyles.mainContainer
|
|
21
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
22
|
+
style: CommonStyles.mainContainer
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
24
|
+
style: styles.textStyle1
|
|
25
|
+
}, "AMOUNT TO DEPOSIT"), /*#__PURE__*/React.createElement(Text, {
|
|
26
|
+
style: styles.amountStyle
|
|
27
|
+
}, props.expectedAmount.currencyCode + ' ' + getPaymentValue(props.expectedAmount.value, props.expectedAmount.minorUnit)), /*#__PURE__*/React.createElement(View, {
|
|
28
|
+
style: {
|
|
29
|
+
marginTop: 20,
|
|
30
|
+
paddingTop: 10,
|
|
31
|
+
paddingStart: 20,
|
|
32
|
+
paddingEnd: 20,
|
|
33
|
+
backgroundColor: 'white',
|
|
34
|
+
paddingBottom: 40
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
37
|
+
multiline: false,
|
|
38
|
+
autoComplete: 'off',
|
|
39
|
+
label: "Enter amount",
|
|
40
|
+
value: amountCollected,
|
|
41
|
+
mode: 'outlined',
|
|
42
|
+
error: !isEmptyOrBlank(inputError),
|
|
43
|
+
selectionColor: '#6200EE',
|
|
44
|
+
keyboardType: 'numeric',
|
|
45
|
+
onChangeText: text => {
|
|
46
|
+
setInputError('');
|
|
47
|
+
setAmountCollected(text);
|
|
48
|
+
}
|
|
49
|
+
}), !isEmptyOrBlank(inputError) && /*#__PURE__*/React.createElement(Text, {
|
|
50
|
+
style: {
|
|
51
|
+
color: '#B00020'
|
|
52
|
+
}
|
|
53
|
+
}, inputError)), props.message && /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: styles.textStyle1
|
|
55
|
+
}, "MESSAGE"), /*#__PURE__*/React.createElement(Text, {
|
|
56
|
+
style: styles.messageStyle
|
|
57
|
+
}, props.message)))), /*#__PURE__*/React.createElement(View, {
|
|
58
|
+
style: {
|
|
59
|
+
margin: 10
|
|
60
|
+
}
|
|
61
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
62
|
+
style: {
|
|
63
|
+
flexDirection: 'row'
|
|
64
|
+
}
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
66
|
+
style: [CommonStyles.cancelButton, {
|
|
67
|
+
flex: 1,
|
|
68
|
+
marginEnd: 5
|
|
69
|
+
}],
|
|
70
|
+
labelStyle: CommonStyles.cancelButtonLabel,
|
|
71
|
+
mode: 'outlined',
|
|
72
|
+
onPress: async () => {
|
|
73
|
+
props.onSubmitET({ ...(await getBaseETResponse(EntityCode.DELIVER_CASH, false, getEventCodeByET(ExecutionTaskID.DELIVER_CASH, false), ''))
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}, "Cancel"), /*#__PURE__*/React.createElement(Button, {
|
|
77
|
+
disabled: disableNext,
|
|
78
|
+
style: [CommonStyles.nextButton, {
|
|
79
|
+
flex: 1,
|
|
80
|
+
marginStart: 5
|
|
81
|
+
}],
|
|
82
|
+
labelStyle: CommonStyles.nextButtonLabel,
|
|
83
|
+
mode: 'contained',
|
|
84
|
+
onPress: async () => {
|
|
85
|
+
if (!isEmptyOrBlank(amountCollected) && !Number.isNaN(+amountCollected)) {
|
|
86
|
+
const calculatedValue = getPaymentValue(props.expectedAmount.value, props.expectedAmount.minorUnit);
|
|
87
|
+
|
|
88
|
+
if (+amountCollected !== calculatedValue) {
|
|
89
|
+
setInputError(`Amount should be equal to ${calculatedValue}`);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
setDisableNext(true);
|
|
94
|
+
props.onSubmitET({
|
|
95
|
+
amount: {
|
|
96
|
+
value: props.expectedAmount.value,
|
|
97
|
+
currencyCode: props.expectedAmount.currencyCode,
|
|
98
|
+
minorUnit: props.expectedAmount.minorUnit
|
|
99
|
+
},
|
|
100
|
+
...(await getBaseETResponse(EntityCode.DELIVER_CASH, true, getEventCodeByET(ExecutionTaskID.DELIVER_CASH, true), ''))
|
|
101
|
+
});
|
|
102
|
+
} else setInputError('Please enter valid amount.');
|
|
103
|
+
}
|
|
104
|
+
}, "Drop Cash"))));
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export default DropCashET;
|
|
108
|
+
//# sourceMappingURL=DropCashET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["KeyboardAvoidingView","ScrollView","Text","View","React","useState","Button","TextInput","PaymentStyles","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","isEmptyOrBlank","CommonStyles","getPaymentValue","styles","DropCashET","props","amountCollected","setAmountCollected","inputError","setInputError","disableNext","setDisableNext","mainContainer","textStyle1","amountStyle","expectedAmount","currencyCode","value","minorUnit","marginTop","paddingTop","paddingStart","paddingEnd","backgroundColor","paddingBottom","text","color","message","messageStyle","margin","flexDirection","cancelButton","flex","marginEnd","cancelButtonLabel","onSubmitET","DELIVER_CASH","nextButton","marginStart","nextButtonLabel","Number","isNaN","calculatedValue","amount"],"sources":["DropCashET.tsx"],"sourcesContent":["import { KeyboardAvoidingView, ScrollView, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, TextInput } from 'react-native-paper';\nimport type { DropCashInput } from './DropCashSchema';\nimport { PaymentStyles } from '../payments/PaymentStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { CommonStyles } from '../../../styles/executionTasks/CommonStyles';\nimport { getPaymentValue } from '../payments/PaymentUtils';\n\nconst styles = PaymentStyles;\n\nconst DropCashET = (props: DropCashInput) => {\n const [amountCollected, setAmountCollected] = useState('');\n const [inputError, setInputError] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n return (\n <KeyboardAvoidingView style={CommonStyles.mainContainer}>\n <ScrollView style={CommonStyles.mainContainer}>\n <View style={CommonStyles.mainContainer}>\n <Text style={styles.textStyle1}>AMOUNT TO DEPOSIT</Text>\n <Text style={styles.amountStyle}>\n {props.expectedAmount.currencyCode +\n ' ' +\n getPaymentValue(\n props.expectedAmount.value,\n props.expectedAmount.minorUnit\n )}\n </Text>\n <View\n style={{\n marginTop: 20,\n paddingTop: 10,\n paddingStart: 20,\n paddingEnd: 20,\n backgroundColor: 'white',\n paddingBottom: 40,\n }}\n >\n <TextInput\n multiline={false}\n autoComplete={'off'}\n label=\"Enter amount\"\n value={amountCollected}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setAmountCollected(text);\n }}\n />\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n </View>\n {props.message && (\n <View>\n <Text style={styles.textStyle1}>MESSAGE</Text>\n <Text style={styles.messageStyle}>{props.message}</Text>\n </View>\n )}\n </View>\n </ScrollView>\n <View style={{ margin: 10 }}>\n <View style={{ flexDirection: 'row' }}>\n <Button\n style={[CommonStyles.cancelButton, { flex: 1, marginEnd: 5 }]}\n labelStyle={CommonStyles.cancelButtonLabel}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER_CASH,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER_CASH, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[CommonStyles.nextButton, { flex: 1, marginStart: 5 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n if (\n !isEmptyOrBlank(amountCollected) &&\n !Number.isNaN(+amountCollected)\n ) {\n const calculatedValue = getPaymentValue(\n props.expectedAmount.value,\n props.expectedAmount.minorUnit\n );\n if (+amountCollected !== calculatedValue) {\n setInputError(`Amount should be equal to ${calculatedValue}`);\n return;\n }\n setDisableNext(true);\n props.onSubmitET({\n amount: {\n value: props.expectedAmount.value,\n currencyCode: props.expectedAmount.currencyCode,\n minorUnit: props.expectedAmount.minorUnit,\n },\n ...(await getBaseETResponse(\n EntityCode.DELIVER_CASH,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER_CASH, true),\n ''\n )),\n });\n } else setInputError('Please enter valid amount.');\n }}\n >\n Drop Cash\n </Button>\n </View>\n </View>\n </KeyboardAvoidingView>\n );\n};\nexport default DropCashET;\n"],"mappings":"AAAA,SAASA,oBAAT,EAA+BC,UAA/B,EAA2CC,IAA3C,EAAiDC,IAAjD,QAA6D,cAA7D;AACA,OAAOC,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,SAASC,MAAT,EAAiBC,SAAjB,QAAkC,oBAAlC;AAEA,SAASC,aAAT,QAA8B,2BAA9B;AACA,SAASC,iBAAT,QAAkC,8BAAlC;AACA,SAASC,gBAAT,QAAiC,mDAAjC;AACA,SACEC,UADF,EAEEC,eAFF,QAGO,oCAHP;AAIA,SAASC,cAAT,QAA+B,sBAA/B;AACA,SAASC,YAAT,QAA6B,6CAA7B;AACA,SAASC,eAAT,QAAgC,0BAAhC;AAEA,MAAMC,MAAM,GAAGR,aAAf;;AAEA,MAAMS,UAAU,GAAIC,KAAD,IAA0B;EAC3C,MAAM,CAACC,eAAD,EAAkBC,kBAAlB,IAAwCf,QAAQ,CAAC,EAAD,CAAtD;EACA,MAAM,CAACgB,UAAD,EAAaC,aAAb,IAA8BjB,QAAQ,CAAC,EAAD,CAA5C;EACA,MAAM,CAACkB,WAAD,EAAcC,cAAd,IAAgCnB,QAAQ,CAAC,KAAD,CAA9C;EAEA,oBACE,oBAAC,oBAAD;IAAsB,KAAK,EAAES,YAAY,CAACW;EAA1C,gBACE,oBAAC,UAAD;IAAY,KAAK,EAAEX,YAAY,CAACW;EAAhC,gBACE,oBAAC,IAAD;IAAM,KAAK,EAAEX,YAAY,CAACW;EAA1B,gBACE,oBAAC,IAAD;IAAM,KAAK,EAAET,MAAM,CAACU;EAApB,uBADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEV,MAAM,CAACW;EAApB,GACGT,KAAK,CAACU,cAAN,CAAqBC,YAArB,GACC,GADD,GAECd,eAAe,CACbG,KAAK,CAACU,cAAN,CAAqBE,KADR,EAEbZ,KAAK,CAACU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AAjB,EAA+B,IAA/B,CAHS,EAIzB,EAJyB,CAA3B;QANe,CAAjB;MAaD,CA1BD,MA0BO3B,aAAa,CAAC,4BAAD,CAAb;IACR;EAjCH,eAlBF,CADF,CAhDF,CADF;AA6GD,CAlHD;;AAmHA,eAAeL,UAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["DropCashSchema.ts"],"sourcesContent":["/**\n * Amount to be collected\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\nimport type { ETAmount } from '../payments/init/InitPaymentSchema';\n\nexport type DropCashInput = BaseETRequest & {\n expectedAmount: ETAmount;\n confirmAmount?: boolean;\n onSubmitET: (etOutput: DropCashOutput) => void;\n confirmCustodyExchange?: boolean;\n};\n\nexport type DropCashOutput = BaseETResponse & {\n /**\n * Amount collected (ISO 4217)\n */\n amount?: ETAmount;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Button, Modal, Portal, Provider, TextInput } from 'react-native-paper';
|
|
2
|
+
import { Text, View } from 'react-native';
|
|
3
|
+
import { CommonStyles, DeliverPickupStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
4
|
+
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
5
|
+
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
6
|
+
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
import { isEmptyOrBlank } from '../../../utils/utils';
|
|
9
|
+
import { getPaymentValue } from '../payments/PaymentUtils';
|
|
10
|
+
|
|
11
|
+
const SLDropCash = etProps => {
|
|
12
|
+
const [amountCollected, setAmountCollected] = useState(etProps.confirmAmount ? '' : `${getPaymentValue(etProps.expectedAmount.value, etProps.expectedAmount.minorUnit)}`);
|
|
13
|
+
const [inputError, setInputError] = useState('');
|
|
14
|
+
const [disableNext, setDisableNext] = useState(false);
|
|
15
|
+
return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(View, {
|
|
16
|
+
style: DeliverPickupStyles.mainContainer
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Modal, {
|
|
18
|
+
visible: true,
|
|
19
|
+
dismissable: false,
|
|
20
|
+
contentContainerStyle: DeliverPickupStyles.modalContent
|
|
21
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
22
|
+
style: DeliverPickupStyles.modalView
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
24
|
+
style: DeliverPickupStyles.titleText
|
|
25
|
+
}, etProps.title), /*#__PURE__*/React.createElement(View, {
|
|
26
|
+
style: {
|
|
27
|
+
marginTop: 15,
|
|
28
|
+
marginBottom: 15,
|
|
29
|
+
flexDirection: 'row'
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
32
|
+
style: {
|
|
33
|
+
fontFamily: Fonts.IBMPlexSans_400Regular,
|
|
34
|
+
fontStyle: 'normal',
|
|
35
|
+
fontWeight: '400',
|
|
36
|
+
fontSize: 14,
|
|
37
|
+
flex: 1,
|
|
38
|
+
textAlign: 'left',
|
|
39
|
+
lineHeight: 28,
|
|
40
|
+
color: '#111111'
|
|
41
|
+
}
|
|
42
|
+
}, etProps.confirmCustodyExchange ? 'Expected Cash' : 'Return Amount'), /*#__PURE__*/React.createElement(Text, {
|
|
43
|
+
style: {
|
|
44
|
+
flex: 1,
|
|
45
|
+
textAlign: 'right',
|
|
46
|
+
fontSize: 14,
|
|
47
|
+
lineHeight: 28,
|
|
48
|
+
fontStyle: 'normal',
|
|
49
|
+
color: '#111111',
|
|
50
|
+
fontFamily: Fonts.IBMPlexSans_600SemiBold
|
|
51
|
+
}
|
|
52
|
+
}, etProps.expectedAmount.currencyCode + ' ' + getPaymentValue(etProps.expectedAmount.value, etProps.expectedAmount.minorUnit))), etProps.confirmAmount && /*#__PURE__*/React.createElement(TextInput, {
|
|
53
|
+
style: {
|
|
54
|
+
fontSize: 14,
|
|
55
|
+
lineHeight: 24,
|
|
56
|
+
fontFamily: Fonts.IBMPlexSans_400Regular
|
|
57
|
+
},
|
|
58
|
+
multiline: false,
|
|
59
|
+
autoComplete: 'off',
|
|
60
|
+
label: `Enter Amount(in ${etProps.expectedAmount.currencyCode})`,
|
|
61
|
+
value: amountCollected,
|
|
62
|
+
mode: 'outlined',
|
|
63
|
+
error: !isEmptyOrBlank(inputError),
|
|
64
|
+
selectionColor: '#6200EE',
|
|
65
|
+
keyboardType: 'numeric',
|
|
66
|
+
onChangeText: text => {
|
|
67
|
+
setInputError('');
|
|
68
|
+
setAmountCollected(text);
|
|
69
|
+
}
|
|
70
|
+
}), !isEmptyOrBlank(inputError) && /*#__PURE__*/React.createElement(Text, {
|
|
71
|
+
style: {
|
|
72
|
+
color: '#B00020'
|
|
73
|
+
}
|
|
74
|
+
}, inputError), /*#__PURE__*/React.createElement(Button, {
|
|
75
|
+
disabled: disableNext,
|
|
76
|
+
style: [CommonStyles.nextButton, {
|
|
77
|
+
marginTop: 20
|
|
78
|
+
}],
|
|
79
|
+
labelStyle: CommonStyles.nextButtonLabel,
|
|
80
|
+
uppercase: false,
|
|
81
|
+
mode: 'contained',
|
|
82
|
+
onPress: async () => {
|
|
83
|
+
if (!isEmptyOrBlank(amountCollected) && !Number.isNaN(+amountCollected)) {
|
|
84
|
+
const calculatedValue = getPaymentValue(etProps.expectedAmount.value, etProps.expectedAmount.minorUnit);
|
|
85
|
+
|
|
86
|
+
if (+amountCollected !== calculatedValue) {
|
|
87
|
+
setInputError(`Amount should be equal to ${calculatedValue}`);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
setDisableNext(true);
|
|
92
|
+
etProps.onSubmitET({
|
|
93
|
+
amount: {
|
|
94
|
+
value: etProps.expectedAmount.value,
|
|
95
|
+
currencyCode: etProps.expectedAmount.currencyCode,
|
|
96
|
+
minorUnit: etProps.expectedAmount.minorUnit
|
|
97
|
+
},
|
|
98
|
+
...(await getBaseETResponse(EntityCode.DELIVER_CASH, true, getEventCodeByET(ExecutionTaskID.DELIVER_CASH, true), ''))
|
|
99
|
+
});
|
|
100
|
+
} else setInputError('Please enter valid amount.');
|
|
101
|
+
}
|
|
102
|
+
}, "Confirm"), !etProps.confirmCustodyExchange && /*#__PURE__*/React.createElement(Button, {
|
|
103
|
+
labelStyle: CommonStyles.cancelButtonLabel,
|
|
104
|
+
style: [CommonStyles.cancelButton, {
|
|
105
|
+
marginTop: 10
|
|
106
|
+
}],
|
|
107
|
+
mode: 'outlined',
|
|
108
|
+
uppercase: false,
|
|
109
|
+
onPress: async () => {
|
|
110
|
+
etProps.onSubmitET({ ...(await getBaseETResponse(EntityCode.DELIVER_CASH, false, getEventCodeByET(ExecutionTaskID.DELIVER_CASH, false), ''))
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}, "Cancel"))))));
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export default SLDropCash;
|
|
117
|
+
//# sourceMappingURL=SLDropCash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Button","Modal","Portal","Provider","TextInput","Text","View","CommonStyles","DeliverPickupStyles","Fonts","getBaseETResponse","EntityCode","ExecutionTaskID","getEventCodeByET","React","useState","isEmptyOrBlank","getPaymentValue","SLDropCash","etProps","amountCollected","setAmountCollected","confirmAmount","expectedAmount","value","minorUnit","inputError","setInputError","disableNext","setDisableNext","mainContainer","modalContent","modalView","titleText","title","marginTop","marginBottom","flexDirection","fontFamily","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","flex","textAlign","lineHeight","color","confirmCustodyExchange","IBMPlexSans_600SemiBold","currencyCode","text","nextButton","nextButtonLabel","Number","isNaN","calculatedValue","onSubmitET","amount","DELIVER_CASH","cancelButtonLabel","cancelButton"],"sources":["SLDropCash.tsx"],"sourcesContent":["import { Button, Modal, Portal, Provider, TextInput } from 'react-native-paper';\nimport { Text, View } from 'react-native';\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport React, { useState } from 'react';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport type { DropCashInput } from './DropCashSchema';\nimport { getPaymentValue } from '../payments/PaymentUtils';\n\nconst SLDropCash = (etProps: DropCashInput) => {\n const [amountCollected, setAmountCollected] = useState(\n etProps.confirmAmount\n ? ''\n : `${getPaymentValue(\n etProps.expectedAmount.value,\n etProps.expectedAmount.minorUnit\n )}`\n );\n const [inputError, setInputError] = useState('');\n\n const [disableNext, setDisableNext] = useState(false);\n\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>{etProps.title}</Text>\n <View\n style={{\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n }}\n >\n <Text\n style={{\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n }}\n >\n {etProps.confirmCustodyExchange\n ? 'Expected Cash'\n : 'Return Amount'}\n </Text>\n <Text\n style={{\n flex: 1,\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n }}\n >\n {etProps.expectedAmount.currencyCode +\n ' ' +\n getPaymentValue(\n etProps.expectedAmount.value,\n etProps.expectedAmount.minorUnit\n )}\n </Text>\n </View>\n {etProps.confirmAmount && (\n <TextInput\n style={{\n fontSize: 14,\n lineHeight: 24,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n multiline={false}\n autoComplete={'off'}\n label={`Enter Amount(in ${etProps.expectedAmount.currencyCode})`}\n value={amountCollected}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setAmountCollected(text);\n }}\n />\n )}\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n <Button\n disabled={disableNext}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n if (\n !isEmptyOrBlank(amountCollected) &&\n !Number.isNaN(+amountCollected)\n ) {\n const calculatedValue = getPaymentValue(\n etProps.expectedAmount.value,\n etProps.expectedAmount.minorUnit\n );\n if (+amountCollected !== calculatedValue) {\n setInputError(\n `Amount should be equal to ${calculatedValue}`\n );\n return;\n }\n setDisableNext(true);\n etProps.onSubmitET({\n amount: {\n value: etProps.expectedAmount.value,\n currencyCode: etProps.expectedAmount.currencyCode,\n minorUnit: etProps.expectedAmount.minorUnit,\n },\n ...(await getBaseETResponse(\n EntityCode.DELIVER_CASH,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER_CASH, true),\n ''\n )),\n });\n } else setInputError('Please enter valid amount.');\n }}\n >\n Confirm\n </Button>\n {!etProps.confirmCustodyExchange && (\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n uppercase={false}\n onPress={async () => {\n etProps.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER_CASH,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER_CASH, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n )}\n </View>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CAAC8C,YAAjB,EAA+B,IAA/B,CAHS,EAIzB,EAJyB,CAA3B;QANiB,CAAnB;MAaD,CA5BD,MA4BO/B,aAAa,CAAC,4BAAD,CAAb;IACR;EApCH,aApEF,EA4GG,CAACR,OAAO,CAAC4B,sBAAT,iBACC,oBAAC,MAAD;IACE,UAAU,EAAExC,YAAY,CAACoD,iBAD3B;IAEE,KAAK,EAAE,CAACpD,YAAY,CAACqD,YAAd,EAA4B;MAAEzB,SAAS,EAAE;IAAb,CAA5B,CAFT;IAGE,IAAI,EAAE,UAHR;IAIE,SAAS,EAAE,KAJb;IAKE,OAAO,EAAE,YAAY;MACnBhB,OAAO,CAACqC,UAAR,CAAmB,EACjB,IAAI,MAAM9C,iBAAiB,CACzBC,UAAU,CAAC+C,YADc,EAEzB,KAFyB,EAGzB7C,gBAAgB,CAACD,eAAe,CAAC8C,YAAjB,EAA+B,KAA/B,CAHS,EAIzB,EAJyB,CAA3B;MADiB,CAAnB;IAQD;EAdH,YA7GJ,CALF,CADF,CADF,CADF,CADF;AA+ID,CA5JD;;AA6JA,eAAexC,UAAf"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { KeyboardAvoidingView, ScrollView, Text, View } from 'react-native';
|
|
3
|
+
import ReactNativeForm, { defaultProps, FormContext } from 'rjsf-native';
|
|
4
|
+
import DateTimeWidget from './widgets/DateTimeWidget';
|
|
5
|
+
import TimeRangeSelector from './widgets/TimeRangeSelector';
|
|
6
|
+
import QRBarcodeScannerWidget from './widgets/QRBarcodeScannerWidget';
|
|
7
|
+
import { Button } from 'react-native-paper';
|
|
8
|
+
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
9
|
+
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
10
|
+
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
11
|
+
import { CommonStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
12
|
+
import SdkColors, { ColorTheme } from '../../../styles/SdkColors';
|
|
13
|
+
const customWidgets = {
|
|
14
|
+
datePicker: DateTimeWidget,
|
|
15
|
+
timeRangeSelector: TimeRangeSelector,
|
|
16
|
+
scanner: QRBarcodeScannerWidget
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const FormGenerator = props => {
|
|
20
|
+
const form = useRef(null);
|
|
21
|
+
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
22
|
+
style: CommonStyles.mainContainer
|
|
23
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
24
|
+
style: {
|
|
25
|
+
flex: 1
|
|
26
|
+
}
|
|
27
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
28
|
+
style: {
|
|
29
|
+
flex: 1,
|
|
30
|
+
backgroundColor: 'white',
|
|
31
|
+
padding: 20,
|
|
32
|
+
marginTop: 20,
|
|
33
|
+
marginStart: 15,
|
|
34
|
+
marginEnd: 15,
|
|
35
|
+
borderRadius: 10,
|
|
36
|
+
borderColor: 'rgba(0, 0, 0, 0.1)',
|
|
37
|
+
borderWidth: 1
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
40
|
+
value: { ...defaultProps,
|
|
41
|
+
requiredTitle: '*',
|
|
42
|
+
theme: {
|
|
43
|
+
primaryColor: SdkColors[ColorTheme.LIGHT].primaryButton,
|
|
44
|
+
highlightColor: SdkColors[ColorTheme.LIGHT].primaryButton,
|
|
45
|
+
borderColor: SdkColors[ColorTheme.LIGHT].primaryButton,
|
|
46
|
+
textColor: '#111111',
|
|
47
|
+
placeholderTextColor: '#111111',
|
|
48
|
+
errorColor: '#b00020',
|
|
49
|
+
fontFamily: Fonts.IBMPlexSans_600SemiBold
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, /*#__PURE__*/React.createElement(ReactNativeForm, {
|
|
53
|
+
widgets: customWidgets // @ts-ignore
|
|
54
|
+
,
|
|
55
|
+
ref: form // @ts-ignore
|
|
56
|
+
,
|
|
57
|
+
schema: props.jsonSchema,
|
|
58
|
+
showErrorList: false,
|
|
59
|
+
uiSchema: props.uiSchema,
|
|
60
|
+
onError: props.onError,
|
|
61
|
+
onSubmit: async response => {
|
|
62
|
+
props.onSubmitET({ ...(await getBaseETResponse(EntityCode.FORMS, true, getEventCodeByET(ExecutionTaskID.FORMS, true), '')),
|
|
63
|
+
data: response.formData
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Text, null))))), /*#__PURE__*/React.createElement(View, {
|
|
67
|
+
style: [{
|
|
68
|
+
margin: 10
|
|
69
|
+
}]
|
|
70
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
71
|
+
style: {
|
|
72
|
+
flexDirection: 'row'
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
75
|
+
style: [CommonStyles.nextButton, {
|
|
76
|
+
flex: 1
|
|
77
|
+
}],
|
|
78
|
+
labelStyle: CommonStyles.nextButtonLabel,
|
|
79
|
+
mode: 'contained',
|
|
80
|
+
onPress: () => {
|
|
81
|
+
if (form.current) {
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
form.current.submit();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, "Submit"))));
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export default FormGenerator;
|
|
90
|
+
//# sourceMappingURL=FormGenerator.js.map
|