@os1-platform/dispatch-mobile 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +551 -0
- package/android/build/.transforms/22228dd0a4a527a24ec811806cb09b83/classes/classes.dex +0 -0
- package/android/build/.transforms/22228dd0a4a527a24ec811806cb09b83.bin +1 -0
- package/android/build/.transforms/94a07ea3e1b6cf7284a0d41cd59f08ef/classes/classes.dex +0 -0
- package/android/build/.transforms/94a07ea3e1b6cf7284a0d41cd59f08ef.bin +1 -0
- package/android/build/generated/source/buildConfig/debug/com/dispatchsdk/BuildConfig.java +12 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +34 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +26 -0
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +4928 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/drawable_alert_background.xml.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/drawable_ic_baseline_sync_24.xml.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/font_ibmplexsans.ttf.flat +0 -0
- package/android/build/intermediates/compiled_local_resources/debug/out/xml_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +5 -0
- package/android/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml +9 -0
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +7 -0
- package/android/build/intermediates/javac/debug/classes/com/dispatchsdk/BuildConfig.class +0 -0
- package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +34 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +7 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +63 -0
- package/android/build/intermediates/merged_manifests/debug/output.json +26 -0
- package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/build/intermediates/packaged_res/debug/drawable/alert_background.xml +8 -0
- package/android/build/intermediates/packaged_res/debug/drawable/ic_baseline_sync_24.xml +5 -0
- package/android/build/intermediates/packaged_res/debug/font/ibmplexsans.ttf +0 -0
- package/android/build/intermediates/packaged_res/debug/values/values.xml +9 -0
- package/android/build/intermediates/packaged_res/debug/xml/file_paths.xml +10 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +3391 -0
- package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +79 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/dispatchsdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/DispatchSdkPackage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/errors/NativeSdkErrors.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureContextModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureMainView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$OnSignedListener.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$SignatureCallback.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/Bezier.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/ControlTimedPoints.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/TimedPoint.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncEventService$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncEventService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService$runnableCode$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$showAndroidDialog$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$showAndroidDialog$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/ModuleConfig$IntentConfig.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/ModuleConfig.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/Tracer.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/Utils.class +0 -0
- package/android/build.gradle +130 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +4 -0
- package/android/gradlew +185 -0
- package/android/gradlew.bat +89 -0
- package/android/src/main/AndroidManifest.xml +33 -0
- package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +23 -0
- package/android/src/main/java/com/dispatchsdk/errors/NativeSdkErrors.kt +24 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureContextModule.kt +15 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureMainView.kt +150 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureView.kt +355 -0
- package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager.kt +132 -0
- package/android/src/main/java/com/dispatchsdk/signatureUtils/Bezier.kt +45 -0
- package/android/src/main/java/com/dispatchsdk/signatureUtils/ControlTimedPoints.kt +3 -0
- package/android/src/main/java/com/dispatchsdk/signatureUtils/TimedPoint.kt +19 -0
- package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +28 -0
- package/android/src/main/java/com/dispatchsdk/sync/SyncManagerService.kt +128 -0
- package/android/src/main/java/com/dispatchsdk/sync/SyncModule.kt +45 -0
- package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +121 -0
- package/android/src/main/java/com/dispatchsdk/utils/ModuleConfig.kt +21 -0
- package/android/src/main/java/com/dispatchsdk/utils/Tracer.kt +9 -0
- package/android/src/main/java/com/dispatchsdk/utils/Utils.kt +100 -0
- package/android/src/main/res/drawable/alert_background.xml +8 -0
- package/android/src/main/res/drawable/ic_baseline_sync_24.xml +5 -0
- package/android/src/main/res/font/ibmplexsans.ttf +0 -0
- package/android/src/main/res/values/styles.xml +10 -0
- package/android/src/main/res/xml/file_paths.xml +10 -0
- package/babel.config.js +3 -0
- package/foxtrotplatform-mobile-execution-lib-v0.6.4.tgz +0 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +249 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -0
- package/lib/commonjs/components/executiontasks/CompletedWFSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/CompletedWFSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +192 -0
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +110 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +69 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +105 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js +6 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +197 -0
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +126 -0
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/display/DisplaySchema.js +6 -0
- package/lib/commonjs/components/executiontasks/display/DisplaySchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +28 -0
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +190 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +130 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +137 -0
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +116 -0
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/FormSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/forms/FormSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +152 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +155 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +54 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +53 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +61 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +159 -0
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +256 -0
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +91 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +17 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +111 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +139 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +146 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +103 -0
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +115 -0
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +123 -0
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +32 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +193 -0
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +20 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +49 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +107 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +317 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +100 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +276 -0
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +66 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +69 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +100 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js +25 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -0
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +101 -0
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +59 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js +165 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +15 -0
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -0
- package/lib/commonjs/config/DispatchSDKConfig.js +14 -0
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +11 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +25 -0
- package/lib/commonjs/constants/constants.js.map +1 -0
- package/lib/commonjs/constants/statuscode.js +18 -0
- package/lib/commonjs/constants/statuscode.js.map +1 -0
- package/lib/commonjs/errors/BaseError.js +30 -0
- package/lib/commonjs/errors/BaseError.js.map +1 -0
- package/lib/commonjs/errors/ErrorCodes.js +44 -0
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -0
- package/lib/commonjs/index.js +164 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +442 -0
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +13 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +112 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +87 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/reasonCodes.json +137 -0
- package/lib/commonjs/manager/location/LocationManager.js +97 -0
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -0
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +103 -0
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -0
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +69 -0
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +158 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/DBConfig.js +62 -0
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +15 -0
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/database.js +48 -0
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +125 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +113 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +200 -0
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/document/models.js +2 -0
- package/lib/commonjs/manager/syncmanager/document/models.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +117 -0
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js +2 -0
- package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +279 -0
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +79 -0
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -0
- package/lib/commonjs/models/DispatchModels.js +14 -0
- package/lib/commonjs/models/DispatchModels.js.map +1 -0
- package/lib/commonjs/models/ReasonCodes.js +2 -0
- package/lib/commonjs/models/ReasonCodes.js.map +1 -0
- package/lib/commonjs/models/auth.js +2 -0
- package/lib/commonjs/models/auth.js.map +1 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js +2 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -0
- package/lib/commonjs/models/execTasks/ETConfig.js +116 -0
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -0
- package/lib/commonjs/models/execution.js +2 -0
- package/lib/commonjs/models/execution.js.map +1 -0
- package/lib/commonjs/models/fcm.js +2 -0
- package/lib/commonjs/models/fcm.js.map +1 -0
- package/lib/commonjs/models/sdk.js +15 -0
- package/lib/commonjs/models/sdk.js.map +1 -0
- package/lib/commonjs/native/signature/SignatureCapture.js +94 -0
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -0
- package/lib/commonjs/network/GraphQLClient.js +149 -0
- package/lib/commonjs/network/GraphQLClient.js.map +1 -0
- package/lib/commonjs/network/NetworkClient.js +57 -0
- package/lib/commonjs/network/NetworkClient.js.map +1 -0
- package/lib/commonjs/network/NetworkUtils.js +36 -0
- package/lib/commonjs/network/NetworkUtils.js.map +1 -0
- package/lib/commonjs/network/Queries.js +55 -0
- package/lib/commonjs/network/Queries.js.map +1 -0
- package/lib/commonjs/network/client.js +87 -0
- package/lib/commonjs/network/client.js.map +1 -0
- package/lib/commonjs/res/strings.js +9 -0
- package/lib/commonjs/res/strings.js.map +1 -0
- package/lib/commonjs/resources/Login.js +52 -0
- package/lib/commonjs/resources/Login.js.map +1 -0
- package/lib/commonjs/resources/network.js +28 -0
- package/lib/commonjs/resources/network.js.map +1 -0
- package/lib/commonjs/styles/SdkColors.js +30 -0
- package/lib/commonjs/styles/SdkColors.js.map +1 -0
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +168 -0
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -0
- package/lib/commonjs/ui/screens/CancellationScreen.js +64 -0
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +74 -0
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +68 -0
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DeliverScreen.js +75 -0
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DisplayScreen.js +43 -0
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DoodleScreen.js +79 -0
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DropCashScreen.js +89 -0
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ETScreensIndex.js +128 -0
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -0
- package/lib/commonjs/ui/screens/FormsScreen.js +45 -0
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/GeofenceScreen.js +47 -0
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +38 -0
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +44 -0
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PaymentScreen.js +142 -0
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PickupScreen.js +48 -0
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/RTScanScreen.js +118 -0
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +137 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +52 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -0
- package/lib/commonjs/ui/uiConfig/RouteParams.js +16 -0
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +113 -0
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -0
- package/lib/commonjs/utils/Logger.js +114 -0
- package/lib/commonjs/utils/Logger.js.map +1 -0
- package/lib/commonjs/utils/NetworkUtil.js +66 -0
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -0
- package/lib/commonjs/utils/SdkUtils.js +129 -0
- package/lib/commonjs/utils/SdkUtils.js.map +1 -0
- package/lib/commonjs/utils/SyncManagerUtils.js +136 -0
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -0
- package/lib/commonjs/utils/fcm/FCM.js +58 -0
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -0
- package/lib/commonjs/utils/fcm/FcmUtils.js +98 -0
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -0
- package/lib/commonjs/utils/helper.js +37 -0
- package/lib/commonjs/utils/helper.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +70 -0
- package/lib/commonjs/utils/loginHelper.js.map +1 -0
- package/lib/commonjs/utils/storage.js +153 -0
- package/lib/commonjs/utils/storage.js.map +1 -0
- package/lib/commonjs/utils/test.json +17 -0
- package/lib/commonjs/utils/utils.js +38 -0
- package/lib/commonjs/utils/utils.js.map +1 -0
- package/lib/foxtrotplatform-mobile-execution-lib-v0.6.4.tgz +0 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js +228 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -0
- package/lib/module/components/executiontasks/CompletedWFSchema.js +2 -0
- package/lib/module/components/executiontasks/CompletedWFSchema.js.map +1 -0
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +25 -0
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js +93 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -0
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js +2 -0
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -0
- package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js +2 -0
- package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -0
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +50 -0
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +87 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js +2 -0
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +175 -0
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -0
- package/lib/module/components/executiontasks/display/DisplayModalET.js +107 -0
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -0
- package/lib/module/components/executiontasks/display/DisplaySchema.js +2 -0
- package/lib/module/components/executiontasks/display/DisplaySchema.js.map +1 -0
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js +19 -0
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +1 -0
- package/lib/module/components/executiontasks/doodle/SignatureET.js +163 -0
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -0
- package/lib/module/components/executiontasks/doodle/SignatureSchema.js +2 -0
- package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -0
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +108 -0
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -0
- package/lib/module/components/executiontasks/dropCash/DropCashSchema.js +2 -0
- package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -0
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +117 -0
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -0
- package/lib/module/components/executiontasks/forms/FormGenerator.js +90 -0
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -0
- package/lib/module/components/executiontasks/forms/FormSchema.js +2 -0
- package/lib/module/components/executiontasks/forms/FormSchema.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +132 -0
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +134 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +37 -0
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -0
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +33 -0
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +42 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js +2 -0
- package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js +2 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +120 -0
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -0
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +232 -0
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -0
- package/lib/module/components/executiontasks/payments/PaymentStyles.js +80 -0
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -0
- package/lib/module/components/executiontasks/payments/PaymentUtils.js +8 -0
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +90 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js +2 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +116 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js +2 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +124 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js +2 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -0
- package/lib/module/components/executiontasks/pickup/PickpSchema.js +2 -0
- package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -0
- package/lib/module/components/executiontasks/pickup/PickupET.js +85 -0
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -0
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +94 -0
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/CScanner.js +101 -0
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +24 -0
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +158 -0
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +9 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +38 -0
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +86 -0
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +287 -0
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +80 -0
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +253 -0
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +1 -0
- package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js +2 -0
- package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +50 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js +2 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +45 -0
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +78 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js +2 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -0
- package/lib/module/components/widgets/AlertDisplay.js +12 -0
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -0
- package/lib/module/components/widgets/CancelOrderDialog.js +81 -0
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +46 -0
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -0
- package/lib/module/components/widgets/SnackBarCustom.js +138 -0
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js +7 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -0
- package/lib/module/config/DispatchSDKConfig.js +7 -0
- package/lib/module/config/DispatchSDKConfig.js.map +1 -0
- package/lib/module/constants/apiConstants.js +4 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +10 -0
- package/lib/module/constants/constants.js.map +1 -0
- package/lib/module/constants/statuscode.js +11 -0
- package/lib/module/constants/statuscode.js.map +1 -0
- package/lib/module/errors/BaseError.js +21 -0
- package/lib/module/errors/BaseError.js.map +1 -0
- package/lib/module/errors/ErrorCodes.js +32 -0
- package/lib/module/errors/ErrorCodes.js.map +1 -0
- package/lib/module/index.js +24 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js +405 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -0
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +5 -0
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +89 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +72 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/reasonCodes.json +137 -0
- package/lib/module/manager/location/LocationManager.js +83 -0
- package/lib/module/manager/location/LocationManager.js.map +1 -0
- package/lib/module/manager/sdk/DispatchSDKManager.js +71 -0
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -0
- package/lib/module/manager/sdk/DispatchSdkCache.js +57 -0
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +128 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/DBConfig.js +48 -0
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -0
- package/lib/module/manager/syncmanager/NativeSyncManager.js +6 -0
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/database.js +30 -0
- package/lib/module/manager/syncmanager/database.js.map +1 -0
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +104 -0
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -0
- package/lib/module/manager/syncmanager/document/DocumentManager.js +98 -0
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -0
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +173 -0
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/document/models.js +2 -0
- package/lib/module/manager/syncmanager/document/models.js.map +1 -0
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +101 -0
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -0
- package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js +2 -0
- package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -0
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +247 -0
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -0
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +63 -0
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -0
- package/lib/module/models/DispatchModels.js +7 -0
- package/lib/module/models/DispatchModels.js.map +1 -0
- package/lib/module/models/ReasonCodes.js +2 -0
- package/lib/module/models/ReasonCodes.js.map +1 -0
- package/lib/module/models/auth.js +2 -0
- package/lib/module/models/auth.js.map +1 -0
- package/lib/module/models/execTasks/ETBaseModels.js +2 -0
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -0
- package/lib/module/models/execTasks/ETConfig.js +104 -0
- package/lib/module/models/execTasks/ETConfig.js.map +1 -0
- package/lib/module/models/execution.js +2 -0
- package/lib/module/models/execution.js.map +1 -0
- package/lib/module/models/fcm.js +2 -0
- package/lib/module/models/fcm.js.map +1 -0
- package/lib/module/models/sdk.js +8 -0
- package/lib/module/models/sdk.js.map +1 -0
- package/lib/module/native/signature/SignatureCapture.js +80 -0
- package/lib/module/native/signature/SignatureCapture.js.map +1 -0
- package/lib/module/network/GraphQLClient.js +132 -0
- package/lib/module/network/GraphQLClient.js.map +1 -0
- package/lib/module/network/NetworkClient.js +42 -0
- package/lib/module/network/NetworkClient.js.map +1 -0
- package/lib/module/network/NetworkUtils.js +23 -0
- package/lib/module/network/NetworkUtils.js.map +1 -0
- package/lib/module/network/Queries.js +42 -0
- package/lib/module/network/Queries.js.map +1 -0
- package/lib/module/network/client.js +74 -0
- package/lib/module/network/client.js.map +1 -0
- package/lib/module/res/strings.js +2 -0
- package/lib/module/res/strings.js.map +1 -0
- package/lib/module/resources/Login.js +42 -0
- package/lib/module/resources/Login.js.map +1 -0
- package/lib/module/resources/network.js +18 -0
- package/lib/module/resources/network.js.map +1 -0
- package/lib/module/styles/SdkColors.js +22 -0
- package/lib/module/styles/SdkColors.js.map +1 -0
- package/lib/module/styles/executionTasks/CommonStyles.js +146 -0
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -0
- package/lib/module/ui/screens/CancellationScreen.js +41 -0
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -0
- package/lib/module/ui/screens/CaptureInputScreen.js +52 -0
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -0
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +42 -0
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -0
- package/lib/module/ui/screens/DeliverScreen.js +53 -0
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -0
- package/lib/module/ui/screens/DisplayScreen.js +27 -0
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -0
- package/lib/module/ui/screens/DoodleScreen.js +56 -0
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -0
- package/lib/module/ui/screens/DropCashScreen.js +67 -0
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -0
- package/lib/module/ui/screens/ETScreensIndex.js +17 -0
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -0
- package/lib/module/ui/screens/FormsScreen.js +28 -0
- package/lib/module/ui/screens/FormsScreen.js.map +1 -0
- package/lib/module/ui/screens/GeofenceScreen.js +30 -0
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -0
- package/lib/module/ui/screens/HttpRequestScreen.js +23 -0
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -0
- package/lib/module/ui/screens/ImageCaptureScreen.js +27 -0
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -0
- package/lib/module/ui/screens/PaymentScreen.js +119 -0
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -0
- package/lib/module/ui/screens/PickupScreen.js +32 -0
- package/lib/module/ui/screens/PickupScreen.js.map +1 -0
- package/lib/module/ui/screens/RTScanScreen.js +93 -0
- package/lib/module/ui/screens/RTScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +105 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +35 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -0
- package/lib/module/ui/uiConfig/RouteParams.js +9 -0
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +93 -0
- package/lib/module/utils/ExecTaskUtils.js.map +1 -0
- package/lib/module/utils/Logger.js +97 -0
- package/lib/module/utils/Logger.js.map +1 -0
- package/lib/module/utils/NetworkUtil.js +54 -0
- package/lib/module/utils/NetworkUtil.js.map +1 -0
- package/lib/module/utils/SdkUtils.js +103 -0
- package/lib/module/utils/SdkUtils.js.map +1 -0
- package/lib/module/utils/SyncManagerUtils.js +93 -0
- package/lib/module/utils/SyncManagerUtils.js.map +1 -0
- package/lib/module/utils/fcm/FCM.js +36 -0
- package/lib/module/utils/fcm/FCM.js.map +1 -0
- package/lib/module/utils/fcm/FcmUtils.js +68 -0
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -0
- package/lib/module/utils/helper.js +27 -0
- package/lib/module/utils/helper.js.map +1 -0
- package/lib/module/utils/loginHelper.js +60 -0
- package/lib/module/utils/loginHelper.js.map +1 -0
- package/lib/module/utils/storage.js +142 -0
- package/lib/module/utils/storage.js.map +1 -0
- package/lib/module/utils/test.json +17 -0
- package/lib/module/utils/utils.js +24 -0
- package/lib/module/utils/utils.js.map +1 -0
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +5 -0
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +18 -0
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +42 -0
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +12 -0
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +43 -0
- package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +4 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +42 -0
- package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +8 -0
- package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +23 -0
- package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +3 -0
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +48 -0
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +17 -0
- package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +4 -0
- package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +4 -0
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +24 -0
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +11 -0
- package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +8 -0
- package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +4 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +4 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +36 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +79 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureUtils.d.ts +9 -0
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/PaymentStyles.d.ts +78 -0
- package/lib/typescript/components/executiontasks/payments/PaymentUtils.d.ts +2 -0
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +18 -0
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +31 -0
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +33 -0
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +25 -0
- package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +8 -0
- package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +75 -0
- package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +15 -0
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +3 -0
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +3 -0
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +4 -0
- package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +14 -0
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +17 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +41 -0
- package/lib/typescript/components/executiontasks/verifyLocation/GeofenceUtils.d.ts +2 -0
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +50 -0
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +21 -0
- package/lib/typescript/components/widgets/AlertDisplay.d.ts +1 -0
- package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +13 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +7 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +20 -0
- package/lib/typescript/components/widgets/Toaster.d.ts +1 -0
- package/lib/typescript/config/DispatchSDKConfig.d.ts +4 -0
- package/lib/typescript/constants/apiConstants.d.ts +3 -0
- package/lib/typescript/constants/constants.d.ts +9 -0
- package/lib/typescript/constants/statuscode.d.ts +7 -0
- package/lib/typescript/errors/BaseError.d.ts +10 -0
- package/lib/typescript/errors/ErrorCodes.d.ts +28 -0
- package/lib/typescript/index.d.ts +31 -0
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +41 -0
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +1 -0
- package/lib/typescript/manager/dispatchCodes/ReasonCodeContainer.d.ts +12 -0
- package/lib/typescript/manager/dispatchCodes/ReasonCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/location/LocationManager.d.ts +14 -0
- package/lib/typescript/manager/sdk/DispatchSDKManager.d.ts +14 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +17 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +24 -0
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +77 -0
- package/lib/typescript/manager/syncmanager/NativeSyncManager.d.ts +6 -0
- package/lib/typescript/manager/syncmanager/database.d.ts +2 -0
- package/lib/typescript/manager/syncmanager/document/DocumentHttpClient.d.ts +9 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +15 -0
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +25 -0
- package/lib/typescript/manager/syncmanager/document/models.d.ts +4 -0
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +16 -0
- package/lib/typescript/manager/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +30 -0
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +9 -0
- package/lib/typescript/models/DispatchModels.d.ts +17 -0
- package/lib/typescript/models/ReasonCodes.d.ts +6 -0
- package/lib/typescript/models/auth.d.ts +32 -0
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +81 -0
- package/lib/typescript/models/execTasks/ETConfig.d.ts +86 -0
- package/lib/typescript/models/execution.d.ts +9 -0
- package/lib/typescript/models/fcm.d.ts +3 -0
- package/lib/typescript/models/sdk.d.ts +24 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +33 -0
- package/lib/typescript/network/GraphQLClient.d.ts +15 -0
- package/lib/typescript/network/NetworkClient.d.ts +8 -0
- package/lib/typescript/network/NetworkUtils.d.ts +11 -0
- package/lib/typescript/network/Queries.d.ts +5 -0
- package/lib/typescript/network/client.d.ts +8 -0
- package/lib/typescript/res/strings.d.ts +1 -0
- package/lib/typescript/resources/Login.d.ts +14 -0
- package/lib/typescript/resources/network.d.ts +7 -0
- package/lib/typescript/styles/SdkColors.d.ts +16 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +140 -0
- package/lib/typescript/ui/screens/CancellationScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DeliverScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DisplayScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DoodleScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/DropCashScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +16 -0
- package/lib/typescript/ui/screens/FormsScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/GeofenceScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/PaymentScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/PickupScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/RTScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +3 -0
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +8 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +7 -0
- package/lib/typescript/utils/Logger.d.ts +22 -0
- package/lib/typescript/utils/NetworkUtil.d.ts +14 -0
- package/lib/typescript/utils/SdkUtils.d.ts +25 -0
- package/lib/typescript/utils/SyncManagerUtils.d.ts +10 -0
- package/lib/typescript/utils/fcm/FCM.d.ts +8 -0
- package/lib/typescript/utils/fcm/FcmUtils.d.ts +5 -0
- package/lib/typescript/utils/helper.d.ts +14 -0
- package/lib/typescript/utils/loginHelper.d.ts +13 -0
- package/lib/typescript/utils/storage.d.ts +49 -0
- package/lib/typescript/utils/utils.d.ts +3 -0
- package/package.json +254 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TAG","EventsSyncManager","retries","_retries","value","constructor","initSyncManager","baseURL","retryCount","isEmptyOrBlank","BaseError","BaseErrorCodes","InvalidBaseURL","maxRetryCount","syncHttpClient","SyncHttpClient","getInstance","instance","startSync","inProgress","hasNetwork","NetworkUtil","isAvailableAsync","checkForInitialization","eventsManager","ETEventsManager","dspID","DispatchSdkCache","getKeyFromCache","KEYS","DISPATCH_ID","custodyScans","getCustodyBatch","length","startCustodyScans","then","catch","unsyncedData","getWorkflowUpdateEvents","SyncType","WORKFLOW","syncEventToServer","Logger","logEvent","LOG_TYPE","SDK_INFO","error","isSyncPending","cScanInProgress","inScans","filter","scan","sync_type","CUSTODY_IN_SCAN","outScans","scans","CUSTODY_OUT_SCAN","updateEventError","eventRows","errorString","ev","updateError","id","err","message","SDK_WARNING","forceSync","getAllUnsyncedEvents","markEventSynced","insertEvent","sequence","payload","syncType","objectiveRef","config","InvalidArgumentError","InvalidArgumentsError","SyncManagerNotInitialized","getObjectiveSummary","data","getObjectiveDetails","requiredPayload","row","JSON","parse","status","stringify","SDK_ERROR","success","syncEvent","getAllEvents","clearEventsDB","deleteAllEvents"],"sources":["EventsSyncManager.ts"],"sourcesContent":["import ETEventsManager from './ETEventsManager';\nimport type { EventRow } from '../DBConfig';\nimport SyncHttpClient from './SyncHttpClient';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { BaseError } from '../../../errors/BaseError';\nimport BaseErrorCodes, {\n InvalidArgumentsError,\n InvalidBaseURL,\n SyncManagerNotInitialized,\n} from '../../../errors/ErrorCodes';\nimport NetworkUtil from '../../../utils/NetworkUtil';\nimport Logger, { LOG_TYPE } from '../../../utils/Logger';\nimport { SyncType } from '@foxtrotplatform/mobile-execution-lib';\nimport DispatchSdkCache from '../../sdk/DispatchSdkCache';\n\nconst TAG = 'EventsSyncManager';\nexport default class EventsSyncManager {\n private syncHttpClient: SyncHttpClient | undefined;\n private static instance: EventsSyncManager;\n private inProgress: boolean = false;\n private cScanInProgress: boolean = false;\n private eventsManager: ETEventsManager | undefined;\n private maxRetryCount: number = 3;\n private _retries = 0;\n\n get retries(): number {\n return this._retries;\n }\n\n set retries(value: number) {\n this._retries = value;\n }\n\n private constructor() {}\n\n public initSyncManager(baseURL: string, retryCount: number) {\n if (isEmptyOrBlank(baseURL))\n throw new BaseError(BaseErrorCodes.InvalidBaseURL, InvalidBaseURL);\n this.maxRetryCount = retryCount;\n this.syncHttpClient = new SyncHttpClient(baseURL);\n }\n\n public static getInstance(): EventsSyncManager {\n if (!EventsSyncManager.instance) {\n EventsSyncManager.instance = new EventsSyncManager();\n }\n return EventsSyncManager.instance;\n }\n\n public async startSync(): Promise<void> {\n if (!this.inProgress && this._retries < this.maxRetryCount) {\n this.inProgress = true;\n const hasNetwork = await NetworkUtil.isAvailableAsync();\n try {\n this.checkForInitialization();\n if (!this.eventsManager) {\n this.eventsManager = await ETEventsManager.getInstance();\n }\n if (hasNetwork) {\n const dspID = await DispatchSdkCache.getInstance().getKeyFromCache(\n DispatchSdkCache.KEYS.DISPATCH_ID\n );\n const custodyScans = await this.eventsManager.getCustodyBatch(\n dspID ?? ''\n );\n if (custodyScans && custodyScans.length > 0) {\n this.startCustodyScans(custodyScans).then().catch();\n }\n let unsyncedData = await this.eventsManager.getWorkflowUpdateEvents(\n SyncType.WORKFLOW\n );\n if (unsyncedData?.length > 0) {\n await this.syncEventToServer(unsyncedData, SyncType.WORKFLOW);\n } else {\n Logger.getInstance().logEvent(\n 'startSync',\n 'No workflow/task data to sync in Events Manager',\n LOG_TYPE.SDK_INFO\n );\n }\n } else {\n Logger.getInstance().logEvent(\n 'startSync',\n 'NO NETWORK AVAILABLE!!',\n LOG_TYPE.SDK_INFO\n );\n }\n } catch (error: any) {\n } finally {\n this.inProgress = false;\n if ((await this.isSyncPending()) && hasNetwork) {\n await this.startSync();\n }\n }\n } else {\n Logger.getInstance().logEvent(\n 'startSync',\n 'WORKFLOW/TASK ALREADY IN PROGRESS || Max Retries reached',\n LOG_TYPE.SDK_INFO\n );\n }\n }\n\n public async startCustodyScans(custodyScans: EventRow[]) {\n if (!this.cScanInProgress) {\n this.cScanInProgress = true;\n try {\n const inScans = custodyScans.filter(\n (scan) => scan.sync_type === SyncType.CUSTODY_IN_SCAN\n );\n const outScans = custodyScans.filter(\n (scans) => scans.sync_type === SyncType.CUSTODY_OUT_SCAN\n );\n if (inScans && inScans.length > 0) {\n await this.syncEventToServer(inScans, SyncType.CUSTODY_IN_SCAN);\n } else if (outScans && outScans.length > 0) {\n await this.syncEventToServer(outScans, SyncType.CUSTODY_OUT_SCAN);\n } else {\n Logger.getInstance().logEvent(\n 'startCustodyScans',\n 'NO CUSTODY SCANS LEFT TO SYNC',\n LOG_TYPE.SDK_INFO\n );\n }\n } catch (error: any) {\n } finally {\n this.cScanInProgress = false;\n if (await this.isSyncPending()) await this.startSync();\n }\n } else {\n Logger.getInstance().logEvent(\n 'startCustodyScans',\n 'Custody Scan already in Progress',\n LOG_TYPE.SDK_INFO\n );\n }\n }\n\n private async updateEventError(\n eventRows: EventRow[],\n errorString: string\n ): Promise<void> {\n if (!eventRows || eventRows.length === 0) return;\n if (!this.eventsManager) {\n this.eventsManager = await ETEventsManager.getInstance();\n }\n for (const ev of eventRows) {\n try {\n await this.eventsManager.updateError(ev.id, errorString);\n } catch (err: any) {\n Logger.getInstance().logEvent(\n 'updateEventError',\n err.message,\n LOG_TYPE.SDK_WARNING\n );\n }\n }\n }\n\n /**\n * force sync events who retry count >3 This function can be called from app UI to sync the events forcefully\n */\n public async forceSync() {\n if (!this.eventsManager)\n this.eventsManager = await ETEventsManager.getInstance();\n this._retries = 0;\n await this.startSync();\n }\n\n public async isSyncPending(): Promise<boolean> {\n if (!this.eventsManager) {\n this.eventsManager = await ETEventsManager.getInstance();\n }\n let unsyncedData = await this.eventsManager.getAllUnsyncedEvents();\n return unsyncedData?.length > 0 && this._retries < this.maxRetryCount;\n }\n\n private async markEventSynced(eventRows: EventRow[]) {\n if (!eventRows || eventRows.length === 0) return;\n if (!this.eventsManager) {\n this.eventsManager = await ETEventsManager.getInstance();\n }\n for (const ev of eventRows) {\n try {\n await this.eventsManager.markEventSynced(ev.id);\n } catch (err: any) {\n Logger.getInstance().logEvent(\n 'markEventSynced',\n err.message,\n LOG_TYPE.SDK_WARNING\n );\n }\n }\n }\n\n public async insertEvent(\n sequence: number,\n payload: string,\n dspID: string,\n syncType: string,\n objectiveRef: string,\n config?: string\n ): Promise<void> {\n if (\n !sequence ||\n isEmptyOrBlank(payload) ||\n isEmptyOrBlank(dspID) ||\n isEmptyOrBlank(syncType) ||\n isEmptyOrBlank(objectiveRef)\n )\n throw new BaseError(\n BaseErrorCodes.InvalidArgumentError,\n InvalidArgumentsError\n );\n if (!this.eventsManager) {\n this.eventsManager = await ETEventsManager.getInstance();\n }\n await this.eventsManager.insertEvent(\n sequence,\n payload,\n dspID,\n syncType,\n objectiveRef,\n config\n );\n }\n private checkForInitialization() {\n if (!this.syncHttpClient) {\n throw new BaseError(\n BaseErrorCodes.SyncManagerNotInitialized,\n SyncManagerNotInitialized\n );\n }\n }\n\n public async getObjectiveSummary(objectiveRef: string): Promise<any> {\n if (!objectiveRef) return [];\n if (!this.eventsManager) {\n this.eventsManager = await ETEventsManager.getInstance();\n }\n try {\n let data = await this.eventsManager.getObjectiveDetails(objectiveRef);\n let requiredPayload: any = null;\n for (const row of data) {\n let payload = JSON.parse(row.payload);\n if (payload.status === 'CLOSED') {\n requiredPayload = payload;\n }\n }\n if (requiredPayload) return requiredPayload.data;\n else return null;\n } catch (err: any) {\n Logger.getInstance().logEvent(\n 'getObjectiveSummary',\n err.message,\n LOG_TYPE.SDK_WARNING\n );\n return null;\n }\n }\n\n private async syncEventToServer(eventRows: EventRow[], syncType: SyncType) {\n try {\n Logger.getInstance().logEvent(\n TAG,\n `Syncing ${syncType} :- ${JSON.stringify(eventRows)}`,\n LOG_TYPE.SDK_ERROR\n );\n const success = await this.syncHttpClient?.syncEvent(eventRows, syncType);\n Logger.getInstance().logEvent(\n TAG,\n `Synced ${syncType} :- ${JSON.stringify(eventRows)}`,\n LOG_TYPE.SDK_ERROR\n );\n if (success) {\n this._retries = 0;\n await this.markEventSynced(eventRows);\n } else {\n this._retries++;\n Logger.getInstance().logEvent(\n 'syncEventToServer',\n `Syncing Error ${syncType} :- ${JSON.stringify(eventRows)}`,\n LOG_TYPE.SDK_ERROR\n );\n await this.updateEventError(eventRows, 'Unexpected error');\n }\n } catch (error: any) {\n this._retries++;\n Logger.getInstance().logEvent(\n 'syncEventToServer',\n `Syncing Error ${syncType} :- ${JSON.stringify(eventRows)} -: ${\n error.message\n }`,\n LOG_TYPE.SDK_ERROR\n );\n await this.updateEventError(\n eventRows,\n JSON.stringify({\n error,\n })\n );\n }\n }\n public async getAllEvents(dspID?: string): Promise<EventRow[]> {\n if (!this.eventsManager)\n this.eventsManager = await ETEventsManager.getInstance();\n return this.eventsManager.getAllEvents(dspID);\n }\n public async clearEventsDB() {\n if (!this.eventsManager)\n this.eventsManager = await ETEventsManager.getInstance();\n await this.eventsManager.deleteAllEvents();\n }\n}\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,GAAG,GAAG,mBAAZ;;AACe,MAAMC,iBAAN,CAAwB;EAS1B,IAAPC,OAAO,GAAW;IACpB,OAAO,KAAKC,QAAZ;EACD;;EAEU,IAAPD,OAAO,CAACE,KAAD,EAAgB;IACzB,KAAKD,QAAL,GAAgBC,KAAhB;EACD;;EAEOC,WAAW,GAAG;IAAA;;IAAA,oCAdQ,KAcR;;IAAA,yCAba,KAab;;IAAA;;IAAA,uCAXU,CAWV;;IAAA,kCAVH,CAUG;EAAE;;EAEjBC,eAAe,CAACC,OAAD,EAAkBC,UAAlB,EAAsC;IAC1D,IAAI,IAAAC,qBAAA,EAAeF,OAAf,CAAJ,EACE,MAAM,IAAIG,oBAAJ,CAAcC,mBAAA,CAAeC,cAA7B,EAA6CA,0BAA7C,CAAN;IACF,KAAKC,aAAL,GAAqBL,UAArB;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,YAAY,CAAChE,KAAD,EAAsC;IAC7D,IAAI,CAAC,KAAKF,aAAV,EACE,KAAKA,aAAL,GAAqB,MAAMC,wBAAA,CAAgBT,WAAhB,EAA3B;IACF,OAAO,KAAKQ,aAAL,CAAmBkE,YAAnB,CAAgChE,KAAhC,CAAP;EACD;;EACyB,MAAbiE,aAAa,GAAG;IAC3B,IAAI,CAAC,KAAKnE,aAAV,EACE,KAAKA,aAAL,GAAqB,MAAMC,wBAAA,CAAgBT,WAAhB,EAA3B;IACF,MAAM,KAAKQ,aAAL,CAAmBoE,eAAnB,EAAN;EACD;;AAxSoC;;;;gBAAlB3F,iB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _client = _interopRequireDefault(require("../../../network/client"));
|
|
9
|
+
|
|
10
|
+
var _GraphQLClient = _interopRequireDefault(require("../../../network/GraphQLClient"));
|
|
11
|
+
|
|
12
|
+
var _NetworkClient = _interopRequireDefault(require("../../../network/NetworkClient"));
|
|
13
|
+
|
|
14
|
+
var _mobileExecutionLib = require("@foxtrotplatform/mobile-execution-lib");
|
|
15
|
+
|
|
16
|
+
var _utils = require("../../../utils/utils");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
class SyncHttpClient extends _client.default {
|
|
23
|
+
constructor(baseURL) {
|
|
24
|
+
super(baseURL);
|
|
25
|
+
|
|
26
|
+
_defineProperty(this, "networkInstance", void 0);
|
|
27
|
+
|
|
28
|
+
this.networkInstance = new _NetworkClient.default(baseURL);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async syncEvent(eventRow, syncType) {
|
|
32
|
+
if (eventRow.length < 1) return null;
|
|
33
|
+
return new Promise(async (resolve, reject) => {
|
|
34
|
+
setTimeout(async () => {
|
|
35
|
+
var _response$data, _response$data$custod, _custodyOutResponse$d, _custodyOutResponse$d2;
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
switch (syncType) {
|
|
39
|
+
case _mobileExecutionLib.SyncType.CUSTODY_IN_SCAN:
|
|
40
|
+
const custodyInScans = [];
|
|
41
|
+
|
|
42
|
+
for (const ev of eventRow) {
|
|
43
|
+
custodyInScans.push(JSON.parse(ev.payload));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const response = await _GraphQLClient.default.getInstance().postCustodyIn(custodyInScans, eventRow[0].dispatch_id);
|
|
47
|
+
resolve((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$custod = _response$data.custodyInBatch) === null || _response$data$custod === void 0 ? void 0 : _response$data$custod.success) === true);
|
|
48
|
+
break;
|
|
49
|
+
|
|
50
|
+
case _mobileExecutionLib.SyncType.CUSTODY_OUT_SCAN:
|
|
51
|
+
const custodyOutScans = [];
|
|
52
|
+
|
|
53
|
+
for (const ev of eventRow) {
|
|
54
|
+
custodyOutScans.push(JSON.parse(ev.payload));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const custodyOutResponse = await _GraphQLClient.default.getInstance().postCustodyOut(custodyOutScans, eventRow[0].dispatch_id);
|
|
58
|
+
resolve((custodyOutResponse === null || custodyOutResponse === void 0 ? void 0 : (_custodyOutResponse$d = custodyOutResponse.data) === null || _custodyOutResponse$d === void 0 ? void 0 : (_custodyOutResponse$d2 = _custodyOutResponse$d.custodyOutBatch) === null || _custodyOutResponse$d2 === void 0 ? void 0 : _custodyOutResponse$d2.success) === true);
|
|
59
|
+
break;
|
|
60
|
+
|
|
61
|
+
case _mobileExecutionLib.SyncType.WORKFLOW:
|
|
62
|
+
const workflowResp = await _GraphQLClient.default.getInstance().postWorkflowUpdate(JSON.parse(eventRow[0].payload), JSON.parse(eventRow[0].config).params.workflowInstanceId);
|
|
63
|
+
resolve(!(0, _utils.isEmptyOrBlank)(workflowResp === null || workflowResp === void 0 ? void 0 : workflowResp.data.updateWorkflowStatus.id));
|
|
64
|
+
break;
|
|
65
|
+
|
|
66
|
+
default:
|
|
67
|
+
resolve(null);
|
|
68
|
+
}
|
|
69
|
+
} catch (error) {
|
|
70
|
+
reject(error);
|
|
71
|
+
}
|
|
72
|
+
}, 1000);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
exports.default = SyncHttpClient;
|
|
79
|
+
//# sourceMappingURL=SyncHttpClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SyncHttpClient","HttpClient","constructor","baseURL","networkInstance","NetworkClient","syncEvent","eventRow","syncType","length","Promise","resolve","reject","setTimeout","SyncType","CUSTODY_IN_SCAN","custodyInScans","ev","push","JSON","parse","payload","response","GraphQLClient","getInstance","postCustodyIn","dispatch_id","data","custodyInBatch","success","CUSTODY_OUT_SCAN","custodyOutScans","custodyOutResponse","postCustodyOut","custodyOutBatch","WORKFLOW","workflowResp","postWorkflowUpdate","config","params","workflowInstanceId","isEmptyOrBlank","updateWorkflowStatus","id","error"],"sources":["SyncHttpClient.ts"],"sourcesContent":["import HttpClient from '../../../network/client';\nimport type { EventRow } from '../DBConfig';\nimport GraphQLClient from '../../../network/GraphQLClient';\nimport NetworkClient from '../../../network/NetworkClient';\nimport { SyncType } from '@foxtrotplatform/mobile-execution-lib';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { ENDPOINTS } from '../../../constants/apiConstants';\nimport Logger, { LOG_TYPE } from '../../../utils/Logger';\n\nexport default class SyncHttpClient extends HttpClient {\n protected readonly networkInstance: NetworkClient;\n constructor(baseURL: string) {\n super(baseURL);\n this.networkInstance = new NetworkClient(baseURL);\n }\n\n public async syncEvent(\n eventRow: EventRow[],\n syncType: SyncType\n ): Promise<boolean | null> {\n if (eventRow.length < 1) return null;\n return new Promise(async (resolve, reject) => {\n setTimeout(async () => {\n try {\n switch (syncType) {\n case SyncType.CUSTODY_IN_SCAN:\n const custodyInScans = [];\n for (const ev of eventRow) {\n custodyInScans.push(JSON.parse(ev.payload));\n }\n const response = await GraphQLClient.getInstance().postCustodyIn(\n custodyInScans,\n eventRow[0].dispatch_id\n );\n resolve(response?.data?.custodyInBatch?.success === true);\n break;\n case SyncType.CUSTODY_OUT_SCAN:\n const custodyOutScans = [];\n for (const ev of eventRow) {\n custodyOutScans.push(JSON.parse(ev.payload));\n }\n const custodyOutResponse =\n await GraphQLClient.getInstance().postCustodyOut(\n custodyOutScans,\n eventRow[0].dispatch_id\n );\n resolve(\n custodyOutResponse?.data?.custodyOutBatch?.success === true\n );\n break;\n case SyncType.WORKFLOW:\n const workflowResp =\n await GraphQLClient.getInstance().postWorkflowUpdate(\n JSON.parse(eventRow[0].payload),\n JSON.parse(eventRow[0].config).params.workflowInstanceId\n );\n resolve(\n !isEmptyOrBlank(workflowResp?.data.updateWorkflowStatus.id)\n );\n break;\n default:\n resolve(null);\n }\n } catch (error: any) {\n reject(error);\n }\n }, 1000);\n });\n }\n}\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;;;;;AAIe,MAAMA,cAAN,SAA6BC,eAA7B,CAAwC;EAErDC,WAAW,CAACC,OAAD,EAAkB;IAC3B,MAAMA,OAAN;;IAD2B;;IAE3B,KAAKC,eAAL,GAAuB,IAAIC,sBAAJ,CAAkBF,OAAlB,CAAvB;EACD;;EAEqB,MAATG,SAAS,CACpBC,QADoB,EAEpBC,QAFoB,EAGK;IACzB,IAAID,QAAQ,CAACE,MAAT,GAAkB,CAAtB,EAAyB,OAAO,IAAP;IACzB,OAAO,IAAIC,OAAJ,CAAY,OAAOC,OAAP,EAAg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AvB,CADI,EAEJF,IAAI,CAACC,KAAL,CAAWb,QAAQ,CAAC,CAAD,CAAR,CAAY+B,MAAvB,EAA+BC,MAA/B,CAAsCC,kBAFlC,CADR;cAKA7B,OAAO,CACL,CAAC,IAAA8B,qBAAA,EAAeL,YAAf,aAAeA,YAAf,uBAAeA,YAAY,CAAET,IAAd,CAAmBe,oBAAnB,CAAwCC,EAAvD,CADI,CAAP;cAGA;;YACF;cACEhC,OAAO,CAAC,IAAD,CAAP;UArCJ;QAuCD,CAxCD,CAwCE,OAAOiC,KAAP,EAAmB;UACnBhC,MAAM,CAACgC,KAAD,CAAN;QACD;MACF,CA5CS,EA4CP,IA5CO,CAAV;IA6CD,CA9CM,CAAP;EA+CD;;AA3DoD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SdkSyncType = void 0;
|
|
7
|
+
let SdkSyncType;
|
|
8
|
+
exports.SdkSyncType = SdkSyncType;
|
|
9
|
+
|
|
10
|
+
(function (SdkSyncType) {
|
|
11
|
+
SdkSyncType[SdkSyncType["EVENTS_SYNC"] = 0] = "EVENTS_SYNC";
|
|
12
|
+
SdkSyncType[SdkSyncType["DOCUMENT_SYNC"] = 1] = "DOCUMENT_SYNC";
|
|
13
|
+
})(SdkSyncType || (exports.SdkSyncType = SdkSyncType = {}));
|
|
14
|
+
//# sourceMappingURL=DispatchModels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SdkSyncType"],"sources":["DispatchModels.ts"],"sourcesContent":["import type { state } from '@foxtrotplatform/mobile-execution-lib';\n\nexport interface BaseETProps {\n showProgress: (loading: boolean) => void;\n}\n\nexport enum SdkSyncType {\n EVENTS_SYNC,\n DOCUMENT_SYNC,\n}\n\nexport interface JobObjectiveType {\n objectiveId: string;\n jobId: string;\n}\n\nexport interface stateWithObjRef {\n nextState: state;\n objRef: string;\n jobId: string;\n}\n"],"mappings":";;;;;;IAMYA,W;;;WAAAA,W;EAAAA,W,CAAAA,W;EAAAA,W,CAAAA,W;GAAAA,W,2BAAAA,W"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ReasonCodes.ts"],"sourcesContent":["export interface ReasonCodes {\n description: string;\n isEnabled: boolean;\n reasonCode: string;\n isSystemDefined: boolean;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["auth.ts"],"sourcesContent":["export interface Device {\n identifier: string;\n type: string;\n}\n\nexport interface Credential {\n password: string;\n}\nexport interface LoginPayload {\n appName: string;\n appSecret: string;\n authType: string;\n tenant: string;\n username: string;\n device: Device;\n credential: Credential;\n}\nexport interface Cookie {\n platform_access_cookie: string;\n platform_refresh_cookie: string;\n}\n\nexport interface AccessTokenPayload {\n accessToken: string;\n}\n\nexport interface RefreshTokenPayload {\n tenant: string;\n appName: string;\n applicationSecret: string;\n}\nexport type LoginType =\n | 'mobilePassword'\n | 'mobileOtp'\n | 'mPin'\n | 'usernamePassword'\n | 'clientCredential';\n\n// export type mainCookie = Cookie | any;\n\nexport interface Headers {\n requestId: string;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ETBaseModels.ts"],"sourcesContent":["export type BaseETResponse = {\n /**\n * Success flag for the operation performed by user\n */\n entityCode: string;\n success: boolean;\n /**\n * Event code\n */\n eventCode: string;\n /**\n * Reason code\n */\n reasonCode: string;\n /**\n * Meta data related to execution of task\n */\n meta?: {\n /**\n * Epoch timestamp for the start of task\n */\n startTime?: number;\n /**\n * Epoch timestamp for the end of task\n */\n endTime?: number;\n /**\n * Location at start of task\n */\n location?: {\n /**\n * Latitude\n */\n latitude?: string;\n /**\n * Longitude\n */\n longitude?: string;\n };\n /**\n * Unique identifier of user performing the action\n */\n userDetails: UserData;\n };\n};\nexport interface UserData {\n id: string;\n name: string;\n}\n\n/**\n * Title of instruction\n */\nexport type Title = string;\n/**\n * Message of instruction\n */\nexport type Message = string;\n/**\n * Can go back\n */\nexport type CanGoBack = boolean;\n\nexport type BaseETRequest = {\n title: Title;\n message?: Message;\n canGoBack?: CanGoBack;\n applicableReasons?: ApplicableReasons;\n};\n\nexport interface ApplicableReasons {\n [k: string]: string[];\n}\n\nexport interface ETSummary {\n name: string;\n eventCode: string;\n reasonCode: string;\n reasonCodeDesc: string | null | undefined;\n}\n\nexport interface CompleteSummary {\n jobId: string;\n objectiveRef: string;\n jobObjectiveSummary: ETSummary[];\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FinalETName = exports.ExecutionTaskName = exports.ExecutionTaskID = exports.EntityCode = exports.CustomScreens = exports.BaseEventCodes = void 0;
|
|
7
|
+
let ExecutionTaskID;
|
|
8
|
+
exports.ExecutionTaskID = ExecutionTaskID;
|
|
9
|
+
|
|
10
|
+
(function (ExecutionTaskID) {
|
|
11
|
+
ExecutionTaskID["DELIVER"] = "etask:dcac5d49-c54c-5c38-a780-ad2e9ba5e2e2";
|
|
12
|
+
ExecutionTaskID["DOODLE"] = "etask:cea7c9a7-3ee7-52e9-ab3e-82849675d745";
|
|
13
|
+
ExecutionTaskID["COMPLETED_FAILURE"] = "etask:e04ab83d-2a02-5970-ade9-e2a8a879b200";
|
|
14
|
+
ExecutionTaskID["COMPLETED_SUCCESS"] = "etask:134e93b4-49a8-59b9-bc6c-7bd9045728ff";
|
|
15
|
+
ExecutionTaskID["CAPTURE_INPUT"] = "etask:7b5637cc-570e-5c9d-b184-ecfbbd7c198d";
|
|
16
|
+
ExecutionTaskID["START_WORKFLOW"] = "etask:952f3754-12e8-5ff2-93a8-aca383d18e56";
|
|
17
|
+
ExecutionTaskID["FORMS"] = "etask:80446347-ede5-5cf9-8e56-b3d59fda4b5c";
|
|
18
|
+
ExecutionTaskID["IMAGE_CAPTURE"] = "etask:9370d00a-8d84-5bf9-94bb-cd8cc73eeeec";
|
|
19
|
+
ExecutionTaskID["INIT_PAYMENT"] = "etask:4eb8d36b-6762-5c53-aca6-95b1f4e3aa3f";
|
|
20
|
+
ExecutionTaskID["PROCESS_PAYMENT"] = "etask:9a559375-02a5-50fe-9ce4-0a36df6f324e";
|
|
21
|
+
ExecutionTaskID["COMPLETE_PAYMENT"] = "etask:0e6c7bd7-c9ab-5b82-85b2-a054249bc1f1";
|
|
22
|
+
ExecutionTaskID["PICKUP"] = "etask:04d2414c-ddc1-552e-af02-78073dbb8ff7";
|
|
23
|
+
ExecutionTaskID["SCAN"] = "etask:28cba55d-2aad-5568-863a-9e7e645f8c7b";
|
|
24
|
+
ExecutionTaskID["VERIFY_LOCATION"] = "etask:7f3897da-3a1f-5736-b8e5-5d9f131b13cd";
|
|
25
|
+
ExecutionTaskID["DISPLAY"] = "etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44";
|
|
26
|
+
ExecutionTaskID["VERIFY_INPUT"] = "etask:6fc10a60-a144-5798-97f3-1f12e77f56e2";
|
|
27
|
+
ExecutionTaskID["DELIVER_CASH"] = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe";
|
|
28
|
+
ExecutionTaskID["HTTP_REQUEST_ET"] = "etask:e148b862-8368-5586-b29d-1eda95ffc8c4";
|
|
29
|
+
})(ExecutionTaskID || (exports.ExecutionTaskID = ExecutionTaskID = {}));
|
|
30
|
+
|
|
31
|
+
let ExecutionTaskName;
|
|
32
|
+
exports.ExecutionTaskName = ExecutionTaskName;
|
|
33
|
+
|
|
34
|
+
(function (ExecutionTaskName) {
|
|
35
|
+
ExecutionTaskName["DELIVER"] = "Deliver";
|
|
36
|
+
ExecutionTaskName["DOODLE"] = "Signature";
|
|
37
|
+
ExecutionTaskName["COMPLETED_FAILURE"] = "Please wait...";
|
|
38
|
+
ExecutionTaskName["COMPLETED_SUCCESS"] = "Please wait...";
|
|
39
|
+
ExecutionTaskName["CAPTURE_INPUT"] = "Form";
|
|
40
|
+
ExecutionTaskName["START_WORKFLOW"] = "Please wait...";
|
|
41
|
+
ExecutionTaskName["FORMS"] = "Form";
|
|
42
|
+
ExecutionTaskName["IMAGE_CAPTURE"] = "Capture Image";
|
|
43
|
+
ExecutionTaskName["INIT_PAYMENT"] = "Payment";
|
|
44
|
+
ExecutionTaskName["PROCESS_PAYMENT"] = "Processing Payment";
|
|
45
|
+
ExecutionTaskName["COMPLETE_PAYMENT"] = "Completing Payment";
|
|
46
|
+
ExecutionTaskName["PICKUP"] = "Pickup";
|
|
47
|
+
ExecutionTaskName["SCAN"] = "Scan";
|
|
48
|
+
ExecutionTaskName["VERIFY_LOCATION"] = "Verify Location";
|
|
49
|
+
ExecutionTaskName["DISPLAY"] = "Display";
|
|
50
|
+
ExecutionTaskName["VERIFY_INPUT"] = "Verifying Input";
|
|
51
|
+
ExecutionTaskName["DELIVER_CASH"] = "Drop Cash";
|
|
52
|
+
ExecutionTaskName["HTTP_REQUEST_ET"] = "Network Request";
|
|
53
|
+
})(ExecutionTaskName || (exports.ExecutionTaskName = ExecutionTaskName = {}));
|
|
54
|
+
|
|
55
|
+
let CustomScreens;
|
|
56
|
+
exports.CustomScreens = CustomScreens;
|
|
57
|
+
|
|
58
|
+
(function (CustomScreens) {
|
|
59
|
+
CustomScreens["REMARK_SCREEN"] = "REMARKS_SCREEN";
|
|
60
|
+
})(CustomScreens || (exports.CustomScreens = CustomScreens = {}));
|
|
61
|
+
|
|
62
|
+
let EntityCode;
|
|
63
|
+
exports.EntityCode = EntityCode;
|
|
64
|
+
|
|
65
|
+
(function (EntityCode) {
|
|
66
|
+
EntityCode["DELIVER"] = "0010";
|
|
67
|
+
EntityCode["DOODLE"] = "0014";
|
|
68
|
+
EntityCode["COMPLETED_FAILURE"] = "0008";
|
|
69
|
+
EntityCode["COMPLETED_SUCCESS"] = "0007";
|
|
70
|
+
EntityCode["CAPTURE_INPUT"] = "0012";
|
|
71
|
+
EntityCode["START_WORKFLOW"] = "0006";
|
|
72
|
+
EntityCode["FORMS"] = "0015";
|
|
73
|
+
EntityCode["IMAGE_CAPTURE"] = "0011";
|
|
74
|
+
EntityCode["INIT_PAYMENT"] = "0017";
|
|
75
|
+
EntityCode["PROCESS_PAYMENT"] = "0018";
|
|
76
|
+
EntityCode["COMPLETE_PAYMENT"] = "0019";
|
|
77
|
+
EntityCode["PICKUP"] = "0009";
|
|
78
|
+
EntityCode["SCAN"] = "0016";
|
|
79
|
+
EntityCode["VERIFY_LOCATION"] = "0021";
|
|
80
|
+
EntityCode["DISPLAY"] = "0013";
|
|
81
|
+
EntityCode["VERIFY_INPUT"] = "0020";
|
|
82
|
+
EntityCode["DELIVER_CASH"] = "0022";
|
|
83
|
+
EntityCode["HTTP_REQUEST_ET"] = "0023";
|
|
84
|
+
})(EntityCode || (exports.EntityCode = EntityCode = {}));
|
|
85
|
+
|
|
86
|
+
let BaseEventCodes;
|
|
87
|
+
exports.BaseEventCodes = BaseEventCodes;
|
|
88
|
+
|
|
89
|
+
(function (BaseEventCodes) {
|
|
90
|
+
BaseEventCodes["ENTITY_SUCCESS"] = "E-010";
|
|
91
|
+
BaseEventCodes["ENTITY_FAILURE"] = "E-011";
|
|
92
|
+
})(BaseEventCodes || (exports.BaseEventCodes = BaseEventCodes = {}));
|
|
93
|
+
|
|
94
|
+
let FinalETName;
|
|
95
|
+
exports.FinalETName = FinalETName;
|
|
96
|
+
|
|
97
|
+
(function (FinalETName) {
|
|
98
|
+
FinalETName["DELIVER"] = "Deliver";
|
|
99
|
+
FinalETName["DOODLE"] = "Doodle";
|
|
100
|
+
FinalETName["COMPLETED_FAILURE"] = "Completed-Failure";
|
|
101
|
+
FinalETName["COMPLETED_SUCCESS"] = "Completed-Success";
|
|
102
|
+
FinalETName["CAPTURE_INPUT"] = "etask:7b5637cc-570e-5c9d-b184-ecfbbd7c198d";
|
|
103
|
+
FinalETName["START_WORKFLOW"] = "Start";
|
|
104
|
+
FinalETName["FORMS"] = "Form";
|
|
105
|
+
FinalETName["IMAGE_CAPTURE"] = "etask:9370d00a-8d84-5bf9-94bb-cd8cc73eeeec";
|
|
106
|
+
FinalETName["INIT_PAYMENT"] = "etask:4eb8d36b-6762-5c53-aca6-95b1f4e3aa3f";
|
|
107
|
+
FinalETName["PROCESS_PAYMENT"] = "etask:9a559375-02a5-50fe-9ce4-0a36df6f324e";
|
|
108
|
+
FinalETName["COMPLETE_PAYMENT"] = "etask:0e6c7bd7-c9ab-5b82-85b2-a054249bc1f1";
|
|
109
|
+
FinalETName["PICKUP"] = "Pickup";
|
|
110
|
+
FinalETName["SCAN"] = "Scan";
|
|
111
|
+
FinalETName["VERIFY_LOCATION"] = "etask:7f3897da-3a1f-5736-b8e5-5d9f131b13cd";
|
|
112
|
+
FinalETName["DISPLAY"] = "etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44";
|
|
113
|
+
FinalETName["VERIFY_INPUT"] = "etask:6fc10a60-a144-5798-97f3-1f12e77f56e2";
|
|
114
|
+
FinalETName["DELIVER_CASH"] = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe";
|
|
115
|
+
})(FinalETName || (exports.FinalETName = FinalETName = {}));
|
|
116
|
+
//# sourceMappingURL=ETConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ExecutionTaskID","ExecutionTaskName","CustomScreens","EntityCode","BaseEventCodes","FinalETName"],"sources":["ETConfig.ts"],"sourcesContent":["export enum ExecutionTaskID {\n DELIVER = 'etask:dcac5d49-c54c-5c38-a780-ad2e9ba5e2e2',\n DOODLE = 'etask:cea7c9a7-3ee7-52e9-ab3e-82849675d745',\n COMPLETED_FAILURE = 'etask:e04ab83d-2a02-5970-ade9-e2a8a879b200',\n COMPLETED_SUCCESS = 'etask:134e93b4-49a8-59b9-bc6c-7bd9045728ff',\n CAPTURE_INPUT = 'etask:7b5637cc-570e-5c9d-b184-ecfbbd7c198d',\n START_WORKFLOW = 'etask:952f3754-12e8-5ff2-93a8-aca383d18e56',\n FORMS = 'etask:80446347-ede5-5cf9-8e56-b3d59fda4b5c',\n IMAGE_CAPTURE = 'etask:9370d00a-8d84-5bf9-94bb-cd8cc73eeeec',\n INIT_PAYMENT = 'etask:4eb8d36b-6762-5c53-aca6-95b1f4e3aa3f',\n PROCESS_PAYMENT = 'etask:9a559375-02a5-50fe-9ce4-0a36df6f324e',\n COMPLETE_PAYMENT = 'etask:0e6c7bd7-c9ab-5b82-85b2-a054249bc1f1',\n PICKUP = 'etask:04d2414c-ddc1-552e-af02-78073dbb8ff7',\n SCAN = 'etask:28cba55d-2aad-5568-863a-9e7e645f8c7b',\n VERIFY_LOCATION = 'etask:7f3897da-3a1f-5736-b8e5-5d9f131b13cd',\n DISPLAY = 'etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44',\n VERIFY_INPUT = 'etask:6fc10a60-a144-5798-97f3-1f12e77f56e2',\n DELIVER_CASH = 'etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe',\n HTTP_REQUEST_ET = 'etask:e148b862-8368-5586-b29d-1eda95ffc8c4',\n}\n\nexport enum ExecutionTaskName {\n DELIVER = 'Deliver',\n DOODLE = 'Signature',\n COMPLETED_FAILURE = 'Please wait...',\n COMPLETED_SUCCESS = 'Please wait...',\n CAPTURE_INPUT = 'Form',\n START_WORKFLOW = 'Please wait...',\n FORMS = 'Form',\n IMAGE_CAPTURE = 'Capture Image',\n INIT_PAYMENT = 'Payment',\n PROCESS_PAYMENT = 'Processing Payment',\n COMPLETE_PAYMENT = 'Completing Payment',\n PICKUP = 'Pickup',\n SCAN = 'Scan',\n VERIFY_LOCATION = 'Verify Location',\n DISPLAY = 'Display',\n VERIFY_INPUT = 'Verifying Input',\n DELIVER_CASH = 'Drop Cash',\n HTTP_REQUEST_ET = 'Network Request',\n}\n\nexport enum CustomScreens {\n REMARK_SCREEN = 'REMARKS_SCREEN',\n}\nexport enum EntityCode {\n DELIVER = '0010',\n DOODLE = '0014',\n COMPLETED_FAILURE = '0008',\n COMPLETED_SUCCESS = '0007',\n CAPTURE_INPUT = '0012',\n START_WORKFLOW = '0006',\n FORMS = '0015',\n IMAGE_CAPTURE = '0011',\n INIT_PAYMENT = '0017',\n PROCESS_PAYMENT = '0018',\n COMPLETE_PAYMENT = '0019',\n PICKUP = '0009',\n SCAN = '0016',\n VERIFY_LOCATION = '0021',\n DISPLAY = '0013',\n VERIFY_INPUT = '0020',\n DELIVER_CASH = '0022',\n HTTP_REQUEST_ET = '0023', //todo change Entity ID here\n}\n\nexport enum BaseEventCodes {\n ENTITY_SUCCESS = 'E-010',\n ENTITY_FAILURE = 'E-011',\n}\n\nexport enum FinalETName {\n DELIVER = 'Deliver',\n DOODLE = 'Doodle',\n COMPLETED_FAILURE = 'Completed-Failure',\n COMPLETED_SUCCESS = 'Completed-Success',\n CAPTURE_INPUT = 'etask:7b5637cc-570e-5c9d-b184-ecfbbd7c198d',\n START_WORKFLOW = 'Start',\n FORMS = 'Form',\n IMAGE_CAPTURE = 'etask:9370d00a-8d84-5bf9-94bb-cd8cc73eeeec',\n INIT_PAYMENT = 'etask:4eb8d36b-6762-5c53-aca6-95b1f4e3aa3f',\n PROCESS_PAYMENT = 'etask:9a559375-02a5-50fe-9ce4-0a36df6f324e',\n COMPLETE_PAYMENT = 'etask:0e6c7bd7-c9ab-5b82-85b2-a054249bc1f1',\n PICKUP = 'Pickup',\n SCAN = 'Scan',\n VERIFY_LOCATION = 'etask:7f3897da-3a1f-5736-b8e5-5d9f131b13cd',\n DISPLAY = 'etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44',\n VERIFY_INPUT = 'etask:6fc10a60-a144-5798-97f3-1f12e77f56e2',\n DELIVER_CASH = 'etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe',\n}\n"],"mappings":";;;;;;IAAYA,e;;;WAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;EAAAA,e;GAAAA,e,+BAAAA,e;;IAqBAC,iB;;;WAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;EAAAA,iB;GAAAA,iB,iCAAAA,iB;;IAqBAC,a;;;WAAAA,a;EAAAA,a;GAAAA,a,6BAAAA,a;;IAGAC,U;;;WAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;EAAAA,U;GAAAA,U,0BAAAA,U;;IAqBAC,c;;;WAAAA,c;EAAAA,c;EAAAA,c;GAAAA,c,8BAAAA,c;;IAKAC,W;;;WAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;GAAAA,W,2BAAAA,W"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["execution.ts"],"sourcesContent":["export interface DisplayProps {\n message: string;\n primaryButtonName: string;\n primaryButtonAction?: () => void;\n displayType: string;\n uri?: string;\n secondaryButtonName?: string;\n secondaryButtonAction?: () => void;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["fcm.ts"],"sourcesContent":["export interface messageReceived {\n (message: object): void;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ENVIRONMENT = void 0;
|
|
7
|
+
let ENVIRONMENT;
|
|
8
|
+
exports.ENVIRONMENT = ENVIRONMENT;
|
|
9
|
+
|
|
10
|
+
(function (ENVIRONMENT) {
|
|
11
|
+
ENVIRONMENT["DEV"] = "dev";
|
|
12
|
+
ENVIRONMENT["PRE_PROD"] = "preprod";
|
|
13
|
+
ENVIRONMENT["PROD"] = "prod";
|
|
14
|
+
})(ENVIRONMENT || (exports.ENVIRONMENT = ENVIRONMENT = {}));
|
|
15
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ENVIRONMENT"],"sources":["sdk.ts"],"sourcesContent":["export interface DispatchSDKConfig {\n tenantID: string;\n userID: string;\n userName: string;\n tenantBaseURL: string;\n enableLogging?: boolean;\n syncRetryCount?: number;\n accessToken: string;\n sentry?: {\n env: ENVIRONMENT;\n enabled: boolean;\n dsn?: string;\n };\n notificationConfig?: {\n title: string;\n description: string;\n interval: number;\n };\n}\n\nexport enum ENVIRONMENT {\n DEV = 'dev',\n PRE_PROD = 'preprod',\n PROD = 'prod',\n}\n"],"mappings":";;;;;;IAoBYA,W;;;WAAAA,W;EAAAA,W;EAAAA,W;EAAAA,W;GAAAA,W,2BAAAA,W"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
|
|
16
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
|
|
18
|
+
const RSSignatureView = (0, _reactNative.requireNativeComponent)('RSSignatureView');
|
|
19
|
+
|
|
20
|
+
class SignatureCapture extends _react.default.Component {
|
|
21
|
+
constructor(props) {
|
|
22
|
+
super(props);
|
|
23
|
+
|
|
24
|
+
_defineProperty(this, "subscriptions", void 0);
|
|
25
|
+
|
|
26
|
+
this.onChange = this.onChange.bind(this);
|
|
27
|
+
this.subscriptions = [];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
onChange(event) {
|
|
31
|
+
if (event.nativeEvent.encoded) {
|
|
32
|
+
if (!this.props.onSaveEvent) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
this.props.onSaveEvent({
|
|
37
|
+
encoded: event.nativeEvent.encoded
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (event.nativeEvent.dragged) {
|
|
42
|
+
if (!this.props.onDragEvent) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
this.props.onDragEvent({
|
|
47
|
+
dragged: event.nativeEvent.dragged
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
componentDidMount() {
|
|
53
|
+
if (this.props.onSaveEvent) {
|
|
54
|
+
let sub = _reactNative.DeviceEventEmitter.addListener('onSaveEvent', this.props.onSaveEvent);
|
|
55
|
+
|
|
56
|
+
this.subscriptions.push(sub);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (this.props.onDragEvent) {
|
|
60
|
+
let sub = _reactNative.DeviceEventEmitter.addListener('onDragEvent', this.props.onDragEvent);
|
|
61
|
+
|
|
62
|
+
this.subscriptions.push(sub);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
componentWillUnmount() {
|
|
67
|
+
this.subscriptions.forEach(sub => sub.remove());
|
|
68
|
+
this.subscriptions = [];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
render() {
|
|
72
|
+
return /*#__PURE__*/_react.default.createElement(RSSignatureView, _extends({
|
|
73
|
+
style: {
|
|
74
|
+
flex: 1
|
|
75
|
+
}
|
|
76
|
+
}, this.props, {
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
onChange: this.onChange
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
saveImage() {
|
|
83
|
+
_reactNative.UIManager.dispatchViewManagerCommand((0, _reactNative.findNodeHandle)(this), _reactNative.UIManager.getViewManagerConfig('RSSignatureView').Commands.saveImage, []);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
resetImage() {
|
|
87
|
+
_reactNative.UIManager.dispatchViewManagerCommand((0, _reactNative.findNodeHandle)(this), _reactNative.UIManager.getViewManagerConfig('RSSignatureView').Commands.resetImage, []);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
var _default = SignatureCapture;
|
|
93
|
+
exports.default = _default;
|
|
94
|
+
//# sourceMappingURL=SignatureCapture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RSSignatureView","requireNativeComponent","SignatureCapture","React","Component","constructor","props","onChange","bind","subscriptions","event","nativeEvent","encoded","onSaveEvent","dragged","onDragEvent","componentDidMount","sub","DeviceEventEmitter","addListener","push","componentWillUnmount","forEach","remove","render","flex","saveImage","UIManager","dispatchViewManagerCommand","findNodeHandle","getViewManagerConfig","Commands","resetImage"],"sources":["SignatureCapture.tsx"],"sourcesContent":["import React from 'react';\nimport {\n DeviceEventEmitter,\n findNodeHandle,\n requireNativeComponent,\n UIManager,\n ViewProps,\n} from 'react-native';\n\nconst RSSignatureView = requireNativeComponent('RSSignatureView');\n\nclass SignatureCapture extends React.Component<SignatureProps, any> {\n subscriptions: any[];\n constructor(props: SignatureProps) {\n super(props);\n this.onChange = this.onChange.bind(this);\n this.subscriptions = [];\n }\n\n onChange(event: any) {\n if (event.nativeEvent.encoded) {\n if (!this.props.onSaveEvent) {\n return;\n }\n this.props.onSaveEvent({\n encoded: event.nativeEvent.encoded,\n });\n }\n\n if (event.nativeEvent.dragged) {\n if (!this.props.onDragEvent) {\n return;\n }\n this.props.onDragEvent({\n dragged: event.nativeEvent.dragged,\n });\n }\n }\n\n componentDidMount() {\n if (this.props.onSaveEvent) {\n let sub = DeviceEventEmitter.addListener(\n 'onSaveEvent',\n this.props.onSaveEvent\n );\n this.subscriptions.push(sub);\n }\n\n if (this.props.onDragEvent) {\n let sub = DeviceEventEmitter.addListener(\n 'onDragEvent',\n this.props.onDragEvent\n );\n this.subscriptions.push(sub);\n }\n }\n\n componentWillUnmount() {\n this.subscriptions.forEach((sub) => sub.remove());\n this.subscriptions = [];\n }\n\n render() {\n return (\n <RSSignatureView\n style={{ flex: 1 }}\n {...this.props} // @ts-ignore\n onChange={this.onChange}\n />\n );\n }\n\n saveImage() {\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(this),\n UIManager.getViewManagerConfig('RSSignatureView').Commands.saveImage,\n []\n );\n }\n\n resetImage() {\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(this),\n UIManager.getViewManagerConfig('RSSignatureView').Commands.resetImage,\n []\n );\n }\n}\n\nexport type SignatureProps = ViewProps & {\n rotateClockwise: boolean;\n square: boolean;\n viewMode: string;\n showBorder: boolean;\n showNativeButtons: boolean;\n showTitleLabel: boolean;\n maxSize: number;\n minStrokeWidth: number;\n maxStrokeWidth: number;\n strokeColor: string;\n backgroundColor: string;\n onSaveEvent: (result: SignatureResponse) => void;\n onDragEvent: ({ dragged }: { dragged: boolean }) => void;\n};\n\nexport interface SignatureResponse {\n encoded: string;\n}\n\nexport default SignatureCapture;\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;AAQA,MAAMA,eAAe,GAAG,IAAAC,mCAAA,EAAuB,iBAAvB,CAAxB;;AAEA,MAAMC,gBAAN,SAA+BC,cAAA,CAAMC,SAArC,CAAoE;EAElEC,WAAW,CAACC,KAAD,EAAwB;IACjC,MAAMA,KAAN;;IADiC;;IAEjC,KAAKC,QAAL,GAAgB,KAAKA,QAAL,CAAcC,IAAd,CAAmB,IAAnB,CAAhB;IACA,KAAKC,aAAL,GAAqB,EAArB;EACD;;EAEDF,QAAQ,CAACG,KAAD,EAAa;IACnB,IAAIA,KAAK,CAACC,WAAN,CAAkBC,OAAtB,EAA+B;MAC7B,IAAI,CAAC,KAAKN,KAAL,CAAWO,WAAhB,EAA6B;QAC3B;MACD;;MACD,KAAKP,KAAL,CAAWO,WAAX,CAAuB;QACrBD,OAAO,EAAEF,KAAK,CAACC,WAAN,CAAkBC;MADN,CAAvB;IAGD;;IAED,IAAIF,KAAK,CAACC,WAAN,CAAkBG,OAAtB,EAA+B;MAC7B,IAAI,CAAC,KAAKR,KAAL,CAAWS,WAAhB,EAA6B;QAC3B;MACD;;MACD,KAAKT,KAAL,CAAWS,WAAX,CAAuB;QACrBD,OAAO,EAAEJ,KAAK,CAACC,WAAN,CAAkBG;MADN,CAAvB;IAGD;EACF;;EAEDE,iBAAiB,GAAG;IAClB,IAAI,KAAKV,KAAL,CAAWO,WAAf,EAA4B;MAC1B,IAAII,GAAG,GAAGC,+BAAA,CAAmBC,WAAnB,CACR,aADQ,EAER,KAAKb,KAAL,CAAWO,WAFH,CAAV;;MAIA,KAAKJ,aAAL,CAAmBW,IAAnB,CAAwBH,GAAxB;IACD;;IAED,IAAI,KAAKX,KAAL,CAAWS,WAAf,EAA4B;MAC1B,IAAIE,GAAG,GAAGC,+BAAA,CAAmBC,WAAnB,CACR,aADQ,EAER,KAAKb,KAAL,CAAWS,WAFH,CAAV;;MAIA,KAAKN,aAAL,CAAmBW,IAAnB,CAAwBH,GAAxB;IACD;EACF;;EAEDI,oBAAoB,GAAG;IACrB,KAAKZ,aAAL,CAAmBa,OAAnB,CAA4BL,GAAD,IAASA,GAAG,CAACM,MAAJ,EAApC;IACA,KAAKd,aAAL,GAAqB,EAArB;EACD;;EAEDe,MAAM,GAAG;IACP,oBACE,6BAAC,eAAD;MACE,KAAK,EAAE;QAAEC,IAAI,EAAE;MAAR;IADT,GAEM,KAAKnB,KAFX;MAEkB;MAChB,QAAQ,EAAE,KAAKC;IAHjB,GADF;EAOD;;EAEDmB,SAAS,GAAG;IACVC,sBAAA,CAAUC,0BAAV,CACE,IAAAC,2BAAA,EAAe,IAAf,CADF,EAEEF,sBAAA,CAAUG,oBAAV,CAA+B,iBAA/B,EAAkDC,QAAlD,CAA2DL,SAF7D,EAGE,EAHF;EAKD;;EAEDM,UAAU,GAAG;IACXL,sBAAA,CAAUC,0BAAV,CACE,IAAAC,2BAAA,EAAe,IAAf,CADF,EAEEF,sBAAA,CAAUG,oBAAV,CAA+B,iBAA/B,EAAkDC,QAAlD,CAA2DC,UAF7D,EAGE,EAHF;EAKD;;AA3EiE;;eAkGrD9B,gB"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.API_CONTENT_TYPES = void 0;
|
|
7
|
+
|
|
8
|
+
var _client = require("@apollo/client");
|
|
9
|
+
|
|
10
|
+
var _ErrorCodes = _interopRequireDefault(require("../errors/ErrorCodes"));
|
|
11
|
+
|
|
12
|
+
var _BaseError = require("../errors/BaseError");
|
|
13
|
+
|
|
14
|
+
var _Queries = require("./Queries");
|
|
15
|
+
|
|
16
|
+
var _NetworkUtils = require("./NetworkUtils");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
class GraphQLClient {
|
|
23
|
+
constructor(baseURL) {
|
|
24
|
+
_defineProperty(this, "client", null);
|
|
25
|
+
|
|
26
|
+
this.client = new _client.ApolloClient({
|
|
27
|
+
uri: baseURL + '/graphql',
|
|
28
|
+
cache: new _client.InMemoryCache()
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static init(baseURL) {
|
|
33
|
+
if (!GraphQLClient.instance) {
|
|
34
|
+
GraphQLClient.instance = new GraphQLClient(baseURL);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return GraphQLClient.instance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static getInstance() {
|
|
41
|
+
if (!GraphQLClient.instance) {
|
|
42
|
+
throw new _BaseError.BaseError(_ErrorCodes.default.GRAPHQL_CLIENT_NOT_INITIALIZED, 'Client is not initialized');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return GraphQLClient.instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async fetchReasonCodes() {
|
|
49
|
+
var _this$client;
|
|
50
|
+
|
|
51
|
+
return (_this$client = this.client) === null || _this$client === void 0 ? void 0 : _this$client.query({
|
|
52
|
+
query: _Queries.FETCH_REASONS,
|
|
53
|
+
variables: {
|
|
54
|
+
offset: '1',
|
|
55
|
+
limit: '500'
|
|
56
|
+
},
|
|
57
|
+
fetchPolicy: 'network-only',
|
|
58
|
+
context: {
|
|
59
|
+
headers: await (0, _NetworkUtils.getHeaders)(API_CONTENT_TYPES.APPLICATION_JSON)
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async createFmsFolder(folderName, desc) {
|
|
65
|
+
var _this$client2;
|
|
66
|
+
|
|
67
|
+
const gRequest = {
|
|
68
|
+
name: folderName,
|
|
69
|
+
description: desc
|
|
70
|
+
};
|
|
71
|
+
return (_this$client2 = this.client) === null || _this$client2 === void 0 ? void 0 : _this$client2.mutate({
|
|
72
|
+
mutation: _Queries.CREATE_FMS_FOLDER,
|
|
73
|
+
variables: {
|
|
74
|
+
input: gRequest
|
|
75
|
+
},
|
|
76
|
+
context: {
|
|
77
|
+
headers: await (0, _NetworkUtils.getHeaders)(API_CONTENT_TYPES.APPLICATION_JSON)
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
async postCustodyIn(data, dspID) {
|
|
83
|
+
var _this$client3;
|
|
84
|
+
|
|
85
|
+
for (const d of data) delete d.dispatchId;
|
|
86
|
+
|
|
87
|
+
return (_this$client3 = this.client) === null || _this$client3 === void 0 ? void 0 : _this$client3.mutate({
|
|
88
|
+
mutation: _Queries.CUSTODY_IN,
|
|
89
|
+
variables: {
|
|
90
|
+
input: {
|
|
91
|
+
dispatchId: dspID,
|
|
92
|
+
data: data
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
context: {
|
|
96
|
+
headers: await (0, _NetworkUtils.getHeaders)(API_CONTENT_TYPES.APPLICATION_JSON)
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
async postCustodyOut(data, dspID) {
|
|
102
|
+
var _this$client4;
|
|
103
|
+
|
|
104
|
+
for (const d of data) delete d.dispatchId;
|
|
105
|
+
|
|
106
|
+
return (_this$client4 = this.client) === null || _this$client4 === void 0 ? void 0 : _this$client4.mutate({
|
|
107
|
+
mutation: _Queries.CUSTODY_OUT,
|
|
108
|
+
variables: {
|
|
109
|
+
input: {
|
|
110
|
+
dispatchId: dspID,
|
|
111
|
+
data: data
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
context: {
|
|
115
|
+
headers: await (0, _NetworkUtils.getHeaders)(API_CONTENT_TYPES.APPLICATION_JSON)
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
async postWorkflowUpdate(data, workflowId) {
|
|
121
|
+
var _this$client5;
|
|
122
|
+
|
|
123
|
+
return (_this$client5 = this.client) === null || _this$client5 === void 0 ? void 0 : _this$client5.mutate({
|
|
124
|
+
mutation: _Queries.WORKFLOW_UPDATE,
|
|
125
|
+
variables: {
|
|
126
|
+
input: {
|
|
127
|
+
workflow: data,
|
|
128
|
+
workflowInstanceId: workflowId
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
context: {
|
|
132
|
+
headers: await (0, _NetworkUtils.getHeaders)(API_CONTENT_TYPES.APPLICATION_JSON)
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
exports.default = GraphQLClient;
|
|
140
|
+
|
|
141
|
+
_defineProperty(GraphQLClient, "instance", void 0);
|
|
142
|
+
|
|
143
|
+
let API_CONTENT_TYPES;
|
|
144
|
+
exports.API_CONTENT_TYPES = API_CONTENT_TYPES;
|
|
145
|
+
|
|
146
|
+
(function (API_CONTENT_TYPES) {
|
|
147
|
+
API_CONTENT_TYPES["APPLICATION_JSON"] = "application/json";
|
|
148
|
+
})(API_CONTENT_TYPES || (exports.API_CONTENT_TYPES = API_CONTENT_TYPES = {}));
|
|
149
|
+
//# sourceMappingURL=GraphQLClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GraphQLClient","constructor","baseURL","client","ApolloClient","uri","cache","InMemoryCache","init","instance","getInstance","BaseError","ErrorCodes","GRAPHQL_CLIENT_NOT_INITIALIZED","fetchReasonCodes","query","FETCH_REASONS","variables","offset","limit","fetchPolicy","context","headers","getHeaders","API_CONTENT_TYPES","APPLICATION_JSON","createFmsFolder","folderName","desc","gRequest","name","description","mutate","mutation","CREATE_FMS_FOLDER","input","postCustodyIn","data","dspID","d","dispatchId","CUSTODY_IN","postCustodyOut","CUSTODY_OUT","postWorkflowUpdate","workflowId","WORKFLOW_UPDATE","workflow","workflowInstanceId"],"sources":["GraphQLClient.ts"],"sourcesContent":["import { ApolloClient, InMemoryCache } from '@apollo/client';\nimport ErrorCodes from '../errors/ErrorCodes';\nimport { BaseError } from '../errors/BaseError';\nimport {\n CREATE_FMS_FOLDER,\n CUSTODY_IN,\n CUSTODY_OUT,\n FETCH_REASONS,\n WORKFLOW_UPDATE,\n} from './Queries';\nimport { getHeaders } from './NetworkUtils';\n\nexport default class GraphQLClient {\n private static instance: GraphQLClient;\n private client: ApolloClient<any> | null = null;\n\n private constructor(baseURL: string) {\n this.client = new ApolloClient({\n uri: baseURL + '/graphql',\n cache: new InMemoryCache(),\n });\n }\n\n public static init(baseURL: string) {\n if (!GraphQLClient.instance) {\n GraphQLClient.instance = new GraphQLClient(baseURL);\n }\n return GraphQLClient.instance;\n }\n public static getInstance(): GraphQLClient {\n if (!GraphQLClient.instance) {\n throw new BaseError(\n ErrorCodes.GRAPHQL_CLIENT_NOT_INITIALIZED,\n 'Client is not initialized'\n );\n }\n return GraphQLClient.instance;\n }\n\n public async fetchReasonCodes() {\n return this.client?.query({\n query: FETCH_REASONS,\n variables: {\n offset: '1',\n limit: '500',\n },\n fetchPolicy: 'network-only',\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async createFmsFolder(folderName: string, desc: string) {\n const gRequest = {\n name: folderName,\n description: desc,\n };\n return this.client?.mutate({\n mutation: CREATE_FMS_FOLDER,\n variables: {\n input: gRequest,\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async postCustodyIn(data: any[], dspID: string) {\n for (const d of data) delete d.dispatchId;\n return this.client?.mutate({\n mutation: CUSTODY_IN,\n variables: {\n input: { dispatchId: dspID, data: data },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n public async postCustodyOut(data: any[], dspID: string) {\n for (const d of data) delete d.dispatchId;\n return this.client?.mutate({\n mutation: CUSTODY_OUT,\n variables: {\n input: {\n dispatchId: dspID,\n data: data,\n },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n\n public async postWorkflowUpdate(data: any, workflowId: string) {\n return this.client?.mutate({\n mutation: WORKFLOW_UPDATE,\n variables: {\n input: { workflow: data, workflowInstanceId: workflowId },\n },\n context: {\n headers: await getHeaders(API_CONTENT_TYPES.APPLICATION_JSON),\n },\n });\n }\n}\nexport enum API_CONTENT_TYPES {\n APPLICATION_JSON = 'application/json',\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAOA;;;;;;AAEe,MAAMA,aAAN,CAAoB;EAIzBC,WAAW,CAACC,OAAD,EAAkB;IAAA,gCAFM,IAEN;;IACnC,KAAKC,MAAL,GAAc,IAAIC,oBAAJ,CAAiB;MAC7BC,GAAG,EAAEH,OAAO,GAAG,UADc;MAE7BI,KAAK,EAAE,IAAIC,qBAAJ;IAFsB,CAAjB,CAAd;EAID;;EAEiB,OAAJC,IAAI,CAACN,OAAD,EAAkB;IAClC,IAAI,CAACF,aAAa,CAACS,QAAnB,EAA6B;MAC3BT,aAAa,CAACS,QAAd,GAAyB,IAAIT,aAAJ,CAAkBE,OAAlB,CAAzB;IACD;;IACD,OAAOF,aAAa,CAACS,QAArB;EACD;;EACwB,OAAXC,WAAW,GAAkB;IACzC,IAAI,CAACV,aAAa,CAACS,QAAnB,EAA6B;MAC3B,MAAM,IAAIE,oBAAJ,CACJC,mBAAA,CAAWC,8BADP,EAEJ,2BAFI,CAAN;IAID;;I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