@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.
Files changed (856) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +551 -0
  3. package/android/build/.transforms/22228dd0a4a527a24ec811806cb09b83/classes/classes.dex +0 -0
  4. package/android/build/.transforms/22228dd0a4a527a24ec811806cb09b83.bin +1 -0
  5. package/android/build/.transforms/94a07ea3e1b6cf7284a0d41cd59f08ef/classes/classes.dex +0 -0
  6. package/android/build/.transforms/94a07ea3e1b6cf7284a0d41cd59f08ef.bin +1 -0
  7. package/android/build/generated/source/buildConfig/debug/com/dispatchsdk/BuildConfig.java +12 -0
  8. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +34 -0
  9. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +26 -0
  10. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
  11. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  12. package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar +0 -0
  13. package/android/build/intermediates/compile_symbol_list/debug/R.txt +4928 -0
  14. package/android/build/intermediates/compiled_local_resources/debug/out/drawable_alert_background.xml.flat +0 -0
  15. package/android/build/intermediates/compiled_local_resources/debug/out/drawable_ic_baseline_sync_24.xml.flat +0 -0
  16. package/android/build/intermediates/compiled_local_resources/debug/out/font_ibmplexsans.ttf.flat +0 -0
  17. package/android/build/intermediates/compiled_local_resources/debug/out/xml_file_paths.xml.flat +0 -0
  18. package/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state +0 -0
  19. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  20. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  21. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  22. package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +5 -0
  23. package/android/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml +9 -0
  24. package/android/build/intermediates/incremental/packageDebugResources/merger.xml +7 -0
  25. package/android/build/intermediates/javac/debug/classes/com/dispatchsdk/BuildConfig.class +0 -0
  26. package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
  27. package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +34 -0
  28. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +7 -0
  29. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +63 -0
  30. package/android/build/intermediates/merged_manifests/debug/output.json +26 -0
  31. package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
  32. package/android/build/intermediates/packaged_res/debug/drawable/alert_background.xml +8 -0
  33. package/android/build/intermediates/packaged_res/debug/drawable/ic_baseline_sync_24.xml +5 -0
  34. package/android/build/intermediates/packaged_res/debug/font/ibmplexsans.ttf +0 -0
  35. package/android/build/intermediates/packaged_res/debug/values/values.xml +9 -0
  36. package/android/build/intermediates/packaged_res/debug/xml/file_paths.xml +10 -0
  37. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  38. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +3391 -0
  39. package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +2 -0
  97. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i.len +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
  119. package/android/build/outputs/logs/manifest-merger-debug-report.txt +79 -0
  120. package/android/build/tmp/kotlin-classes/debug/META-INF/dispatchsdk_debug.kotlin_module +0 -0
  121. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/DispatchSdkPackage.class +0 -0
  122. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/errors/NativeSdkErrors.class +0 -0
  123. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureContextModule.class +0 -0
  124. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureMainView.class +0 -0
  125. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$Companion.class +0 -0
  126. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$OnSignedListener.class +0 -0
  127. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView$SignatureCallback.class +0 -0
  128. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureView.class +0 -0
  129. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager$Companion.class +0 -0
  130. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager.class +0 -0
  131. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/Bezier.class +0 -0
  132. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/ControlTimedPoints.class +0 -0
  133. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/signatureUtils/TimedPoint.class +0 -0
  134. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncEventService$Companion.class +0 -0
  135. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncEventService.class +0 -0
  136. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService$Companion.class +0 -0
  137. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService$runnableCode$1.class +0 -0
  138. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncManagerService.class +0 -0
  139. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncModule$Companion.class +0 -0
  140. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/sync/SyncModule.class +0 -0
  141. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$Companion.class +0 -0
  142. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$showAndroidDialog$1.class +0 -0
  143. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils$showAndroidDialog$2.class +0 -0
  144. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/DispatchSdkUtils.class +0 -0
  145. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/ModuleConfig$IntentConfig.class +0 -0
  146. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/ModuleConfig.class +0 -0
  147. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/Tracer.class +0 -0
  148. package/android/build/tmp/kotlin-classes/debug/com/dispatchsdk/utils/Utils.class +0 -0
  149. package/android/build.gradle +130 -0
  150. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  151. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  152. package/android/gradle.properties +4 -0
  153. package/android/gradlew +185 -0
  154. package/android/gradlew.bat +89 -0
  155. package/android/src/main/AndroidManifest.xml +33 -0
  156. package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +23 -0
  157. package/android/src/main/java/com/dispatchsdk/errors/NativeSdkErrors.kt +24 -0
  158. package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureContextModule.kt +15 -0
  159. package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureMainView.kt +150 -0
  160. package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureView.kt +355 -0
  161. package/android/src/main/java/com/dispatchsdk/signaturePad/RSSignatureCaptureViewManager.kt +132 -0
  162. package/android/src/main/java/com/dispatchsdk/signatureUtils/Bezier.kt +45 -0
  163. package/android/src/main/java/com/dispatchsdk/signatureUtils/ControlTimedPoints.kt +3 -0
  164. package/android/src/main/java/com/dispatchsdk/signatureUtils/TimedPoint.kt +19 -0
  165. package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +28 -0
  166. package/android/src/main/java/com/dispatchsdk/sync/SyncManagerService.kt +128 -0
  167. package/android/src/main/java/com/dispatchsdk/sync/SyncModule.kt +45 -0
  168. package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +121 -0
  169. package/android/src/main/java/com/dispatchsdk/utils/ModuleConfig.kt +21 -0
  170. package/android/src/main/java/com/dispatchsdk/utils/Tracer.kt +9 -0
  171. package/android/src/main/java/com/dispatchsdk/utils/Utils.kt +100 -0
  172. package/android/src/main/res/drawable/alert_background.xml +8 -0
  173. package/android/src/main/res/drawable/ic_baseline_sync_24.xml +5 -0
  174. package/android/src/main/res/font/ibmplexsans.ttf +0 -0
  175. package/android/src/main/res/values/styles.xml +10 -0
  176. package/android/src/main/res/xml/file_paths.xml +10 -0
  177. package/babel.config.js +3 -0
  178. package/foxtrotplatform-mobile-execution-lib-v0.6.4.tgz +0 -0
  179. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +249 -0
  180. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -0
  181. package/lib/commonjs/components/executiontasks/CompletedWFSchema.js +6 -0
  182. package/lib/commonjs/components/executiontasks/CompletedWFSchema.js.map +1 -0
  183. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +192 -0
  184. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -0
  185. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +110 -0
  186. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -0
  187. package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js +6 -0
  188. package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -0
  189. package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js +6 -0
  190. package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -0
  191. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +69 -0
  192. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -0
  193. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +105 -0
  194. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -0
  195. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js +6 -0
  196. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -0
  197. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +197 -0
  198. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -0
  199. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +126 -0
  200. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -0
  201. package/lib/commonjs/components/executiontasks/display/DisplaySchema.js +6 -0
  202. package/lib/commonjs/components/executiontasks/display/DisplaySchema.js.map +1 -0
  203. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +28 -0
  204. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +1 -0
  205. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +190 -0
  206. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -0
  207. package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js +6 -0
  208. package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -0
  209. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +130 -0
  210. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -0
  211. package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js +6 -0
  212. package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -0
  213. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +137 -0
  214. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -0
  215. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +116 -0
  216. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -0
  217. package/lib/commonjs/components/executiontasks/forms/FormSchema.js +6 -0
  218. package/lib/commonjs/components/executiontasks/forms/FormSchema.js.map +1 -0
  219. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +152 -0
  220. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -0
  221. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +155 -0
  222. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -0
  223. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +54 -0
  224. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -0
  225. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +53 -0
  226. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -0
  227. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +61 -0
  228. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -0
  229. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js +6 -0
  230. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -0
  231. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js +6 -0
  232. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -0
  233. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +159 -0
  234. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -0
  235. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +256 -0
  236. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -0
  237. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +91 -0
  238. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -0
  239. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +17 -0
  240. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -0
  241. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +111 -0
  242. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -0
  243. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js +6 -0
  244. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -0
  245. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +139 -0
  246. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -0
  247. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js +6 -0
  248. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -0
  249. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +146 -0
  250. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -0
  251. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js +6 -0
  252. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -0
  253. package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js +6 -0
  254. package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -0
  255. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +103 -0
  256. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -0
  257. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +115 -0
  258. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -0
  259. package/lib/commonjs/components/executiontasks/scanner/CScanner.js +123 -0
  260. package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +1 -0
  261. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +32 -0
  262. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +1 -0
  263. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +193 -0
  264. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +1 -0
  265. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +20 -0
  266. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -0
  267. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +49 -0
  268. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -0
  269. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +107 -0
  270. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -0
  271. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +317 -0
  272. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +1 -0
  273. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +100 -0
  274. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -0
  275. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +276 -0
  276. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +1 -0
  277. package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js +6 -0
  278. package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -0
  279. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +66 -0
  280. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -0
  281. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js +6 -0
  282. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -0
  283. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +69 -0
  284. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -0
  285. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +100 -0
  286. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -0
  287. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js +6 -0
  288. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -0
  289. package/lib/commonjs/components/widgets/AlertDisplay.js +25 -0
  290. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -0
  291. package/lib/commonjs/components/widgets/CancelOrderDialog.js +101 -0
  292. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -0
  293. package/lib/commonjs/components/widgets/ProgressDialog.js +59 -0
  294. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -0
  295. package/lib/commonjs/components/widgets/SnackBarCustom.js +165 -0
  296. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -0
  297. package/lib/commonjs/components/widgets/Toaster.js +15 -0
  298. package/lib/commonjs/components/widgets/Toaster.js.map +1 -0
  299. package/lib/commonjs/config/DispatchSDKConfig.js +14 -0
  300. package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -0
  301. package/lib/commonjs/constants/apiConstants.js +11 -0
  302. package/lib/commonjs/constants/apiConstants.js.map +1 -0
  303. package/lib/commonjs/constants/constants.js +25 -0
  304. package/lib/commonjs/constants/constants.js.map +1 -0
  305. package/lib/commonjs/constants/statuscode.js +18 -0
  306. package/lib/commonjs/constants/statuscode.js.map +1 -0
  307. package/lib/commonjs/errors/BaseError.js +30 -0
  308. package/lib/commonjs/errors/BaseError.js.map +1 -0
  309. package/lib/commonjs/errors/ErrorCodes.js +44 -0
  310. package/lib/commonjs/errors/ErrorCodes.js.map +1 -0
  311. package/lib/commonjs/index.js +164 -0
  312. package/lib/commonjs/index.js.map +1 -0
  313. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +442 -0
  314. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -0
  315. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +13 -0
  316. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -0
  317. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +112 -0
  318. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -0
  319. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +87 -0
  320. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -0
  321. package/lib/commonjs/manager/dispatchCodes/reasonCodes.json +137 -0
  322. package/lib/commonjs/manager/location/LocationManager.js +97 -0
  323. package/lib/commonjs/manager/location/LocationManager.js.map +1 -0
  324. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +103 -0
  325. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -0
  326. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +69 -0
  327. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -0
  328. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +158 -0
  329. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -0
  330. package/lib/commonjs/manager/syncmanager/DBConfig.js +62 -0
  331. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -0
  332. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +15 -0
  333. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -0
  334. package/lib/commonjs/manager/syncmanager/database.js +48 -0
  335. package/lib/commonjs/manager/syncmanager/database.js.map +1 -0
  336. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +125 -0
  337. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -0
  338. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +113 -0
  339. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -0
  340. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +200 -0
  341. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -0
  342. package/lib/commonjs/manager/syncmanager/document/models.js +2 -0
  343. package/lib/commonjs/manager/syncmanager/document/models.js.map +1 -0
  344. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +117 -0
  345. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -0
  346. package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js +2 -0
  347. package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -0
  348. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +279 -0
  349. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -0
  350. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +79 -0
  351. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -0
  352. package/lib/commonjs/models/DispatchModels.js +14 -0
  353. package/lib/commonjs/models/DispatchModels.js.map +1 -0
  354. package/lib/commonjs/models/ReasonCodes.js +2 -0
  355. package/lib/commonjs/models/ReasonCodes.js.map +1 -0
  356. package/lib/commonjs/models/auth.js +2 -0
  357. package/lib/commonjs/models/auth.js.map +1 -0
  358. package/lib/commonjs/models/execTasks/ETBaseModels.js +2 -0
  359. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -0
  360. package/lib/commonjs/models/execTasks/ETConfig.js +116 -0
  361. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -0
  362. package/lib/commonjs/models/execution.js +2 -0
  363. package/lib/commonjs/models/execution.js.map +1 -0
  364. package/lib/commonjs/models/fcm.js +2 -0
  365. package/lib/commonjs/models/fcm.js.map +1 -0
  366. package/lib/commonjs/models/sdk.js +15 -0
  367. package/lib/commonjs/models/sdk.js.map +1 -0
  368. package/lib/commonjs/native/signature/SignatureCapture.js +94 -0
  369. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -0
  370. package/lib/commonjs/network/GraphQLClient.js +149 -0
  371. package/lib/commonjs/network/GraphQLClient.js.map +1 -0
  372. package/lib/commonjs/network/NetworkClient.js +57 -0
  373. package/lib/commonjs/network/NetworkClient.js.map +1 -0
  374. package/lib/commonjs/network/NetworkUtils.js +36 -0
  375. package/lib/commonjs/network/NetworkUtils.js.map +1 -0
  376. package/lib/commonjs/network/Queries.js +55 -0
  377. package/lib/commonjs/network/Queries.js.map +1 -0
  378. package/lib/commonjs/network/client.js +87 -0
  379. package/lib/commonjs/network/client.js.map +1 -0
  380. package/lib/commonjs/res/strings.js +9 -0
  381. package/lib/commonjs/res/strings.js.map +1 -0
  382. package/lib/commonjs/resources/Login.js +52 -0
  383. package/lib/commonjs/resources/Login.js.map +1 -0
  384. package/lib/commonjs/resources/network.js +28 -0
  385. package/lib/commonjs/resources/network.js.map +1 -0
  386. package/lib/commonjs/styles/SdkColors.js +30 -0
  387. package/lib/commonjs/styles/SdkColors.js.map +1 -0
  388. package/lib/commonjs/styles/executionTasks/CommonStyles.js +168 -0
  389. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -0
  390. package/lib/commonjs/ui/screens/CancellationScreen.js +64 -0
  391. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -0
  392. package/lib/commonjs/ui/screens/CaptureInputScreen.js +74 -0
  393. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -0
  394. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +68 -0
  395. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -0
  396. package/lib/commonjs/ui/screens/DeliverScreen.js +75 -0
  397. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -0
  398. package/lib/commonjs/ui/screens/DisplayScreen.js +43 -0
  399. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -0
  400. package/lib/commonjs/ui/screens/DoodleScreen.js +79 -0
  401. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -0
  402. package/lib/commonjs/ui/screens/DropCashScreen.js +89 -0
  403. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -0
  404. package/lib/commonjs/ui/screens/ETScreensIndex.js +128 -0
  405. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -0
  406. package/lib/commonjs/ui/screens/FormsScreen.js +45 -0
  407. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -0
  408. package/lib/commonjs/ui/screens/GeofenceScreen.js +47 -0
  409. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -0
  410. package/lib/commonjs/ui/screens/HttpRequestScreen.js +38 -0
  411. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -0
  412. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +44 -0
  413. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -0
  414. package/lib/commonjs/ui/screens/PaymentScreen.js +142 -0
  415. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -0
  416. package/lib/commonjs/ui/screens/PickupScreen.js +48 -0
  417. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -0
  418. package/lib/commonjs/ui/screens/RTScanScreen.js +118 -0
  419. package/lib/commonjs/ui/screens/RTScanScreen.js.map +1 -0
  420. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +137 -0
  421. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -0
  422. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +52 -0
  423. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -0
  424. package/lib/commonjs/ui/uiConfig/RouteParams.js +16 -0
  425. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -0
  426. package/lib/commonjs/utils/ExecTaskUtils.js +113 -0
  427. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -0
  428. package/lib/commonjs/utils/Logger.js +114 -0
  429. package/lib/commonjs/utils/Logger.js.map +1 -0
  430. package/lib/commonjs/utils/NetworkUtil.js +66 -0
  431. package/lib/commonjs/utils/NetworkUtil.js.map +1 -0
  432. package/lib/commonjs/utils/SdkUtils.js +129 -0
  433. package/lib/commonjs/utils/SdkUtils.js.map +1 -0
  434. package/lib/commonjs/utils/SyncManagerUtils.js +136 -0
  435. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -0
  436. package/lib/commonjs/utils/fcm/FCM.js +58 -0
  437. package/lib/commonjs/utils/fcm/FCM.js.map +1 -0
  438. package/lib/commonjs/utils/fcm/FcmUtils.js +98 -0
  439. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -0
  440. package/lib/commonjs/utils/helper.js +37 -0
  441. package/lib/commonjs/utils/helper.js.map +1 -0
  442. package/lib/commonjs/utils/loginHelper.js +70 -0
  443. package/lib/commonjs/utils/loginHelper.js.map +1 -0
  444. package/lib/commonjs/utils/storage.js +153 -0
  445. package/lib/commonjs/utils/storage.js.map +1 -0
  446. package/lib/commonjs/utils/test.json +17 -0
  447. package/lib/commonjs/utils/utils.js +38 -0
  448. package/lib/commonjs/utils/utils.js.map +1 -0
  449. package/lib/foxtrotplatform-mobile-execution-lib-v0.6.4.tgz +0 -0
  450. package/lib/module/components/dispatch/DispatchExecNavigator.js +228 -0
  451. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -0
  452. package/lib/module/components/executiontasks/CompletedWFSchema.js +2 -0
  453. package/lib/module/components/executiontasks/CompletedWFSchema.js.map +1 -0
  454. package/lib/module/components/executiontasks/ExecutionTasksIndex.js +25 -0
  455. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -0
  456. package/lib/module/components/executiontasks/cancellation/CancelET.js +93 -0
  457. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -0
  458. package/lib/module/components/executiontasks/cancellation/CancellationSchema.js +2 -0
  459. package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -0
  460. package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js +2 -0
  461. package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -0
  462. package/lib/module/components/executiontasks/captureInput/CaptureText.js +50 -0
  463. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -0
  464. package/lib/module/components/executiontasks/deliver/DeliverET.js +87 -0
  465. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -0
  466. package/lib/module/components/executiontasks/deliver/DeliverETInput.js +2 -0
  467. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -0
  468. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +175 -0
  469. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -0
  470. package/lib/module/components/executiontasks/display/DisplayModalET.js +107 -0
  471. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -0
  472. package/lib/module/components/executiontasks/display/DisplaySchema.js +2 -0
  473. package/lib/module/components/executiontasks/display/DisplaySchema.js.map +1 -0
  474. package/lib/module/components/executiontasks/doodle/DoodleUtils.js +19 -0
  475. package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +1 -0
  476. package/lib/module/components/executiontasks/doodle/SignatureET.js +163 -0
  477. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -0
  478. package/lib/module/components/executiontasks/doodle/SignatureSchema.js +2 -0
  479. package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -0
  480. package/lib/module/components/executiontasks/dropCash/DropCashET.js +108 -0
  481. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -0
  482. package/lib/module/components/executiontasks/dropCash/DropCashSchema.js +2 -0
  483. package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -0
  484. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +117 -0
  485. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -0
  486. package/lib/module/components/executiontasks/forms/FormGenerator.js +90 -0
  487. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -0
  488. package/lib/module/components/executiontasks/forms/FormSchema.js +2 -0
  489. package/lib/module/components/executiontasks/forms/FormSchema.js.map +1 -0
  490. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +132 -0
  491. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -0
  492. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +134 -0
  493. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -0
  494. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +37 -0
  495. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -0
  496. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +33 -0
  497. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -0
  498. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +42 -0
  499. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -0
  500. package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js +2 -0
  501. package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -0
  502. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js +2 -0
  503. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -0
  504. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +120 -0
  505. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -0
  506. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +232 -0
  507. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -0
  508. package/lib/module/components/executiontasks/payments/PaymentStyles.js +80 -0
  509. package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -0
  510. package/lib/module/components/executiontasks/payments/PaymentUtils.js +8 -0
  511. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -0
  512. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +90 -0
  513. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -0
  514. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js +2 -0
  515. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -0
  516. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +116 -0
  517. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -0
  518. package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js +2 -0
  519. package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -0
  520. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +124 -0
  521. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -0
  522. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js +2 -0
  523. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -0
  524. package/lib/module/components/executiontasks/pickup/PickpSchema.js +2 -0
  525. package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -0
  526. package/lib/module/components/executiontasks/pickup/PickupET.js +85 -0
  527. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -0
  528. package/lib/module/components/executiontasks/pickup/SLPickupET.js +94 -0
  529. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -0
  530. package/lib/module/components/executiontasks/scanner/CScanner.js +101 -0
  531. package/lib/module/components/executiontasks/scanner/CScanner.js.map +1 -0
  532. package/lib/module/components/executiontasks/scanner/ScannerSchema.js +24 -0
  533. package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +1 -0
  534. package/lib/module/components/executiontasks/scanner/ScannerUtils.js +158 -0
  535. package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +1 -0
  536. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +9 -0
  537. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -0
  538. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +38 -0
  539. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -0
  540. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +86 -0
  541. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -0
  542. package/lib/module/components/executiontasks/scanner/returns/RTScan.js +287 -0
  543. package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +1 -0
  544. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +80 -0
  545. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -0
  546. package/lib/module/components/executiontasks/scanner/returns/ScanList.js +253 -0
  547. package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +1 -0
  548. package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js +2 -0
  549. package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -0
  550. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +50 -0
  551. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -0
  552. package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js +2 -0
  553. package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -0
  554. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +45 -0
  555. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -0
  556. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +78 -0
  557. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -0
  558. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js +2 -0
  559. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -0
  560. package/lib/module/components/widgets/AlertDisplay.js +12 -0
  561. package/lib/module/components/widgets/AlertDisplay.js.map +1 -0
  562. package/lib/module/components/widgets/CancelOrderDialog.js +81 -0
  563. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -0
  564. package/lib/module/components/widgets/ProgressDialog.js +46 -0
  565. package/lib/module/components/widgets/ProgressDialog.js.map +1 -0
  566. package/lib/module/components/widgets/SnackBarCustom.js +138 -0
  567. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -0
  568. package/lib/module/components/widgets/Toaster.js +7 -0
  569. package/lib/module/components/widgets/Toaster.js.map +1 -0
  570. package/lib/module/config/DispatchSDKConfig.js +7 -0
  571. package/lib/module/config/DispatchSDKConfig.js.map +1 -0
  572. package/lib/module/constants/apiConstants.js +4 -0
  573. package/lib/module/constants/apiConstants.js.map +1 -0
  574. package/lib/module/constants/constants.js +10 -0
  575. package/lib/module/constants/constants.js.map +1 -0
  576. package/lib/module/constants/statuscode.js +11 -0
  577. package/lib/module/constants/statuscode.js.map +1 -0
  578. package/lib/module/errors/BaseError.js +21 -0
  579. package/lib/module/errors/BaseError.js.map +1 -0
  580. package/lib/module/errors/ErrorCodes.js +32 -0
  581. package/lib/module/errors/ErrorCodes.js.map +1 -0
  582. package/lib/module/index.js +24 -0
  583. package/lib/module/index.js.map +1 -0
  584. package/lib/module/manager/dispatch/DispatchStateContainer.js +405 -0
  585. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -0
  586. package/lib/module/manager/dispatchCodes/EventCodeContainer.js +5 -0
  587. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -0
  588. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +89 -0
  589. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -0
  590. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +72 -0
  591. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -0
  592. package/lib/module/manager/dispatchCodes/reasonCodes.json +137 -0
  593. package/lib/module/manager/location/LocationManager.js +83 -0
  594. package/lib/module/manager/location/LocationManager.js.map +1 -0
  595. package/lib/module/manager/sdk/DispatchSDKManager.js +71 -0
  596. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -0
  597. package/lib/module/manager/sdk/DispatchSdkCache.js +57 -0
  598. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -0
  599. package/lib/module/manager/syncmanager/AppSyncManager.js +128 -0
  600. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -0
  601. package/lib/module/manager/syncmanager/DBConfig.js +48 -0
  602. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -0
  603. package/lib/module/manager/syncmanager/NativeSyncManager.js +6 -0
  604. package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -0
  605. package/lib/module/manager/syncmanager/database.js +30 -0
  606. package/lib/module/manager/syncmanager/database.js.map +1 -0
  607. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +104 -0
  608. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -0
  609. package/lib/module/manager/syncmanager/document/DocumentManager.js +98 -0
  610. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -0
  611. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +173 -0
  612. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -0
  613. package/lib/module/manager/syncmanager/document/models.js +2 -0
  614. package/lib/module/manager/syncmanager/document/models.js.map +1 -0
  615. package/lib/module/manager/syncmanager/events/ETEventsManager.js +101 -0
  616. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -0
  617. package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js +2 -0
  618. package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -0
  619. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +247 -0
  620. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -0
  621. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +63 -0
  622. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -0
  623. package/lib/module/models/DispatchModels.js +7 -0
  624. package/lib/module/models/DispatchModels.js.map +1 -0
  625. package/lib/module/models/ReasonCodes.js +2 -0
  626. package/lib/module/models/ReasonCodes.js.map +1 -0
  627. package/lib/module/models/auth.js +2 -0
  628. package/lib/module/models/auth.js.map +1 -0
  629. package/lib/module/models/execTasks/ETBaseModels.js +2 -0
  630. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -0
  631. package/lib/module/models/execTasks/ETConfig.js +104 -0
  632. package/lib/module/models/execTasks/ETConfig.js.map +1 -0
  633. package/lib/module/models/execution.js +2 -0
  634. package/lib/module/models/execution.js.map +1 -0
  635. package/lib/module/models/fcm.js +2 -0
  636. package/lib/module/models/fcm.js.map +1 -0
  637. package/lib/module/models/sdk.js +8 -0
  638. package/lib/module/models/sdk.js.map +1 -0
  639. package/lib/module/native/signature/SignatureCapture.js +80 -0
  640. package/lib/module/native/signature/SignatureCapture.js.map +1 -0
  641. package/lib/module/network/GraphQLClient.js +132 -0
  642. package/lib/module/network/GraphQLClient.js.map +1 -0
  643. package/lib/module/network/NetworkClient.js +42 -0
  644. package/lib/module/network/NetworkClient.js.map +1 -0
  645. package/lib/module/network/NetworkUtils.js +23 -0
  646. package/lib/module/network/NetworkUtils.js.map +1 -0
  647. package/lib/module/network/Queries.js +42 -0
  648. package/lib/module/network/Queries.js.map +1 -0
  649. package/lib/module/network/client.js +74 -0
  650. package/lib/module/network/client.js.map +1 -0
  651. package/lib/module/res/strings.js +2 -0
  652. package/lib/module/res/strings.js.map +1 -0
  653. package/lib/module/resources/Login.js +42 -0
  654. package/lib/module/resources/Login.js.map +1 -0
  655. package/lib/module/resources/network.js +18 -0
  656. package/lib/module/resources/network.js.map +1 -0
  657. package/lib/module/styles/SdkColors.js +22 -0
  658. package/lib/module/styles/SdkColors.js.map +1 -0
  659. package/lib/module/styles/executionTasks/CommonStyles.js +146 -0
  660. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -0
  661. package/lib/module/ui/screens/CancellationScreen.js +41 -0
  662. package/lib/module/ui/screens/CancellationScreen.js.map +1 -0
  663. package/lib/module/ui/screens/CaptureInputScreen.js +52 -0
  664. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -0
  665. package/lib/module/ui/screens/CompleteObjectiveScreen.js +42 -0
  666. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -0
  667. package/lib/module/ui/screens/DeliverScreen.js +53 -0
  668. package/lib/module/ui/screens/DeliverScreen.js.map +1 -0
  669. package/lib/module/ui/screens/DisplayScreen.js +27 -0
  670. package/lib/module/ui/screens/DisplayScreen.js.map +1 -0
  671. package/lib/module/ui/screens/DoodleScreen.js +56 -0
  672. package/lib/module/ui/screens/DoodleScreen.js.map +1 -0
  673. package/lib/module/ui/screens/DropCashScreen.js +67 -0
  674. package/lib/module/ui/screens/DropCashScreen.js.map +1 -0
  675. package/lib/module/ui/screens/ETScreensIndex.js +17 -0
  676. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -0
  677. package/lib/module/ui/screens/FormsScreen.js +28 -0
  678. package/lib/module/ui/screens/FormsScreen.js.map +1 -0
  679. package/lib/module/ui/screens/GeofenceScreen.js +30 -0
  680. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -0
  681. package/lib/module/ui/screens/HttpRequestScreen.js +23 -0
  682. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -0
  683. package/lib/module/ui/screens/ImageCaptureScreen.js +27 -0
  684. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -0
  685. package/lib/module/ui/screens/PaymentScreen.js +119 -0
  686. package/lib/module/ui/screens/PaymentScreen.js.map +1 -0
  687. package/lib/module/ui/screens/PickupScreen.js +32 -0
  688. package/lib/module/ui/screens/PickupScreen.js.map +1 -0
  689. package/lib/module/ui/screens/RTScanScreen.js +93 -0
  690. package/lib/module/ui/screens/RTScanScreen.js.map +1 -0
  691. package/lib/module/ui/screens/StartWorkFlowScreen.js +105 -0
  692. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -0
  693. package/lib/module/ui/screens/WithBaseDispatchScreen.js +35 -0
  694. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -0
  695. package/lib/module/ui/uiConfig/RouteParams.js +9 -0
  696. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -0
  697. package/lib/module/utils/ExecTaskUtils.js +93 -0
  698. package/lib/module/utils/ExecTaskUtils.js.map +1 -0
  699. package/lib/module/utils/Logger.js +97 -0
  700. package/lib/module/utils/Logger.js.map +1 -0
  701. package/lib/module/utils/NetworkUtil.js +54 -0
  702. package/lib/module/utils/NetworkUtil.js.map +1 -0
  703. package/lib/module/utils/SdkUtils.js +103 -0
  704. package/lib/module/utils/SdkUtils.js.map +1 -0
  705. package/lib/module/utils/SyncManagerUtils.js +93 -0
  706. package/lib/module/utils/SyncManagerUtils.js.map +1 -0
  707. package/lib/module/utils/fcm/FCM.js +36 -0
  708. package/lib/module/utils/fcm/FCM.js.map +1 -0
  709. package/lib/module/utils/fcm/FcmUtils.js +68 -0
  710. package/lib/module/utils/fcm/FcmUtils.js.map +1 -0
  711. package/lib/module/utils/helper.js +27 -0
  712. package/lib/module/utils/helper.js.map +1 -0
  713. package/lib/module/utils/loginHelper.js +60 -0
  714. package/lib/module/utils/loginHelper.js.map +1 -0
  715. package/lib/module/utils/storage.js +142 -0
  716. package/lib/module/utils/storage.js.map +1 -0
  717. package/lib/module/utils/test.json +17 -0
  718. package/lib/module/utils/utils.js +24 -0
  719. package/lib/module/utils/utils.js.map +1 -0
  720. package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +5 -0
  721. package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +18 -0
  722. package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +42 -0
  723. package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +4 -0
  724. package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +12 -0
  725. package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +43 -0
  726. package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +4 -0
  727. package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +4 -0
  728. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +42 -0
  729. package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +8 -0
  730. package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +4 -0
  731. package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +23 -0
  732. package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +3 -0
  733. package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +4 -0
  734. package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +48 -0
  735. package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +4 -0
  736. package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +17 -0
  737. package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +4 -0
  738. package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +4 -0
  739. package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +24 -0
  740. package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +11 -0
  741. package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +8 -0
  742. package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +4 -0
  743. package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +4 -0
  744. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +4 -0
  745. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +36 -0
  746. package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +79 -0
  747. package/lib/typescript/components/executiontasks/imageCapture/CaptureUtils.d.ts +9 -0
  748. package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +4 -0
  749. package/lib/typescript/components/executiontasks/payments/PaymentStyles.d.ts +78 -0
  750. package/lib/typescript/components/executiontasks/payments/PaymentUtils.d.ts +2 -0
  751. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +4 -0
  752. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +18 -0
  753. package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +4 -0
  754. package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +31 -0
  755. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +4 -0
  756. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +33 -0
  757. package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +25 -0
  758. package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +4 -0
  759. package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +8 -0
  760. package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +7 -0
  761. package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +75 -0
  762. package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +15 -0
  763. package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +3 -0
  764. package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +3 -0
  765. package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +7 -0
  766. package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +4 -0
  767. package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +14 -0
  768. package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +17 -0
  769. package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +41 -0
  770. package/lib/typescript/components/executiontasks/verifyLocation/GeofenceUtils.d.ts +2 -0
  771. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +50 -0
  772. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +4 -0
  773. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +4 -0
  774. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +21 -0
  775. package/lib/typescript/components/widgets/AlertDisplay.d.ts +1 -0
  776. package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +13 -0
  777. package/lib/typescript/components/widgets/ProgressDialog.d.ts +7 -0
  778. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +20 -0
  779. package/lib/typescript/components/widgets/Toaster.d.ts +1 -0
  780. package/lib/typescript/config/DispatchSDKConfig.d.ts +4 -0
  781. package/lib/typescript/constants/apiConstants.d.ts +3 -0
  782. package/lib/typescript/constants/constants.d.ts +9 -0
  783. package/lib/typescript/constants/statuscode.d.ts +7 -0
  784. package/lib/typescript/errors/BaseError.d.ts +10 -0
  785. package/lib/typescript/errors/ErrorCodes.d.ts +28 -0
  786. package/lib/typescript/index.d.ts +31 -0
  787. package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +41 -0
  788. package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +1 -0
  789. package/lib/typescript/manager/dispatchCodes/ReasonCodeContainer.d.ts +12 -0
  790. package/lib/typescript/manager/dispatchCodes/ReasonCodeRepo.d.ts +13 -0
  791. package/lib/typescript/manager/location/LocationManager.d.ts +14 -0
  792. package/lib/typescript/manager/sdk/DispatchSDKManager.d.ts +14 -0
  793. package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +17 -0
  794. package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +24 -0
  795. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +77 -0
  796. package/lib/typescript/manager/syncmanager/NativeSyncManager.d.ts +6 -0
  797. package/lib/typescript/manager/syncmanager/database.d.ts +2 -0
  798. package/lib/typescript/manager/syncmanager/document/DocumentHttpClient.d.ts +9 -0
  799. package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +15 -0
  800. package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +25 -0
  801. package/lib/typescript/manager/syncmanager/document/models.d.ts +4 -0
  802. package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +16 -0
  803. package/lib/typescript/manager/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
  804. package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +30 -0
  805. package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +9 -0
  806. package/lib/typescript/models/DispatchModels.d.ts +17 -0
  807. package/lib/typescript/models/ReasonCodes.d.ts +6 -0
  808. package/lib/typescript/models/auth.d.ts +32 -0
  809. package/lib/typescript/models/execTasks/ETBaseModels.d.ts +81 -0
  810. package/lib/typescript/models/execTasks/ETConfig.d.ts +86 -0
  811. package/lib/typescript/models/execution.d.ts +9 -0
  812. package/lib/typescript/models/fcm.d.ts +3 -0
  813. package/lib/typescript/models/sdk.d.ts +24 -0
  814. package/lib/typescript/native/signature/SignatureCapture.d.ts +33 -0
  815. package/lib/typescript/network/GraphQLClient.d.ts +15 -0
  816. package/lib/typescript/network/NetworkClient.d.ts +8 -0
  817. package/lib/typescript/network/NetworkUtils.d.ts +11 -0
  818. package/lib/typescript/network/Queries.d.ts +5 -0
  819. package/lib/typescript/network/client.d.ts +8 -0
  820. package/lib/typescript/res/strings.d.ts +1 -0
  821. package/lib/typescript/resources/Login.d.ts +14 -0
  822. package/lib/typescript/resources/network.d.ts +7 -0
  823. package/lib/typescript/styles/SdkColors.d.ts +16 -0
  824. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +140 -0
  825. package/lib/typescript/ui/screens/CancellationScreen.d.ts +3 -0
  826. package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +3 -0
  827. package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +3 -0
  828. package/lib/typescript/ui/screens/DeliverScreen.d.ts +3 -0
  829. package/lib/typescript/ui/screens/DisplayScreen.d.ts +3 -0
  830. package/lib/typescript/ui/screens/DoodleScreen.d.ts +3 -0
  831. package/lib/typescript/ui/screens/DropCashScreen.d.ts +3 -0
  832. package/lib/typescript/ui/screens/ETScreensIndex.d.ts +16 -0
  833. package/lib/typescript/ui/screens/FormsScreen.d.ts +3 -0
  834. package/lib/typescript/ui/screens/GeofenceScreen.d.ts +3 -0
  835. package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +3 -0
  836. package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +3 -0
  837. package/lib/typescript/ui/screens/PaymentScreen.d.ts +3 -0
  838. package/lib/typescript/ui/screens/PickupScreen.d.ts +3 -0
  839. package/lib/typescript/ui/screens/RTScanScreen.d.ts +3 -0
  840. package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +3 -0
  841. package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +3 -0
  842. package/lib/typescript/ui/uiConfig/RouteParams.d.ts +8 -0
  843. package/lib/typescript/utils/ExecTaskUtils.d.ts +7 -0
  844. package/lib/typescript/utils/Logger.d.ts +22 -0
  845. package/lib/typescript/utils/NetworkUtil.d.ts +14 -0
  846. package/lib/typescript/utils/SdkUtils.d.ts +25 -0
  847. package/lib/typescript/utils/SyncManagerUtils.d.ts +10 -0
  848. package/lib/typescript/utils/fcm/FCM.d.ts +8 -0
  849. package/lib/typescript/utils/fcm/FcmUtils.d.ts +5 -0
  850. package/lib/typescript/utils/helper.d.ts +14 -0
  851. package/lib/typescript/utils/loginHelper.d.ts +13 -0
  852. package/lib/typescript/utils/storage.d.ts +49 -0
  853. package/lib/typescript/utils/utils.d.ts +3 -0
  854. package/package.json +254 -0
  855. package/tsconfig.build.json +4 -0
  856. package/tsconfig.json +31 -0
