@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,93 @@
1
+ import { FlatList, StyleSheet, Text, ToastAndroid, View } from 'react-native';
2
+ import React, { useState } from 'react';
3
+ import { Button, Paragraph, RadioButton } from 'react-native-paper';
4
+ import { isEmptyOrBlank } from '../../../utils/utils';
5
+ import { CommonStyles } from '../../../styles/executionTasks/CommonStyles';
6
+
7
+ const CancelET = props => {
8
+ var _props$cancellationRe;
9
+
10
+ const [cancelReason, setCancelReason] = useState('');
11
+ const [btnDisabled, setBtnDisabled] = useState(false);
12
+
13
+ const renderItem = _ref => {
14
+ let {
15
+ item
16
+ } = _ref;
17
+ return /*#__PURE__*/React.createElement(View, {
18
+ style: {
19
+ backgroundColor: '#FFFFFF'
20
+ }
21
+ }, /*#__PURE__*/React.createElement(View, {
22
+ style: styles.reasonItemStyle
23
+ }, /*#__PURE__*/React.createElement(RadioButton, {
24
+ color: '#5B80F7',
25
+ value: item,
26
+ status: cancelReason === item ? 'checked' : 'unchecked',
27
+ onPress: () => {
28
+ setCancelReason(item);
29
+ }
30
+ }), /*#__PURE__*/React.createElement(Text, {
31
+ style: styles.reasonTextStyle,
32
+ onPress: () => {
33
+ setCancelReason(item);
34
+ }
35
+ }, item)));
36
+ };
37
+
38
+ return /*#__PURE__*/React.createElement(View, {
39
+ style: CommonStyles.mainContainer
40
+ }, (props === null || props === void 0 ? void 0 : (_props$cancellationRe = props.cancellationReasons) === null || _props$cancellationRe === void 0 ? void 0 : _props$cancellationRe.length) > 0 ? /*#__PURE__*/React.createElement(FlatList, {
41
+ data: props.cancellationReasons,
42
+ renderItem: renderItem,
43
+ keyExtractor: item => item
44
+ }) : /*#__PURE__*/React.createElement(Paragraph, null, "No Reason(s) found"), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Button, {
45
+ disabled: btnDisabled,
46
+ style: [CommonStyles.nextButton, {
47
+ marginStart: 10,
48
+ marginEnd: 10,
49
+ marginBottom: 10
50
+ }],
51
+ labelStyle: CommonStyles.nextButtonLabel,
52
+ mode: 'contained',
53
+ onPress: () => {
54
+ if (!isEmptyOrBlank(cancelReason)) {
55
+ setBtnDisabled(true);
56
+ props.onSubmitET(cancelReason);
57
+ } else ToastAndroid.show('No reason selected', ToastAndroid.SHORT);
58
+ }
59
+ }, "Submit")));
60
+ };
61
+
62
+ const styles = StyleSheet.create({
63
+ reasonTextStyle: {
64
+ flex: 1,
65
+ flexWrap: 'wrap',
66
+ fontFamily: 'IBMPlexSans_400Regular',
67
+ fontStyle: 'normal',
68
+ fontSize: 14,
69
+ lineHeight: 21,
70
+ letterSpacing: 0.25,
71
+ textAlign: 'justify',
72
+ color: '#111111'
73
+ },
74
+ reasonItemStyle: {
75
+ flexDirection: 'row',
76
+ marginStart: 12,
77
+ marginEnd: 12,
78
+ paddingTop: 8,
79
+ paddingBottom: 8,
80
+ alignItems: 'center'
81
+ },
82
+ heading: {
83
+ marginTop: 30,
84
+ marginStart: 25,
85
+ fontSize: 14,
86
+ lineHeight: 21,
87
+ letterSpacing: 0.25,
88
+ fontFamily: 'IBMPlexSans_400Regular',
89
+ color: '#9D9D9D'
90
+ }
91
+ });
92
+ export default CancelET;
93
+ //# sourceMappingURL=CancelET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlatList","StyleSheet","Text","ToastAndroid","View","React","useState","Button","Paragraph","RadioButton","isEmptyOrBlank","CommonStyles","CancelET","props","cancelReason","setCancelReason","btnDisabled","setBtnDisabled","renderItem","item","backgroundColor","styles","reasonItemStyle","reasonTextStyle","mainContainer","cancellationReasons","length","nextButton","marginStart","marginEnd","marginBottom","nextButtonLabel","onSubmitET","show","SHORT","create","flex","flexWrap","fontFamily","fontStyle","fontSize","lineHeight","letterSpacing","textAlign","color","flexDirection","paddingTop","paddingBottom","alignItems","heading","marginTop"],"sources":["CancelET.tsx"],"sourcesContent":["import { FlatList, StyleSheet, Text, ToastAndroid, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Paragraph, RadioButton } from 'react-native-paper';\nimport type { CancellationInput } from './CancellationSchema';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { CommonStyles } from '../../../styles/executionTasks/CommonStyles';\n\nconst CancelET = (props: CancellationInput) => {\n const [cancelReason, setCancelReason] = useState('');\n const [btnDisabled, setBtnDisabled] = useState(false);\n const renderItem = ({ item }: { item: string }) => {\n return (\n <View style={{ backgroundColor: '#FFFFFF' }}>\n <View style={styles.reasonItemStyle}>\n <RadioButton\n color={'#5B80F7'}\n value={item}\n status={cancelReason === item ? 'checked' : 'unchecked'}\n onPress={() => {\n setCancelReason(item);\n }}\n />\n <Text\n style={styles.reasonTextStyle}\n onPress={() => {\n setCancelReason(item);\n }}\n >\n {item}\n </Text>\n </View>\n </View>\n );\n };\n\n return (\n <View style={CommonStyles.mainContainer}>\n {props?.cancellationReasons?.length > 0 ? (\n <FlatList\n data={props.cancellationReasons}\n renderItem={renderItem}\n keyExtractor={(item) => item}\n />\n ) : (\n <Paragraph>No Reason(s) found</Paragraph>\n )}\n <View>\n <Button\n disabled={btnDisabled}\n style={[\n CommonStyles.nextButton,\n { marginStart: 10, marginEnd: 10, marginBottom: 10 },\n ]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={() => {\n if (!isEmptyOrBlank(cancelReason)) {\n setBtnDisabled(true);\n props.onSubmitET(cancelReason);\n } else ToastAndroid.show('No reason selected', ToastAndroid.SHORT);\n }}\n >\n Submit\n </Button>\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n reasonTextStyle: {\n flex: 1,\n flexWrap: 'wrap',\n fontFamily: 'IBMPlexSans_400Regular',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 21,\n letterSpacing: 0.25,\n textAlign: 'justify',\n color: '#111111',\n },\n reasonItemStyle: {\n flexDirection: 'row',\n marginStart: 12,\n marginEnd: 12,\n paddingTop: 8,\n paddingBottom: 8,\n alignItems: 'center',\n },\n heading: {\n marginTop: 30,\n marginStart: 25,\n fontSize: 14,\n lineHeight: 21,\n letterSpacing: 0.25,\n fontFamily: 'IBMPlexSans_400Regular',\n color: '#9D9D9D',\n },\n});\nexport default CancelET;\n"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,UAAnB,EAA+BC,IAA/B,EAAqCC,YAArC,EAAmDC,IAAnD,QAA+D,cAA/D;AACA,OAAOC,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,SAASC,MAAT,EAAiBC,SAAjB,EAA4BC,WAA5B,QAA+C,oBAA/C;AAEA,SAASC,cAAT,QAA+B,sBAA/B;AACA,SAASC,YAAT,QAA6B,6CAA7B;;AAEA,MAAMC,QAAQ,GAAIC,KAAD,IAA8B;EAAA;;EAC7C,MAAM,CAACC,YAAD,EAAeC,eAAf,IAAkCT,QAAQ,CAAC,E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R;IAQE,OAAO,EAAE,MAAM;MACb,IAAI,CAACrB,cAAc,CAACI,YAAD,CAAnB,EAAmC;QACjCG,cAAc,CAAC,IAAD,CAAd;QACAJ,KAAK,CAACmB,UAAN,CAAiBlB,YAAjB;MACD,CAHD,MAGOX,YAAY,CAAC8B,IAAb,CAAkB,oBAAlB,EAAwC9B,YAAY,CAAC+B,KAArD;IACR;EAbH,YADF,CAVF,CADF;AAgCD,CA5DD;;AA8DA,MAAMb,MAAM,GAAGpB,UAAU,CAACkC,MAAX,CAAkB;EAC/BZ,eAAe,EAAE;IACfa,IAAI,EAAE,CADS;IAEfC,QAAQ,EAAE,MAFK;IAGfC,UAAU,EAAE,wBAHG;IAIfC,SAAS,EAAE,QAJI;IAKfC,QAAQ,EAAE,EALK;IAMfC,UAAU,EAAE,EANG;IAOfC,aAAa,EAAE,IAPA;IAQfC,SAAS,EAAE,SARI;IASfC,KAAK,EAAE;EATQ,CADc;EAY/BtB,eAAe,EAAE;IACfuB,aAAa,EAAE,KADA;IAEfjB,WAAW,EAAE,EAFE;IAGfC,SAAS,EAAE,EAHI;IAIfiB,UAAU,EAAE,CAJG;IAKfC,aAAa,EAAE,CALA;IAMfC,UAAU,EAAE;EANG,CAZc;EAoB/BC,OAAO,EAAE;IACPC,SAAS,EAAE,EADJ;IAEPtB,WAAW,EAAE,EAFN;IAGPY,QAAQ,EAAE,EAHH;IAIPC,UAAU,EAAE,EAJL;IAKPC,aAAa,EAAE,IALR;IAMPJ,UAAU,EAAE,wBANL;IAOPM,KAAK,EAAE;EAPA;AApBsB,CAAlB,CAAf;AA8BA,eAAehC,QAAf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CancellationSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["CancellationSchema.ts"],"sourcesContent":["/**\n * List of reasons for cancellation\n */\nimport type { BaseETResponse } from '../../../models/execTasks/ETBaseModels';\n\nexport type CancellationReasons = string[];\n\nexport interface CancellationInput {\n cancellationReasons: CancellationReasons;\n onSubmitET: (reason: string) => void;\n}\n\nexport type CancellationOutput = BaseETResponse & {\n remark: string;\n};\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CaptureInputSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["CaptureInputSchema.ts"],"sourcesContent":["/**\n * Input data type\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type CaptureTextOutput = BaseETResponse & {\n /**\n * Value entered by user\n */\n value?: string | number;\n /**\n * Boolean to denote if value was validate successfully\n */\n validated?: boolean;\n /**\n * Number of attempts for this ET\n */\n attemptCount?: number;\n /**\n * Meta data related to execution of task\n */\n};\n\n/**\n * Input data type\n */\nexport type InputDataType = 'string' | 'number';\n/**\n * Regex to validate input strings\n */\nexport type ValidationRegex = string;\n/**\n * Title of instruction\n */\nexport type Title = string;\n/**\n * Message of instruction\n */\nexport type Message = string;\n/**\n * Can go back\n */\nexport type CanGoBack = boolean;\n\nexport type CaptureTextInput = BaseETRequest & {\n inputType: InputDataType;\n validationRegex: ValidationRegex;\n onSubmitET: (value: CaptureTextOutput) => void;\n};\n"],"mappings":""}
@@ -0,0 +1,50 @@
1
+ import { View } from 'react-native';
2
+ import { Button, TextInput } from 'react-native-paper';
3
+ import { CommonStyles, deliverETStyles } from '../../../styles/executionTasks/CommonStyles';
4
+ import React, { useState } from 'react';
5
+ import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
6
+ import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
7
+ import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
8
+ import { checkForValidation } from '../scanner/ScannerUtils';
9
+
10
+ const CaptureText = props => {
11
+ const [input, setInput] = useState('');
12
+ const [disableNext, setDisableNext] = useState(false);
13
+ return /*#__PURE__*/React.createElement(View, {
14
+ style: CommonStyles.mainContainer
15
+ }, /*#__PURE__*/React.createElement(TextInput, {
16
+ multiline: false,
17
+ autoComplete: 'off',
18
+ style: deliverETStyles.input,
19
+ label: "Enter input",
20
+ value: input,
21
+ mode: 'outlined',
22
+ onChangeText: text => setInput(text)
23
+ }), /*#__PURE__*/React.createElement(View, {
24
+ style: deliverETStyles.footerButtonStyles
25
+ }, /*#__PURE__*/React.createElement(Button, {
26
+ labelStyle: CommonStyles.cancelButtonLabel,
27
+ style: CommonStyles.cancelButton,
28
+ mode: 'outlined',
29
+ onPress: async () => {
30
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.CAPTURE_INPUT, false, getEventCodeByET(ExecutionTaskID.CAPTURE_INPUT, false), ''))
31
+ });
32
+ }
33
+ }, "Cancel"), /*#__PURE__*/React.createElement(Button, {
34
+ disabled: disableNext,
35
+ style: CommonStyles.nextButton,
36
+ labelStyle: CommonStyles.nextButtonLabel,
37
+ mode: 'contained',
38
+ onPress: async () => {
39
+ setDisableNext(true);
40
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.CAPTURE_INPUT, true, getEventCodeByET(ExecutionTaskID.CAPTURE_INPUT, true), '')),
41
+ value: input,
42
+ validated: (await checkForValidation(input, props.validationRegex, undefined)) ?? false,
43
+ attemptCount: 0
44
+ });
45
+ }
46
+ }, "Next")));
47
+ };
48
+
49
+ export default CaptureText;
50
+ //# sourceMappingURL=CaptureText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","Button","TextInput","CommonStyles","deliverETStyles","React","useState","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","checkForValidation","CaptureText","props","input","setInput","disableNext","setDisableNext","mainContainer","text","footerButtonStyles","cancelButtonLabel","cancelButton","onSubmitET","CAPTURE_INPUT","nextButton","nextButtonLabel","value","validated","validationRegex","undefined","attemptCount"],"sources":["CaptureText.tsx"],"sourcesContent":["import type { CaptureTextInput } from './CaptureInputSchema';\nimport { View } from 'react-native';\nimport { Button, TextInput } from 'react-native-paper';\nimport {\n CommonStyles,\n deliverETStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport React, { useState } from 'react';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { checkForValidation } from '../scanner/ScannerUtils';\n\nconst CaptureText = (props: CaptureTextInput) => {\n const [input, setInput] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n return (\n <View style={CommonStyles.mainContainer}>\n <TextInput\n multiline={false}\n autoComplete={'off'}\n style={deliverETStyles.input}\n label=\"Enter input\"\n value={input}\n mode={'outlined'}\n onChangeText={(text) => setInput(text)}\n />\n <View style={deliverETStyles.footerButtonStyles}>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={CommonStyles.cancelButton}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.CAPTURE_INPUT,\n false,\n getEventCodeByET(ExecutionTaskID.CAPTURE_INPUT, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={CommonStyles.nextButton}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n setDisableNext(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.CAPTURE_INPUT,\n true,\n getEventCodeByET(ExecutionTaskID.CAPTURE_INPUT, true),\n ''\n )),\n value: input,\n validated:\n (await checkForValidation(\n input,\n props.validationRegex,\n undefined\n )) ?? false,\n attemptCount: 0,\n });\n }}\n >\n Next\n </Button>\n </View>\n </View>\n );\n};\nexport default CaptureText;\n"],"mappings":"AACA,SAASA,IAAT,QAAqB,cAArB;AACA,SAASC,MAAT,EAAiBC,SAAjB,QAAkC,oBAAlC;AACA,SACEC,YADF,EAEEC,eAFF,QAGO,6CAHP;AAIA,OAAOC,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,S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,CAAC,IAAD,CAAd;MACAJ,KAAK,CAACU,UAAN,CAAiB,EACf,IAAI,MAAMhB,iBAAiB,CACzBE,UAAU,CAACe,aADc,EAEzB,IAFyB,EAGzBhB,gBAAgB,CAACE,eAAe,CAACc,aAAjB,EAAgC,IAAhC,CAHS,EAIzB,EAJyB,CAA3B,CADe;QAOfG,KAAK,EAAEb,KAPQ;QAQfc,SAAS,EACP,CAAC,MAAMjB,kBAAkB,CACvBG,KADuB,EAEvBD,KAAK,CAACgB,eAFiB,EAGvBC,SAHuB,CAAzB,KAIM,KAbO;QAcfC,YAAY,EAAE;MAdC,CAAjB;IAgBD;EAvBH,UAlBF,CAVF,CADF;AA2DD,CA/DD;;AAgEA,eAAenB,WAAf"}
@@ -0,0 +1,87 @@
1
+ import { FlatList, View } from 'react-native';
2
+ import React, { useState } from 'react';
3
+ import { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';
4
+ import { CommonStyles, deliverETStyles } from '../../../styles/executionTasks/CommonStyles';
5
+ import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
6
+ import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
7
+ import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
8
+
9
+ const ListItem = _ref => {
10
+ let {
11
+ lineItem
12
+ } = _ref;
13
+ return /*#__PURE__*/React.createElement(Card, {
14
+ style: deliverETStyles.item
15
+ }, /*#__PURE__*/React.createElement(Card.Title, {
16
+ title: lineItem.skuId,
17
+ subtitle: lineItem.count ? lineItem.count + ' Qty.' : ''
18
+ }), lineItem.productDescription && /*#__PURE__*/React.createElement(Card.Content, null, /*#__PURE__*/React.createElement(Paragraph, null, lineItem.productDescription)));
19
+ };
20
+
21
+ const renderItem = _ref2 => {
22
+ let {
23
+ item
24
+ } = _ref2;
25
+ return /*#__PURE__*/React.createElement(ListItem, {
26
+ lineItem: item
27
+ });
28
+ };
29
+
30
+ const DeliverET = props => {
31
+ const [remarks, setRemarks] = useState('');
32
+ const [disableNext, setDisableNext] = useState(false);
33
+
34
+ if (props && props.items && props.items.length > 0) {
35
+ return /*#__PURE__*/React.createElement(View, {
36
+ style: [CommonStyles.mainContainer, {
37
+ padding: 10
38
+ }]
39
+ }, /*#__PURE__*/React.createElement(FlatList, {
40
+ data: props.items,
41
+ renderItem: renderItem,
42
+ keyExtractor: item => item.skuId
43
+ }), props.message && props.message.length > 0 && /*#__PURE__*/React.createElement(Paragraph, null, props.message), /*#__PURE__*/React.createElement(TextInput, {
44
+ multiline: false,
45
+ autoComplete: 'off',
46
+ style: deliverETStyles.input,
47
+ label: "Enter Delivery remarks",
48
+ value: remarks,
49
+ mode: 'outlined',
50
+ onChangeText: text => setRemarks(text)
51
+ }), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
52
+ style: deliverETStyles.footerButtonStyles
53
+ }, /*#__PURE__*/React.createElement(Button, {
54
+ labelStyle: CommonStyles.cancelButtonLabel,
55
+ style: [CommonStyles.cancelButton, {
56
+ marginEnd: 5,
57
+ flex: 1
58
+ }],
59
+ mode: 'outlined',
60
+ onPress: async () => {
61
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.DELIVER, false, getEventCodeByET(ExecutionTaskID.DELIVER, false), ''))
62
+ });
63
+ }
64
+ }, "Cancel"), /*#__PURE__*/React.createElement(Button, {
65
+ disabled: disableNext,
66
+ style: [CommonStyles.nextButton, {
67
+ marginStart: 5,
68
+ flex: 1
69
+ }],
70
+ labelStyle: CommonStyles.nextButtonLabel,
71
+ mode: 'contained',
72
+ onPress: async () => {
73
+ setDisableNext(true);
74
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.DELIVER, true, getEventCodeByET(ExecutionTaskID.DELIVER, true), '')),
75
+ remark: remarks
76
+ });
77
+ }
78
+ }, "Deliver"))));
79
+ } else {
80
+ return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Title, {
81
+ style: deliverETStyles.errorText
82
+ }, "No Item(s) found for Delivery"));
83
+ }
84
+ };
85
+
86
+ export default DeliverET;
87
+ //# sourceMappingURL=DeliverET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlatList","View","React","useState","Button","Card","Paragraph","TextInput","Title","CommonStyles","deliverETStyles","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","ListItem","lineItem","item","skuId","count","productDescription","renderItem","DeliverET","props","remarks","setRemarks","disableNext","setDisableNext","items","length","mainContainer","padding","message","input","text","footerButtonStyles","cancelButtonLabel","cancelButton","marginEnd","flex","onSubmitET","DELIVER","nextButton","marginStart","nextButtonLabel","remark","errorText"],"sources":["DeliverET.tsx"],"sourcesContent":["import type { DeliverETInput, LineItem } from './DeliverETInput';\nimport { FlatList, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Card, Paragraph, TextInput, Title } from 'react-native-paper';\nimport {\n CommonStyles,\n deliverETStyles,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <Card style={deliverETStyles.item}>\n <Card.Title\n title={lineItem.skuId}\n subtitle={lineItem.count ? lineItem.count + ' Qty.' : ''}\n />\n {lineItem.productDescription && (\n <Card.Content>\n <Paragraph>{lineItem.productDescription}</Paragraph>\n </Card.Content>\n )}\n </Card>\n);\n\nconst renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst DeliverET = (props: DeliverETInput) => {\n const [remarks, setRemarks] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n if (props && props.items && props.items.length > 0) {\n return (\n <View style={[CommonStyles.mainContainer, { padding: 10 }]}>\n <FlatList\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n {props.message && props.message.length > 0 && (\n <Paragraph>{props.message}</Paragraph>\n )}\n <TextInput\n multiline={false}\n autoComplete={'off'}\n style={deliverETStyles.input}\n label=\"Enter Delivery remarks\"\n value={remarks}\n mode={'outlined'}\n onChangeText={(text) => setRemarks(text)}\n />\n <View>\n <View style={deliverETStyles.footerButtonStyles}>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginEnd: 5, flex: 1 }]}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[CommonStyles.nextButton, { marginStart: 5, flex: 1 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n setDisableNext(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: remarks,\n });\n }}\n >\n Deliver\n </Button>\n </View>\n </View>\n </View>\n );\n } else {\n return (\n <View>\n <Title style={deliverETStyles.errorText}>\n No Item(s) found for Delivery\n </Title>\n </View>\n );\n }\n};\n\nexport default DeliverET;\n"],"mappings":"AACA,SAASA,QAAT,EAAmBC,IAAnB,QAA+B,cAA/B;AACA,OAAOC,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,SAASC,MAAT,EAAiBC,IAAjB,EAAuBC,SAAvB,EAAkCC,SAAlC,EAA6CC,KAA7C,QAA0D,oBAA1D;AACA,SACEC,YADF,EAEEC,eAFF,QAGO,6CAHP;AAIA,SAASC,iBAAT,QAAkC,8BAAlC;AACA,SAASC,gBAAT,QAAiC,mDAAjC;AACA,SACEC,UADF,EAEEC,eAFF,QAGO,oCAHP;;AAKA,MAAMC,QAAQ,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACf,oBAAC,IAAD;IAAM,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CADF;EA8DD,CA/DD,MA+DO;IACL,oBACE,oBAAC,IAAD,qBACE,oBAAC,KAAD;MAAO,KAAK,EAAEd,eAAe,CAACoC;IAA9B,mCADF,CADF;EAOD;AACF,CA5ED;;AA8EA,eAAexB,SAAf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeliverETInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["DeliverETInput.ts"],"sourcesContent":["/**\n * Unique identifier for the item\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type SKU = string;\n/**\n * Description of item\n */\nexport type ProductDescription = string;\n/**\n * Count of items\n */\nexport type ItemCount = number;\n/**\n * Items to be delivered\n */\nexport type LineItem = {\n skuId: SKU;\n productDescription?: ProductDescription;\n count?: ItemCount;\n};\n/**\n * Any manual instruction to display for the Operator to work on\n */\nexport type Instruction = string;\nexport interface DeliverRemarks {\n remark: string;\n success: boolean;\n}\n\nexport type DeliverETInput = BaseETRequest & {\n items: LineItem[];\n confirmCustodyExchange?: boolean;\n confirmShipments?: boolean;\n onSubmitET(response: DeliverOutput): void;\n returnPackageCount?: number;\n};\nexport type DeliverOutput = BaseETResponse & {\n /**\n * Remark captured at time of delivery\n */\n remark?: string;\n};\n"],"mappings":""}
@@ -0,0 +1,175 @@
1
+ import { FlatList, Text, View } from 'react-native';
2
+ import React, { useState } from 'react';
3
+ import { Button, Modal, Portal, Provider, TextInput } from 'react-native-paper';
4
+ import { CommonStyles, DeliverPickupStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
5
+ import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
6
+ import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
7
+ import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
8
+ import { isEmptyOrBlank } from '../../../utils/utils';
9
+ import { DEFAULT_DELIVER_MESSAGE, DEFAULT_DELIVER_TITLE } from '../../../constants/constants';
10
+
11
+ const ListItem = _ref => {
12
+ let {
13
+ lineItem
14
+ } = _ref;
15
+ return /*#__PURE__*/React.createElement(View, {
16
+ style: {
17
+ justifyContent: 'center'
18
+ }
19
+ }, /*#__PURE__*/React.createElement(Text, {
20
+ style: DeliverPickupStyles.itemTextStyle
21
+ }, `Order ID: ${lineItem.skuId}`));
22
+ };
23
+
24
+ export const renderItem = _ref2 => {
25
+ let {
26
+ item
27
+ } = _ref2;
28
+ return /*#__PURE__*/React.createElement(ListItem, {
29
+ lineItem: item
30
+ });
31
+ };
32
+
33
+ const getMessage = (returnPackageCount, message) => {
34
+ try {
35
+ const msg = message || DEFAULT_DELIVER_MESSAGE;
36
+ return returnPackageCount && returnPackageCount > 1 ? msg.replace('$', (returnPackageCount === null || returnPackageCount === void 0 ? void 0 : returnPackageCount.toString()) || '') : msg.replace('$', '');
37
+ } catch (error) {
38
+ return message || '';
39
+ }
40
+ };
41
+
42
+ const DeliverET = props => {
43
+ const [pkgCount, setPkgCount] = useState(props.confirmShipments ? '' : `${props.returnPackageCount}`);
44
+ const [inputError, setInputError] = useState('');
45
+ const [disableYes, setDisableYes] = useState(false);
46
+ const [disableConfirm, setDisableConfirm] = useState(false);
47
+
48
+ if (props.confirmCustodyExchange) {
49
+ return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(View, {
50
+ style: DeliverPickupStyles.mainContainer
51
+ }, /*#__PURE__*/React.createElement(Modal, {
52
+ visible: true,
53
+ dismissable: false,
54
+ contentContainerStyle: DeliverPickupStyles.modalContent
55
+ }, /*#__PURE__*/React.createElement(View, {
56
+ style: DeliverPickupStyles.modalView
57
+ }, /*#__PURE__*/React.createElement(Text, {
58
+ style: DeliverPickupStyles.titleText
59
+ }, props.title || DEFAULT_DELIVER_TITLE), /*#__PURE__*/React.createElement(View, {
60
+ style: {
61
+ marginTop: 15,
62
+ marginBottom: 15,
63
+ flexDirection: 'row'
64
+ }
65
+ }, /*#__PURE__*/React.createElement(Text, {
66
+ style: {
67
+ fontFamily: Fonts.IBMPlexSans_400Regular,
68
+ fontStyle: 'normal',
69
+ fontWeight: '400',
70
+ fontSize: 14,
71
+ flex: 1,
72
+ textAlign: 'left',
73
+ lineHeight: 28,
74
+ color: '#111111'
75
+ }
76
+ }, 'Expected Shipments'), /*#__PURE__*/React.createElement(Text, {
77
+ style: {
78
+ textAlign: 'right',
79
+ fontSize: 14,
80
+ lineHeight: 28,
81
+ fontStyle: 'normal',
82
+ color: '#111111',
83
+ fontFamily: Fonts.IBMPlexSans_600SemiBold
84
+ }
85
+ }, props.returnPackageCount)), props.confirmShipments && /*#__PURE__*/React.createElement(TextInput, {
86
+ style: {
87
+ fontSize: 14,
88
+ lineHeight: 24,
89
+ fontFamily: Fonts.IBMPlexSans_400Regular
90
+ },
91
+ multiline: false,
92
+ autoComplete: 'off',
93
+ label: `Shipment(s) handed over`,
94
+ value: pkgCount,
95
+ mode: 'outlined',
96
+ error: !isEmptyOrBlank(inputError),
97
+ selectionColor: '#6200EE',
98
+ keyboardType: 'numeric',
99
+ onChangeText: text => {
100
+ setInputError('');
101
+ setPkgCount(text);
102
+ }
103
+ }), !isEmptyOrBlank(inputError) && /*#__PURE__*/React.createElement(Text, {
104
+ style: {
105
+ color: '#B00020'
106
+ }
107
+ }, inputError), /*#__PURE__*/React.createElement(Button, {
108
+ disabled: disableConfirm,
109
+ style: [CommonStyles.nextButton, {
110
+ marginTop: 20
111
+ }],
112
+ labelStyle: CommonStyles.nextButtonLabel,
113
+ uppercase: false,
114
+ mode: 'contained',
115
+ onPress: async () => {
116
+ if (!isEmptyOrBlank(pkgCount) && !Number.isNaN(+pkgCount)) {
117
+ if (+pkgCount !== props.returnPackageCount) {
118
+ setInputError(`Package count should be equal to ${props.returnPackageCount}`);
119
+ return;
120
+ }
121
+
122
+ setDisableConfirm(true);
123
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.DELIVER, true, getEventCodeByET(ExecutionTaskID.DELIVER, true), '')),
124
+ remark: `${pkgCount} Packages returned`
125
+ });
126
+ } else setInputError('Please enter valid count.');
127
+ }
128
+ }, "Confirm"))))));
129
+ } else return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(View, {
130
+ style: DeliverPickupStyles.mainContainer
131
+ }, /*#__PURE__*/React.createElement(Modal, {
132
+ visible: true,
133
+ dismissable: false,
134
+ contentContainerStyle: DeliverPickupStyles.modalContent
135
+ }, /*#__PURE__*/React.createElement(View, {
136
+ style: DeliverPickupStyles.modalView
137
+ }, /*#__PURE__*/React.createElement(Text, {
138
+ style: DeliverPickupStyles.titleText
139
+ }, props.title || DEFAULT_DELIVER_TITLE), /*#__PURE__*/React.createElement(Text, {
140
+ style: DeliverPickupStyles.messageText
141
+ }, getMessage(props.returnPackageCount, props.message)), props.returnPackageCount === 1 && /*#__PURE__*/React.createElement(FlatList, {
142
+ style: DeliverPickupStyles.flatList,
143
+ data: props.items,
144
+ renderItem: renderItem,
145
+ keyExtractor: item => item.skuId
146
+ }), /*#__PURE__*/React.createElement(Button, {
147
+ disabled: disableYes,
148
+ style: [CommonStyles.nextButton, {
149
+ marginTop: 20
150
+ }],
151
+ labelStyle: CommonStyles.nextButtonLabel,
152
+ uppercase: false,
153
+ mode: 'contained',
154
+ onPress: async () => {
155
+ setDisableYes(true);
156
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.DELIVER, true, getEventCodeByET(ExecutionTaskID.DELIVER, true), '')),
157
+ remark: ''
158
+ });
159
+ }
160
+ }, "Yes"), /*#__PURE__*/React.createElement(Button, {
161
+ labelStyle: CommonStyles.cancelButtonLabel,
162
+ style: [CommonStyles.cancelButton, {
163
+ marginTop: 10
164
+ }],
165
+ mode: 'outlined',
166
+ uppercase: false,
167
+ onPress: async () => {
168
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.DELIVER, false, getEventCodeByET(ExecutionTaskID.DELIVER, false), ''))
169
+ });
170
+ }
171
+ }, "No"))))));
172
+ };
173
+
174
+ export default DeliverET;
175
+ //# sourceMappingURL=SLDeliverET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlatList","Text","View","React","useState","Button","Modal","Portal","Provider","TextInput","CommonStyles","DeliverPickupStyles","Fonts","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","isEmptyOrBlank","DEFAULT_DELIVER_MESSAGE","DEFAULT_DELIVER_TITLE","ListItem","lineItem","justifyContent","itemTextStyle","skuId","renderItem","item","getMessage","returnPackageCount","message","msg","replace","toString","error","DeliverET","props","pkgCount","setPkgCount","confirmShipments","inputError","setInputError","disableYes","setDisableYes","disableConfirm","setDisableConfirm","confirmCustodyExchange","mainContainer","modalContent","modalView","titleText","title","marginTop","marginBottom","flexDirection","fontFamily","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","flex","textAlign","lineHeight","color","IBMPlexSans_600SemiBold","text","nextButton","nextButtonLabel","Number","isNaN","onSubmitET","DELIVER","remark","messageText","flatList","items","cancelButtonLabel","cancelButton"],"sources":["SLDeliverET.tsx"],"sourcesContent":["import type { DeliverETInput } from './DeliverETInput';\nimport { FlatList, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Modal, Portal, Provider, TextInput } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_DELIVER_MESSAGE,\n DEFAULT_DELIVER_TITLE,\n} from '../../../constants/constants';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${lineItem.skuId}`}</Text>\n </View>\n);\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst getMessage = (\n returnPackageCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_DELIVER_MESSAGE;\n return returnPackageCount && returnPackageCount > 1\n ? msg.replace('$', returnPackageCount?.toString() || '')\n : msg.replace('$', '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nconst DeliverET = (props: DeliverETInput) => {\n const [pkgCount, setPkgCount] = useState(\n props.confirmShipments ? '' : `${props.returnPackageCount}`\n );\n const [inputError, setInputError] = useState('');\n const [disableYes, setDisableYes] = useState(false);\n const [disableConfirm, setDisableConfirm] = useState(false);\n\n if (props.confirmCustodyExchange) {\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <View\n style={{\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n }}\n >\n <Text\n style={{\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n }}\n >\n {'Expected Shipments'}\n </Text>\n <Text\n style={{\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n }}\n >\n {props.returnPackageCount}\n </Text>\n </View>\n {props.confirmShipments && (\n <TextInput\n style={{\n fontSize: 14,\n lineHeight: 24,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n multiline={false}\n autoComplete={'off'}\n label={`Shipment(s) handed over`}\n value={pkgCount}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setPkgCount(text);\n }}\n />\n )}\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n <Button\n disabled={disableConfirm}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n if (!isEmptyOrBlank(pkgCount) && !Number.isNaN(+pkgCount)) {\n if (+pkgCount !== props.returnPackageCount) {\n setInputError(\n `Package count should be equal to ${props.returnPackageCount}`\n );\n return;\n }\n setDisableConfirm(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: `${pkgCount} Packages returned`,\n });\n } else setInputError('Please enter valid count.');\n }}\n >\n Confirm\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n } else\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.returnPackageCount, props.message)}\n </Text>\n\n {props.returnPackageCount === 1 && (\n <FlatList\n style={DeliverPickupStyles.flatList}\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n )}\n <Button\n disabled={disableYes}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n setDisableYes(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: '',\n });\n }}\n >\n Yes\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n uppercase={false}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER, false),\n ''\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default DeliverET;\n"],"mappings":"AACA,SAASA,QAAT,EAAmBC,IAAnB,EAAyBC,IAAzB,QAAqC,cAArC;AACA,OAAOC,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,SAASC,MAAT,EAAiBC,KAAjB,EAAwBC,MAAxB,EAAgCC,QAAhC,EAA0CC,SAA1C,QAA2D,oBAA3D;AAEA,SACEC,YADF,EAEEC,mBAFF,EAGEC,KAHF,QAIO,6CAJP;AAKA,SAASC,iBAAT,QAAkC,8BAAlC;AACA,SAASC,gBAAT,QAAiC,mDAAjC;AACA,SACEC,UADF,EAEEC,eAFF,QAGO,oCAHP;AAIA,SAASC,cAAT,QAA+B,sBAA/B;AAEA,SACEC,uBADF,EAEEC,qBAFF,QAGO,8BAHP;;AAKA,MAAMC,QAAQ,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACf,oBAAC,IAAD;IAAM,KAAK,EAAE;MAAEC,cAAc,EAAE;IAAlB;EAAb,gBACE,oBAAC,IAAD;IACE,KAAK,EAAEX,mBAAmB,CAACY;EAD7B,GAEG,aAAYF,QAAQ,CAACG,KAAM,EAF9B,CADF,CADe;AAAA,CAAjB;;AAQA,OAAO,MAAMC,UAAU,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACxB,oBAAC,QAAD;IAAU,QAAQ,EAAEA;EAApB,EADwB;AAAA,CAAnB;;AA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Y;MACnBhB,KAAK,CAACkC,UAAN,CAAiB,EACf,IAAI,MAAMxD,iBAAiB,CACzBE,UAAU,CAACuD,OADc,EAEzB,KAFyB,EAGzBxD,gBAAgB,CAACE,eAAe,CAACsD,OAAjB,EAA0B,KAA1B,CAHS,EAIzB,EAJyB,CAA3B;MADe,CAAjB;IAQD;EAdH,QArCF,CALF,CADF,CADF,CADF,CADF;AAsEH,CA1LD;;AA4LA,eAAepC,SAAf"}
@@ -0,0 +1,107 @@
1
+ import { Image, StyleSheet, View } from 'react-native';
2
+ import React, { useCallback, useState } from 'react';
3
+ import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
4
+ import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
5
+ import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
6
+ import { Button, Modal, Paragraph, Portal, Provider, Text, Title } from 'react-native-paper';
7
+ import { CommonStyles, DeliverPickupStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
8
+
9
+ const DisplayModalET = etProps => {
10
+ const [modalVisible, setModalVisible] = useState(etProps.showDialog);
11
+ const sendEtOutput = useCallback(async success => {
12
+ setModalVisible(false);
13
+ etProps.onSubmit({ ...(await getBaseETResponse(EntityCode.DISPLAY, success, getEventCodeByET(ExecutionTaskID.DISPLAY, success), ''))
14
+ });
15
+ }, [etProps]);
16
+ return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(View, {
17
+ style: DeliverPickupStyles.mainContainer
18
+ }, /*#__PURE__*/React.createElement(Modal, {
19
+ dismissable: false,
20
+ visible: modalVisible,
21
+ contentContainerStyle: DeliverPickupStyles.modalContent
22
+ }, /*#__PURE__*/React.createElement(View, {
23
+ style: DeliverPickupStyles.modalView
24
+ }, etProps.displayType === 'WARNING' && /*#__PURE__*/React.createElement(Title, {
25
+ style: styles.warningTitle
26
+ }, etProps.title, "!"), etProps.displayType === 'ALERT' && /*#__PURE__*/React.createElement(Title, {
27
+ style: styles.alertTitle
28
+ }, etProps.title), etProps.displayType === 'MESSAGE' && /*#__PURE__*/React.createElement(Title, {
29
+ style: styles.messageTitle
30
+ }, etProps.title), etProps.text && /*#__PURE__*/React.createElement(Paragraph, {
31
+ style: styles.messageText
32
+ }, etProps.text), etProps.message && /*#__PURE__*/React.createElement(Text, {
33
+ style: [styles.messageText]
34
+ }, etProps.message), etProps.image && /*#__PURE__*/React.createElement(View, {
35
+ style: styles.imageView
36
+ }, /*#__PURE__*/React.createElement(Image, {
37
+ source: {
38
+ width: 200,
39
+ height: 300,
40
+ uri: etProps.image
41
+ }
42
+ })), /*#__PURE__*/React.createElement(View, {
43
+ style: styles.buttons
44
+ }, /*#__PURE__*/React.createElement(Button, {
45
+ mode: 'outlined',
46
+ uppercase: false,
47
+ labelStyle: CommonStyles.nextButtonLabel,
48
+ style: [CommonStyles.nextButton, {
49
+ marginBottom: 5
50
+ }],
51
+ onPress: async () => {
52
+ await sendEtOutput(true);
53
+ },
54
+ testID: "primary"
55
+ }, etProps.positiveBtn), etProps.negativeBtn && /*#__PURE__*/React.createElement(Button, {
56
+ uppercase: false,
57
+ mode: 'outlined',
58
+ labelStyle: CommonStyles.cancelButtonLabel,
59
+ style: [CommonStyles.cancelButton, {
60
+ marginTop: 5
61
+ }],
62
+ onPress: async () => {
63
+ await sendEtOutput(false);
64
+ },
65
+ testID: "secondary"
66
+ }, etProps.negativeBtn)))))));
67
+ };
68
+
69
+ export default DisplayModalET;
70
+ const styles = StyleSheet.create({
71
+ warningTitle: {
72
+ fontFamily: Fonts.IBMPlexSans_600SemiBold,
73
+ marginTop: 0,
74
+ marginBottom: 15,
75
+ textAlign: 'center',
76
+ color: '#856404'
77
+ },
78
+ messageTitle: {
79
+ fontFamily: Fonts.IBMPlexSans_600SemiBold,
80
+ marginTop: 0,
81
+ marginBottom: 15,
82
+ textAlign: 'center',
83
+ color: '#000000'
84
+ },
85
+ alertTitle: {
86
+ fontFamily: Fonts.IBMPlexSans_600SemiBold,
87
+ marginTop: 0,
88
+ marginBottom: 15,
89
+ textAlign: 'center',
90
+ color: 'red'
91
+ },
92
+ messageText: {
93
+ fontFamily: Fonts.IBMPlexSans_400Regular,
94
+ marginTop: 20,
95
+ fontSize: 16,
96
+ textAlign: 'center',
97
+ color: '#004085'
98
+ },
99
+ buttons: {
100
+ marginTop: 25,
101
+ flexDirection: 'column'
102
+ },
103
+ imageView: {
104
+ padding: 10
105
+ }
106
+ });
107
+ //# sourceMappingURL=DisplayModalET.js.map