@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,72 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
3
|
+
import * as Database from '../syncmanager/database';
|
|
4
|
+
import { ReasonColums, REASONS_TABLE } from '../syncmanager/DBConfig';
|
|
5
|
+
export default class ReasonCodeRepo {
|
|
6
|
+
static getInstance() {
|
|
7
|
+
if (!ReasonCodeRepo.instance) {
|
|
8
|
+
ReasonCodeRepo.instance = new ReasonCodeRepo();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return ReasonCodeRepo.instance;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async saveReasonCode(reasonsList) {
|
|
15
|
+
if (!reasonsList || reasonsList.length < 1) return;
|
|
16
|
+
await this.init();
|
|
17
|
+
await this.deleteAll();
|
|
18
|
+
|
|
19
|
+
for (let r of reasonsList) {
|
|
20
|
+
const reasonRow = {
|
|
21
|
+
reasonCode: r.reasonCode,
|
|
22
|
+
description: r.description,
|
|
23
|
+
isEnabled: r.isEnabled,
|
|
24
|
+
isSystemDefined: r.isSystemDefined
|
|
25
|
+
};
|
|
26
|
+
await this.insertReason(reasonRow);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async insertReason(reason) {
|
|
31
|
+
await Database.executeQuery(`INSERT OR REPLACE INTO ${REASONS_TABLE}(\
|
|
32
|
+
${ReasonColums.CODE},\
|
|
33
|
+
${ReasonColums.DESCRIPTION},\
|
|
34
|
+
${ReasonColums.IS_ENABLED},\
|
|
35
|
+
${ReasonColums.SYSTEM_DEFINED})\
|
|
36
|
+
values (?,?,?,?)`, [reason.reasonCode, reason.description, reason.isEnabled, reason.isSystemDefined]);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async init() {
|
|
40
|
+
await Database.executeQuery(`CREATE TABLE IF NOT EXISTS ${REASONS_TABLE} (\
|
|
41
|
+
${ReasonColums.CODE} TEXT PRIMARY KEY NOT NULL,\
|
|
42
|
+
${ReasonColums.DESCRIPTION} TEXT,\
|
|
43
|
+
${ReasonColums.IS_ENABLED} INTEGER,\
|
|
44
|
+
${ReasonColums.SYSTEM_DEFINED} INTEGER);`, []);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async getAllReasons() {
|
|
48
|
+
const resultSet = await Database.executeQuery(`SELECT * FROM ${REASONS_TABLE};`, []);
|
|
49
|
+
return resultSet.rows._array;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async deleteAll() {
|
|
53
|
+
return Database.executeQuery(`DELETE FROM ${REASONS_TABLE};`, []);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async getReasonsByCode(codes) {
|
|
57
|
+
if (!codes || codes.length < 1) return [];
|
|
58
|
+
const placeholders = codes.map(it => `'${it}'`).join(',');
|
|
59
|
+
const resultSet = await Database.executeQuery(`SELECT * FROM ${REASONS_TABLE} WHERE (${ReasonColums.IS_ENABLED}=1) and ${ReasonColums.CODE} IN (${placeholders});`, []);
|
|
60
|
+
return resultSet.rows._array;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async getReasonByCode(code) {
|
|
64
|
+
if (!code) return [];
|
|
65
|
+
const resultSet = await Database.executeQuery(`SELECT * FROM ${REASONS_TABLE} WHERE ${ReasonColums.CODE} = ?;`, [code]);
|
|
66
|
+
return resultSet.rows._array;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
_defineProperty(ReasonCodeRepo, "instance", void 0);
|
|
72
|
+
//# sourceMappingURL=ReasonCodeRepo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Database","ReasonColums","REASONS_TABLE","ReasonCodeRepo","getInstance","instance","saveReasonCode","reasonsList","length","init","deleteAll","r","reasonRow","reasonCode","description","isEnabled","isSystemDefined","insertReason","reason","executeQuery","CODE","DESCRIPTION","IS_ENABLED","SYSTEM_DEFINED","getAllReasons","resultSet","rows","_array","getReasonsByCode","codes","placeholders","map","it","join","getReasonByCode","code"],"sources":["ReasonCodeRepo.ts"],"sourcesContent":["import * as Database from '../syncmanager/database';\nimport {\n ReasonColums,\n REASONS_TABLE,\n ReasonsRow,\n} from '../syncmanager/DBConfig';\nimport type { ReasonCodes } from '../../models/ReasonCodes';\n\nexport default class ReasonCodeRepo {\n private static instance: ReasonCodeRepo;\n public static getInstance(): ReasonCodeRepo {\n if (!ReasonCodeRepo.instance) {\n ReasonCodeRepo.instance = new ReasonCodeRepo();\n }\n return ReasonCodeRepo.instance;\n }\n\n public async saveReasonCode(reasonsList: ReasonCodes[]) {\n if (!reasonsList || reasonsList.length < 1) return;\n await this.init();\n await this.deleteAll();\n for (let r of reasonsList) {\n const reasonRow: ReasonsRow = {\n reasonCode: r.reasonCode,\n description: r.description,\n isEnabled: r.isEnabled,\n isSystemDefined: r.isSystemDefined,\n };\n await this.insertReason(reasonRow);\n }\n }\n private async insertReason(reason: ReasonsRow) {\n await Database.executeQuery(\n `INSERT OR REPLACE INTO ${REASONS_TABLE}(\\\n ${ReasonColums.CODE},\\\n ${ReasonColums.DESCRIPTION},\\\n ${ReasonColums.IS_ENABLED},\\\n ${ReasonColums.SYSTEM_DEFINED})\\\n values (?,?,?,?)`,\n [\n reason.reasonCode,\n reason.description,\n reason.isEnabled,\n reason.isSystemDefined,\n ]\n );\n }\n\n private async init(): Promise<void> {\n await Database.executeQuery(\n `CREATE TABLE IF NOT EXISTS ${REASONS_TABLE} (\\\n ${ReasonColums.CODE} TEXT PRIMARY KEY NOT NULL,\\\n ${ReasonColums.DESCRIPTION} TEXT,\\\n ${ReasonColums.IS_ENABLED} INTEGER,\\\n ${ReasonColums.SYSTEM_DEFINED} INTEGER);`,\n []\n );\n }\n public async getAllReasons(): Promise<ReasonsRow[]> {\n const resultSet = await Database.executeQuery(\n `SELECT * FROM ${REASONS_TABLE};`,\n []\n );\n return resultSet.rows._array;\n }\n public async deleteAll() {\n return Database.executeQuery(`DELETE FROM ${REASONS_TABLE};`, []);\n }\n\n public async getReasonsByCode(codes: string[]): Promise<ReasonsRow[]> {\n if (!codes || codes.length < 1) return [];\n const placeholders = codes.map((it) => `'${it}'`).join(',');\n const resultSet = await Database.executeQuery(\n `SELECT * FROM ${REASONS_TABLE} WHERE (${ReasonColums.IS_ENABLED}=1) and ${ReasonColums.CODE} IN (${placeholders});`,\n []\n );\n return resultSet.rows._array;\n }\n\n public async getReasonByCode(code: string): Promise<ReasonsRow[]> {\n if (!code) return [];\n const resultSet = await Database.executeQuery(\n `SELECT * FROM ${REASONS_TABLE} WHERE ${ReasonColums.CODE} = ?;`,\n [code]\n );\n return resultSet.rows._array;\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"006": {
|
|
3
|
+
"010": [],
|
|
4
|
+
"011": [
|
|
5
|
+
{
|
|
6
|
+
"reason": "DELIVERY_RESCHEDULED",
|
|
7
|
+
"text": "I want to reschedule this delivery",
|
|
8
|
+
"code": "0013"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"reason": "NOT_DELIVERED",
|
|
12
|
+
"text": "I want to cancel this task",
|
|
13
|
+
"code": "0014"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"reason": "REATTEMPT_DROP",
|
|
17
|
+
"text": "I want to re-attempt delivery for this package",
|
|
18
|
+
"code": "0015"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"010": {
|
|
23
|
+
"010": [
|
|
24
|
+
{
|
|
25
|
+
"reason": "DELIVERED_TO_CONSIGNEE",
|
|
26
|
+
"text": "The shipment has been delivered to the consignee",
|
|
27
|
+
"code": "0041"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"reason": "DELIVERED_TO_SECURITY",
|
|
31
|
+
"text": "The shipment has been delivered to the security",
|
|
32
|
+
"code": "0042"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"reason": "DELIVERED_TO_OTHER_AS_PER_CONSIGNEE",
|
|
36
|
+
"text": "The shipment has been delivered to someone as told by consignee",
|
|
37
|
+
"code": "0043"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"011": []
|
|
41
|
+
},
|
|
42
|
+
"017": {
|
|
43
|
+
"011": [
|
|
44
|
+
{
|
|
45
|
+
"reason": "PAYMENT_MODE/AMT_DISPUTE",
|
|
46
|
+
"text": "Amount dispute with consignee",
|
|
47
|
+
"code": "0020"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"reason": "PAYMENT_MODE/AMT_DISPUTE",
|
|
51
|
+
"text": "Payment mode dispute with consignee",
|
|
52
|
+
"code": "0020"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"010": []
|
|
56
|
+
},
|
|
57
|
+
"021": {
|
|
58
|
+
"010": [
|
|
59
|
+
{
|
|
60
|
+
"reason": "CONSIGNEE_UNAVAILABLE",
|
|
61
|
+
"text": "Consignee is not available",
|
|
62
|
+
"code": "0029"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"reason": "CUSTOMER_ASKED_FOR_OPEN_DELIVERY",
|
|
66
|
+
"text": "Consignee has asked for open delivery",
|
|
67
|
+
"code": "0022"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"reason": "CONSIGNEE_OPEN_PACKAGE_AND_REFUSED_TO_ACCEPT",
|
|
71
|
+
"text": "Consignee has opened package and refused to accept",
|
|
72
|
+
"code": "0023"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"reason": "ENTRY_RESTRICTED_AREA",
|
|
76
|
+
"text": "This is an Entry restricted area",
|
|
77
|
+
"code": "0024"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"reason": "ADDRESS_QUALITY_ISSUE",
|
|
81
|
+
"text": "The address quality is not acceptable",
|
|
82
|
+
"code": "0025"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"reason": "NOT_ATTEMPTED",
|
|
86
|
+
"text": "I don't want to attempt this task",
|
|
87
|
+
"code": "0012"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"reason": "CONSIGNEE_REFUSED_ORDER",
|
|
91
|
+
"text": "Consignee refused to accept the package",
|
|
92
|
+
"code": "0027"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"reason": "CONSIGNEE_SEIZED_PACKAGE",
|
|
96
|
+
"text": "Consignee has forcefully taken the package",
|
|
97
|
+
"code": "0028"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"011": [
|
|
101
|
+
{
|
|
102
|
+
"reason": "NOT_ATTEMPTED",
|
|
103
|
+
"text": "I don't want to attempt this task",
|
|
104
|
+
"code": "0012"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"reason": "ENTRY_RESTRICTED_AREA",
|
|
108
|
+
"text": "This is an Entry restricted area",
|
|
109
|
+
"code": "0024"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"reason": "ADDRESS_QUALITY_ISSUE",
|
|
113
|
+
"text": "The address quality is not acceptable",
|
|
114
|
+
"code": "0025"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"reason": "CONSIGNEE_REFUSED_ORDER",
|
|
118
|
+
"text": "Consignee refused to accept the package",
|
|
119
|
+
"code": "0027"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"reason": "CONSIGNEE_SEIZED_PACKAGE",
|
|
123
|
+
"text": "Consignee has forcefully taken the package",
|
|
124
|
+
"code": "0028"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"022": {
|
|
129
|
+
"010": [
|
|
130
|
+
{
|
|
131
|
+
"reason": "CONSIGNEE_REFUSED_ORDER",
|
|
132
|
+
"text": "Consignee refused to accept the package",
|
|
133
|
+
"code": "0027"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
3
|
+
import * as Location from 'expo-location';
|
|
4
|
+
import { Accuracy } from 'expo-location';
|
|
5
|
+
import Logger, { LOG_TYPE } from '../../utils/Logger';
|
|
6
|
+
export default class LocationManager {
|
|
7
|
+
constructor() {
|
|
8
|
+
_defineProperty(this, "lastLocation", null);
|
|
9
|
+
|
|
10
|
+
_defineProperty(this, "stopUpdate", void 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async checkForLocationPermissions() {
|
|
14
|
+
let permissionResponse = await Location.getForegroundPermissionsAsync();
|
|
15
|
+
|
|
16
|
+
if (permissionResponse.status === 'granted') {
|
|
17
|
+
this.startUpdates();
|
|
18
|
+
return true;
|
|
19
|
+
} else {
|
|
20
|
+
let {
|
|
21
|
+
status
|
|
22
|
+
} = await Location.requestForegroundPermissionsAsync();
|
|
23
|
+
|
|
24
|
+
if (status === 'granted') {
|
|
25
|
+
this.startUpdates();
|
|
26
|
+
return true;
|
|
27
|
+
} else {
|
|
28
|
+
this.stopLocationUpdates();
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
static getInstance() {
|
|
35
|
+
if (!LocationManager.instance) {
|
|
36
|
+
LocationManager.instance = new LocationManager();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return LocationManager.instance;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
startUpdates() {
|
|
43
|
+
Location.watchPositionAsync({
|
|
44
|
+
accuracy: Accuracy.Highest,
|
|
45
|
+
timeInterval: 10000,
|
|
46
|
+
// in millis
|
|
47
|
+
distanceInterval: 10 //in metres
|
|
48
|
+
|
|
49
|
+
}, location => {
|
|
50
|
+
if (location != null) {
|
|
51
|
+
this.lastLocation = location;
|
|
52
|
+
}
|
|
53
|
+
}).then(r => {
|
|
54
|
+
this.stopUpdate = r;
|
|
55
|
+
}).catch(error => {
|
|
56
|
+
Logger.getInstance().logEvent('LOCATION_MANAGER', error.message, LOG_TYPE.SDK_WARNING);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
getLastLocation() {
|
|
61
|
+
if (this.lastLocation != null && this.lastLocation.coords != null) {
|
|
62
|
+
return {
|
|
63
|
+
latitude: this.lastLocation.coords.latitude.toString(),
|
|
64
|
+
longitude: this.lastLocation.coords.longitude.toString()
|
|
65
|
+
};
|
|
66
|
+
} else {
|
|
67
|
+
return {
|
|
68
|
+
latitude: 'null',
|
|
69
|
+
longitude: 'null'
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
stopLocationUpdates() {
|
|
75
|
+
try {
|
|
76
|
+
if (this.stopUpdate) this.stopUpdate.remove();
|
|
77
|
+
} catch (error) {}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
_defineProperty(LocationManager, "instance", void 0);
|
|
83
|
+
//# sourceMappingURL=LocationManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Location","Accuracy","Logger","LOG_TYPE","LocationManager","checkForLocationPermissions","permissionResponse","getForegroundPermissionsAsync","status","startUpdates","requestForegroundPermissionsAsync","stopLocationUpdates","getInstance","instance","watchPositionAsync","accuracy","Highest","timeInterval","distanceInterval","location","lastLocation","then","r","stopUpdate","catch","error","logEvent","message","SDK_WARNING","getLastLocation","coords","latitude","toString","longitude","remove"],"sources":["LocationManager.ts"],"sourcesContent":["import * as Location from 'expo-location';\nimport { Accuracy, LocationObject } from 'expo-location';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\n\nexport default class LocationManager {\n private static instance: LocationManager;\n private lastLocation: LocationObject | null = null;\n private stopUpdate: { remove(): void } | undefined;\n\n public async checkForLocationPermissions(): Promise<boolean> {\n let permissionResponse = await Location.getForegroundPermissionsAsync();\n if (permissionResponse.status === 'granted') {\n this.startUpdates();\n return true;\n } else {\n let { status } = await Location.requestForegroundPermissionsAsync();\n if (status === 'granted') {\n this.startUpdates();\n return true;\n } else {\n this.stopLocationUpdates();\n return false;\n }\n }\n }\n\n public static getInstance(): LocationManager {\n if (!LocationManager.instance) {\n LocationManager.instance = new LocationManager();\n }\n return LocationManager.instance;\n }\n public startUpdates() {\n Location.watchPositionAsync(\n {\n accuracy: Accuracy.Highest,\n timeInterval: 10000, // in millis\n distanceInterval: 10, //in metres\n },\n (location) => {\n if (location != null) {\n this.lastLocation = location;\n }\n }\n )\n .then((r) => {\n this.stopUpdate = r;\n })\n .catch((error) => {\n Logger.getInstance().logEvent(\n 'LOCATION_MANAGER',\n error.message,\n LOG_TYPE.SDK_WARNING\n );\n });\n }\n public getLastLocation(): DLocation {\n if (this.lastLocation != null && this.lastLocation.coords != null) {\n return {\n latitude: this.lastLocation.coords.latitude.toString(),\n longitude: this.lastLocation.coords.longitude.toString(),\n };\n } else {\n return { latitude: 'null', longitude: 'null' };\n }\n }\n public stopLocationUpdates() {\n try {\n if (this.stopUpdate) this.stopUpdate.remove();\n } catch (error: any) {}\n }\n}\n\nexport interface DLocation {\n latitude: string;\n longitude: string;\n}\n"],"mappings":";;AAAA,OAAO,KAAKA,QAAZ,MAA0B,eAA1B;AACA,SAASC,QAAT,QAAyC,eAAzC;AACA,OAAOC,MAAP,IAAiBC,QAAjB,QAAiC,oBAAjC;AAEA,eAAe,MAAMC,eAAN,CAAsB;EAAA;IAAA,sCAEW,IAFX;;IAAA;EAAA;;EAKK,MAA3BC,2BAA2B,GAAqB;IAC3D,IAAIC,kBAAkB,GAAG,MAAMN,QAAQ,CAACO,6BAAT,EAA/B;;IACA,IAAID,kBAAkB,CAACE,MAAnB,KAA8B,SAAlC,EAA6C;MAC3C,KAAKC,YAAL;MACA,OAAO,IAAP;IACD,CAHD,MAGO;MACL,IAAI;QAAED;MAAF,IAAa,MAAMR,QAAQ,CAACU,iCAAT,EAAvB;;MACA,IAAIF,MAAM,KAAK,SAAf,EAA0B;QACxB,KAAKC,YAAL;QACA,OAAO,IAAP;MACD,CAHD,MAGO;QACL,KAAKE,mBAAL;QACA,OAAO,KAAP;MACD;IACF;EACF;;EAEwB,OAAXC,WAAW,GAAoB;IAC3C,IAAI,CAACR,eAAe,CAACS,QAArB,EAA+B;MAC7BT,eAAe,CAACS,QAAhB,GAA2B,IAAIT,eAAJ,EAA3B;IACD;;IACD,OAAOA,eAAe,CAACS,QAAvB;EACD;;EACMJ,YAAY,GAAG;IACpBT,QAAQ,CAACc,kBAAT,CACE;MACEC,QAAQ,EAAEd,QAAQ,CAACe,OADrB;MAEEC,YAAY,EAAE,KAFhB;MAEuB;MACrBC,gBAAgB,EAAE,EAHpB,CAGwB;;IAHxB,CADF,EAMGC,QAAD,IAAc;MACZ,IAAIA,QAAQ,IAAI,IAAhB,EAAsB;QACpB,KAAKC,YAAL,GAAoBD,QAApB;MACD;IACF,CAVH,EAYGE,IAZH,CAYSC,CAAD,IAAO;MACX,KAAKC,UAAL,GAAkBD,CAAlB;IACD,CAdH,EAeGE,KAfH,CAeUC,KAAD,IAAW;MAChBvB,MAAM,CAACU,WAAP,GAAqBc,QAArB,CACE,kBADF,EAEED,KAAK,CAACE,OAFR,EAGExB,QAAQ,CAACyB,WAHX;IAKD,CArBH;EAsBD;;EACMC,eAAe,GAAc;IAClC,IAAI,KAAKT,YAAL,IAAqB,IAArB,IAA6B,KAAKA,YAAL,CAAkBU,MAAlB,IAA4B,IAA7D,EAAmE;MACjE,OAAO;QACLC,QAAQ,EAAE,KAAKX,YAAL,CAAkBU,MAAlB,CAAyBC,QAAzB,CAAkCC,QAAlC,EADL;QAELC,SAAS,EAAE,KAAKb,YAAL,CAAkBU,MAAlB,CAAyBG,SAAzB,CAAmCD,QAAnC;MAFN,CAAP;IAID,CALD,MAKO;MACL,OAAO;QAAED,QAAQ,EAAE,MAAZ;QAAoBE,SAAS,EAAE;MAA/B,CAAP;IACD;EACF;;EACMtB,mBAAmB,GAAG;IAC3B,IAAI;MACF,IAAI,KAAKY,UAAT,EAAqB,KAAKA,UAAL,CAAgBW,MAAhB;IACtB,CAFD,CAEE,OAAOT,KAAP,EAAmB,CAAE;EACxB;;AAlEkC;;gBAAhBrB,e"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
3
|
+
import DispatchSdkCache from './DispatchSdkCache';
|
|
4
|
+
import LocationManager from '../location/LocationManager';
|
|
5
|
+
import AppSyncManager from '../syncmanager/AppSyncManager';
|
|
6
|
+
import Logger from '../../utils/Logger';
|
|
7
|
+
import ReasonCodeContainer from '../dispatchCodes/ReasonCodeContainer';
|
|
8
|
+
import GraphQLClient from '../../network/GraphQLClient';
|
|
9
|
+
import { isMandatoryKeysPresent, isTokenExpired } from '../../utils/utils';
|
|
10
|
+
import { BaseError } from '../../errors/BaseError';
|
|
11
|
+
import ErrorCodes from '../../errors/ErrorCodes';
|
|
12
|
+
import SdkUtils from '../../utils/SdkUtils';
|
|
13
|
+
import * as Sentry from '@sentry/react-native';
|
|
14
|
+
export class DispatchSDKManager {
|
|
15
|
+
constructor() {
|
|
16
|
+
_defineProperty(this, "cache", DispatchSdkCache.getInstance());
|
|
17
|
+
|
|
18
|
+
_defineProperty(this, "keys", DispatchSdkCache.KEYS);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static getInstance() {
|
|
22
|
+
if (!DispatchSDKManager.instance) {
|
|
23
|
+
DispatchSDKManager.instance = new DispatchSDKManager();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return DispatchSDKManager.instance;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Call this init method with username,userID & authentication tokens
|
|
30
|
+
* @param sdkConfig
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
async initDispatchSDK(sdkConfig) {
|
|
35
|
+
var _sdkConfig$sentry;
|
|
36
|
+
|
|
37
|
+
if (!isMandatoryKeysPresent(sdkConfig, ['tenantID', 'userID', 'userName', 'tenantBaseURL', 'accessToken'])) {
|
|
38
|
+
throw new BaseError(ErrorCodes.InvalidArgumentError, 'Invalid/Missing Argument Passed in SdkConfig');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (isTokenExpired(sdkConfig.accessToken)) {
|
|
42
|
+
throw new BaseError(ErrorCodes.ACCESS_TOKEN_EXPIRED, 'JWT Token Expired!');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (sdkConfig.sentry && (_sdkConfig$sentry = sdkConfig.sentry) !== null && _sdkConfig$sentry !== void 0 && _sdkConfig$sentry.enabled) {
|
|
46
|
+
Sentry.init({
|
|
47
|
+
enableNative: true,
|
|
48
|
+
environment: sdkConfig.sentry.env,
|
|
49
|
+
dsn: sdkConfig.sentry.dsn,
|
|
50
|
+
tracesSampleRate: 1.0
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
await SdkUtils.checkMandatory();
|
|
55
|
+
await this.cache.setObjectInCache(this.keys.SDK_CONFIG, sdkConfig);
|
|
56
|
+
GraphQLClient.init(sdkConfig.tenantBaseURL);
|
|
57
|
+
AppSyncManager.initAppSync(sdkConfig.tenantBaseURL, sdkConfig.syncRetryCount ?? 3);
|
|
58
|
+
LocationManager.getInstance().startUpdates();
|
|
59
|
+
await ReasonCodeContainer.getInstance().fetchReasonCode();
|
|
60
|
+
Logger.getInstance().setLogging(sdkConfig.enableLogging ?? true, sdkConfig);
|
|
61
|
+
AppSyncManager.getInstance().startSDKSyncManager();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
removeLocationUpdates() {
|
|
65
|
+
LocationManager.getInstance().stopLocationUpdates();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
_defineProperty(DispatchSDKManager, "instance", void 0);
|
|
71
|
+
//# sourceMappingURL=DispatchSDKManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DispatchSdkCache","LocationManager","AppSyncManager","Logger","ReasonCodeContainer","GraphQLClient","isMandatoryKeysPresent","isTokenExpired","BaseError","ErrorCodes","SdkUtils","Sentry","DispatchSDKManager","constructor","getInstance","KEYS","instance","initDispatchSDK","sdkConfig","InvalidArgumentError","accessToken","ACCESS_TOKEN_EXPIRED","sentry","enabled","init","enableNative","environment","env","dsn","tracesSampleRate","checkMandatory","cache","setObjectInCache","keys","SDK_CONFIG","tenantBaseURL","initAppSync","syncRetryCount","startUpdates","fetchReasonCode","setLogging","enableLogging","startSDKSyncManager","removeLocationUpdates","stopLocationUpdates"],"sources":["DispatchSDKManager.ts"],"sourcesContent":["import DispatchSdkCache from './DispatchSdkCache';\nimport LocationManager from '../location/LocationManager';\nimport AppSyncManager from '../syncmanager/AppSyncManager';\nimport Logger from '../../utils/Logger';\nimport ReasonCodeContainer from '../dispatchCodes/ReasonCodeContainer';\nimport GraphQLClient from '../../network/GraphQLClient';\nimport { isMandatoryKeysPresent, isTokenExpired } from '../../utils/utils';\nimport { BaseError } from '../../errors/BaseError';\nimport ErrorCodes from '../../errors/ErrorCodes';\nimport SdkUtils from '../../utils/SdkUtils';\nimport * as Sentry from '@sentry/react-native';\nimport type { DispatchSDKConfig } from '../../models/sdk';\n\nexport class DispatchSDKManager {\n private static instance: DispatchSDKManager;\n private cache: DispatchSdkCache = DispatchSdkCache.getInstance();\n private keys = DispatchSdkCache.KEYS;\n\n private constructor() {}\n\n public static getInstance(): DispatchSDKManager {\n if (!DispatchSDKManager.instance) {\n DispatchSDKManager.instance = new DispatchSDKManager();\n }\n return DispatchSDKManager.instance;\n }\n\n /**\n * Call this init method with username,userID & authentication tokens\n * @param sdkConfig\n */\n public async initDispatchSDK(sdkConfig: DispatchSDKConfig) {\n if (\n !isMandatoryKeysPresent(sdkConfig, [\n 'tenantID',\n 'userID',\n 'userName',\n 'tenantBaseURL',\n 'accessToken',\n ])\n ) {\n throw new BaseError(\n ErrorCodes.InvalidArgumentError,\n 'Invalid/Missing Argument Passed in SdkConfig'\n );\n }\n if (isTokenExpired(sdkConfig.accessToken)) {\n throw new BaseError(\n ErrorCodes.ACCESS_TOKEN_EXPIRED,\n 'JWT Token Expired!'\n );\n }\n if (sdkConfig.sentry && sdkConfig.sentry?.enabled) {\n Sentry.init({\n enableNative: true,\n environment: sdkConfig.sentry.env,\n dsn: sdkConfig.sentry.dsn,\n tracesSampleRate: 1.0,\n });\n }\n await SdkUtils.checkMandatory();\n await this.cache.setObjectInCache(this.keys.SDK_CONFIG, sdkConfig);\n GraphQLClient.init(sdkConfig.tenantBaseURL);\n AppSyncManager.initAppSync(\n sdkConfig.tenantBaseURL,\n sdkConfig.syncRetryCount ?? 3\n );\n LocationManager.getInstance().startUpdates();\n await ReasonCodeContainer.getInstance().fetchReasonCode();\n Logger.getInstance().setLogging(sdkConfig.enableLogging ?? true, sdkConfig);\n AppSyncManager.getInstance().startSDKSyncManager();\n }\n\n public removeLocationUpdates() {\n LocationManager.getInstance().stopLocationUpdates();\n }\n}\n"],"mappings":";;AAAA,OAAOA,gBAAP,MAA6B,oBAA7B;AACA,OAAOC,eAAP,MAA4B,6BAA5B;AACA,OAAOC,cAAP,MAA2B,+BAA3B;AACA,OAAOC,MAAP,MAAmB,oBAAnB;AACA,OAAOC,mBAAP,MAAgC,sCAAhC;AACA,OAAOC,aAAP,MAA0B,6BAA1B;AACA,SAASC,sBAAT,EAAiCC,cAAjC,QAAuD,mBAAvD;AACA,SAASC,SAAT,QAA0B,wBAA1B;AACA,OAAOC,UAAP,MAAuB,yBAAvB;AACA,OAAOC,QAAP,MAAqB,sBAArB;AACA,OAAO,KAAKC,MAAZ,MAAwB,sBAAxB;AAGA,OAAO,MAAMC,kBAAN,CAAyB;EAKtBC,WAAW,GAAG;IAAA,+BAHYb,gBAAgB,CAACc,WAAjB,EAGZ;;IAAA,8BAFPd,gBAAgB,CAACe,IAEV;EAAE;;EAEC,OAAXD,WAAW,GAAuB;IAC9C,IAAI,CAACF,kBAAkB,CAACI,QAAxB,EAAkC;MAChCJ,kBAAkB,CAACI,QAAnB,GAA8B,IAAIJ,kBAAJ,EAA9B;IACD;;IACD,OAAOA,kBAAkB,CAACI,QAA1B;EACD;EAED;AACF;AACA;AACA;;;EAC8B,MAAfC,eAAe,CAACC,SAAD,EAA+B;IAAA;;IACzD,IACE,CAACZ,sBAAsB,CAACY,SAAD,EAAY,CACjC,UADiC,EAEjC,QAFiC,EAGjC,UAHiC,EAIjC,eAJiC,EAKjC,aALiC,CAAZ,CADzB,EAQE;MACA,MAAM,IAAIV,SAAJ,CACJC,UAAU,CAACU,oBADP,EAEJ,8CAFI,CAAN;IAID;;IACD,IAAIZ,cAAc,CAACW,SAAS,CAACE,WAAX,CAAlB,EAA2C;MACzC,MAAM,IAAIZ,SAAJ,CACJC,UAAU,CAACY,oBADP,EAEJ,oBAFI,CAAN;IAID;;IACD,IAAIH,SAAS,CAACI,MAAV,yBAAoBJ,SAAS,CAACI,MAA9B,8CAAoB,kBAAkBC,OAA1C,EAAmD;MACjDZ,MAAM,CAACa,IAAP,CAAY;QACVC,YAAY,EAAE,IADJ;QAEVC,WAAW,EAAER,SAAS,CAACI,MAAV,CAAiBK,GAFpB;QAGVC,GAAG,EAAEV,SAAS,CAACI,MAAV,CAAiBM,GAHZ;QAIVC,gBAAgB,EAAE;MAJR,CAAZ;IAMD;;IACD,MAAMnB,QAAQ,CAACoB,cAAT,EAAN;IACA,MAAM,KAAKC,KAAL,CAAWC,gBAAX,CAA4B,KAAKC,IAAL,CAAUC,UAAtC,EAAkDhB,SAAlD,CAAN;IACAb,aAAa,CAACmB,IAAd,CAAmBN,SAAS,CAACiB,aAA7B;IACAjC,cAAc,CAACkC,WAAf,CACElB,SAAS,CAACiB,aADZ,EAEEjB,SAAS,CAACmB,cAAV,IAA4B,CAF9B;IAIApC,eAAe,CAACa,WAAhB,GAA8BwB,YAA9B;IACA,MAAMlC,mBAAmB,CAACU,WAApB,GAAkCyB,eAAlC,EAAN;IACApC,MAAM,CAACW,WAAP,GAAqB0B,UAArB,CAAgCtB,SAAS,CAACuB,aAAV,IAA2B,IAA3D,EAAiEvB,SAAjE;IACAhB,cAAc,CAACY,WAAf,GAA6B4B,mBAA7B;EACD;;EAEMC,qBAAqB,GAAG;IAC7B1C,eAAe,CAACa,WAAhB,GAA8B8B,mBAA9B;EACD;;AA9D6B;;gBAAnBhC,kB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
3
|
+
import Storage from '../../utils/storage';
|
|
4
|
+
export default class DispatchSdkCache {
|
|
5
|
+
constructor() {
|
|
6
|
+
_defineProperty(this, "storage", Storage.getInstance());
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
static getInstance() {
|
|
10
|
+
if (!DispatchSdkCache.instance) {
|
|
11
|
+
DispatchSdkCache.instance = new DispatchSdkCache();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return DispatchSdkCache.instance;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
async setObjectInCache(keyName, obj) {
|
|
18
|
+
await this.storage.setObject(keyName, obj);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async getObjectFromCache(keyName) {
|
|
22
|
+
return await this.storage.getObject(keyName);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async setKeyInCache(keyName, keyValue) {
|
|
26
|
+
await this.storage.setItem(keyName, keyValue);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async getKeyFromCache(keyName) {
|
|
30
|
+
try {
|
|
31
|
+
let keyValue = await this.storage.getItem(keyName);
|
|
32
|
+
if (keyValue != null) return keyValue;else return null;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async clearKeys(keys) {
|
|
39
|
+
try {
|
|
40
|
+
for (let i = 0; i < keys.length; i++) {
|
|
41
|
+
await this.storage.deleteItem(keys[i]);
|
|
42
|
+
}
|
|
43
|
+
} catch (error) {}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
_defineProperty(DispatchSdkCache, "instance", void 0);
|
|
49
|
+
|
|
50
|
+
_defineProperty(DispatchSdkCache, "KEYS", {
|
|
51
|
+
SDK_CONFIG: 'dsc_sdk_config',
|
|
52
|
+
DISPATCH_ID: 'dsc_dispatch_id',
|
|
53
|
+
FMS_FOLDER: 'dsc_fms_folder',
|
|
54
|
+
FIREBASE_REGISTRATION_TOKEN: 'dsc_firebase_token',
|
|
55
|
+
REASON_FETCH_TIME: 'dsc_reasons_fetch_time'
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=DispatchSdkCache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Storage","DispatchSdkCache","getInstance","instance","setObjectInCache","keyName","obj","storage","setObject","getObjectFromCache","getObject","setKeyInCache","keyValue","setItem","getKeyFromCache","getItem","error","clearKeys","keys","i","length","deleteItem","SDK_CONFIG","DISPATCH_ID","FMS_FOLDER","FIREBASE_REGISTRATION_TOKEN","REASON_FETCH_TIME"],"sources":["DispatchSdkCache.ts"],"sourcesContent":["import Storage from '../../utils/storage';\n\nexport default class DispatchSdkCache {\n private storage: Storage = Storage.getInstance();\n private static instance: DispatchSdkCache;\n\n public static getInstance() {\n if (!DispatchSdkCache.instance) {\n DispatchSdkCache.instance = new DispatchSdkCache();\n }\n return DispatchSdkCache.instance;\n }\n public static KEYS = {\n SDK_CONFIG: 'dsc_sdk_config',\n DISPATCH_ID: 'dsc_dispatch_id',\n FMS_FOLDER: 'dsc_fms_folder',\n FIREBASE_REGISTRATION_TOKEN: 'dsc_firebase_token',\n REASON_FETCH_TIME: 'dsc_reasons_fetch_time',\n };\n public async setObjectInCache(keyName: string, obj: any) {\n await this.storage.setObject(keyName, obj);\n }\n public async getObjectFromCache(keyName: string): Promise<any> {\n return await this.storage.getObject(keyName);\n }\n public async setKeyInCache(keyName: string, keyValue: string) {\n await this.storage.setItem(keyName, keyValue);\n }\n public async getKeyFromCache(keyName: string): Promise<string | null> {\n try {\n let keyValue = await this.storage.getItem(keyName);\n if (keyValue != null) return keyValue;\n else return null;\n } catch (error: any) {\n return null;\n }\n }\n public async clearKeys(keys: string[]) {\n try {\n for (let i = 0; i < keys.length; i++) {\n await this.storage.deleteItem(keys[i]);\n }\n } catch (error: any) {}\n }\n}\n"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,qBAApB;AAEA,eAAe,MAAMC,gBAAN,CAAuB;EAAA;IAAA,iCACTD,OAAO,CAACE,WAAR,EADS;EAAA;;EAIX,OAAXA,WAAW,GAAG;IAC1B,IAAI,CAACD,gBAAgB,CAACE,QAAtB,EAAgC;MAC9BF,gBAAgB,CAACE,QAAjB,GAA4B,IAAIF,gBAAJ,EAA5B;IACD;;IACD,OAAOA,gBAAgB,CAACE,QAAxB;EACD;;EAQ4B,MAAhBC,gBAAgB,CAACC,OAAD,EAAkBC,GAAlB,EAA4B;IACvD,MAAM,KAAKC,OAAL,CAAaC,SAAb,CAAuBH,OAAvB,EAAgCC,GAAhC,CAAN;EACD;;EAC8B,MAAlBG,kBAAkB,CAACJ,OAAD,EAAgC;IAC7D,OAAO,MAAM,KAAKE,OAAL,CAAaG,SAAb,CAAuBL,OAAvB,CAAb;EACD;;EACyB,MAAbM,aAAa,CAACN,OAAD,EAAkBO,QAAlB,EAAoC;IAC5D,MAAM,KAAKL,OAAL,CAAaM,OAAb,CAAqBR,OAArB,EAA8BO,QAA9B,CAAN;EACD;;EAC2B,MAAfE,eAAe,CAACT,OAAD,EAA0C;IACpE,IAAI;MACF,IAAIO,QAAQ,GAAG,MAAM,KAAKL,OAAL,CAAaQ,OAAb,CAAqBV,OAArB,CAArB;MACA,IAAIO,QAAQ,IAAI,IAAhB,EAAsB,OAAOA,QAAP,CAAtB,KACK,OAAO,IAAP;IACN,CAJD,CAIE,OAAOI,KAAP,EAAmB;MACnB,OAAO,IAAP;IACD;EACF;;EACqB,MAATC,SAAS,CAACC,IAAD,EAAiB;IACrC,IAAI;MACF,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,IAAI,CAACE,MAAzB,EAAiCD,CAAC,EAAlC,EAAsC;QACpC,MAAM,KAAKZ,OAAL,CAAac,UAAb,CAAwBH,IAAI,CAACC,CAAD,CAA5B,CAAN;MACD;IACF,CAJD,CAIE,OAAOH,KAAP,EAAmB,CAAE;EACxB;;AAzCmC;;gBAAjBf,gB;;gBAAAA,gB,UAUE;EACnBqB,UAAU,EAAE,gBADO;EAEnBC,WAAW,EAAE,iBAFM;EAGnBC,UAAU,EAAE,gBAHO;EAInBC,2BAA2B,EAAE,oBAJV;EAKnBC,iBAAiB,EAAE;AALA,C"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
3
|
+
import DocumentSyncManager from './document/DocumentSyncManager';
|
|
4
|
+
import EventsSyncManager from './events/EventsSyncManager';
|
|
5
|
+
import NetworkUtil from '../../utils/NetworkUtil';
|
|
6
|
+
import Logger, { LOG_TYPE } from '../../utils/Logger';
|
|
7
|
+
import NativeSyncManager from './NativeSyncManager';
|
|
8
|
+
import DispatchSdkCache from '../sdk/DispatchSdkCache';
|
|
9
|
+
import { AppRegistry, Platform } from 'react-native';
|
|
10
|
+
import { BaseError } from '../../errors/BaseError';
|
|
11
|
+
import ErrorCodes from '../../errors/ErrorCodes';
|
|
12
|
+
import { DEFAULT_INTERVAL, DEFAULT_NOTIFICATION_DESCRIPTION, DEFAULT_NOTIFICATION_TITLE } from '../../constants/constants';
|
|
13
|
+
export default class AppSyncManager {
|
|
14
|
+
constructor(tenantBaseURL, retryCount) {
|
|
15
|
+
_defineProperty(this, "isSyncActive", false);
|
|
16
|
+
|
|
17
|
+
DocumentSyncManager.getInstance().init(tenantBaseURL, retryCount);
|
|
18
|
+
EventsSyncManager.getInstance().initSyncManager(tenantBaseURL, retryCount);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param forceSync - true/false - if true resets the retry count key and start the sync
|
|
24
|
+
* @param syncType
|
|
25
|
+
*/
|
|
26
|
+
async startSyncing(forceSync, _syncType) {
|
|
27
|
+
if (await NetworkUtil.isAvailableAsync()) {
|
|
28
|
+
if (forceSync) {
|
|
29
|
+
await EventsSyncManager.getInstance().forceSync();
|
|
30
|
+
await DocumentSyncManager.getInstance().forceDocumentSync();
|
|
31
|
+
} else {
|
|
32
|
+
await EventsSyncManager.getInstance().startSync();
|
|
33
|
+
await DocumentSyncManager.getInstance().startDocumentSync();
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
Logger.getInstance().logEvent('startSync', 'No network', LOG_TYPE.SDK_INFO);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async isAppSyncPending() {
|
|
41
|
+
return (await EventsSyncManager.getInstance().isSyncPending()) || (await DocumentSyncManager.getInstance().isSyncPending());
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static initAppSync(tenantBaseURL, syncRetryCount) {
|
|
45
|
+
if (!AppSyncManager.instance) {
|
|
46
|
+
Logger.getInstance().logEvent('initAppSync', 'CREATING NEW INSTANCE', LOG_TYPE.SDK_INFO);
|
|
47
|
+
AppSyncManager.instance = new AppSyncManager(tenantBaseURL, syncRetryCount);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return AppSyncManager.instance;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static getInstance() {
|
|
54
|
+
if (!AppSyncManager.instance) throw new BaseError(ErrorCodes.AppSyncNotInitialized, 'SDK sync Manager is not initialized');else return AppSyncManager.instance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static async startAppSyncManager() {
|
|
58
|
+
try {
|
|
59
|
+
if (!AppSyncManager.instance) {
|
|
60
|
+
NativeSyncManager.stopSyncManager();
|
|
61
|
+
let sdkConfig = await DispatchSdkCache.getInstance().getObjectFromCache(DispatchSdkCache.KEYS.SDK_CONFIG);
|
|
62
|
+
const retryCount = sdkConfig.syncRetryCount ?? 3;
|
|
63
|
+
|
|
64
|
+
if (sdkConfig.tenantBaseURL != null && retryCount != null) {
|
|
65
|
+
AppSyncManager.initAppSync(sdkConfig.tenantBaseURL, +retryCount);
|
|
66
|
+
AppSyncManager.getInstance().startSDKSyncManager();
|
|
67
|
+
} else {
|
|
68
|
+
Logger.getInstance().logEvent('SYNC_MANAGER_ASM', 'TENANT BASE URL IS NULL', LOG_TYPE.SDK_ERROR);
|
|
69
|
+
}
|
|
70
|
+
} else if (await AppSyncManager.instance.isAppSyncPending()) {
|
|
71
|
+
await AppSyncManager.instance.startSyncing(false);
|
|
72
|
+
} else {
|
|
73
|
+
NativeSyncManager.stopSyncManager();
|
|
74
|
+
AppSyncManager.getInstance().isSyncActive = false;
|
|
75
|
+
}
|
|
76
|
+
} catch (error) {
|
|
77
|
+
Logger.getInstance().logEvent('startAppSyncManager', `Unable to start App Sync Manager ${error.message}`, LOG_TYPE.SDK_WARNING);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Call this method from index file of the app
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
static registerSyncTask() {
|
|
86
|
+
AppRegistry.registerHeadlessTask('SYNC_MANAGER', () => AppSyncManager.startAppSyncManager);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async getAllEvents(dispatchID) {
|
|
90
|
+
return EventsSyncManager.getInstance().getAllEvents(dispatchID);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async getAllDocuments(dispatchID) {
|
|
94
|
+
return DocumentSyncManager.getInstance().getAllDocuments(dispatchID);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
startSDKSyncManager() {
|
|
98
|
+
(async () => {
|
|
99
|
+
const config = await DispatchSdkCache.getInstance().getObjectFromCache(DispatchSdkCache.KEYS.SDK_CONFIG);
|
|
100
|
+
|
|
101
|
+
if (Platform.OS === 'android') {
|
|
102
|
+
if (!this.isSyncActive) {
|
|
103
|
+
var _config$notificationC, _config$notificationC2, _config$notificationC3;
|
|
104
|
+
|
|
105
|
+
this.isSyncActive = true;
|
|
106
|
+
/**
|
|
107
|
+
* Reset Retry Counter
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
EventsSyncManager.getInstance().retries = 0;
|
|
111
|
+
DocumentSyncManager.getInstance().retries = 0;
|
|
112
|
+
NativeSyncManager.startSyncManager((config === null || config === void 0 ? void 0 : (_config$notificationC = config.notificationConfig) === null || _config$notificationC === void 0 ? void 0 : _config$notificationC.interval) ?? DEFAULT_INTERVAL, (config === null || config === void 0 ? void 0 : (_config$notificationC2 = config.notificationConfig) === null || _config$notificationC2 === void 0 ? void 0 : _config$notificationC2.title) ?? DEFAULT_NOTIFICATION_TITLE, (config === null || config === void 0 ? void 0 : (_config$notificationC3 = config.notificationConfig) === null || _config$notificationC3 === void 0 ? void 0 : _config$notificationC3.description) ?? DEFAULT_NOTIFICATION_DESCRIPTION);
|
|
113
|
+
} else {
|
|
114
|
+
Logger.getInstance().logEvent('startNativeSyncManager', 'ANDROID SYNC SERVICE ALREADY RUNNING', LOG_TYPE.SDK_INFO);
|
|
115
|
+
}
|
|
116
|
+
} else {
|
|
117
|
+
/**
|
|
118
|
+
* For iOS we have to start Normal Foreground sync
|
|
119
|
+
*/
|
|
120
|
+
this.startSyncing(true).then().catch();
|
|
121
|
+
}
|
|
122
|
+
})();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
_defineProperty(AppSyncManager, "instance", void 0);
|
|
128
|
+
//# sourceMappingURL=AppSyncManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DocumentSyncManager","EventsSyncManager","NetworkUtil","Logger","LOG_TYPE","NativeSyncManager","DispatchSdkCache","AppRegistry","Platform","BaseError","ErrorCodes","DEFAULT_INTERVAL","DEFAULT_NOTIFICATION_DESCRIPTION","DEFAULT_NOTIFICATION_TITLE","AppSyncManager","constructor","tenantBaseURL","retryCount","getInstance","init","initSyncManager","startSyncing","forceSync","_syncType","isAvailableAsync","forceDocumentSync","startSync","startDocumentSync","logEvent","SDK_INFO","isAppSyncPending","isSyncPending","initAppSync","syncRetryCount","instance","AppSyncNotInitialized","startAppSyncManager","stopSyncManager","sdkConfig","getObjectFromCache","KEYS","SDK_CONFIG","startSDKSyncManager","SDK_ERROR","isSyncActive","error","message","SDK_WARNING","registerSyncTask","registerHeadlessTask","getAllEvents","dispatchID","getAllDocuments","config","OS","retries","startSyncManager","notificationConfig","interval","title","description","then","catch"],"sources":["AppSyncManager.ts"],"sourcesContent":["import DocumentSyncManager from './document/DocumentSyncManager';\nimport EventsSyncManager from './events/EventsSyncManager';\nimport NetworkUtil from '../../utils/NetworkUtil';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport NativeSyncManager from './NativeSyncManager';\nimport DispatchSdkCache from '../sdk/DispatchSdkCache';\nimport { AppRegistry, Platform } from 'react-native';\nimport { BaseError } from '../../errors/BaseError';\nimport ErrorCodes from '../../errors/ErrorCodes';\nimport type { SdkSyncType } from '../../models/DispatchModels';\nimport type { DocumentRow, EventRow } from './DBConfig';\nimport {\n DEFAULT_INTERVAL,\n DEFAULT_NOTIFICATION_DESCRIPTION,\n DEFAULT_NOTIFICATION_TITLE,\n} from '../../constants/constants';\nimport type { DispatchSDKConfig } from '../../models/sdk';\n\nexport default class AppSyncManager {\n private constructor(tenantBaseURL: string, retryCount: number) {\n DocumentSyncManager.getInstance().init(tenantBaseURL, retryCount);\n EventsSyncManager.getInstance().initSyncManager(tenantBaseURL, retryCount);\n }\n private static instance: AppSyncManager;\n public isSyncActive = false;\n\n /**\n *\n * @param forceSync - true/false - if true resets the retry count key and start the sync\n * @param syncType\n */\n public async startSyncing(forceSync: boolean, _syncType?: SdkSyncType) {\n if (await NetworkUtil.isAvailableAsync()) {\n if (forceSync) {\n await EventsSyncManager.getInstance().forceSync();\n await DocumentSyncManager.getInstance().forceDocumentSync();\n } else {\n await EventsSyncManager.getInstance().startSync();\n await DocumentSyncManager.getInstance().startDocumentSync();\n }\n } else {\n Logger.getInstance().logEvent(\n 'startSync',\n 'No network',\n LOG_TYPE.SDK_INFO\n );\n }\n }\n\n public async isAppSyncPending(): Promise<boolean> {\n return (\n (await EventsSyncManager.getInstance().isSyncPending()) ||\n (await DocumentSyncManager.getInstance().isSyncPending())\n );\n }\n public static initAppSync(\n tenantBaseURL: string,\n syncRetryCount: number\n ): AppSyncManager {\n if (!AppSyncManager.instance) {\n Logger.getInstance().logEvent(\n 'initAppSync',\n 'CREATING NEW INSTANCE',\n LOG_TYPE.SDK_INFO\n );\n AppSyncManager.instance = new AppSyncManager(\n tenantBaseURL,\n syncRetryCount\n );\n }\n return AppSyncManager.instance;\n }\n public static getInstance(): AppSyncManager {\n if (!AppSyncManager.instance)\n throw new BaseError(\n ErrorCodes.AppSyncNotInitialized,\n 'SDK sync Manager is not initialized'\n );\n else return AppSyncManager.instance;\n }\n\n public static async startAppSyncManager() {\n try {\n if (!AppSyncManager.instance) {\n NativeSyncManager.stopSyncManager();\n let sdkConfig =\n (await DispatchSdkCache.getInstance().getObjectFromCache(\n DispatchSdkCache.KEYS.SDK_CONFIG\n )) as DispatchSDKConfig;\n const retryCount = sdkConfig.syncRetryCount ?? 3;\n if (sdkConfig.tenantBaseURL != null && retryCount != null) {\n AppSyncManager.initAppSync(sdkConfig.tenantBaseURL, +retryCount);\n AppSyncManager.getInstance().startSDKSyncManager();\n } else {\n Logger.getInstance().logEvent(\n 'SYNC_MANAGER_ASM',\n 'TENANT BASE URL IS NULL',\n LOG_TYPE.SDK_ERROR\n );\n }\n } else if (await AppSyncManager.instance.isAppSyncPending()) {\n await AppSyncManager.instance.startSyncing(false);\n } else {\n NativeSyncManager.stopSyncManager();\n AppSyncManager.getInstance().isSyncActive = false;\n }\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'startAppSyncManager',\n `Unable to start App Sync Manager ${error.message}`,\n LOG_TYPE.SDK_WARNING\n );\n }\n }\n\n /**\n * Call this method from index file of the app\n */\n public static registerSyncTask() {\n AppRegistry.registerHeadlessTask(\n 'SYNC_MANAGER',\n () => AppSyncManager.startAppSyncManager\n );\n }\n\n public async getAllEvents(dispatchID?: string): Promise<EventRow[]> {\n return EventsSyncManager.getInstance().getAllEvents(dispatchID);\n }\n public async getAllDocuments(dispatchID?: string): Promise<DocumentRow[]> {\n return DocumentSyncManager.getInstance().getAllDocuments(dispatchID);\n }\n public startSDKSyncManager() {\n (async () => {\n const config = (await DispatchSdkCache.getInstance().getObjectFromCache(\n DispatchSdkCache.KEYS.SDK_CONFIG\n )) as DispatchSDKConfig;\n if (Platform.OS === 'android') {\n if (!this.isSyncActive) {\n this.isSyncActive = true;\n /**\n * Reset Retry Counter\n */\n EventsSyncManager.getInstance().retries = 0;\n DocumentSyncManager.getInstance().retries = 0;\n NativeSyncManager.startSyncManager(\n config?.notificationConfig?.interval ?? DEFAULT_INTERVAL,\n config?.notificationConfig?.title ?? DEFAULT_NOTIFICATION_TITLE,\n config?.notificationConfig?.description ??\n DEFAULT_NOTIFICATION_DESCRIPTION\n );\n } else {\n Logger.getInstance().logEvent(\n 'startNativeSyncManager',\n 'ANDROID SYNC SERVICE ALREADY RUNNING',\n LOG_TYPE.SDK_INFO\n );\n }\n } else {\n /**\n * For iOS we have to start Normal Foreground sync\n */\n this.startSyncing(true).then().catch();\n }\n })();\n }\n}\n"],"mappings":"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"}
|