@@ -0,0 +1,28 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React from 'react';
4
+ import withBaseDispatchScreen from './WithBaseDispatchScreen';
5
+ import { FormGenerator } from '../../components/executiontasks/ExecutionTasksIndex';
6
+ import { showToast } from '../../components/widgets/Toaster';
7
+ import { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
8
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
9
+ import { RouteParams } from '../uiConfig/RouteParams';
10
+
11
+ const FormsScreen = _ref => {
12
+ let {
13
+ route,
14
+ navigation,
15
+ baseETProps
16
+ } = _ref;
17
+ return /*#__PURE__*/React.createElement(FormGenerator, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
18
+ onError: error => {
19
+ showToast(error.message);
20
+ },
21
+ onSubmitET: async result => {
22
+ await DispatchStateContainer.getInstance().navigateToNextTask(navigation, route, result, result.success, EntityCode.FORMS, ExecutionTaskID.FORMS, baseETProps, false);
23
+ }
24
+ }));
25
+ };
26
+
27
+ export default withBaseDispatchScreen(FormsScreen);
28
+ //# sourceMappingURL=FormsScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","withBaseDispatchScreen","FormGenerator","showToast","EntityCode","ExecutionTaskID","DispatchStateContainer","RouteParams","FormsScreen","route","navigation","baseETProps","params","NEXT_STATES","nextState","data","input","error","message","result","getInstance","navigateToNextTask","success","FORMS"],"sources":["FormsScreen.tsx"],"sourcesContent":["import React from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport { FormGenerator } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { showToast } from '../../components/widgets/Toaster';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\n\nconst FormsScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n return (\n <FormGenerator\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onError={(error: any) => {\n showToast(error.message);\n }}\n onSubmitET={async (result) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n result,\n result.success,\n EntityCode.FORMS,\n ExecutionTaskID.FORMS,\n baseETProps,\n false\n );\n }}\n />\n );\n};\nexport default withBaseDispatchScreen(FormsScreen);\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,sBAAP,MAAmC,0BAAnC;AACA,SAASC,aAAT,QAA8B,qDAA9B;AACA,SAASC,SAAT,QAA0B,kCAA1B;AACA,SAASC,UAAT,EAAqBC,eAArB,QAA4C,iCAA5C;AAEA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,SAASC,WAAT,QAA4B,yBAA5B;;AAEA,MAAMC,WAAW,GAAG,QAQd;EAAA,IARe;IACnBC,KADmB;IAEnBC,UAFmB;IAGnBC;EAHmB,CAQf;EACJ,oBACE,oBAAC,aAAD,eACMF,KAAK,CAACG,MAAN,CAAaL,WAAW,CAACM,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,OAAO,EAAGC,KAAD,IAAgB;MACvBd,SAAS,CAACc,KAAK,CAACC,OAAP,CAAT;IACD,CAJH;IAKE,UAAU,EAAE,MAAOC,MAAP,IAAkB;MAC5B,MAAMb,sBAAsB,CAACc,WAAvB,GAAqCC,kBAArC,CACJX,UADI,EAEJD,KAFI,EAGJU,MAHI,EAIJA,MAAM,CAACG,OAJH,EAKJlB,UAAU,CAACmB,KALP,EAMJlB,eAAe,CAACkB,KANZ,EAOJZ,WAPI,EAQJ,KARI,CAAN;IAUD;EAhBH,GADF;AAoBD,CA7BD;;AA8BA,eAAeV,sBAAsB,CAACO,WAAD,CAArC"}
@@ -0,0 +1,30 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import withBaseDispatchScreen from './WithBaseDispatchScreen';
4
+ import React from 'react';
5
+ import { VerifyLocationET } from '../../components/executiontasks/ExecutionTasksIndex';
6
+ import { showToast } from '../../components/widgets/Toaster';
7
+ import { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
8
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
9
+ import { RouteParams } from '../uiConfig/RouteParams';
10
+
11
+ const GeofenceScreen = _ref => {
12
+ let {
13
+ route,
14
+ navigation,
15
+ baseETProps
16
+ } = _ref;
17
+ return /*#__PURE__*/React.createElement(VerifyLocationET, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
18
+ onSubmitET: async resp => {
19
+ try {
20
+ await DispatchStateContainer.getInstance().navigateToNextTask(navigation, route, resp, resp.success, EntityCode.VERIFY_LOCATION, ExecutionTaskID.VERIFY_LOCATION, baseETProps, false);
21
+ } catch (error) {
22
+ baseETProps.showProgress(false);
23
+ showToast('Error ' + error.message);
24
+ }
25
+ }
26
+ }));
27
+ };
28
+
29
+ export default withBaseDispatchScreen(GeofenceScreen);
30
+ //# sourceMappingURL=GeofenceScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["withBaseDispatchScreen","React","VerifyLocationET","showToast","EntityCode","ExecutionTaskID","DispatchStateContainer","RouteParams","GeofenceScreen","route","navigation","baseETProps","params","NEXT_STATES","nextState","data","input","resp","getInstance","navigateToNextTask","success","VERIFY_LOCATION","error","showProgress","message"],"sources":["GeofenceScreen.tsx"],"sourcesContent":["import withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport React from 'react';\nimport { VerifyLocationET } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { showToast } from '../../components/widgets/Toaster';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\n\nconst GeofenceScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n return (\n <VerifyLocationET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onSubmitET={async (resp) => {\n try {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n resp,\n resp.success,\n EntityCode.VERIFY_LOCATION,\n ExecutionTaskID.VERIFY_LOCATION,\n baseETProps,\n false\n );\n } catch (error: any) {\n baseETProps.showProgress(false);\n showToast('Error ' + error.message);\n }\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(GeofenceScreen);\n"],"mappings":";;AAAA,OAAOA,sBAAP,MAAmC,0BAAnC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,gBAAT,QAAiC,qDAAjC;AACA,SAASC,SAAT,QAA0B,kCAA1B;AACA,SAASC,UAAT,EAAqBC,eAArB,QAA4C,iCAA5C;AAEA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,SAASC,WAAT,QAA4B,yBAA5B;;AAEA,MAAMC,cAAc,GAAG,QAQjB;EAAA,IARkB;IACtBC,KADsB;IAEtBC,UAFsB;IAGtBC;EAHsB,CAQlB;EACJ,oBACE,oBAAC,gBAAD,eACMF,KAAK,CAACG,MAAN,CAAaL,WAAW,CAACM,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,UAAU,EAAE,MAAOC,IAAP,IAAgB;MAC1B,IAAI;QACF,MAAMX,sBAAsB,CAACY,WAAvB,GAAqCC,kBAArC,CACJT,UADI,EAEJD,KAFI,EAGJQ,IAHI,EAIJA,IAAI,CAACG,OAJD,EAKJhB,UAAU,CAACiB,eALP,EAMJhB,eAAe,CAACgB,eANZ,EAOJV,WAPI,EAQJ,KARI,CAAN;MAUD,CAXD,CAWE,OAAOW,KAAP,EAAmB;QACnBX,WAAW,CAACY,YAAZ,CAAyB,KAAzB;QACApB,SAAS,CAAC,WAAWmB,KAAK,CAACE,OAAlB,CAAT;MACD;IACF;EAlBH,GADF;AAsBD,CA/BD;;AAiCA,eAAexB,sBAAsB,CAACQ,cAAD,CAArC"}
@@ -0,0 +1,23 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import WithBaseDispatchScreen from './WithBaseDispatchScreen';
4
+ import { HttpRequestET } from '../../components/executiontasks/ExecutionTasksIndex';
5
+ import { RouteParams } from '../uiConfig/RouteParams';
6
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
7
+ import { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
8
+
9
+ const HttpRequestScreen = _ref => {
10
+ let {
11
+ route,
12
+ navigation,
13
+ baseETProps
14
+ } = _ref;
15
+ return /*#__PURE__*/React.createElement(HttpRequestET, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
16
+ onSubmitET: async response => {
17
+ await DispatchStateContainer.getInstance().navigateToNextTask(navigation, route, response, response.success, EntityCode.HTTP_REQUEST_ET, ExecutionTaskID.HTTP_REQUEST_ET, baseETProps, false);
18
+ }
19
+ }));
20
+ };
21
+
22
+ export default WithBaseDispatchScreen(HttpRequestScreen);
23
+ //# sourceMappingURL=HttpRequestScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WithBaseDispatchScreen","HttpRequestET","RouteParams","DispatchStateContainer","EntityCode","ExecutionTaskID","HttpRequestScreen","route","navigation","baseETProps","params","NEXT_STATES","nextState","data","input","response","getInstance","navigateToNextTask","success","HTTP_REQUEST_ET"],"sources":["HttpRequestScreen.tsx"],"sourcesContent":["import WithBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { HttpRequestET } from '../../components/executiontasks/ExecutionTasksIndex';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\n\nconst HttpRequestScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n return (\n <HttpRequestET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onSubmitET={async (response) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n response,\n response.success,\n EntityCode.HTTP_REQUEST_ET,\n ExecutionTaskID.HTTP_REQUEST_ET,\n baseETProps,\n false\n );\n }}\n />\n );\n};\nexport default WithBaseDispatchScreen(HttpRequestScreen);\n"],"mappings":";;AAAA,OAAOA,sBAAP,MAAmC,0BAAnC;AAEA,SAASC,aAAT,QAA8B,qDAA9B;AACA,SAASC,WAAT,QAA4B,yBAA5B;AACA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,SAASC,UAAT,EAAqBC,eAArB,QAA4C,iCAA5C;;AAEA,MAAMC,iBAAiB,GAAG,QAQpB;EAAA,IARqB;IACzBC,KADyB;IAEzBC,UAFyB;IAGzBC;EAHyB,CAQrB;EACJ,oBACE,oBAAC,aAAD,eACMF,KAAK,CAACG,MAAN,CAAaR,WAAW,CAACS,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,UAAU,EAAE,MAAOC,QAAP,IAAoB;MAC9B,MAAMZ,sBAAsB,CAACa,WAAvB,GAAqCC,kBAArC,CACJT,UADI,EAEJD,KAFI,EAGJQ,QAHI,EAIJA,QAAQ,CAACG,OAJL,EAKJd,UAAU,CAACe,eALP,EAMJd,eAAe,CAACc,eANZ,EAOJV,WAPI,EAQJ,KARI,CAAN;IAUD;EAbH,GADF;AAiBD,CA1BD;;AA2BA,eAAeT,sBAAsB,CAACM,iBAAD,CAArC"}
@@ -0,0 +1,27 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React from 'react';
4
+ import ImageCapture from '../../components/executiontasks/imageCapture/ImageCapture';
5
+ import { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
6
+ import withBaseDispatchScreen from './WithBaseDispatchScreen';
7
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
8
+ import { RouteParams } from '../uiConfig/RouteParams';
9
+ import { getJobIDs, getObjectiveRefs } from '../../components/executiontasks/doodle/DoodleUtils';
10
+
11
+ const ImageCaptureScreen = _ref => {
12
+ let {
13
+ route,
14
+ navigation,
15
+ baseETProps
16
+ } = _ref;
17
+ return /*#__PURE__*/React.createElement(ImageCapture, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
18
+ jobIds: getJobIDs(route.params[RouteParams.NEXT_STATES]),
19
+ objRefs: getObjectiveRefs(route.params[RouteParams.NEXT_STATES]),
20
+ onSubmitET: async imageDataList => {
21
+ await DispatchStateContainer.getInstance().navigateToNextTask(navigation, route, imageDataList, imageDataList.success, EntityCode.IMAGE_CAPTURE, ExecutionTaskID.IMAGE_CAPTURE, baseETProps, false);
22
+ }
23
+ }));
24
+ };
25
+
26
+ export default withBaseDispatchScreen(ImageCaptureScreen);
27
+ //# sourceMappingURL=ImageCaptureScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","ImageCapture","EntityCode","ExecutionTaskID","withBaseDispatchScreen","DispatchStateContainer","RouteParams","getJobIDs","getObjectiveRefs","ImageCaptureScreen","route","navigation","baseETProps","params","NEXT_STATES","nextState","data","input","imageDataList","getInstance","navigateToNextTask","success","IMAGE_CAPTURE"],"sources":["ImageCaptureScreen.tsx"],"sourcesContent":["import React from 'react';\nimport ImageCapture from '../../components/executiontasks/imageCapture/ImageCapture';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport {\n getJobIDs,\n getObjectiveRefs,\n} from '../../components/executiontasks/doodle/DoodleUtils';\n\nconst ImageCaptureScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n return (\n <ImageCapture\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n jobIds={getJobIDs(route.params[RouteParams.NEXT_STATES])}\n objRefs={getObjectiveRefs(route.params[RouteParams.NEXT_STATES])}\n onSubmitET={async (imageDataList) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n imageDataList,\n imageDataList.success,\n EntityCode.IMAGE_CAPTURE,\n ExecutionTaskID.IMAGE_CAPTURE,\n baseETProps,\n false\n );\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(ImageCaptureScreen);\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,YAAP,MAAyB,2DAAzB;AACA,SAASC,UAAT,EAAqBC,eAArB,QAA4C,iCAA5C;AAEA,OAAOC,sBAAP,MAAmC,0BAAnC;AACA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,SAASC,WAAT,QAA4B,yBAA5B;AACA,SACEC,SADF,EAEEC,gBAFF,QAGO,oDAHP;;AAKA,MAAMC,kBAAkB,GAAG,QAQrB;EAAA,IARsB;IAC1BC,KAD0B;IAE1BC,UAF0B;IAG1BC;EAH0B,CAQtB;EACJ,oBACE,oBAAC,YAAD,eACMF,KAAK,CAACG,MAAN,CAAaP,WAAW,CAACQ,WAAzB,EAAsC,CAAtC,EAAyCC,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,MAAM,EAAEV,SAAS,CAACG,KAAK,CAACG,MAAN,CAAaP,WAAW,CAACQ,WAAzB,CAAD,CAFnB;IAGE,OAAO,EAAEN,gBAAgB,CAACE,KAAK,CAACG,MAAN,CAAaP,WAAW,CAACQ,WAAzB,CAAD,CAH3B;IAIE,UAAU,EAAE,MAAOI,aAAP,IAAyB;MACnC,MAAMb,sBAAsB,CAACc,WAAvB,GAAqCC,kBAArC,CACJT,UADI,EAEJD,KAFI,EAGJQ,aAHI,EAIJA,aAAa,CAACG,OAJV,EAKJnB,UAAU,CAACoB,aALP,EAMJnB,eAAe,CAACmB,aANZ,EAOJV,WAPI,EAQJ,KARI,CAAN;IAUD;EAfH,GADF;AAmBD,CA5BD;;AA8BA,eAAeR,sBAAsB,CAACK,kBAAD,CAArC"}
@@ -0,0 +1,119 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React, { useCallback, useState } from 'react';
4
+ import withBaseDispatchScreen from './WithBaseDispatchScreen';
5
+ import { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
6
+ import { CompletePaymentET, InitPaymentET, ProcessPaymentET } from '../../components/executiontasks/ExecutionTasksIndex';
7
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
8
+ import { RouteParams } from '../uiConfig/RouteParams';
9
+ import { View } from 'react-native';
10
+ import { getBaseETResponse, getEntityCodeByET } from '../../utils/ExecTaskUtils';
11
+ import CancelOrderDialog from '../../components/widgets/CancelOrderDialog';
12
+ import { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';
13
+ import { useEffect } from 'react';
14
+
15
+ const PaymentScreen = _ref => {
16
+ let {
17
+ navigation,
18
+ route,
19
+ baseETProps
20
+ } = _ref;
21
+ let currentState = route.params[RouteParams.NEXT_STATES][0].nextState;
22
+ const [showAlert, setShowAlert] = useState(false);
23
+ const [sResponse, setResponse] = useState();
24
+ const submitOutput = useCallback(async etOutput => {
25
+ await DispatchStateContainer.getInstance().navigateToNextTask(navigation, route, etOutput, etOutput.success, getEntityCodeByET(currentState.taskId), currentState.taskId, baseETProps, false);
26
+ }, [baseETProps, currentState.taskId, navigation, route]);
27
+
28
+ if (currentState.taskId === ExecutionTaskID.INIT_PAYMENT) {
29
+ return /*#__PURE__*/React.createElement(View, {
30
+ style: {
31
+ flex: 1
32
+ }
33
+ }, /*#__PURE__*/React.createElement(InitPaymentET, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
34
+ onSubmitET: async etOutput => {
35
+ if (etOutput.success) {
36
+ await submitOutput(etOutput);
37
+ } else {
38
+ setResponse(_prevState => {
39
+ setShowAlert(true);
40
+ return etOutput;
41
+ });
42
+ }
43
+ }
44
+ })), /*#__PURE__*/React.createElement(CancelOrderDialog, {
45
+ visible: showAlert,
46
+ onSubmit: async value => {
47
+ if (value) {
48
+ setShowAlert(false);
49
+ await submitOutput(sResponse);
50
+ } else {
51
+ setShowAlert(false);
52
+ }
53
+ }
54
+ }));
55
+ } else if (currentState.taskId === ExecutionTaskID.PROCESS_PAYMENT) {
56
+ var _input2;
57
+
58
+ let _input = route.params[RouteParams.NEXT_STATES][0].nextState.data.input;
59
+
60
+ if (((_input2 = _input) === null || _input2 === void 0 ? void 0 : _input2.paymentMode) === 'CASH') {
61
+ useEffect(() => {
62
+ let isMounted = true;
63
+
64
+ (async () => {
65
+ if (isMounted) {
66
+ const baseData = await getBaseETResponse(EntityCode.PROCESS_PAYMENT, true, getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, true), '');
67
+ _input = {
68
+ paymentMode: _input.paymentMode,
69
+ collectedAmount: _input.amount,
70
+ transactionId: _input.transactionId,
71
+ tenantTransactionId: _input.transactionId,
72
+ ...baseData
73
+ };
74
+ await submitOutput(_input);
75
+ }
76
+ })();
77
+
78
+ return () => {
79
+ isMounted = false;
80
+ };
81
+ }, []);
82
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
83
+ } else return /*#__PURE__*/React.createElement(View, {
84
+ style: {
85
+ flex: 1
86
+ }
87
+ }, /*#__PURE__*/React.createElement(ProcessPaymentET, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
88
+ onSubmitET: async etOutput => {
89
+ if (etOutput.success) {
90
+ await submitOutput(etOutput);
91
+ } else {
92
+ setResponse(_prevState => {
93
+ setShowAlert(true);
94
+ return etOutput;
95
+ });
96
+ }
97
+ }
98
+ })), /*#__PURE__*/React.createElement(CancelOrderDialog, {
99
+ visible: showAlert,
100
+ onSubmit: async value => {
101
+ if (value) {
102
+ setShowAlert(false);
103
+ await submitOutput(sResponse);
104
+ } else {
105
+ setShowAlert(false);
106
+ }
107
+ }
108
+ }));
109
+ } else {
110
+ return /*#__PURE__*/React.createElement(CompletePaymentET, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
111
+ onSubmitET: async etOut => {
112
+ await DispatchStateContainer.getInstance().navigateToNextTask(navigation, route, etOut, etOut.success, EntityCode.COMPLETE_PAYMENT, ExecutionTaskID.COMPLETE_PAYMENT, baseETProps, false);
113
+ }
114
+ }));
115
+ }
116
+ };
117
+
118
+ export default withBaseDispatchScreen(PaymentScreen);
119
+ //# sourceMappingURL=PaymentScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useState","withBaseDispatchScreen","EntityCode","ExecutionTaskID","CompletePaymentET","InitPaymentET","ProcessPaymentET","DispatchStateContainer","RouteParams","View","getBaseETResponse","getEntityCodeByET","CancelOrderDialog","getEventCodeByET","useEffect","PaymentScreen","navigation","route","baseETProps","currentState","params","NEXT_STATES","nextState","showAlert","setShowAlert","sResponse","setResponse","submitOutput","etOutput","getInstance","navigateToNextTask","success","taskId","INIT_PAYMENT","flex","data","input","_prevState","value","PROCESS_PAYMENT","_input","paymentMode","isMounted","baseData","collectedAmount","amount","transactionId","tenantTransactionId","etOut","COMPLETE_PAYMENT"],"sources":["PaymentScreen.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport type { state } from '@foxtrotplatform/mobile-execution-lib';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport {\n CompletePaymentET,\n InitPaymentET,\n ProcessPaymentET,\n} from '../../components/executiontasks/ExecutionTasksIndex';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport { View } from 'react-native';\nimport {\n getBaseETResponse,\n getEntityCodeByET,\n} from '../../utils/ExecTaskUtils';\nimport CancelOrderDialog from '../../components/widgets/CancelOrderDialog';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport { useEffect } from 'react';\n\nconst PaymentScreen = ({\n navigation,\n route,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n let currentState: state = route.params[RouteParams.NEXT_STATES][0]\n .nextState as state;\n const [showAlert, setShowAlert] = useState(false);\n const [sResponse, setResponse] = useState<any>();\n\n const submitOutput = useCallback(\n async (etOutput: any) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n etOutput,\n etOutput.success,\n getEntityCodeByET(currentState.taskId),\n currentState.taskId,\n baseETProps,\n false\n );\n },\n [baseETProps, currentState.taskId, navigation, route]\n );\n\n if (currentState.taskId === ExecutionTaskID.INIT_PAYMENT) {\n return (\n <View style={{ flex: 1 }}>\n <InitPaymentET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onSubmitET={async (etOutput) => {\n if (etOutput.success) {\n await submitOutput(etOutput);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return etOutput;\n });\n }\n }}\n />\n <CancelOrderDialog\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n } else if (currentState.taskId === ExecutionTaskID.PROCESS_PAYMENT) {\n let _input = route.params[RouteParams.NEXT_STATES][0].nextState.data.input;\n if (_input?.paymentMode === 'CASH') {\n useEffect(() => {\n let isMounted = true;\n (async () => {\n if (isMounted) {\n const baseData = await getBaseETResponse(\n EntityCode.PROCESS_PAYMENT,\n true,\n getEventCodeByET(ExecutionTaskID.PROCESS_PAYMENT, true),\n ''\n );\n _input = {\n paymentMode: _input.paymentMode,\n collectedAmount: _input.amount,\n transactionId: _input.transactionId,\n tenantTransactionId: _input.transactionId,\n ...baseData,\n };\n await submitOutput(_input);\n }\n })();\n return () => {\n isMounted = false;\n };\n }, []);\n return <></>;\n } else\n return (\n <View style={{ flex: 1 }}>\n <ProcessPaymentET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onSubmitET={async (etOutput) => {\n if (etOutput.success) {\n await submitOutput(etOutput);\n } else {\n setResponse((_prevState: any) => {\n setShowAlert(true);\n return etOutput;\n });\n }\n }}\n />\n <CancelOrderDialog\n visible={showAlert}\n onSubmit={async (value) => {\n if (value) {\n setShowAlert(false);\n await submitOutput(sResponse);\n } else {\n setShowAlert(false);\n }\n }}\n />\n </View>\n );\n } else {\n return (\n <CompletePaymentET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n onSubmitET={async (etOut) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n etOut,\n etOut.success,\n EntityCode.COMPLETE_PAYMENT,\n ExecutionTaskID.COMPLETE_PAYMENT,\n baseETProps,\n false\n );\n }}\n />\n );\n }\n};\n\nexport default withBaseDispatchScreen(PaymentScreen);\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,WAAhB,EAA6BC,QAA7B,QAA6C,OAA7C;AACA,OAAOC,sBAAP,MAAmC,0BAAnC;AAGA,SAASC,UAAT,EAAqBC,eAArB,QAA4C,iCAA5C;AACA,SACEC,iBADF,EAEEC,aAFF,EAGEC,gBAHF,QAIO,qDAJP;AAKA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,SAASC,WAAT,QAA4B,yBAA5B;AACA,SAASC,IA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9C,eAAe,CAAC8C,gBANZ,EAOJ/B,WAPI,EAQJ,KARI,CAAN;MAUD;IAbH,GADF;EAiBD;AACF,CAvID;;AAyIA,eAAejB,sBAAsB,CAACc,aAAD,CAArC"}
@@ -0,0 +1,32 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React from 'react';
4
+ import withBaseDispatchScreen from './WithBaseDispatchScreen';
5
+ import { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
6
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
7
+ import SLPickupET from '../../components/executiontasks/pickup/SLPickupET';
8
+ import { RouteParams } from '../uiConfig/RouteParams';
9
+
10
+ const PickupScreen = _ref => {
11
+ var _route$params$RoutePa, _route$params$RoutePa2;
12
+
13
+ let {
14
+ route,
15
+ navigation,
16
+ baseETProps
17
+ } = _ref;
18
+ const length = route.params[RouteParams.NEXT_STATES].length;
19
+ const items = length === 1 ? route.params[RouteParams.NEXT_STATES][0].nextState.data.input.items : [];
20
+ const message = route === null || route === void 0 ? void 0 : (_route$params$RoutePa = route.params[RouteParams.NEXT_STATES][0].nextState.data) === null || _route$params$RoutePa === void 0 ? void 0 : (_route$params$RoutePa2 = _route$params$RoutePa.input) === null || _route$params$RoutePa2 === void 0 ? void 0 : _route$params$RoutePa2.message;
21
+ return /*#__PURE__*/React.createElement(SLPickupET, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
22
+ message: message,
23
+ items: items,
24
+ pickupCount: length,
25
+ onSubmitET: async pickupOutput => {
26
+ await DispatchStateContainer.getInstance().navigateToNextTask(navigation, route, pickupOutput, pickupOutput.success, EntityCode.PICKUP, ExecutionTaskID.PICKUP, baseETProps, false);
27
+ }
28
+ }));
29
+ };
30
+
31
+ export default withBaseDispatchScreen(PickupScreen);
32
+ //# sourceMappingURL=PickupScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","withBaseDispatchScreen","EntityCode","ExecutionTaskID","DispatchStateContainer","SLPickupET","RouteParams","PickupScreen","route","navigation","baseETProps","length","params","NEXT_STATES","items","nextState","data","input","message","pickupOutput","getInstance","navigateToNextTask","success","PICKUP"],"sources":["PickupScreen.tsx"],"sourcesContent":["import React from 'react';\nimport withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport SLPickupET from '../../components/executiontasks/pickup/SLPickupET';\nimport { RouteParams } from '../uiConfig/RouteParams';\n\nconst PickupScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const length = route.params[RouteParams.NEXT_STATES].length;\n const items =\n length === 1\n ? route.params[RouteParams.NEXT_STATES][0].nextState.data.input.items\n : [];\n const message =\n route?.params[RouteParams.NEXT_STATES][0].nextState.data?.input?.message;\n\n return (\n <SLPickupET\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n message={message}\n items={items}\n pickupCount={length}\n onSubmitET={async (pickupOutput) => {\n await DispatchStateContainer.getInstance().navigateToNextTask(\n navigation,\n route,\n pickupOutput,\n pickupOutput.success,\n EntityCode.PICKUP,\n ExecutionTaskID.PICKUP,\n baseETProps,\n false\n );\n }}\n />\n );\n};\nexport default withBaseDispatchScreen(PickupScreen);\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,sBAAP,MAAmC,0BAAnC;AAEA,SAASC,UAAT,EAAqBC,eAArB,QAA4C,iCAA5C;AACA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,OAAOC,UAAP,MAAuB,mDAAvB;AACA,SAASC,WAAT,QAA4B,yBAA5B;;AAEA,MAAMC,YAAY,GAAG,QAQf;EAAA;;EAAA,IARgB;IACpBC,KADoB;IAEpBC,UAFoB;IAGpBC;EAHoB,CAQhB;EACJ,MAAMC,MAAM,GAAGH,KAAK,CAACI,MAAN,CAAaN,WAAW,CAACO,WAAzB,EAAsCF,MAArD;EACA,MAAMG,KAAK,GACTH,MAAM,KAAK,CAAX,GACIH,KAAK,CAACI,MAAN,CAAaN,WAAW,CAACO,WAAzB,EAAsC,CAAtC,EAAyCE,SAAzC,CAAmDC,IAAnD,CAAwDC,KAAxD,CAA8DH,KADlE,GAEI,EAHN;EAIA,MAAMI,OAAO,GACXV,KADW,aACXA,KADW,gDACXA,KAAK,CAAEI,MAAP,CAAcN,WAAW,CAACO,WAA1B,EAAuC,CAAvC,EAA0CE,SAA1C,CAAoDC,IADzC,oFACX,sBAA0DC,KAD/C,2DACX,uBAAiEC,OADnE;EAGA,oBACE,oBAAC,UAAD,eACMV,KAAK,CAACI,MAAN,CAAaN,WAAW,CAACO,WAAzB,EAAsC,CAAtC,EAAyCE,SAAzC,CAAmDC,IAAnD,CAAwDC,KAD9D;IAEE,OAAO,EAAEC,OAFX;IAGE,KAAK,EAAEJ,KAHT;IAIE,WAAW,EAAEH,MAJf;IAKE,UAAU,EAAE,MAAOQ,YAAP,IAAwB;MAClC,MAAMf,sBAAsB,CAACgB,WAAvB,GAAqCC,kBAArC,CACJZ,UADI,EAEJD,KAFI,EAGJW,YAHI,EAIJA,YAAY,CAACG,OAJT,EAKJpB,UAAU,CAACqB,MALP,EAMJpB,eAAe,CAACoB,MANZ,EAOJb,WAPI,EAQJ,KARI,CAAN;IAUD;EAhBH,GADF;AAoBD,CArCD;;AAsCA,eAAeT,sBAAsB,CAACM,YAAD,CAArC"}
@@ -0,0 +1,93 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import withBaseDispatchScreen from './WithBaseDispatchScreen';
4
+ import RTScan from '../../components/executiontasks/scanner/returns/RTScan';
5
+ import { RouteParams } from '../uiConfig/RouteParams';
6
+ import React, { useEffect, useState } from 'react';
7
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
8
+ import { BaseEventCodes, EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
9
+ import { getBaseETResponse } from '../../utils/ExecTaskUtils';
10
+ import Logger, { LOG_TYPE } from '../../utils/Logger';
11
+ const instance = DispatchStateContainer.getInstance();
12
+ const TAG = 'RTScanScreen';
13
+
14
+ function getAllShipments(etInputList) {
15
+ const shipmentsMap = new Map();
16
+
17
+ try {
18
+ if (!etInputList || etInputList.length === 0) return shipmentsMap;else {
19
+ etInputList.forEach(item => {
20
+ // @ts-ignore
21
+ const key = item.nextState.data.input.shipment[0] ?? '';
22
+ shipmentsMap.set(key, item);
23
+ });
24
+ return shipmentsMap;
25
+ }
26
+ } catch (error) {
27
+ return shipmentsMap;
28
+ }
29
+ }
30
+
31
+ const RTScanScreen = _ref => {
32
+ let {
33
+ route,
34
+ navigation,
35
+ baseETProps
36
+ } = _ref;
37
+ const [scanItemsMap, setScanItemMap] = useState(undefined);
38
+ const [scanItems, setScanItem] = useState(undefined);
39
+ useEffect(() => {
40
+ baseETProps.showProgress(true);
41
+ setScanItemMap(_prev => {
42
+ const map = getAllShipments(route.params[RouteParams.NEXT_STATES]);
43
+ setScanItem(Array.from(map.keys()));
44
+ return map;
45
+ });
46
+ baseETProps.showProgress(false);
47
+ }, [baseETProps, route.params]);
48
+ return /*#__PURE__*/React.createElement(RTScan, _extends({}, route.params[RouteParams.NEXT_STATES][0].nextState.data.input, {
49
+ scans: scanItems,
50
+ onSubmitET: async scanETOutput => {
51
+ try {
52
+ baseETProps.showProgress(true);
53
+
54
+ if (Array.isArray(scanETOutput)) {
55
+ const promises = [];
56
+
57
+ for (const scanOut of scanETOutput) {
58
+ if (scanOut) {
59
+ const etOutput = {
60
+ scans: [{
61
+ value: scanOut.value,
62
+ timestamp: scanOut.timestamp ?? Date.now(),
63
+ validated: scanOut.validated
64
+ }],
65
+ ...(await getBaseETResponse(EntityCode.SCAN, scanOut.success ?? false, scanOut.success ? BaseEventCodes.ENTITY_SUCCESS : BaseEventCodes.ENTITY_FAILURE, scanOut.reasonCode ?? ''))
66
+ };
67
+ const jobObjective = scanItemsMap === null || scanItemsMap === void 0 ? void 0 : scanItemsMap.get(scanOut.value);
68
+
69
+ if (jobObjective) {
70
+ jobObjective.nextState.data.output = { ...etOutput
71
+ };
72
+ promises.push(instance.saveETOutput(jobObjective.jobId, jobObjective.objRef, jobObjective.nextState));
73
+ }
74
+ }
75
+ }
76
+
77
+ await Promise.all(promises);
78
+ await instance.moveToNextET(baseETProps, Array.from((scanItemsMap === null || scanItemsMap === void 0 ? void 0 : scanItemsMap.values()) ?? []), navigation, false);
79
+ } else {
80
+ await instance.navigateToNextTask(navigation, route, scanETOutput, scanETOutput.success, EntityCode.SCAN, ExecutionTaskID.SCAN, baseETProps, false);
81
+ }
82
+
83
+ baseETProps.showProgress(false);
84
+ } catch (error) {
85
+ baseETProps.showProgress(false);
86
+ Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);
87
+ }
88
+ }
89
+ }));
90
+ };
91
+
92
+ export default withBaseDispatchScreen(RTScanScreen);
93
+ //# sourceMappingURL=RTScanScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["withBaseDispatchScreen","RTScan","RouteParams","React","useEffect","useState","DispatchStateContainer","BaseEventCodes","EntityCode","ExecutionTaskID","getBaseETResponse","Logger","LOG_TYPE","instance","getInstance","TAG","getAllShipments","etInputList","shipmentsMap","Map","length","forEach","item","key","nextState","data","input","shipment","set","error","RTScanScreen","route","navigation","baseETProps","scanItemsMap","setScanItemMap","undefined","scanItems","setScanItem","showProgress","_prev","map","params","NEXT_STATES","Array","from","keys","scanETOutput","isArray","promises","scanOut","etOutput","scans","value","timestamp","Date","now","validated","SCAN","success","ENTITY_SUCCESS","ENTITY_FAILURE","reasonCode","jobObjective","get","output","push","saveETOutput","jobId","objRef","Promise","all","moveToNextET","values","navigateToNextTask","logEvent","message","SDK_ERROR"],"sources":["RTScanScreen.tsx"],"sourcesContent":["import withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport RTScan from '../../components/executiontasks/scanner/returns/RTScan';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport React, { useEffect, useState } from 'react';\nimport type { BaseETProps, stateWithObjRef } from '../../models/DispatchModels';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport {\n BaseEventCodes,\n EntityCode,\n ExecutionTaskID,\n} from '../../models/execTasks/ETConfig';\nimport type { ScannerOutput } from '../../components/executiontasks/scanner/ScannerSchema';\nimport { getBaseETResponse } from '../../utils/ExecTaskUtils';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\n\nconst instance = DispatchStateContainer.getInstance();\nconst TAG = 'RTScanScreen';\nfunction getAllShipments(etInputList: stateWithObjRef[]) {\n const shipmentsMap: Map<string, stateWithObjRef> = new Map<\n string,\n stateWithObjRef\n >();\n try {\n if (!etInputList || etInputList.length === 0) return shipmentsMap;\n else {\n etInputList.forEach((item) => {\n // @ts-ignore\n const key: string = item.nextState.data.input.shipment[0] ?? '';\n shipmentsMap.set(key, item);\n });\n return shipmentsMap;\n }\n } catch (error: any) {\n return shipmentsMap;\n }\n}\n\nconst RTScanScreen = ({\n route,\n navigation,\n baseETProps,\n}: {\n route: any;\n navigation: any;\n baseETProps: BaseETProps;\n}) => {\n const [scanItemsMap, setScanItemMap] = useState<\n Map<string, stateWithObjRef> | undefined\n >(undefined);\n const [scanItems, setScanItem] = useState<string[] | undefined>(undefined);\n useEffect(() => {\n baseETProps.showProgress(true);\n setScanItemMap((_prev) => {\n const map = getAllShipments(route.params[RouteParams.NEXT_STATES]);\n setScanItem(Array.from(map.keys()));\n return map;\n });\n baseETProps.showProgress(false);\n }, [baseETProps, route.params]);\n\n return (\n <RTScan\n {...route.params[RouteParams.NEXT_STATES][0].nextState.data.input}\n scans={scanItems}\n onSubmitET={async (scanETOutput) => {\n try {\n baseETProps.showProgress(true);\n if (Array.isArray(scanETOutput)) {\n const promises: any[] = [];\n for (const scanOut of scanETOutput) {\n if (scanOut) {\n const etOutput: ScannerOutput = {\n scans: [\n {\n value: scanOut.value,\n timestamp: scanOut.timestamp ?? Date.now(),\n validated: scanOut.validated,\n },\n ],\n ...(await getBaseETResponse(\n EntityCode.SCAN,\n scanOut.success ?? false,\n scanOut.success\n ? BaseEventCodes.ENTITY_SUCCESS\n : BaseEventCodes.ENTITY_FAILURE,\n scanOut.reasonCode ?? ''\n )),\n };\n\n const jobObjective = scanItemsMap?.get(scanOut.value);\n if (jobObjective) {\n jobObjective.nextState.data.output = { ...(etOutput as any) };\n promises.push(\n instance.saveETOutput(\n jobObjective.jobId,\n jobObjective.objRef,\n jobObjective.nextState\n )\n );\n }\n }\n }\n await Promise.all(promises);\n await instance.moveToNextET(\n baseETProps,\n Array.from(scanItemsMap?.values() ?? []),\n navigation,\n false\n );\n } else {\n await instance.navigateToNextTask(\n navigation,\n route,\n scanETOutput,\n scanETOutput.success,\n EntityCode.SCAN,\n ExecutionTaskID.SCAN,\n baseETProps,\n false\n );\n }\n baseETProps.showProgress(false);\n } catch (error: any) {\n baseETProps.showProgress(false);\n Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);\n }\n }}\n />\n );\n};\n\nexport default withBaseDispatchScreen(RTScanScreen);\n"],"mappings":";;AAAA,OAAOA,sBAAP,MAAmC,0BAAnC;AACA,OAAOC,MAAP,MAAmB,wDAAnB;AACA,SAASC,WAAT,QAA4B,yBAA5B;AACA,OAAOC,KAAP,IAAgBC,SAAhB,EAA2BC,QAA3B,QAA2C,OAA3C;AAEA,OAAOC,sBAAP,MAAmC,+CAAnC;AACA,SACEC,cADF,E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AAvB,CAA4BwC,MAA5B,GAAqC,EAAE,GAAId;gBAAN,CAArC;gBACAF,QAAQ,CAACiB,IAAT,CACErD,QAAQ,CAACsD,YAAT,CACEJ,YAAY,CAACK,KADf,EAEEL,YAAY,CAACM,MAFf,EAGEN,YAAY,CAACvC,SAHf,CADF;cAOD;YACF;UACF;;UACD,MAAM8C,OAAO,CAACC,GAAR,CAAYtB,QAAZ,CAAN;UACA,MAAMpC,QAAQ,CAAC2D,YAAT,CACJvC,WADI,EAEJW,KAAK,CAACC,IAAN,CAAW,CAAAX,YAAY,SAAZ,IAAAA,YAAY,WAAZ,YAAAA,YAAY,CAAEuC,MAAd,OAA0B,EAArC,CAFI,EAGJzC,UAHI,EAIJ,KAJI,CAAN;QAMD,CA1CD,MA0CO;UACL,MAAMnB,QAAQ,CAAC6D,kBAAT,CACJ1C,UADI,EAEJD,KAFI,EAGJgB,YAHI,EAIJA,YAAY,CAACY,OAJT,EAKJnD,UAAU,CAACkD,IALP,EAMJjD,eAAe,CAACiD,IANZ,EAOJzB,WAPI,EAQJ,KARI,CAAN;QAUD;;QACDA,WAAW,CAACM,YAAZ,CAAyB,KAAzB;MACD,CAzDD,CAyDE,OAAOV,KAAP,EAAmB;QACnBI,WAAW,CAACM,YAAZ,CAAyB,KAAzB;QACA5B,MAAM,CAACG,WAAP,GAAqB6D,QAArB,CAA8B5D,GAA9B,EAAmCc,KAAK,CAAC+C,OAAzC,EAAkDhE,QAAQ,CAACiE,SAA3D;MACD;IACF;EAjEH,GADF;AAqED,CA5FD;;AA8FA,eAAe7E,sBAAsB,CAAC8B,YAAD,CAArC"}
@@ -0,0 +1,105 @@
1
+ import withBaseDispatchScreen from './WithBaseDispatchScreen';
2
+ import { StyleSheet, Text, View } from 'react-native';
3
+ import React, { useCallback, useEffect } from 'react';
4
+ import DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';
5
+ import LocationManager from '../../manager/location/LocationManager';
6
+ import { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';
7
+ import { getBaseETResponse } from '../../utils/ExecTaskUtils';
8
+ import { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';
9
+ import { RouteParams } from '../uiConfig/RouteParams';
10
+ import { isMandatoryKeysPresent } from '../../utils/utils';
11
+ import Logger, { LOG_TYPE } from '../../utils/Logger';
12
+ import SdkUtils from '../../utils/SdkUtils';
13
+ import { showAlert } from '../../components/widgets/AlertDisplay';
14
+ import ErrorCodes from '../../errors/ErrorCodes';
15
+ const instance = DispatchStateContainer.getInstance();
16
+ const TAG = 'StartWorkFlowScreen';
17
+
18
+ const StartWorkFlowScreen = _ref => {
19
+ let {
20
+ baseETProps,
21
+ route,
22
+ navigation
23
+ } = _ref;
24
+ const showAlertMessage = useCallback((errorMessage, title) => {
25
+ showAlert(title, errorMessage, false, 'OK', () => {
26
+ navigation.goBack();
27
+ });
28
+ }, [navigation]);
29
+ const navigateWithError = useCallback((errorCode, errorMessage) => {
30
+ if (route.params.initRoute) {
31
+ navigation.navigate({
32
+ name: route.params.initRoute,
33
+ params: {
34
+ sdkError: {
35
+ code: errorCode,
36
+ message: errorMessage
37
+ }
38
+ },
39
+ merge: true
40
+ });
41
+ } else {
42
+ showAlertMessage(errorMessage, 'Error');
43
+ }
44
+ }, [navigation, route.params.initRoute, showAlertMessage]);
45
+ useEffect(() => {
46
+ (async () => {
47
+ try {
48
+ baseETProps.showProgress(true);
49
+ await SdkUtils.checkMandatory();
50
+
51
+ if (await LocationManager.getInstance().checkForLocationPermissions()) {
52
+ if (!isMandatoryKeysPresent(route.params, ['success', 'objectives', 'successRoute', 'failureRoute'])) {
53
+ navigateWithError(ErrorCodes.InvalidArgumentError, 'Missing or Invalid Route Params');
54
+ return;
55
+ }
56
+
57
+ instance.setSuccessRoute(route.params.successRoute);
58
+ instance.setFailureRoute(route.params.failureRoute);
59
+ instance._jobObjectives = route.params.objectives;
60
+ /**
61
+ * Clear all prev state and Map before starting new objective / Merged Objective
62
+ */
63
+
64
+ instance.stateKeys = [];
65
+ instance.mappedStates.clear();
66
+ let nextStateList = await instance.bulkQueryNextET(route.params.objectives);
67
+
68
+ if (nextStateList != null && nextStateList.length > 0) {
69
+ if (nextStateList[0].nextState.taskId === ExecutionTaskID.START_WORKFLOW) {
70
+ let etResponse = { ...(await getBaseETResponse(EntityCode.START_WORKFLOW, route.params.success, getEventCodeByET(ExecutionTaskID.START_WORKFLOW, route.params.success), ''))
71
+ };
72
+ route.params[RouteParams.NEXT_STATES] = nextStateList;
73
+ await instance.navigateToNextTask(navigation, route, etResponse, route.params.success, EntityCode.START_WORKFLOW, ExecutionTaskID.START_WORKFLOW, baseETProps, false);
74
+ } else {
75
+ let rParams = {};
76
+ rParams[RouteParams.NEXT_STATES] = nextStateList;
77
+ navigation.replace(nextStateList[0].nextState.taskId, rParams);
78
+ }
79
+ } else {
80
+ navigateWithError(ErrorCodes.EXECUTION_ENGINE_ERROR, 'Unable to start the given objective');
81
+ }
82
+ } else {
83
+ navigateWithError(ErrorCodes.LOCATION_PERMISSION_DENIED, 'Please enable Location permissions');
84
+ }
85
+ } catch (error) {
86
+ baseETProps.showProgress(false);
87
+ navigateWithError(ErrorCodes.UNEXPECTED_ERROR, error.message);
88
+ Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);
89
+ }
90
+ })();
91
+ }, []);
92
+ return /*#__PURE__*/React.createElement(View, {
93
+ style: styles.container
94
+ }, /*#__PURE__*/React.createElement(Text, null, "Please wait..."));
95
+ };
96
+
97
+ export default withBaseDispatchScreen(StartWorkFlowScreen);
98
+ const styles = StyleSheet.create({
99
+ container: {
100
+ flex: 1,
101
+ justifyContent: 'center',
102
+ alignItems: 'center'
103
+ }
104
+ });
105
+ //# sourceMappingURL=StartWorkFlowScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["withBaseDispatchScreen","StyleSheet","Text","View","React","useCallback","useEffect","DispatchStateContainer","LocationManager","EntityCode","ExecutionTaskID","getBaseETResponse","getEventCodeByET","RouteParams","isMandatoryKeysPresent","Logger","LOG_TYPE","SdkUtils","showAlert","ErrorCodes","instance","getInstance","TAG","StartWorkFlowScreen","baseETProps","route","navigation","showAlertMessage","errorMessage","title","goBack","navigateWithError","errorCode","params","initRoute","navigate","name","sdkError","code","message","merge","showProgress","checkMandatory","checkForLocationPermissions","InvalidArgumentError","setSuccessRoute","successRoute","setFailureRoute","failureRoute","_jobObjectives","objectives","stateKeys","mappedStates","clear","nextStateList","bulkQueryNextET","length","nextState","taskId","START_WORKFLOW","etResponse","success","NEXT_STATES","navigateToNextTask","rParams","replace","EXECUTION_ENGINE_ERROR","LOCATION_PERMISSION_DENIED","error","UNEXPECTED_ERROR","logEvent","SDK_ERROR","styles","container","create","flex","justifyContent","alignItems"],"sources":["StartWorkFlowScreen.tsx"],"sourcesContent":["import withBaseDispatchScreen from './WithBaseDispatchScreen';\nimport { StyleSheet, Text, View } from 'react-native';\nimport React, { useCallback, useEffect } from 'react';\nimport DispatchStateContainer from '../../manager/dispatch/DispatchStateContainer';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport LocationManager from '../../manager/location/LocationManager';\nimport { EntityCode, ExecutionTaskID } from '../../models/execTasks/ETConfig';\nimport { getBaseETResponse } from '../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../manager/dispatchCodes/EventCodeContainer';\nimport { RouteParams } from '../uiConfig/RouteParams';\nimport { isMandatoryKeysPresent } from '../../utils/utils';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport SdkUtils from '../../utils/SdkUtils';\nimport { showAlert } from '../../components/widgets/AlertDisplay';\nimport ErrorCodes from '../../errors/ErrorCodes';\n\nconst instance = DispatchStateContainer.getInstance();\nconst TAG = 'StartWorkFlowScreen';\n\nconst StartWorkFlowScreen = ({\n baseETProps,\n route,\n navigation,\n}: {\n baseETProps: BaseETProps;\n route: any;\n navigation: any;\n}) => {\n const showAlertMessage = useCallback(\n (errorMessage: string, title: string) => {\n showAlert(title, errorMessage, false, 'OK', () => {\n navigation.goBack();\n });\n },\n [navigation]\n );\n const navigateWithError = useCallback(\n (errorCode: string, errorMessage: string) => {\n if (route.params.initRoute) {\n navigation.navigate({\n name: route.params.initRoute,\n params: { sdkError: { code: errorCode, message: errorMessage } },\n merge: true,\n });\n } else {\n showAlertMessage(errorMessage, 'Error');\n }\n },\n [navigation, route.params.initRoute, showAlertMessage]\n );\n useEffect(() => {\n (async () => {\n try {\n baseETProps.showProgress(true);\n await SdkUtils.checkMandatory();\n if (await LocationManager.getInstance().checkForLocationPermissions()) {\n if (\n !isMandatoryKeysPresent(route.params, [\n 'success',\n 'objectives',\n 'successRoute',\n 'failureRoute',\n ])\n ) {\n navigateWithError(\n ErrorCodes.InvalidArgumentError,\n 'Missing or Invalid Route Params'\n );\n return;\n }\n instance.setSuccessRoute(route.params.successRoute);\n instance.setFailureRoute(route.params.failureRoute);\n instance._jobObjectives = route.params.objectives;\n /**\n * Clear all prev state and Map before starting new objective / Merged Objective\n */\n instance.stateKeys = [];\n instance.mappedStates.clear();\n let nextStateList = await instance.bulkQueryNextET(\n route.params.objectives\n );\n if (nextStateList != null && nextStateList.length > 0) {\n if (\n nextStateList[0].nextState.taskId ===\n ExecutionTaskID.START_WORKFLOW\n ) {\n let etResponse = {\n ...(await getBaseETResponse(\n EntityCode.START_WORKFLOW,\n route.params.success,\n getEventCodeByET(\n ExecutionTaskID.START_WORKFLOW,\n route.params.success\n ),\n ''\n )),\n };\n route.params[RouteParams.NEXT_STATES] = nextStateList;\n await instance.navigateToNextTask(\n navigation,\n route,\n etResponse,\n route.params.success,\n EntityCode.START_WORKFLOW,\n ExecutionTaskID.START_WORKFLOW,\n baseETProps,\n false\n );\n } else {\n let rParams: any = {};\n rParams[RouteParams.NEXT_STATES] = nextStateList;\n navigation.replace(nextStateList[0].nextState.taskId, rParams);\n }\n } else {\n navigateWithError(\n ErrorCodes.EXECUTION_ENGINE_ERROR,\n 'Unable to start the given objective'\n );\n }\n } else {\n navigateWithError(\n ErrorCodes.LOCATION_PERMISSION_DENIED,\n 'Please enable Location permissions'\n );\n }\n } catch (error: any) {\n baseETProps.showProgress(false);\n navigateWithError(ErrorCodes.UNEXPECTED_ERROR, error.message);\n Logger.getInstance().logEvent(TAG, error.message, LOG_TYPE.SDK_ERROR);\n }\n })();\n }, []);\n return (\n <View style={styles.container}>\n <Text>Please wait...</Text>\n </View>\n );\n};\nexport default withBaseDispatchScreen(StartWorkFlowScreen);\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n },\n});\n"],"mappings":"AAAA,OAAOA,sBAAP,MAAmC,0BAAnC;AACA,SAASC,UAAT,EAAqBC,IAArB,EAA2BC,IAA3B,QAAuC,cAAvC;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,SAA7B,QAA8C,OAA9C;AACA,OAAOC,sBAAP,MAAmC,+CAAnC;AAEA,OAAOC,eAAP,MAA4B,wCAA5B;AACA,SAASC,UAAT,EAAqBC,eAArB,QAA4C,iCAA5C;AACA,SAASC,iBAAT,QAAkC,2BAAlC;AACA,SAASC,gBAAT,QAAiC,gDAAjC;AACA,SAASC,WAAT,QAA4B,yBAA5B;AACA,SAASC,sBAAT,QAAuC,mBAAvC;AACA,OAAOC,MAAP,IAAiBC,QAAjB,QAAiC,oBAAjC;AACA,OAAOC,QAAP,MAAqB,sBAArB;AACA,SAASC,SAAT,QAA0B,uCAA1B;AACA,OAAOC,UAAP,MAAuB,yBAAvB;AAEA,MAAMC,QAAQ,GAAGb,sBAAsB,CAACc,WAAvB,EAAjB;AACA,MAAMC,GAAG,GAAG,qBAAZ;;AAEA,MAAMC,mBAAmB,GAAG,QAQtB;EAAA,IARuB;IAC3BC,WAD2B;IAE3BC,KAF2B;IAG3BC;EAH2B,CAQvB;EACJ,MAAMC,gBAAgB,GAAGtB,WAAW,CAClC,CAACuB,YAAD,EAAuBC,KAAvB,KAAyC;IACvCX,SAAS,CAACW,KAAD,EAAQD,YAAR,EAAsB,K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,EAEf,qCAFe,CAAjB;UAID;QACF,CAhED,MAgEO;UACLnC,iBAAiB,CACfZ,UAAU,CAACgD,0BADI,EAEf,oCAFe,CAAjB;QAID;MACF,CAzED,CAyEE,OAAOC,KAAP,EAAmB;QACnB5C,WAAW,CAACiB,YAAZ,CAAyB,KAAzB;QACAV,iBAAiB,CAACZ,UAAU,CAACkD,gBAAZ,EAA8BD,KAAK,CAAC7B,OAApC,CAAjB;QACAxB,MAAM,CAACM,WAAP,GAAqBiD,QAArB,CAA8BhD,GAA9B,EAAmC8C,KAAK,CAAC7B,OAAzC,EAAkDvB,QAAQ,CAACuD,SAA3D;MACD;IACF,CA/ED;EAgFD,CAjFQ,EAiFN,EAjFM,CAAT;EAkFA,oBACE,oBAAC,IAAD;IAAM,KAAK,EAAEC,MAAM,CAACC;EAApB,gBACE,oBAAC,IAAD,yBADF,CADF;AAKD,CAtHD;;AAuHA,eAAezE,sBAAsB,CAACuB,mBAAD,CAArC;AAEA,MAAMiD,MAAM,GAAGvE,UAAU,CAACyE,MAAX,CAAkB;EAC/BD,SAAS,EAAE;IACTE,IAAI,EAAE,CADG;IAETC,cAAc,EAAE,QAFP;IAGTC,UAAU,EAAE;EAHH;AADoB,CAAlB,CAAf"}
@@ -0,0 +1,35 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React, { useEffect, useState } from 'react';
4
+ import { StyleSheet, View } from 'react-native';
5
+ import ProgressDialog from '../../components/widgets/ProgressDialog';
6
+
7
+ const withBaseDispatchScreen = WrappedComponent => {
8
+ return props => {
9
+ const [loading, setLoading] = useState(false);
10
+ useEffect(() => {
11
+ return () => {
12
+ setLoading(false);
13
+ };
14
+ }, []);
15
+ let baseProps = {
16
+ showProgress: setLoading
17
+ };
18
+ return /*#__PURE__*/React.createElement(View, {
19
+ style: styles.mainContainer
20
+ }, /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, props, {
21
+ baseETProps: baseProps
22
+ })), /*#__PURE__*/React.createElement(ProgressDialog, {
23
+ visible: loading,
24
+ label: 'Please wait...'
25
+ }));
26
+ };
27
+ };
28
+
29
+ export default withBaseDispatchScreen;
30
+ const styles = StyleSheet.create({
31
+ mainContainer: {
32
+ flex: 1
33
+ }
34
+ });
35
+ //# sourceMappingURL=WithBaseDispatchScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","StyleSheet","View","ProgressDialog","withBaseDispatchScreen","WrappedComponent","props","loading","setLoading","baseProps","showProgress","styles","mainContainer","create","flex"],"sources":["WithBaseDispatchScreen.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport type { BaseETProps } from '../../models/DispatchModels';\nimport ProgressDialog from '../../components/widgets/ProgressDialog';\n\nconst withBaseDispatchScreen = (WrappedComponent: any) => {\n return (props: any) => {\n const [loading, setLoading] = useState(false);\n useEffect(() => {\n return () => {\n setLoading(false);\n };\n }, []);\n let baseProps: BaseETProps = {\n showProgress: setLoading,\n };\n\n return (\n <View style={styles.mainContainer}>\n <WrappedComponent {...props} baseETProps={baseProps} />\n <ProgressDialog visible={loading} label={'Please wait...'} />\n </View>\n );\n };\n};\nexport default withBaseDispatchScreen;\n\nconst styles = StyleSheet.create({\n mainContainer: {\n flex: 1,\n },\n});\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,QAA3B,QAA2C,OAA3C;AACA,SAASC,UAAT,EAAqBC,IAArB,QAAiC,cAAjC;AAEA,OAAOC,cAAP,MAA2B,yCAA3B;;AAEA,MAAMC,sBAAsB,GAAIC,gBAAD,IAA2B;EACxD,OAAQC,KAAD,IAAgB;IACrB,MAAM,CAACC,OAAD,EAAUC,UAAV,IAAwBR,QAAQ,CAAC,KAAD,CAAtC;IACAD,SAAS,CAAC,MAAM;MACd,OAAO,MAAM;QACXS,UAAU,CAAC,KAAD,CAAV;MACD,CAFD;IAGD,CAJQ,EAIN,EAJM,CAAT;IAKA,IAAIC,SAAsB,GAAG;MAC3BC,YAAY,EAAEF;IADa,CAA7B;IAIA,oBACE,oBAAC,IAAD;MAAM,KAAK,EAAEG,MAAM,CAACC;IAApB,gBACE,oBAAC,gBAAD,eAAsBN,KAAtB;MAA6B,WAAW,EAAEG;IAA1C,GADF,eAEE,oBAAC,cAAD;MAAgB,OAAO,EAAEF,OAAzB;MAAkC,KAAK,EAAE;IAAzC,EAFF,CADF;EAMD,CAjBD;AAkBD,CAnBD;;AAoBA,eAAeH,sBAAf;AAEA,MAAMO,MAAM,GAAGV,UAAU,CAACY,MAAX,CAAkB;EAC/BD,aAAa,EAAE;IACbE,IAAI,EAAE;EADO;AADgB,CAAlB,CAAf"}