@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,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PaymentStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
11
|
+
|
|
12
|
+
const PaymentStyles = _reactNative.StyleSheet.create({
|
|
13
|
+
amountStyle: {
|
|
14
|
+
fontSize: 18,
|
|
15
|
+
fontWeight: '600',
|
|
16
|
+
fontStyle: 'normal',
|
|
17
|
+
backgroundColor: 'white',
|
|
18
|
+
textAlign: 'center',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
paddingTop: 25,
|
|
21
|
+
paddingBottom: 25,
|
|
22
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
|
|
23
|
+
},
|
|
24
|
+
messageStyle: {
|
|
25
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
26
|
+
backgroundColor: '#FFFFFF',
|
|
27
|
+
color: '#111111',
|
|
28
|
+
padding: 20,
|
|
29
|
+
fontStyle: 'normal',
|
|
30
|
+
fontWeight: 'normal',
|
|
31
|
+
fontSize: 14
|
|
32
|
+
},
|
|
33
|
+
textStyle1: {
|
|
34
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
35
|
+
marginTop: 20,
|
|
36
|
+
marginStart: 20,
|
|
37
|
+
marginEnd: 20,
|
|
38
|
+
color: '#9D9D9D',
|
|
39
|
+
fontStyle: 'normal',
|
|
40
|
+
fontWeight: 'normal',
|
|
41
|
+
fontSize: 14
|
|
42
|
+
},
|
|
43
|
+
reasonTextStyle: {
|
|
44
|
+
flex: 1,
|
|
45
|
+
flexWrap: 'wrap',
|
|
46
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
47
|
+
fontStyle: 'normal',
|
|
48
|
+
fontSize: 14,
|
|
49
|
+
lineHeight: 21,
|
|
50
|
+
letterSpacing: 0.25,
|
|
51
|
+
textAlign: 'justify',
|
|
52
|
+
color: '#111111'
|
|
53
|
+
},
|
|
54
|
+
reasonItemStyle: {
|
|
55
|
+
flexDirection: 'row',
|
|
56
|
+
paddingTop: 10,
|
|
57
|
+
paddingStart: 20,
|
|
58
|
+
paddingEnd: 20,
|
|
59
|
+
backgroundColor: 'white'
|
|
60
|
+
},
|
|
61
|
+
heading: {
|
|
62
|
+
marginTop: 30,
|
|
63
|
+
marginStart: 25,
|
|
64
|
+
fontSize: 14,
|
|
65
|
+
lineHeight: 21,
|
|
66
|
+
letterSpacing: 0.25,
|
|
67
|
+
fontFamily: 'IBMPlexSans_400Regular',
|
|
68
|
+
color: '#9D9D9D'
|
|
69
|
+
},
|
|
70
|
+
item: {
|
|
71
|
+
margin: 10,
|
|
72
|
+
padding: 15,
|
|
73
|
+
borderWidth: 0.2
|
|
74
|
+
},
|
|
75
|
+
btn: {
|
|
76
|
+
width: 240,
|
|
77
|
+
borderRadius: 4,
|
|
78
|
+
backgroundColor: '#62d1bc',
|
|
79
|
+
paddingHorizontal: 24,
|
|
80
|
+
paddingVertical: 12,
|
|
81
|
+
marginVertical: 8
|
|
82
|
+
},
|
|
83
|
+
loader: {
|
|
84
|
+
flex: 1,
|
|
85
|
+
justifyContent: 'center',
|
|
86
|
+
alignItems: 'center'
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
exports.PaymentStyles = PaymentStyles;
|
|
91
|
+
//# sourceMappingURL=PaymentStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PaymentStyles","StyleSheet","create","amountStyle","fontSize","fontWeight","fontStyle","backgroundColor","textAlign","alignItems","paddingTop","paddingBottom","fontFamily","Fonts","IBMPlexSans_600SemiBold","messageStyle","IBMPlexSans_400Regular","color","padding","textStyle1","marginTop","marginStart","marginEnd","reasonTextStyle","flex","flexWrap","lineHeight","letterSpacing","reasonItemStyle","flexDirection","paddingStart","paddingEnd","heading","item","margin","borderWidth","btn","width","borderRadius","paddingHorizontal","paddingVertical","marginVertical","loader","justifyContent"],"sources":["PaymentStyles.ts"],"sourcesContent":["import { StyleSheet } from 'react-native';\nimport { Fonts } from '../../../styles/executionTasks/CommonStyles';\n\nexport const PaymentStyles = StyleSheet.create({\n amountStyle: {\n fontSize: 18,\n fontWeight: '600',\n fontStyle: 'normal',\n backgroundColor: 'white',\n textAlign: 'center',\n alignItems: 'center',\n paddingTop: 25,\n paddingBottom: 25,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n messageStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n backgroundColor: '#FFFFFF',\n color: '#111111',\n padding: 20,\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontSize: 14,\n },\n textStyle1: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n marginTop: 20,\n marginStart: 20,\n marginEnd: 20,\n color: '#9D9D9D',\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontSize: 14,\n },\n reasonTextStyle: {\n flex: 1,\n flexWrap: 'wrap',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 21,\n letterSpacing: 0.25,\n textAlign: 'justify',\n color: '#111111',\n },\n\n reasonItemStyle: {\n flexDirection: 'row',\n paddingTop: 10,\n paddingStart: 20,\n paddingEnd: 20,\n backgroundColor: 'white',\n },\n heading: {\n marginTop: 30,\n marginStart: 25,\n fontSize: 14,\n lineHeight: 21,\n letterSpacing: 0.25,\n fontFamily: 'IBMPlexSans_400Regular',\n color: '#9D9D9D',\n },\n item: {\n margin: 10,\n padding: 15,\n borderWidth: 0.2,\n },\n btn: {\n width: 240,\n borderRadius: 4,\n backgroundColor: '#62d1bc',\n paddingHorizontal: 24,\n paddingVertical: 12,\n marginVertical: 8,\n },\n\n loader: { flex: 1, justifyContent: 'center', alignItems: 'center' },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEO,MAAMA,aA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EAAE,EADJ;IAEPC,WAAW,EAAE,EAFN;IAGPjB,QAAQ,EAAE,EAHH;IAIPsB,UAAU,EAAE,EAJL;IAKPC,aAAa,EAAE,IALR;IAMPf,UAAU,EAAE,wBANL;IAOPK,KAAK,EAAE;EAPA,CAlDoC;EA2D7CgB,IAAI,EAAE;IACJC,MAAM,EAAE,EADJ;IAEJhB,OAAO,EAAE,EAFL;IAGJiB,WAAW,EAAE;EAHT,CA3DuC;EAgE7CC,GAAG,EAAE;IACHC,KAAK,EAAE,GADJ;IAEHC,YAAY,EAAE,CAFX;IAGH/B,eAAe,EAAE,SAHd;IAIHgC,iBAAiB,EAAE,EAJhB;IAKHC,eAAe,EAAE,EALd;IAMHC,cAAc,EAAE;EANb,CAhEwC;EAyE7CC,MAAM,EAAE;IAAElB,IAAI,EAAE,CAAR;IAAWmB,cAAc,EAAE,QAA3B;IAAqClC,UAAU,EAAE;EAAjD;AAzEqC,CAAlB,CAAtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getPaymentValue = getPaymentValue;
|
|
7
|
+
exports.getUniqueTransactionID = getUniqueTransactionID;
|
|
8
|
+
|
|
9
|
+
function getUniqueTransactionID(amt) {
|
|
10
|
+
return `TID${Date.now().toString() + amt.toString()}`;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function getPaymentValue(amt, minorUnit) {
|
|
14
|
+
if (!minorUnit) return amt;
|
|
15
|
+
return amt / Math.pow(10, minorUnit);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=PaymentUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getUniqueTransactionID","amt","Date","now","toString","getPaymentValue","minorUnit","Math","pow"],"sources":["PaymentUtils.ts"],"sourcesContent":["export function getUniqueTransactionID(amt: number): string {\n return `TID${Date.now().toString() + amt.toString()}`;\n}\nexport function getPaymentValue(amt: number, minorUnit?: number): number {\n if (!minorUnit) return amt;\n return amt / Math.pow(10, minorUnit);\n}\n"],"mappings":";;;;;;;;AAAO,SAASA,sBAAT,CAAgCC,GAAhC,EAAqD;EAC1D,OAAQ,MAAKC,IAAI,CAACC,GAAL,GAAWC,QAAX,KAAwBH,GAAG,CAACG,QAAJ,EAAe,EAApD;AACD;;AACM,SAASC,eAAT,CAAyBJ,GAAzB,EAAsCK,SAAtC,EAAkE;EACvE,IAAI,CAACA,SAAL,EAAgB,OAAOL,GAAP;EAChB,OAAOA,GAAG,GAAGM,IAAI,CAACC,GAAL,CAAS,EAAT,EAAaF,SAAb,CAAb;AACD"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _ExecTaskUtils = require("../../../../utils/ExecTaskUtils");
|
|
11
|
+
|
|
12
|
+
var _EventCodeContainer = require("../../../../manager/dispatchCodes/EventCodeContainer");
|
|
13
|
+
|
|
14
|
+
var _ETConfig = require("../../../../models/execTasks/ETConfig");
|
|
15
|
+
|
|
16
|
+
var _reactNativePaper = require("react-native-paper");
|
|
17
|
+
|
|
18
|
+
var _reactNative = require("react-native");
|
|
19
|
+
|
|
20
|
+
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
21
|
+
|
|
22
|
+
var _PaymentUtils = require("../PaymentUtils");
|
|
23
|
+
|
|
24
|
+
var _PaymentStyles = require("../PaymentStyles");
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
const CompletePaymentET = etProps => {
|
|
31
|
+
const [disableProceed, setDisableProceed] = (0, _react.useState)(false);
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
33
|
+
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
35
|
+
dismissable: false,
|
|
36
|
+
visible: true,
|
|
37
|
+
contentContainerStyle: _CommonStyles.DeliverPickupStyles.modalContent
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
39
|
+
style: _CommonStyles.DeliverPickupStyles.modalView
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Title, {
|
|
41
|
+
style: [styles.title, {
|
|
42
|
+
color: 'grey'
|
|
43
|
+
}]
|
|
44
|
+
}, etProps.title), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Paragraph, {
|
|
45
|
+
style: _PaymentStyles.PaymentStyles.amountStyle
|
|
46
|
+
}, etProps.expectedAmount.currencyCode + ' ' + (0, _PaymentUtils.getPaymentValue)(etProps.expectedAmount.value, etProps.expectedAmount.minorUnit).toLocaleString()), etProps.message && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Text, {
|
|
47
|
+
style: styles.message1
|
|
48
|
+
}, etProps.message), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
49
|
+
disabled: disableProceed,
|
|
50
|
+
mode: 'contained',
|
|
51
|
+
uppercase: false,
|
|
52
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
53
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
54
|
+
marginTop: 20
|
|
55
|
+
}],
|
|
56
|
+
onPress: async () => {
|
|
57
|
+
let etOutput = {
|
|
58
|
+
paymentMode: etProps.paymentMode,
|
|
59
|
+
collectedAmount: etProps.collectedAmount,
|
|
60
|
+
tenantTransactionId: etProps.tenantTransactionId,
|
|
61
|
+
// todo Hardcoded for SL Release and is only for CASH Payment Type
|
|
62
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.COMPLETE_PAYMENT, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.COMPLETE_PAYMENT, true), ''))
|
|
63
|
+
};
|
|
64
|
+
setDisableProceed(true);
|
|
65
|
+
etProps.onSubmitET(etOutput);
|
|
66
|
+
}
|
|
67
|
+
}, "Continue"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
68
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
69
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
70
|
+
marginTop: 10
|
|
71
|
+
}],
|
|
72
|
+
mode: 'outlined',
|
|
73
|
+
onPress: async () => {
|
|
74
|
+
let etOutput = {
|
|
75
|
+
paymentMode: etProps.paymentMode,
|
|
76
|
+
collectedAmount: etProps.collectedAmount,
|
|
77
|
+
tenantTransactionId: etProps.tenantTransactionId,
|
|
78
|
+
// todo Hardcoded for SL Release and is only for CASH Payment Type
|
|
79
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.COMPLETE_PAYMENT, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.COMPLETE_PAYMENT, false), ''))
|
|
80
|
+
};
|
|
81
|
+
setDisableProceed(true);
|
|
82
|
+
etProps.onSubmitET(etOutput);
|
|
83
|
+
}
|
|
84
|
+
}, "Cancel"))))));
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var _default = CompletePaymentET;
|
|
88
|
+
exports.default = _default;
|
|
89
|
+
|
|
90
|
+
const styles = _reactNative.StyleSheet.create({
|
|
91
|
+
title: {
|
|
92
|
+
fontSize: 18,
|
|
93
|
+
fontStyle: 'normal',
|
|
94
|
+
fontWeight: '600',
|
|
95
|
+
lineHeight: 28,
|
|
96
|
+
textAlign: 'center',
|
|
97
|
+
color: '#111111',
|
|
98
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
|
|
99
|
+
},
|
|
100
|
+
message1: {
|
|
101
|
+
fontStyle: 'normal',
|
|
102
|
+
fontWeight: 'normal',
|
|
103
|
+
fontSize: 12,
|
|
104
|
+
lineHeight: 20,
|
|
105
|
+
textAlign: 'center',
|
|
106
|
+
color: '#111111',
|
|
107
|
+
marginTop: 12,
|
|
108
|
+
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
//# sourceMappingURL=CompletePaymentET.js.map
|
package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CompletePaymentET","etProps","disableProceed","setDisableProceed","useState","DeliverPickupStyles","mainContainer","modalContent","modalView","styles","title","color","PaymentStyles","amountStyle","expectedAmount","currencyCode","getPaymentValue","value","minorUnit","toLocaleString","message","message1","CommonStyles","nextButtonLabel","nextButton","marginTop","etOutput","paymentMode","collectedAmount","tenantTransactionId","getBaseETResponse","EntityCode","COMPLETE_PAYMENT","getEventCodeByET","ExecutionTaskID","onSubmitET","cancelButtonLabel","cancelButton","StyleSheet","create","fontSize","fontStyle","fontWeight","lineHeight","textAlign","fontFamily","Fonts","IBMPlexSans_600SemiBold","IBMPlexSans_400Regular"],"sources":["CompletePaymentET.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport type {\n CompletePaymentInput,\n CompletePaymentOutput,\n} from './CompletePaymentSchema';\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 { StyleSheet, View } from 'react-native';\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../../styles/executionTasks/CommonStyles';\nimport { getPaymentValue } from '../PaymentUtils';\nimport { PaymentStyles } from '../PaymentStyles';\n\nconst CompletePaymentET = (etProps: CompletePaymentInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n dismissable={false}\n visible={true}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Title style={[styles.title, { color: 'grey' }]}>\n {etProps.title}\n </Title>\n <Paragraph style={PaymentStyles.amountStyle}>\n {etProps.expectedAmount.currencyCode +\n ' ' +\n getPaymentValue(\n etProps.expectedAmount.value,\n etProps.expectedAmount.minorUnit\n ).toLocaleString()}\n </Paragraph>\n {etProps.message && (\n <Text style={styles.message1}>{etProps.message}</Text>\n )}\n <Button\n disabled={disableProceed}\n mode={'contained'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[\n CommonStyles.nextButton,\n {\n marginTop: 20,\n },\n ]}\n onPress={async () => {\n let etOutput: CompletePaymentOutput = {\n paymentMode: etProps.paymentMode,\n collectedAmount: etProps.collectedAmount,\n tenantTransactionId: etProps.tenantTransactionId, // todo Hardcoded for SL Release and is only for CASH Payment Type\n ...(await getBaseETResponse(\n EntityCode.COMPLETE_PAYMENT,\n true,\n getEventCodeByET(ExecutionTaskID.COMPLETE_PAYMENT, true),\n ''\n )),\n };\n setDisableProceed(true);\n etProps.onSubmitET(etOutput);\n }}\n >\n Continue\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n onPress={async () => {\n let etOutput: CompletePaymentOutput = {\n paymentMode: etProps.paymentMode,\n collectedAmount: etProps.collectedAmount,\n tenantTransactionId: etProps.tenantTransactionId, // todo Hardcoded for SL Release and is only for CASH Payment Type\n ...(await getBaseETResponse(\n EntityCode.COMPLETE_PAYMENT,\n false,\n getEventCodeByET(ExecutionTaskID.COMPLETE_PAYMENT, false),\n ''\n )),\n };\n setDisableProceed(true);\n etProps.onSubmitET(etOutput);\n }}\n >\n Cancel\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\nexport default CompletePaymentET;\n\nconst styles = StyleSheet.create({\n title: {\n fontSize: 18,\n fontStyle: 'normal',\n fontWeight: '600',\n lineHeight: 28,\n textAlign: 'center',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n message1: {\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontSize: 12,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n marginTop: 12,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n },\n});\n"],"mappings":";;;;;;;AAAA;;AAKA;;AACA;;AACA;;AAIA;;AASA;;AACA;;AAKA;;AACA;;;;;;AAEA,MAAMA,iBAAiB,GAAIC,OAAD,IAAmC;EAC3D,MAAM,CAACC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,mBAAA,CAAMC;EAPb,CADwB;EAU/B1B,QAAQ,EAAE;IACRoB,SAAS,EAAE,QADH;IAERC,UAAU,EAAE,QAFJ;IAGRF,QAAQ,EAAE,EAHF;IAIRG,UAAU,EAAE,EAJJ;IAKRC,SAAS,EAAE,QALH;IAMRjC,KAAK,EAAE,SANC;IAORc,SAAS,EAAE,EAPH;IAQRoB,UAAU,EAAEC,mBAAA,CAAME;EARV;AAVqB,CAAlB,CAAf"}
|
package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["CompletePaymentSchema.ts"],"sourcesContent":["/**\n * Amount\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../../models/execTasks/ETBaseModels';\nimport type { ETAmount } from '../init/InitPaymentSchema';\n\nexport type CompletePaymentInput = BaseETRequest & {\n paymentMode: string;\n expectedAmount: ETAmount;\n collectedAmount: ETAmount;\n transactionId: string;\n tenantTransactionId: string; //todo Hardcode this value for SL ReleaseD\n onSubmitET: (etOut: CompletePaymentOutput) => void;\n};\n\nexport type CompletePaymentOutput = BaseETResponse & {\n tenantTransactionId: string; // must be equal to transaction ID for SL release\n paymentMode: string;\n collectedAmount: ETAmount;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
|
|
12
|
+
var _reactNativePaper = require("react-native-paper");
|
|
13
|
+
|
|
14
|
+
var _utils = require("../../../../utils/utils");
|
|
15
|
+
|
|
16
|
+
var _PaymentUtils = require("../PaymentUtils");
|
|
17
|
+
|
|
18
|
+
var _ExecTaskUtils = require("../../../../utils/ExecTaskUtils");
|
|
19
|
+
|
|
20
|
+
var _ETConfig = require("../../../../models/execTasks/ETConfig");
|
|
21
|
+
|
|
22
|
+
var _EventCodeContainer = require("../../../../manager/dispatchCodes/EventCodeContainer");
|
|
23
|
+
|
|
24
|
+
var _PaymentStyles = require("../PaymentStyles");
|
|
25
|
+
|
|
26
|
+
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
27
|
+
|
|
28
|
+
var _Toaster = require("../../../widgets/Toaster");
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
34
|
+
const styles = _PaymentStyles.PaymentStyles;
|
|
35
|
+
|
|
36
|
+
const footerMessage = message => {
|
|
37
|
+
if (message) return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
38
|
+
style: styles.textStyle1
|
|
39
|
+
}, "MESSAGE"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
40
|
+
style: styles.messageStyle
|
|
41
|
+
}, message));else return null;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const InitPaymentET = props => {
|
|
45
|
+
const [paymentMode, setPaymentMode] = (0, _react.useState)('');
|
|
46
|
+
const [disableNext, setDisableNext] = (0, _react.useState)(false);
|
|
47
|
+
(0, _react.useEffect)(() => {
|
|
48
|
+
if (props.allowedModes && props.allowedModes.length === 1) {
|
|
49
|
+
setPaymentMode(props.allowedModes[0]);
|
|
50
|
+
}
|
|
51
|
+
}, [props.allowedModes]);
|
|
52
|
+
|
|
53
|
+
const renderItem = _ref => {
|
|
54
|
+
let {
|
|
55
|
+
item
|
|
56
|
+
} = _ref;
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
58
|
+
style: styles.reasonItemStyle
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.RadioButton, {
|
|
60
|
+
color: '#5B80F7',
|
|
61
|
+
value: item,
|
|
62
|
+
status: paymentMode === item ? 'checked' : 'unchecked',
|
|
63
|
+
onPress: () => {
|
|
64
|
+
setPaymentMode(item);
|
|
65
|
+
}
|
|
66
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
67
|
+
style: styles.reasonTextStyle,
|
|
68
|
+
onPress: () => {
|
|
69
|
+
setPaymentMode(item);
|
|
70
|
+
}
|
|
71
|
+
}, item));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
75
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
77
|
+
style: styles.textStyle1
|
|
78
|
+
}, "AMOUNT"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
79
|
+
style: styles.amountStyle
|
|
80
|
+
}, props.amount.currencyCode + ' ' + (0, _PaymentUtils.getPaymentValue)(props.amount.value, props.amount.minorUnit).toLocaleString()), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
81
|
+
style: styles.textStyle1
|
|
82
|
+
}, "OPTIONS TO COLLECT PAYMENT"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
+
style: {
|
|
84
|
+
flex: 1
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
87
|
+
data: props.allowedModes,
|
|
88
|
+
renderItem: renderItem,
|
|
89
|
+
keyExtractor: item => item,
|
|
90
|
+
ListFooterComponent: footerMessage(props.message)
|
|
91
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
92
|
+
style: {
|
|
93
|
+
justifyContent: 'flex-end',
|
|
94
|
+
marginBottom: 10
|
|
95
|
+
}
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
97
|
+
style: {
|
|
98
|
+
flexDirection: 'row',
|
|
99
|
+
marginStart: 10,
|
|
100
|
+
marginEnd: 10
|
|
101
|
+
}
|
|
102
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
103
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
104
|
+
marginEnd: 5,
|
|
105
|
+
flex: 1
|
|
106
|
+
}],
|
|
107
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
108
|
+
mode: 'outlined',
|
|
109
|
+
onPress: async () => {
|
|
110
|
+
props.onSubmitET({
|
|
111
|
+
paymentMode: paymentMode,
|
|
112
|
+
transactionId: (0, _PaymentUtils.getUniqueTransactionID)(props.amount.value),
|
|
113
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.INIT_PAYMENT, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.INIT_PAYMENT, false), ''))
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
117
|
+
disabled: disableNext,
|
|
118
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
119
|
+
flex: 1,
|
|
120
|
+
marginStart: 5
|
|
121
|
+
}],
|
|
122
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
123
|
+
mode: 'contained',
|
|
124
|
+
onPress: async () => {
|
|
125
|
+
if (!(0, _utils.isEmptyOrBlank)(paymentMode)) {
|
|
126
|
+
setDisableNext(true);
|
|
127
|
+
props.onSubmitET({
|
|
128
|
+
paymentMode: paymentMode,
|
|
129
|
+
transactionId: (0, _PaymentUtils.getUniqueTransactionID)(props.amount.value),
|
|
130
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.INIT_PAYMENT, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.INIT_PAYMENT, true), ''))
|
|
131
|
+
});
|
|
132
|
+
} else (0, _Toaster.showToast)('No payment mode selected');
|
|
133
|
+
}
|
|
134
|
+
}, "Collect"))));
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
var _default = InitPaymentET;
|
|
138
|
+
exports.default = _default;
|
|
139
|
+
//# sourceMappingURL=InitPaymentET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["styles","PaymentStyles","footerMessage","message","textStyle1","messageStyle","InitPaymentET","props","paymentMode","setPaymentMode","useState","disableNext","setDisableNext","useEffect","allowedModes","length","renderItem","item","reasonItemStyle","reasonTextStyle","CommonStyles","mainContainer","amountStyle","amount","currencyCode","getPaymentValue","value","minorUnit","toLocaleString","flex","justifyContent","marginBottom","flexDirection","marginStart","marginEnd","cancelButton","cancelButtonLabel","onSubmitET","transactionId","getUniqueTransactionID","getBaseETResponse","EntityCode","INIT_PAYMENT","getEventCodeByET","ExecutionTaskID","nextButton","nextButtonLabel","isEmptyOrBlank","showToast"],"sources":["InitPaymentET.tsx"],"sourcesContent":["import type { InitPaymentInput } from './InitPaymentSchema';\nimport React, { useEffect, useState } from 'react';\nimport { FlatList, Text, View } from 'react-native';\nimport { Button, RadioButton } from 'react-native-paper';\nimport { isEmptyOrBlank } from '../../../../utils/utils';\nimport { getPaymentValue, getUniqueTransactionID } from '../PaymentUtils';\nimport { getBaseETResponse } from '../../../../utils/ExecTaskUtils';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../../models/execTasks/ETConfig';\nimport { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport { PaymentStyles } from '../PaymentStyles';\nimport { CommonStyles } from '../../../../styles/executionTasks/CommonStyles';\nimport { showToast } from '../../../widgets/Toaster';\n\nconst styles = PaymentStyles;\n\nconst footerMessage = (message?: string) => {\n if (message)\n return (\n <View>\n <Text style={styles.textStyle1}>MESSAGE</Text>\n <Text style={styles.messageStyle}>{message}</Text>\n </View>\n );\n else return null;\n};\nconst InitPaymentET = (props: InitPaymentInput) => {\n const [paymentMode, setPaymentMode] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n useEffect(() => {\n if (props.allowedModes && props.allowedModes.length === 1) {\n setPaymentMode(props.allowedModes[0]);\n }\n }, [props.allowedModes]);\n const renderItem = ({ item }: { item: string }) => {\n return (\n <View style={styles.reasonItemStyle}>\n <RadioButton\n color={'#5B80F7'}\n value={item}\n status={paymentMode === item ? 'checked' : 'unchecked'}\n onPress={() => {\n setPaymentMode(item);\n }}\n />\n <Text\n style={styles.reasonTextStyle}\n onPress={() => {\n setPaymentMode(item);\n }}\n >\n {item}\n </Text>\n </View>\n );\n };\n return (\n <View style={CommonStyles.mainContainer}>\n <Text style={styles.textStyle1}>AMOUNT</Text>\n <Text style={styles.amountStyle}>\n {props.amount.currencyCode +\n ' ' +\n getPaymentValue(\n props.amount.value,\n props.amount.minorUnit\n ).toLocaleString()}\n </Text>\n <Text style={styles.textStyle1}>OPTIONS TO COLLECT PAYMENT</Text>\n <View style={{ flex: 1 }}>\n <FlatList\n data={props.allowedModes}\n renderItem={renderItem}\n keyExtractor={(item) => item}\n ListFooterComponent={footerMessage(props.message)}\n />\n </View>\n <View style={{ justifyContent: 'flex-end', marginBottom: 10 }}>\n <View\n style={{\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n }}\n >\n <Button\n style={[\n CommonStyles.cancelButton,\n {\n marginEnd: 5,\n flex: 1,\n },\n ]}\n labelStyle={CommonStyles.cancelButtonLabel}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n paymentMode: paymentMode,\n transactionId: getUniqueTransactionID(props.amount.value),\n ...(await getBaseETResponse(\n EntityCode.INIT_PAYMENT,\n false,\n getEventCodeByET(ExecutionTaskID.INIT_PAYMENT, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[\n CommonStyles.nextButton,\n {\n flex: 1,\n marginStart: 5,\n },\n ]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n if (!isEmptyOrBlank(paymentMode)) {\n setDisableNext(true);\n props.onSubmitET({\n paymentMode: paymentMode,\n transactionId: getUniqueTransactionID(props.amount.value),\n ...(await getBaseETResponse(\n EntityCode.INIT_PAYMENT,\n true,\n getEventCodeByET(ExecutionTaskID.INIT_PAYMENT, true),\n ''\n )),\n });\n } else showToast('No payment mode selected');\n }}\n >\n Collect\n </Button>\n </View>\n </View>\n </View>\n );\n};\nexport default InitPaymentET;\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAIA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,MAAM,GAAGC,4BAAf;;AAEA,MAAMC,aAAa,GAAIC,OAAD,IAAsB;EAC1C,IAAIA,OAAJ,EACE,oBACE,6BAAC,iBAAD,qBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEH,MAAM,CAACI;EAApB,aADF,eAEE,6BAAC,iBAAD;IAAM,KAAK,EAAEJ,MAAM,CAACK;EAApB,GAAmCF,OAAn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QAAQ,EAAE/B,WADZ;IAEE,KAAK,EAAE,CACLS,0BAAA,CAAayB,UADR,EAEL;MACEhB,IAAI,EAAE,CADR;MAEEI,WAAW,EAAE;IAFf,CAFK,CAFT;IASE,UAAU,EAAEb,0BAAA,CAAa0B,eAT3B;IAUE,IAAI,EAAE,WAVR;IAWE,OAAO,EAAE,YAAY;MACnB,IAAI,CAAC,IAAAC,qBAAA,EAAevC,WAAf,CAAL,EAAkC;QAChCI,cAAc,CAAC,IAAD,CAAd;QACAL,KAAK,CAAC8B,UAAN,CAAiB;UACf7B,WAAW,EAAEA,WADE;UAEf8B,aAAa,EAAE,IAAAC,oCAAA,EAAuBhC,KAAK,CAACgB,MAAN,CAAaG,KAApC,CAFA;UAGf,IAAI,MAAM,IAAAc,gCAAA,EACRC,oBAAA,CAAWC,YADH,EAER,IAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,YAAjC,EAA+C,IAA/C,CAHQ,EAIR,EAJQ,CAAV;QAHe,CAAjB;MAUD,CAZD,MAYO,IAAAM,kBAAA,EAAU,0BAAV;IACR;EAzBH,aAhCF,CADF,CAnBF,CADF;AAsFD,CArHD;;eAsHe1C,a"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["InitPaymentSchema.ts"],"sourcesContent":["/**\n * Amount to be collected\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../../models/execTasks/ETBaseModels';\n/**\n * List of allowed Modes\n */\n\nexport type AllowedModes = 'CASH' | 'UPI' | 'PAYMENT_LINK';\n\nexport type InitPaymentInput = BaseETRequest & {\n amount: ETAmount;\n allowedModes: string[];\n onSubmitET: (output: InitPaymentOutput) => void;\n};\n/**\n * Amount to be collected (ISO 4217)\n */\nexport interface ETAmount {\n value: number;\n currencyCode: string;\n minorUnit?: number;\n}\n\nexport type InitPaymentOutput = BaseETResponse & {\n /**\n * Unique transaction id\n */\n transactionId?: string;\n /**\n * Payment mode selected by user\n */\n paymentMode?: string;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactNativePaper = require("react-native-paper");
|
|
13
|
+
|
|
14
|
+
var _ExecTaskUtils = require("../../../../utils/ExecTaskUtils");
|
|
15
|
+
|
|
16
|
+
var _EventCodeContainer = require("../../../../manager/dispatchCodes/EventCodeContainer");
|
|
17
|
+
|
|
18
|
+
var _ETConfig = require("../../../../models/execTasks/ETConfig");
|
|
19
|
+
|
|
20
|
+
var _PaymentStyles = require("../PaymentStyles");
|
|
21
|
+
|
|
22
|
+
var _utils = require("../../../../utils/utils");
|
|
23
|
+
|
|
24
|
+
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
25
|
+
|
|
26
|
+
var _PaymentUtils = require("../PaymentUtils");
|
|
27
|
+
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
32
|
+
const styles = _PaymentStyles.PaymentStyles;
|
|
33
|
+
|
|
34
|
+
const ProcessPaymentET = props => {
|
|
35
|
+
const [amountCollected, setAmountCollected] = (0, _react.useState)('');
|
|
36
|
+
const [inputError, setInputError] = (0, _react.useState)('');
|
|
37
|
+
const [disableNext, setDisableNext] = (0, _react.useState)(false);
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.KeyboardAvoidingView, {
|
|
39
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
41
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
43
|
+
style: _CommonStyles.CommonStyles.mainContainer
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
45
|
+
style: styles.textStyle1
|
|
46
|
+
}, "AMOUNT TO BE COLLECTED"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
47
|
+
style: styles.amountStyle
|
|
48
|
+
}, props.amount.currencyCode + ' ' + (0, _PaymentUtils.getPaymentValue)(props.amount.value, props.amount.minorUnit).toLocaleString()), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
49
|
+
style: {
|
|
50
|
+
marginTop: 20,
|
|
51
|
+
paddingTop: 10,
|
|
52
|
+
paddingStart: 20,
|
|
53
|
+
paddingEnd: 20,
|
|
54
|
+
backgroundColor: 'white',
|
|
55
|
+
paddingBottom: 40
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, {
|
|
58
|
+
multiline: false,
|
|
59
|
+
autoComplete: 'off',
|
|
60
|
+
label: "Total Amount Collected",
|
|
61
|
+
value: amountCollected,
|
|
62
|
+
mode: 'outlined',
|
|
63
|
+
error: !(0, _utils.isEmptyOrBlank)(inputError),
|
|
64
|
+
selectionColor: '#6200EE',
|
|
65
|
+
keyboardType: 'numeric',
|
|
66
|
+
onChangeText: text => {
|
|
67
|
+
setInputError('');
|
|
68
|
+
setAmountCollected(text);
|
|
69
|
+
}
|
|
70
|
+
}), !(0, _utils.isEmptyOrBlank)(inputError) && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
71
|
+
style: {
|
|
72
|
+
color: '#B00020'
|
|
73
|
+
}
|
|
74
|
+
}, inputError)), props.message && /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
75
|
+
style: styles.textStyle1
|
|
76
|
+
}, "MESSAGE"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
77
|
+
style: styles.messageStyle
|
|
78
|
+
}, props.message)))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
79
|
+
style: {
|
|
80
|
+
margin: 10
|
|
81
|
+
}
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
+
style: {
|
|
84
|
+
flexDirection: 'row',
|
|
85
|
+
marginStart: 10,
|
|
86
|
+
marginEnd: 10
|
|
87
|
+
}
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
89
|
+
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
90
|
+
marginEnd: 5,
|
|
91
|
+
flex: 1
|
|
92
|
+
}],
|
|
93
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
94
|
+
mode: 'outlined',
|
|
95
|
+
onPress: async () => {
|
|
96
|
+
props.onSubmitET({
|
|
97
|
+
paymentMode: props.paymentMode,
|
|
98
|
+
collectedAmount: {
|
|
99
|
+
value: +amountCollected,
|
|
100
|
+
currencyCode: props.amount.currencyCode,
|
|
101
|
+
minorUnit: props.amount.minorUnit
|
|
102
|
+
},
|
|
103
|
+
transactionId: props.transactionId,
|
|
104
|
+
tenantTransactionId: props.transactionId,
|
|
105
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PROCESS_PAYMENT, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.PROCESS_PAYMENT, false), ''))
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}, "Cancel"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
109
|
+
disabled: disableNext,
|
|
110
|
+
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
111
|
+
marginStart: 5,
|
|
112
|
+
flex: 1
|
|
113
|
+
}],
|
|
114
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
115
|
+
mode: 'contained',
|
|
116
|
+
onPress: async () => {
|
|
117
|
+
if (!(0, _utils.isEmptyOrBlank)(amountCollected) && !Number.isNaN(+amountCollected)) {
|
|
118
|
+
const calculatedValue = (0, _PaymentUtils.getPaymentValue)(props.amount.value, props.amount.minorUnit);
|
|
119
|
+
|
|
120
|
+
if (+amountCollected !== calculatedValue) {
|
|
121
|
+
setInputError(`Amount should be equal to ${calculatedValue}`);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
setDisableNext(true);
|
|
126
|
+
props.onSubmitET({
|
|
127
|
+
paymentMode: props.paymentMode,
|
|
128
|
+
collectedAmount: {
|
|
129
|
+
value: props.amount.value,
|
|
130
|
+
currencyCode: props.amount.currencyCode,
|
|
131
|
+
minorUnit: props.amount.minorUnit
|
|
132
|
+
},
|
|
133
|
+
transactionId: props.transactionId,
|
|
134
|
+
tenantTransactionId: props.transactionId,
|
|
135
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PROCESS_PAYMENT, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.PROCESS_PAYMENT, true), ''))
|
|
136
|
+
});
|
|
137
|
+
} else {
|
|
138
|
+
setInputError('Please enter valid amount.');
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}, "Next"))));
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
var _default = ProcessPaymentET;
|
|
145
|
+
exports.default = _default;
|
|
146
|
+
//# sourceMappingURL=ProcessPaymentET.js.map
|
package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["styles","PaymentStyles","ProcessPaymentET","props","amountCollected","setAmountCollected","useState","inputError","setInputError","disableNext","setDisableNext","CommonStyles","mainContainer","textStyle1","amountStyle","amount","currencyCode","getPaymentValue","value","minorUnit","toLocaleString","marginTop","paddingTop","paddingStart","paddingEnd","backgroundColor","paddingBottom","isEmptyOrBlank","text","color","message","messageStyle","margin","flexDirection","marginStart","marginEnd","cancelButton","flex","cancelButtonLabel","onSubmitET","paymentMode","collectedAmount","transactionId","tenantTransactionId","getBaseETResponse","EntityCode","PROCESS_PAYMENT","getEventCodeByET","ExecutionTaskID","nextButton","nextButtonLabel","Number","isNaN","calculatedValue"],"sources":["ProcessPaymentET.tsx"],"sourcesContent":["import type { ProcessPaymentInput } from './ProcessPaymentSchema';\nimport { KeyboardAvoidingView, ScrollView, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, TextInput } from 'react-native-paper';\nimport { getBaseETResponse } from '../../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../../models/execTasks/ETConfig';\nimport { PaymentStyles } from '../PaymentStyles';\nimport { isEmptyOrBlank } from '../../../../utils/utils';\nimport { CommonStyles } from '../../../../styles/executionTasks/CommonStyles';\nimport { getPaymentValue } from '../PaymentUtils';\n\nconst styles = PaymentStyles;\n\nconst ProcessPaymentET = (props: ProcessPaymentInput) => {\n const [amountCollected, setAmountCollected] = useState('');\n const [inputError, setInputError] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n return (\n <KeyboardAvoidingView style={CommonStyles.mainContainer}>\n <ScrollView style={CommonStyles.mainContainer}>\n <View style={CommonStyles.mainContainer}>\n <Text style={styles.textStyle1}>AMOUNT TO BE COLLECTED</Text>\n <Text style={styles.amountStyle}>\n {props.amount.currencyCode +\n ' ' +\n getPaymentValue(\n props.amount.value,\n props.amount.minorUnit\n ).toLocaleString()}\n </Text>\n <View\n style={{\n marginTop: 20,\n paddingTop: 10,\n paddingStart: 20,\n paddingEnd: 20,\n backgroundColor: 'white',\n paddingBottom: 40,\n }}\n >\n <TextInput\n multiline={false}\n autoComplete={'off'}\n label=\"Total Amount Collected\"\n value={amountCollected}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setAmountCollected(text);\n }}\n />\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n </View>\n {props.message && (\n <View>\n <Text style={styles.textStyle1}>MESSAGE</Text>\n <Text style={styles.messageStyle}>{props.message}</Text>\n </View>\n )}\n </View>\n </ScrollView>\n <View style={{ margin: 10 }}>\n <View\n style={{\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n }}\n >\n <Button\n style={[\n CommonStyles.cancelButton,\n {\n marginEnd: 5,\n flex: 1,\n },\n ]}\n labelStyle={CommonStyles.cancelButtonLabel}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n paymentMode: props.paymentMode,\n collectedAmount: {\n value: +amountCollected,\n currencyCode: props.amount.currencyCode,\n minorUnit: props.amount.minorUnit,\n },\n transactionId: props.transactionId,\n tenantTransactionId: props.transactionId,\n ...(await getBaseETResponse(\n EntityCode.PROCESS_PAYMENT,\n false,\n getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[\n CommonStyles.nextButton,\n {\n marginStart: 5,\n flex: 1,\n },\n ]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n if (\n !isEmptyOrBlank(amountCollected) &&\n !Number.isNaN(+amountCollected)\n ) {\n const calculatedValue = getPaymentValue(\n props.amount.value,\n props.amount.minorUnit\n );\n if (+amountCollected !== calculatedValue) {\n setInputError(`Amount should be equal to ${calculatedValue}`);\n return;\n }\n setDisableNext(true);\n props.onSubmitET({\n paymentMode: props.paymentMode,\n collectedAmount: {\n value: props.amount.value,\n currencyCode: props.amount.currencyCode,\n minorUnit: props.amount.minorUnit,\n },\n transactionId: props.transactionId,\n tenantTransactionId: props.transactionId,\n ...(await getBaseETResponse(\n EntityCode.PROCESS_PAYMENT,\n true,\n getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, true),\n ''\n )),\n });\n } else {\n setInputError('Please enter valid amount.');\n }\n }}\n >\n Next\n </Button>\n </View>\n </View>\n </KeyboardAvoidingView>\n );\n};\nexport default ProcessPaymentET;\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAIA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,MAAM,GAAGC,4BAAf;;AAEA,MAAMC,gBAAgB,GAAIC,KAAD,IAAgC;EACvD,MAAM,CAACC,eAAD,EAAkBC,kBAAlB,IAAwC,IAAAC,eAAA,EAAS,EAAT,CAA9C;EACA,MAAM,CAACC,UAAD,EAAaC,aAAb,IAA8B,IAAAF,eAAA,EAAS,EAAT,CAApC;EACA,MAAM,CAACG,WAAD,EAAcC,cAAd,IAAgC,IAAAJ,eAAA,EAAS,KAAT,CAAtC;EAEA,oBACE,6BAAC,iCAAD;IAAsB,KAAK,EAAEK,0BAAA,CAAaC;EAA1C,gBACE,6BAAC,uBAAD;IAAY,KAAK,EAAED,0BA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nB,IACE,CAAC,IAAAvB,qBAAA,EAAevB,eAAf,CAAD,IACA,CAAC+C,MAAM,CAACC,KAAP,CAAa,CAAChD,eAAd,CAFH,EAGE;QACA,MAAMiD,eAAe,GAAG,IAAApC,6BAAA,EACtBd,KAAK,CAACY,MAAN,CAAaG,KADS,EAEtBf,KAAK,CAACY,MAAN,CAAaI,SAFS,CAAxB;;QAIA,IAAI,CAACf,eAAD,KAAqBiD,eAAzB,EAA0C;UACxC7C,aAAa,CAAE,6BAA4B6C,eAAgB,EAA9C,CAAb;UACA;QACD;;QACD3C,cAAc,CAAC,IAAD,CAAd;QACAP,KAAK,CAACoC,UAAN,CAAiB;UACfC,WAAW,EAAErC,KAAK,CAACqC,WADJ;UAEfC,eAAe,EAAE;YACfvB,KAAK,EAAEf,KAAK,CAACY,MAAN,CAAaG,KADL;YAEfF,YAAY,EAAEb,KAAK,CAACY,MAAN,CAAaC,YAFZ;YAGfG,SAAS,EAAEhB,KAAK,CAACY,MAAN,CAAaI;UAHT,CAFF;UAOfuB,aAAa,EAAEvC,KAAK,CAACuC,aAPN;UAQfC,mBAAmB,EAAExC,KAAK,CAACuC,aARZ;UASf,IAAI,MAAM,IAAAE,gCAAA,EACRC,oBAAA,CAAWC,eADH,EAER,IAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,eAAjC,EAAkD,IAAlD,CAHQ,EAIR,EAJQ,CAAV;QATe,CAAjB;MAgBD,CA7BD,MA6BO;QACLtC,aAAa,CAAC,4BAAD,CAAb;MACD;IACF;EA5CH,UAtCF,CADF,CAhDF,CADF;AA4ID,CAjJD;;eAkJeN,gB"}
|
package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ProcessPaymentSchema.ts"],"sourcesContent":["/**\n * Amount to be collected\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../../models/execTasks/ETBaseModels';\nimport type { ETAmount } from '../init/InitPaymentSchema';\n/**\n * Payment mode\n */\n\nexport type ProcessPaymentInput = BaseETRequest & {\n amount: ETAmount;\n paymentMode: string;\n transactionId: string;\n onSubmitET: (output: ProcessPaymentOutput) => void;\n};\n/**\n * Amount to be collected (ISO 4217)\n */\n\nexport type ProcessPaymentOutput = BaseETResponse & {\n /**\n * Unique transaction id\n */\n transactionId: string;\n tenantTransactionId: string;\n /**\n * Amount collected (ISO 4217)\n */\n collectedAmount: ETAmount;\n /**\n * Payment meta data\n */\n paymentMeta?: {};\n paymentMode: string;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["PickpSchema.ts"],"sourcesContent":["/**\n * Unique identifier for the item\n */\nimport type { BaseETResponse, LineItem } from '../ExecutionTasksIndex';\nimport type { BaseETRequest } from '../../../models/execTasks/ETBaseModels';\n\n/**\n * Any manual instruction to display for the Operator to work on\n */\nexport type Instruction = string;\nexport interface PickupRemarks {\n pickupRemark: string;\n success: boolean;\n}\n\nexport type PickupETInput = BaseETRequest & {\n items: LineItem[];\n pickupCount?: number;\n confirmCustodyExchange?: boolean;\n onSubmitET(pickupRemark: PickupETOutput): void;\n};\n\nexport type PickupETOutput = BaseETResponse & {\n /**\n * Remark captured at time of delivery\n */\n remark?: string;\n};\n"],"mappings":""}
|