@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,232 @@
1
+ import React, { useCallback, useEffect, useState } from 'react';
2
+ import { FlatList, Image, StyleSheet, Text, View } from 'react-native';
3
+ import * as CaptureUtils from './CaptureUtils';
4
+ import { getCaptureOutput } from './CaptureUtils';
5
+ import { Button } from 'react-native-paper';
6
+ import { showToast } from '../../widgets/Toaster';
7
+ import SdkColors, { ColorTheme } from '../../../styles/SdkColors';
8
+ import Icon from 'react-native-vector-icons/MaterialIcons';
9
+ import { CommonStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
10
+ import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
11
+ import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
12
+ import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
13
+
14
+ const ImageItem = _ref => {
15
+ let {
16
+ item,
17
+ onPress
18
+ } = _ref;
19
+ return /*#__PURE__*/React.createElement(View, {
20
+ style: {
21
+ marginEnd: 8
22
+ }
23
+ }, /*#__PURE__*/React.createElement(Image, {
24
+ source: {
25
+ uri: item.path
26
+ },
27
+ style: styles.image
28
+ }), /*#__PURE__*/React.createElement(Icon, {
29
+ onPress: onPress,
30
+ name: "highlight-remove",
31
+ color: 'red',
32
+ size: 32,
33
+ style: {
34
+ position: 'absolute',
35
+ right: 5,
36
+ top: 5
37
+ }
38
+ }));
39
+ };
40
+
41
+ const ImageCapture = props => {
42
+ const [images, setImages] = useState([]);
43
+ const [showCapture, setShowCapture] = useState(true);
44
+ const [disableProceed, setDisableProceed] = useState(false);
45
+
46
+ const handleSubmit = async () => {
47
+ try {
48
+ setDisableProceed(true);
49
+
50
+ if (props.captureMode === 'SINGLE') {
51
+ if (images.length > 0) {
52
+ props.onSubmitET(await getCaptureOutput(images, props));
53
+ } else {
54
+ showToast('No Images captured');
55
+ }
56
+ } else {
57
+ if (props.captureCountLimit && props.captureCountLimit > 0) {
58
+ if (images.length === CaptureUtils.getMaxImagesCount(props)) {
59
+ props.onSubmitET(await getCaptureOutput(images, props));
60
+ } else {
61
+ showToast(`${props.captureCountLimit - images.length} Images left`);
62
+ }
63
+ } else {
64
+ if (images.length > 0) {
65
+ props.onSubmitET(await getCaptureOutput(images, props));
66
+ } else {
67
+ showToast('No Images captured');
68
+ }
69
+ }
70
+ }
71
+ } catch (error) {
72
+ setDisableProceed(false);
73
+ showToast(error.message);
74
+ } finally {
75
+ setDisableProceed(false);
76
+ }
77
+ };
78
+
79
+ useEffect(() => {
80
+ if (props.captureMode === 'SINGLE') {
81
+ if (images.length > 0) {
82
+ setShowCapture(false);
83
+ } else setShowCapture(true);
84
+ } else if (props.captureMode === 'MULTI' && props.captureCountLimit && props.captureCountLimit > 0) {
85
+ if (images.length === CaptureUtils.getMaxImagesCount(props)) {
86
+ setShowCapture(false);
87
+ } else setShowCapture(true);
88
+ } else {
89
+ if (images.length > 0) {
90
+ setShowCapture(true);
91
+ }
92
+ }
93
+ }, [images, props, showCapture]);
94
+ const captureImage = useCallback(async () => {
95
+ if (!showCapture) {
96
+ showToast(`Max Image Limit reached`);
97
+ return;
98
+ }
99
+
100
+ let imageDataResponse = await CaptureUtils.captureImage(props.resolution.breadth, props.resolution.length, props.fileSizeLimit);
101
+
102
+ if (imageDataResponse != null) {
103
+ setImages(prevState => {
104
+ return [...prevState, {
105
+ id: CaptureUtils.getImagesFileName(),
106
+ // @ts-ignore
107
+ path: imageDataResponse.uri,
108
+ url: '',
109
+ timestamp: Date.now()
110
+ }];
111
+ });
112
+ }
113
+ }, [props, showCapture]);
114
+
115
+ const deleteImage = async imageData => {
116
+ try {
117
+ let filteredImages = await CaptureUtils.deleteImage(imageData, images);
118
+ setImages(filteredImages);
119
+ } catch (err) {
120
+ console.log(err);
121
+ }
122
+ };
123
+
124
+ const renderItem = _ref2 => {
125
+ let {
126
+ item
127
+ } = _ref2;
128
+ return /*#__PURE__*/React.createElement(ImageItem, {
129
+ item: item,
130
+ onPress: async () => {
131
+ await deleteImage(item);
132
+ }
133
+ });
134
+ };
135
+
136
+ return /*#__PURE__*/React.createElement(View, {
137
+ style: CommonStyles.mainContainer
138
+ }, props.message && /*#__PURE__*/React.createElement(View, {
139
+ style: styles.etMessageView
140
+ }, /*#__PURE__*/React.createElement(Text, {
141
+ style: styles.etMessage
142
+ }, props.message)), /*#__PURE__*/React.createElement(View, {
143
+ style: styles.imageEtContainer
144
+ }, images.length === 0 && /*#__PURE__*/React.createElement(Icon, {
145
+ name: 'photo-camera',
146
+ size: 24,
147
+ color: '#666666'
148
+ }), images.length > 0 && /*#__PURE__*/React.createElement(FlatList, {
149
+ horizontal: true,
150
+ data: images,
151
+ renderItem: renderItem,
152
+ keyExtractor: item => item.id
153
+ }), /*#__PURE__*/React.createElement(Button, {
154
+ onPress: () => captureImage(),
155
+ uppercase: false,
156
+ labelStyle: [{
157
+ fontFamily: Fonts.IBMPlexSans_400Regular,
158
+ fontStyle: 'normal',
159
+ fontWeight: 'normal',
160
+ fontSize: 14,
161
+ alignItems: 'center',
162
+ textAlign: 'center',
163
+ letterSpacing: 0.25,
164
+ color: SdkColors[ColorTheme.LIGHT].primaryButton
165
+ }]
166
+ }, images.length > 0 ? 'Click more' : 'Click Picture')), /*#__PURE__*/React.createElement(View, {
167
+ style: [CommonStyles.bottom, {
168
+ marginStart: 10,
169
+ marginEnd: 10
170
+ }]
171
+ }, /*#__PURE__*/React.createElement(Button, {
172
+ disabled: disableProceed,
173
+ style: CommonStyles.nextButton,
174
+ mode: "contained",
175
+ labelStyle: CommonStyles.nextButtonLabel,
176
+ onPress: async () => {
177
+ await handleSubmit();
178
+ }
179
+ }, "Proceed"), /*#__PURE__*/React.createElement(Button, {
180
+ style: [CommonStyles.cancelButton, {
181
+ marginTop: 10
182
+ }],
183
+ mode: "outlined",
184
+ labelStyle: CommonStyles.cancelButtonLabel,
185
+ onPress: async () => {
186
+ props.onSubmitET({ ...(await getBaseETResponse(EntityCode.IMAGE_CAPTURE, false, getEventCodeByET(ExecutionTaskID.IMAGE_CAPTURE, false), ''))
187
+ });
188
+ }
189
+ }, "Cancel")));
190
+ };
191
+
192
+ const styles = StyleSheet.create({
193
+ imageEtContainer: {
194
+ display: 'flex',
195
+ marginStart: 16,
196
+ marginEnd: 16,
197
+ borderWidth: 1,
198
+ borderColor: 'rgba(0, 0, 0, 0.1)',
199
+ padding: 10,
200
+ marginTop: 15,
201
+ borderStyle: 'dashed',
202
+ backgroundColor: '#FFFFFF',
203
+ alignItems: 'center',
204
+ justifyContent: 'center',
205
+ height: 300
206
+ },
207
+ image: {
208
+ height: 250,
209
+ width: 200
210
+ },
211
+ etMessage: {
212
+ textAlign: 'center',
213
+ fontStyle: 'normal',
214
+ fontWeight: '600',
215
+ fontSize: 18,
216
+ display: 'flex',
217
+ alignItems: 'center',
218
+ letterSpacing: 0.25,
219
+ color: '#000000',
220
+ fontFamily: Fonts.IBMPlexSans_600SemiBold
221
+ },
222
+ etMessageView: {
223
+ marginTop: 14,
224
+ paddingStart: 40,
225
+ paddingEnd: 40,
226
+ paddingTop: 15,
227
+ paddingBottom: 15,
228
+ backgroundColor: '#ffffff'
229
+ }
230
+ });
231
+ export default ImageCapture;
232
+ //# sourceMappingURL=ImageCapture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useEffect","useState","FlatList","Image","StyleSheet","Text","View","CaptureUtils","getCaptureOutput","Button","showToast","SdkColors","ColorTheme","Icon","CommonStyles","Fonts","getBaseETResponse","EntityCode","ExecutionTaskID","getEventCodeByET","ImageItem","item","onPress","marginEnd","uri","path","styles","image","position","right","top","ImageCapture","props","images","setImages","showCapture","setShowCapture","disableProceed","setDisableProceed","handleSubmit","captureMode","length","onSubmitET","captureCountLimit","getMaxImagesCount","error","message","captureImage","imageDataResponse","resolution","breadth","fileSizeLimit","prevState","id","getImagesFileName","url","timestamp","Date","now","deleteImage","imageData","filteredImages","err","console","log","renderItem","mainContainer","etMessageView","etMessage","imageEtContainer","fontFamily","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","alignItems","textAlign","letterSpacing","color","LIGHT","primaryButton","bottom","marginStart","nextButton","nextButtonLabel","cancelButton","marginTop","cancelButtonLabel","IMAGE_CAPTURE","create","display","borderWidth","borderColor","padding","borderStyle","backgroundColor","justifyContent","height","width","IBMPlexSans_600SemiBold","paddingStart","paddingEnd","paddingTop","paddingBottom"],"sources":["ImageCapture.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from 'react';\nimport { FlatList, Image, StyleSheet, Text, View } from 'react-native';\nimport type { CaptureInput, ImageData } from './CaptureSchema';\nimport * as CaptureUtils from './CaptureUtils';\nimport { getCaptureOutput } from './CaptureUtils';\nimport { Button } from 'react-native-paper';\nimport { showToast } from '../../widgets/Toaster';\nimport SdkColors, { ColorTheme } from '../../../styles/SdkColors';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport {\n CommonStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\n\nconst ImageItem = ({ item, onPress }: { item: ImageData; onPress: any }) => (\n <View style={{ marginEnd: 8 }}>\n <Image source={{ uri: item.path }} style={styles.image} />\n <Icon\n onPress={onPress}\n name=\"highlight-remove\"\n color={'red'}\n size={32}\n style={{\n position: 'absolute',\n right: 5,\n top: 5,\n }}\n />\n </View>\n);\n\nconst ImageCapture = (props: CaptureInput) => {\n const [images, setImages] = useState<Array<ImageData>>([]);\n const [showCapture, setShowCapture] = useState(true);\n const [disableProceed, setDisableProceed] = useState(false);\n\n const handleSubmit = async () => {\n try {\n setDisableProceed(true);\n if (props.captureMode === 'SINGLE') {\n if (images.length > 0) {\n props.onSubmitET(await getCaptureOutput(images, props));\n } else {\n showToast('No Images captured');\n }\n } else {\n if (props.captureCountLimit && props.captureCountLimit > 0) {\n if (images.length === CaptureUtils.getMaxImagesCount(props)) {\n props.onSubmitET(await getCaptureOutput(images, props));\n } else {\n showToast(`${props.captureCountLimit - images.length} Images left`);\n }\n } else {\n if (images.length > 0) {\n props.onSubmitET(await getCaptureOutput(images, props));\n } else {\n showToast('No Images captured');\n }\n }\n }\n } catch (error: any) {\n setDisableProceed(false);\n showToast(error.message);\n } finally {\n setDisableProceed(false);\n }\n };\n\n useEffect(() => {\n if (props.captureMode === 'SINGLE') {\n if (images.length > 0) {\n setShowCapture(false);\n } else setShowCapture(true);\n } else if (\n props.captureMode === 'MULTI' &&\n props.captureCountLimit &&\n props.captureCountLimit > 0\n ) {\n if (images.length === CaptureUtils.getMaxImagesCount(props)) {\n setShowCapture(false);\n } else setShowCapture(true);\n } else {\n if (images.length > 0) {\n setShowCapture(true);\n }\n }\n }, [images, props, showCapture]);\n\n const captureImage = useCallback(async () => {\n if (!showCapture) {\n showToast(`Max Image Limit reached`);\n return;\n }\n let imageDataResponse = await CaptureUtils.captureImage(\n props.resolution.breadth,\n props.resolution.length,\n props.fileSizeLimit\n );\n if (imageDataResponse != null) {\n setImages((prevState) => {\n return [\n ...prevState,\n {\n id: CaptureUtils.getImagesFileName(), // @ts-ignore\n path: imageDataResponse.uri,\n url: '',\n timestamp: Date.now(),\n },\n ];\n });\n }\n }, [props, showCapture]);\n\n const deleteImage = async (imageData: ImageData) => {\n try {\n let filteredImages = await CaptureUtils.deleteImage(imageData, images);\n setImages(filteredImages);\n } catch (err) {\n console.log(err);\n }\n };\n\n const renderItem = ({ item }: { item: ImageData }) => {\n return (\n <ImageItem\n item={item}\n onPress={async () => {\n await deleteImage(item);\n }}\n />\n );\n };\n return (\n <View style={CommonStyles.mainContainer}>\n {props.message && (\n <View style={styles.etMessageView}>\n <Text style={styles.etMessage}>{props.message}</Text>\n </View>\n )}\n <View style={styles.imageEtContainer}>\n {images.length === 0 && (\n <Icon name={'photo-camera'} size={24} color={'#666666'} />\n )}\n {images.length > 0 && (\n <FlatList\n horizontal\n data={images}\n renderItem={renderItem}\n keyExtractor={(item) => item.id}\n />\n )}\n <Button\n onPress={() => captureImage()}\n uppercase={false}\n labelStyle={[\n {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontSize: 14,\n alignItems: 'center',\n textAlign: 'center',\n letterSpacing: 0.25,\n color: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n ]}\n >\n {images.length > 0 ? 'Click more' : 'Click Picture'}\n </Button>\n </View>\n <View style={[CommonStyles.bottom, { marginStart: 10, marginEnd: 10 }]}>\n <Button\n disabled={disableProceed}\n style={CommonStyles.nextButton}\n mode=\"contained\"\n labelStyle={CommonStyles.nextButtonLabel}\n onPress={async () => {\n await handleSubmit();\n }}\n >\n Proceed\n </Button>\n <Button\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.IMAGE_CAPTURE,\n false,\n getEventCodeByET(ExecutionTaskID.IMAGE_CAPTURE, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n imageEtContainer: {\n display: 'flex',\n marginStart: 16,\n marginEnd: 16,\n borderWidth: 1,\n borderColor: 'rgba(0, 0, 0, 0.1)',\n padding: 10,\n marginTop: 15,\n borderStyle: 'dashed',\n backgroundColor: '#FFFFFF',\n alignItems: 'center',\n justifyContent: 'center',\n height: 300,\n },\n image: {\n height: 250,\n width: 200,\n },\n etMessage: {\n textAlign: 'center',\n fontStyle: 'normal',\n fontWeight: '600',\n fontSize: 18,\n display: 'flex',\n alignItems: 'center',\n letterSpacing: 0.25,\n color: '#000000',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n etMessageView: {\n marginTop: 14,\n paddingStart: 40,\n paddingEnd: 40,\n paddingTop: 15,\n paddingBottom: 15,\n backgroundColor: '#ffffff',\n },\n});\n\nexport default ImageCapture;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,WAAhB,EAA6BC,SAA7B,EAAwCC,QAAxC,QAAwD,OAAxD;AACA,SAASC,QAAT,EAAmBC,KAAnB,EAA0BC,UAA1B,EAAsCC,IAAtC,EAA4CC,IAA5C,QAAwD,cAAxD;AAEA,OAAO,KAAKC,YAAZ,MAA8B,gBAA9B;AACA,SAASC,gBAAT,QAAiC,gBAAjC;AACA,SAASC,MAAT,QAAuB,oBAAvB;AACA,SAASC,SAAT,QAA0B,uBAA1B;AACA,OAAOC,SAAP,IAAoBC,UAApB,QAAsC,2BAAtC;AACA,OAAOC,IAAP,MAAiB,yCAAjB;AACA,SACEC,YADF,EAEEC,KAFF,QAGO,6CAHP;AAIA,SAASC,iBAAT,QAA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K,EAAE;IACLsE,MAAM,EAAE,GADH;IAELC,KAAK,EAAE;EAFF,CAfwB;EAmB/B9B,SAAS,EAAE;IACTQ,SAAS,EAAE,QADF;IAETJ,SAAS,EAAE,QAFF;IAGTC,UAAU,EAAE,KAHH;IAITC,QAAQ,EAAE,EAJD;IAKTgB,OAAO,EAAE,MALA;IAMTf,UAAU,EAAE,QANH;IAOTE,aAAa,EAAE,IAPN;IAQTC,KAAK,EAAE,SARE;IASTR,UAAU,EAAEvD,KAAK,CAACoF;EATT,CAnBoB;EA8B/BhC,aAAa,EAAE;IACbmB,SAAS,EAAE,EADE;IAEbc,YAAY,EAAE,EAFD;IAGbC,UAAU,EAAE,EAHC;IAIbC,UAAU,EAAE,EAJC;IAKbC,aAAa,EAAE,EALF;IAMbR,eAAe,EAAE;EANJ;AA9BgB,CAAlB,CAAf;AAwCA,eAAehE,YAAf"}
@@ -0,0 +1,80 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { Fonts } from '../../../styles/executionTasks/CommonStyles';
3
+ export const PaymentStyles = StyleSheet.create({
4
+ amountStyle: {
5
+ fontSize: 18,
6
+ fontWeight: '600',
7
+ fontStyle: 'normal',
8
+ backgroundColor: 'white',
9
+ textAlign: 'center',
10
+ alignItems: 'center',
11
+ paddingTop: 25,
12
+ paddingBottom: 25,
13
+ fontFamily: Fonts.IBMPlexSans_600SemiBold
14
+ },
15
+ messageStyle: {
16
+ fontFamily: Fonts.IBMPlexSans_400Regular,
17
+ backgroundColor: '#FFFFFF',
18
+ color: '#111111',
19
+ padding: 20,
20
+ fontStyle: 'normal',
21
+ fontWeight: 'normal',
22
+ fontSize: 14
23
+ },
24
+ textStyle1: {
25
+ fontFamily: Fonts.IBMPlexSans_400Regular,
26
+ marginTop: 20,
27
+ marginStart: 20,
28
+ marginEnd: 20,
29
+ color: '#9D9D9D',
30
+ fontStyle: 'normal',
31
+ fontWeight: 'normal',
32
+ fontSize: 14
33
+ },
34
+ reasonTextStyle: {
35
+ flex: 1,
36
+ flexWrap: 'wrap',
37
+ fontFamily: Fonts.IBMPlexSans_400Regular,
38
+ fontStyle: 'normal',
39
+ fontSize: 14,
40
+ lineHeight: 21,
41
+ letterSpacing: 0.25,
42
+ textAlign: 'justify',
43
+ color: '#111111'
44
+ },
45
+ reasonItemStyle: {
46
+ flexDirection: 'row',
47
+ paddingTop: 10,
48
+ paddingStart: 20,
49
+ paddingEnd: 20,
50
+ backgroundColor: 'white'
51
+ },
52
+ heading: {
53
+ marginTop: 30,
54
+ marginStart: 25,
55
+ fontSize: 14,
56
+ lineHeight: 21,
57
+ letterSpacing: 0.25,
58
+ fontFamily: 'IBMPlexSans_400Regular',
59
+ color: '#9D9D9D'
60
+ },
61
+ item: {
62
+ margin: 10,
63
+ padding: 15,
64
+ borderWidth: 0.2
65
+ },
66
+ btn: {
67
+ width: 240,
68
+ borderRadius: 4,
69
+ backgroundColor: '#62d1bc',
70
+ paddingHorizontal: 24,
71
+ paddingVertical: 12,
72
+ marginVertical: 8
73
+ },
74
+ loader: {
75
+ flex: 1,
76
+ justifyContent: 'center',
77
+ alignItems: 'center'
78
+ }
79
+ });
80
+ //# sourceMappingURL=PaymentStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","Fonts","PaymentStyles","create","amountStyle","fontSize","fontWeight","fontStyle","backgroundColor","textAlign","alignItems","paddingTop","paddingBottom","fontFamily","IBMPlexSans_600SemiBold","messageStyle","IBMPlexSans_400Regular","color","padding","textStyle1","marginTop","marginStart","marginEnd","reasonTextStyle","flex","flexWrap","lineHeight","letterSpacing","reasonItemStyle","flexDirection","paddingStart","paddingEnd","heading","item","margin","borderWidth","btn","width","borderRadius","paddingHorizontal","paddingVertical","marginVertical","loader","justifyContent"],"sources":["PaymentStyles.ts"],"sourcesContent":["import { StyleSheet } from 'react-native';\nimport { Fonts } from '../../../styles/executionTasks/CommonStyles';\n\nexport const PaymentStyles = StyleSheet.create({\n amountStyle: {\n fontSize: 18,\n fontWeight: '600',\n fontStyle: 'normal',\n backgroundColor: 'white',\n textAlign: 'center',\n alignItems: 'center',\n paddingTop: 25,\n paddingBottom: 25,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n messageStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n backgroundColor: '#FFFFFF',\n color: '#111111',\n padding: 20,\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontSize: 14,\n },\n textStyle1: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n marginTop: 20,\n marginStart: 20,\n marginEnd: 20,\n color: '#9D9D9D',\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontSize: 14,\n },\n reasonTextStyle: {\n flex: 1,\n flexWrap: 'wrap',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 21,\n letterSpacing: 0.25,\n textAlign: 'justify',\n color: '#111111',\n },\n\n reasonItemStyle: {\n flexDirection: 'row',\n paddingTop: 10,\n paddingStart: 20,\n paddingEnd: 20,\n backgroundColor: 'white',\n },\n heading: {\n marginTop: 30,\n marginStart: 25,\n fontSize: 14,\n lineHeight: 21,\n letterSpacing: 0.25,\n fontFamily: 'IBMPlexSans_400Regular',\n color: '#9D9D9D',\n },\n item: {\n margin: 10,\n padding: 15,\n borderWidth: 0.2,\n },\n btn: {\n width: 240,\n borderRadius: 4,\n backgroundColor: '#62d1bc',\n paddingHorizontal: 24,\n paddingVertical: 12,\n marginVertical: 8,\n },\n\n loader: { flex: 1, justifyContent: 'center', alignItems: 'center' },\n});\n"],"mappings":"AAAA,SAASA,UAAT,QAA2B,cAA3B;AACA,SAASC,KAAT,QAAsB,6CAAtB;AAEA,OAAO,MAAMC,aAAa,GAAGF,UAAU,CAACG,MAAX,CAAkB;EAC7CC,WAAW,EAAE;IACXC,QAAQ,EAAE,EADC;IAEXC,UAAU,EAAE,KAFD;IAGXC,SAAS,EAAE,QAHA;IAIXC,eAAe,EAAE,OAJN;IAKXC,SAAS,EAAE,Q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IAAI,EAAE;IACJC,MAAM,EAAE,EADJ;IAEJhB,OAAO,EAAE,EAFL;IAGJiB,WAAW,EAAE;EAHT,CA3DuC;EAgE7CC,GAAG,EAAE;IACHC,KAAK,EAAE,GADJ;IAEHC,YAAY,EAAE,CAFX;IAGH9B,eAAe,EAAE,SAHd;IAIH+B,iBAAiB,EAAE,EAJhB;IAKHC,eAAe,EAAE,EALd;IAMHC,cAAc,EAAE;EANb,CAhEwC;EAyE7CC,MAAM,EAAE;IAAElB,IAAI,EAAE,CAAR;IAAWmB,cAAc,EAAE,QAA3B;IAAqCjC,UAAU,EAAE;EAAjD;AAzEqC,CAAlB,CAAtB"}
@@ -0,0 +1,8 @@
1
+ export function getUniqueTransactionID(amt) {
2
+ return `TID${Date.now().toString() + amt.toString()}`;
3
+ }
4
+ export function getPaymentValue(amt, minorUnit) {
5
+ if (!minorUnit) return amt;
6
+ return amt / Math.pow(10, minorUnit);
7
+ }
8
+ //# sourceMappingURL=PaymentUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getUniqueTransactionID","amt","Date","now","toString","getPaymentValue","minorUnit","Math","pow"],"sources":["PaymentUtils.ts"],"sourcesContent":["export function getUniqueTransactionID(amt: number): string {\n return `TID${Date.now().toString() + amt.toString()}`;\n}\nexport function getPaymentValue(amt: number, minorUnit?: number): number {\n if (!minorUnit) return amt;\n return amt / Math.pow(10, minorUnit);\n}\n"],"mappings":"AAAA,OAAO,SAASA,sBAAT,CAAgCC,GAAhC,EAAqD;EAC1D,OAAQ,MAAKC,IAAI,CAACC,GAAL,GAAWC,QAAX,KAAwBH,GAAG,CAACG,QAAJ,EAAe,EAApD;AACD;AACD,OAAO,SAASC,eAAT,CAAyBJ,GAAzB,EAAsCK,SAAtC,EAAkE;EACvE,IAAI,CAACA,SAAL,EAAgB,OAAOL,GAAP;EAChB,OAAOA,GAAG,GAAGM,IAAI,CAACC,GAAL,CAAS,EAAT,EAAaF,SAAb,CAAb;AACD"}
@@ -0,0 +1,90 @@
1
+ import React, { useState } from 'react';
2
+ import { getBaseETResponse } from '../../../../utils/ExecTaskUtils';
3
+ import { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';
4
+ import { EntityCode, ExecutionTaskID } from '../../../../models/execTasks/ETConfig';
5
+ import { Button, Modal, Paragraph, Portal, Provider, Text, Title } from 'react-native-paper';
6
+ import { StyleSheet, View } from 'react-native';
7
+ import { CommonStyles, DeliverPickupStyles, Fonts } from '../../../../styles/executionTasks/CommonStyles';
8
+ import { getPaymentValue } from '../PaymentUtils';
9
+ import { PaymentStyles } from '../PaymentStyles';
10
+
11
+ const CompletePaymentET = etProps => {
12
+ const [disableProceed, setDisableProceed] = useState(false);
13
+ return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(View, {
14
+ style: DeliverPickupStyles.mainContainer
15
+ }, /*#__PURE__*/React.createElement(Modal, {
16
+ dismissable: false,
17
+ visible: true,
18
+ contentContainerStyle: DeliverPickupStyles.modalContent
19
+ }, /*#__PURE__*/React.createElement(View, {
20
+ style: DeliverPickupStyles.modalView
21
+ }, /*#__PURE__*/React.createElement(Title, {
22
+ style: [styles.title, {
23
+ color: 'grey'
24
+ }]
25
+ }, etProps.title), /*#__PURE__*/React.createElement(Paragraph, {
26
+ style: PaymentStyles.amountStyle
27
+ }, etProps.expectedAmount.currencyCode + ' ' + getPaymentValue(etProps.expectedAmount.value, etProps.expectedAmount.minorUnit).toLocaleString()), etProps.message && /*#__PURE__*/React.createElement(Text, {
28
+ style: styles.message1
29
+ }, etProps.message), /*#__PURE__*/React.createElement(Button, {
30
+ disabled: disableProceed,
31
+ mode: 'contained',
32
+ uppercase: false,
33
+ labelStyle: CommonStyles.nextButtonLabel,
34
+ style: [CommonStyles.nextButton, {
35
+ marginTop: 20
36
+ }],
37
+ onPress: async () => {
38
+ let etOutput = {
39
+ paymentMode: etProps.paymentMode,
40
+ collectedAmount: etProps.collectedAmount,
41
+ tenantTransactionId: etProps.tenantTransactionId,
42
+ // todo Hardcoded for SL Release and is only for CASH Payment Type
43
+ ...(await getBaseETResponse(EntityCode.COMPLETE_PAYMENT, true, getEventCodeByET(ExecutionTaskID.COMPLETE_PAYMENT, true), ''))
44
+ };
45
+ setDisableProceed(true);
46
+ etProps.onSubmitET(etOutput);
47
+ }
48
+ }, "Continue"), /*#__PURE__*/React.createElement(Button, {
49
+ labelStyle: CommonStyles.cancelButtonLabel,
50
+ style: [CommonStyles.cancelButton, {
51
+ marginTop: 10
52
+ }],
53
+ mode: 'outlined',
54
+ onPress: async () => {
55
+ let etOutput = {
56
+ paymentMode: etProps.paymentMode,
57
+ collectedAmount: etProps.collectedAmount,
58
+ tenantTransactionId: etProps.tenantTransactionId,
59
+ // todo Hardcoded for SL Release and is only for CASH Payment Type
60
+ ...(await getBaseETResponse(EntityCode.COMPLETE_PAYMENT, false, getEventCodeByET(ExecutionTaskID.COMPLETE_PAYMENT, false), ''))
61
+ };
62
+ setDisableProceed(true);
63
+ etProps.onSubmitET(etOutput);
64
+ }
65
+ }, "Cancel"))))));
66
+ };
67
+
68
+ export default CompletePaymentET;
69
+ const styles = StyleSheet.create({
70
+ title: {
71
+ fontSize: 18,
72
+ fontStyle: 'normal',
73
+ fontWeight: '600',
74
+ lineHeight: 28,
75
+ textAlign: 'center',
76
+ color: '#111111',
77
+ fontFamily: Fonts.IBMPlexSans_600SemiBold
78
+ },
79
+ message1: {
80
+ fontStyle: 'normal',
81
+ fontWeight: 'normal',
82
+ fontSize: 12,
83
+ lineHeight: 20,
84
+ textAlign: 'center',
85
+ color: '#111111',
86
+ marginTop: 12,
87
+ fontFamily: Fonts.IBMPlexSans_400Regular
88
+ }
89
+ });
90
+ //# sourceMappingURL=CompletePaymentET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","Button","Modal","Paragraph","Portal","Provider","Text","Title","StyleSheet","View","CommonStyles","DeliverPickupStyles","Fonts","getPaymentValue","PaymentStyles","CompletePaymentET","etProps","disableProceed","setDisableProceed","mainContainer","modalContent","modalView","styles","title","color","amountStyle","expectedAmount","currencyCode","value","minorUnit","toLocaleString","message","message1","nextButtonLabel","nextButton","marginTop","etOutput","paymentMode","collectedAmount","tenantTransactionId","COMPLETE_PAYMENT","onSubmitET","cancelButtonLabel","cancelButton","create","fontSize","fontStyle","fontWeight","lineHeight","textAlign","fontFamily","IBMPlexSans_600SemiBold","IBMPlexSans_400Regular"],"sources":["CompletePaymentET.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport type {\n CompletePaymentInput,\n CompletePaymentOutput,\n} from './CompletePaymentSchema';\nimport { getBaseETResponse } from '../../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../../models/execTasks/ETConfig';\nimport {\n Button,\n Modal,\n Paragraph,\n Portal,\n Provider,\n Text,\n Title,\n} from 'react-native-paper';\nimport { StyleSheet, View } from 'react-native';\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../../styles/executionTasks/CommonStyles';\nimport { getPaymentValue } from '../PaymentUtils';\nimport { PaymentStyles } from '../PaymentStyles';\n\nconst CompletePaymentET = (etProps: CompletePaymentInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n dismissable={false}\n visible={true}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Title style={[styles.title, { color: 'grey' }]}>\n {etProps.title}\n </Title>\n <Paragraph style={PaymentStyles.amountStyle}>\n {etProps.expectedAmount.currencyCode +\n ' ' +\n getPaymentValue(\n etProps.expectedAmount.value,\n etProps.expectedAmount.minorUnit\n ).toLocaleString()}\n </Paragraph>\n {etProps.message && (\n <Text style={styles.message1}>{etProps.message}</Text>\n )}\n <Button\n disabled={disableProceed}\n mode={'contained'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[\n CommonStyles.nextButton,\n {\n marginTop: 20,\n },\n ]}\n onPress={async () => {\n let etOutput: CompletePaymentOutput = {\n paymentMode: etProps.paymentMode,\n collectedAmount: etProps.collectedAmount,\n tenantTransactionId: etProps.tenantTransactionId, // todo Hardcoded for SL Release and is only for CASH Payment Type\n ...(await getBaseETResponse(\n EntityCode.COMPLETE_PAYMENT,\n true,\n getEventCodeByET(ExecutionTaskID.COMPLETE_PAYMENT, true),\n ''\n )),\n };\n setDisableProceed(true);\n etProps.onSubmitET(etOutput);\n }}\n >\n Continue\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n onPress={async () => {\n let etOutput: CompletePaymentOutput = {\n paymentMode: etProps.paymentMode,\n collectedAmount: etProps.collectedAmount,\n tenantTransactionId: etProps.tenantTransactionId, // todo Hardcoded for SL Release and is only for CASH Payment Type\n ...(await getBaseETResponse(\n EntityCode.COMPLETE_PAYMENT,\n false,\n getEventCodeByET(ExecutionTaskID.COMPLETE_PAYMENT, false),\n ''\n )),\n };\n setDisableProceed(true);\n etProps.onSubmitET(etOutput);\n }}\n >\n Cancel\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\nexport default CompletePaymentET;\n\nconst styles = StyleSheet.create({\n title: {\n fontSize: 18,\n fontStyle: 'normal',\n fontWeight: '600',\n lineHeight: 28,\n textAlign: 'center',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n message1: {\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontSize: 12,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n marginTop: 12,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n },\n});\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC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AiB,CAAC,IAAD,CAAjB;MACAF,OAAO,CAACyB,UAAR,CAAmBL,QAAnB;IACD;EAlBH,YA5CF,CALF,CADF,CADF,CADF,CADF;AAiFD,CAnFD;;AAoFA,eAAerB,iBAAf;AAEA,MAAMO,MAAM,GAAGd,UAAU,CAACoC,MAAX,CAAkB;EAC/BrB,KAAK,EAAE;IACLsB,QAAQ,EAAE,EADL;IAELC,SAAS,EAAE,QAFN;IAGLC,UAAU,EAAE,KAHP;IAILC,UAAU,EAAE,EAJP;IAKLC,SAAS,EAAE,QALN;IAMLzB,KAAK,EAAE,SANF;IAOL0B,UAAU,EAAEtC,KAAK,CAACuC;EAPb,CADwB;EAU/BnB,QAAQ,EAAE;IACRc,SAAS,EAAE,QADH;IAERC,UAAU,EAAE,QAFJ;IAGRF,QAAQ,EAAE,EAHF;IAIRG,UAAU,EAAE,EAJJ;IAKRC,SAAS,EAAE,QALH;IAMRzB,KAAK,EAAE,SANC;IAORW,SAAS,EAAE,EAPH;IAQRe,UAAU,EAAEtC,KAAK,CAACwC;EARV;AAVqB,CAAlB,CAAf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CompletePaymentSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["CompletePaymentSchema.ts"],"sourcesContent":["/**\n * Amount\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../../models/execTasks/ETBaseModels';\nimport type { ETAmount } from '../init/InitPaymentSchema';\n\nexport type CompletePaymentInput = BaseETRequest & {\n paymentMode: string;\n expectedAmount: ETAmount;\n collectedAmount: ETAmount;\n transactionId: string;\n tenantTransactionId: string; //todo Hardcode this value for SL ReleaseD\n onSubmitET: (etOut: CompletePaymentOutput) => void;\n};\n\nexport type CompletePaymentOutput = BaseETResponse & {\n tenantTransactionId: string; // must be equal to transaction ID for SL release\n paymentMode: string;\n collectedAmount: ETAmount;\n};\n"],"mappings":""}
@@ -0,0 +1,116 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { FlatList, Text, View } from 'react-native';
3
+ import { Button, RadioButton } from 'react-native-paper';
4
+ import { isEmptyOrBlank } from '../../../../utils/utils';
5
+ import { getPaymentValue, getUniqueTransactionID } from '../PaymentUtils';
6
+ import { getBaseETResponse } from '../../../../utils/ExecTaskUtils';
7
+ import { EntityCode, ExecutionTaskID } from '../../../../models/execTasks/ETConfig';
8
+ import { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';
9
+ import { PaymentStyles } from '../PaymentStyles';
10
+ import { CommonStyles } from '../../../../styles/executionTasks/CommonStyles';
11
+ import { showToast } from '../../../widgets/Toaster';
12
+ const styles = PaymentStyles;
13
+
14
+ const footerMessage = message => {
15
+ if (message) return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
16
+ style: styles.textStyle1
17
+ }, "MESSAGE"), /*#__PURE__*/React.createElement(Text, {
18
+ style: styles.messageStyle
19
+ }, message));else return null;
20
+ };
21
+
22
+ const InitPaymentET = props => {
23
+ const [paymentMode, setPaymentMode] = useState('');
24
+ const [disableNext, setDisableNext] = useState(false);
25
+ useEffect(() => {
26
+ if (props.allowedModes && props.allowedModes.length === 1) {
27
+ setPaymentMode(props.allowedModes[0]);
28
+ }
29
+ }, [props.allowedModes]);
30
+
31
+ const renderItem = _ref => {
32
+ let {
33
+ item
34
+ } = _ref;
35
+ return /*#__PURE__*/React.createElement(View, {
36
+ style: styles.reasonItemStyle
37
+ }, /*#__PURE__*/React.createElement(RadioButton, {
38
+ color: '#5B80F7',
39
+ value: item,
40
+ status: paymentMode === item ? 'checked' : 'unchecked',
41
+ onPress: () => {
42
+ setPaymentMode(item);
43
+ }
44
+ }), /*#__PURE__*/React.createElement(Text, {
45
+ style: styles.reasonTextStyle,
46
+ onPress: () => {
47
+ setPaymentMode(item);
48
+ }
49
+ }, item));
50
+ };
51
+
52
+ return /*#__PURE__*/React.createElement(View, {
53
+ style: CommonStyles.mainContainer
54
+ }, /*#__PURE__*/React.createElement(Text, {
55
+ style: styles.textStyle1
56
+ }, "AMOUNT"), /*#__PURE__*/React.createElement(Text, {
57
+ style: styles.amountStyle
58
+ }, props.amount.currencyCode + ' ' + getPaymentValue(props.amount.value, props.amount.minorUnit).toLocaleString()), /*#__PURE__*/React.createElement(Text, {
59
+ style: styles.textStyle1
60
+ }, "OPTIONS TO COLLECT PAYMENT"), /*#__PURE__*/React.createElement(View, {
61
+ style: {
62
+ flex: 1
63
+ }
64
+ }, /*#__PURE__*/React.createElement(FlatList, {
65
+ data: props.allowedModes,
66
+ renderItem: renderItem,
67
+ keyExtractor: item => item,
68
+ ListFooterComponent: footerMessage(props.message)
69
+ })), /*#__PURE__*/React.createElement(View, {
70
+ style: {
71
+ justifyContent: 'flex-end',
72
+ marginBottom: 10
73
+ }
74
+ }, /*#__PURE__*/React.createElement(View, {
75
+ style: {
76
+ flexDirection: 'row',
77
+ marginStart: 10,
78
+ marginEnd: 10
79
+ }
80
+ }, /*#__PURE__*/React.createElement(Button, {
81
+ style: [CommonStyles.cancelButton, {
82
+ marginEnd: 5,
83
+ flex: 1
84
+ }],
85
+ labelStyle: CommonStyles.cancelButtonLabel,
86
+ mode: 'outlined',
87
+ onPress: async () => {
88
+ props.onSubmitET({
89
+ paymentMode: paymentMode,
90
+ transactionId: getUniqueTransactionID(props.amount.value),
91
+ ...(await getBaseETResponse(EntityCode.INIT_PAYMENT, false, getEventCodeByET(ExecutionTaskID.INIT_PAYMENT, false), ''))
92
+ });
93
+ }
94
+ }, "Cancel"), /*#__PURE__*/React.createElement(Button, {
95
+ disabled: disableNext,
96
+ style: [CommonStyles.nextButton, {
97
+ flex: 1,
98
+ marginStart: 5
99
+ }],
100
+ labelStyle: CommonStyles.nextButtonLabel,
101
+ mode: 'contained',
102
+ onPress: async () => {
103
+ if (!isEmptyOrBlank(paymentMode)) {
104
+ setDisableNext(true);
105
+ props.onSubmitET({
106
+ paymentMode: paymentMode,
107
+ transactionId: getUniqueTransactionID(props.amount.value),
108
+ ...(await getBaseETResponse(EntityCode.INIT_PAYMENT, true, getEventCodeByET(ExecutionTaskID.INIT_PAYMENT, true), ''))
109
+ });
110
+ } else showToast('No payment mode selected');
111
+ }
112
+ }, "Collect"))));
113
+ };
114
+
115
+ export default InitPaymentET;
116
+ //# sourceMappingURL=InitPaymentET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","FlatList","Text","View","Button","RadioButton","isEmptyOrBlank","getPaymentValue","getUniqueTransactionID","getBaseETResponse","EntityCode","ExecutionTaskID","getEventCodeByET","PaymentStyles","CommonStyles","showToast","styles","footerMessage","message","textStyle1","messageStyle","InitPaymentET","props","paymentMode","setPaymentMode","disableNext","setDisableNext","allowedModes","length","renderItem","item","reasonItemStyle","reasonTextStyle","mainContainer","amountStyle","amount","currencyCode","value","minorUnit","toLocaleString","flex","justifyContent","marginBottom","flexDirection","marginStart","marginEnd","cancelButton","cancelButtonLabel","onSubmitET","transactionId","INIT_PAYMENT","nextButton","nextButtonLabel"],"sources":["InitPaymentET.tsx"],"sourcesContent":["import type { InitPaymentInput } from './InitPaymentSchema';\nimport React, { useEffect, useState } from 'react';\nimport { FlatList, Text, View } from 'react-native';\nimport { Button, RadioButton } from 'react-native-paper';\nimport { isEmptyOrBlank } from '../../../../utils/utils';\nimport { getPaymentValue, getUniqueTransactionID } from '../PaymentUtils';\nimport { getBaseETResponse } from '../../../../utils/ExecTaskUtils';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../../models/execTasks/ETConfig';\nimport { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport { PaymentStyles } from '../PaymentStyles';\nimport { CommonStyles } from '../../../../styles/executionTasks/CommonStyles';\nimport { showToast } from '../../../widgets/Toaster';\n\nconst styles = PaymentStyles;\n\nconst footerMessage = (message?: string) => {\n if (message)\n return (\n <View>\n <Text style={styles.textStyle1}>MESSAGE</Text>\n <Text style={styles.messageStyle}>{message}</Text>\n </View>\n );\n else return null;\n};\nconst InitPaymentET = (props: InitPaymentInput) => {\n const [paymentMode, setPaymentMode] = useState('');\n const [disableNext, setDisableNext] = useState(false);\n\n useEffect(() => {\n if (props.allowedModes && props.allowedModes.length === 1) {\n setPaymentMode(props.allowedModes[0]);\n }\n }, [props.allowedModes]);\n const renderItem = ({ item }: { item: string }) => {\n return (\n <View style={styles.reasonItemStyle}>\n <RadioButton\n color={'#5B80F7'}\n value={item}\n status={paymentMode === item ? 'checked' : 'unchecked'}\n onPress={() => {\n setPaymentMode(item);\n }}\n />\n <Text\n style={styles.reasonTextStyle}\n onPress={() => {\n setPaymentMode(item);\n }}\n >\n {item}\n </Text>\n </View>\n );\n };\n return (\n <View style={CommonStyles.mainContainer}>\n <Text style={styles.textStyle1}>AMOUNT</Text>\n <Text style={styles.amountStyle}>\n {props.amount.currencyCode +\n ' ' +\n getPaymentValue(\n props.amount.value,\n props.amount.minorUnit\n ).toLocaleString()}\n </Text>\n <Text style={styles.textStyle1}>OPTIONS TO COLLECT PAYMENT</Text>\n <View style={{ flex: 1 }}>\n <FlatList\n data={props.allowedModes}\n renderItem={renderItem}\n keyExtractor={(item) => item}\n ListFooterComponent={footerMessage(props.message)}\n />\n </View>\n <View style={{ justifyContent: 'flex-end', marginBottom: 10 }}>\n <View\n style={{\n flexDirection: 'row',\n marginStart: 10,\n marginEnd: 10,\n }}\n >\n <Button\n style={[\n CommonStyles.cancelButton,\n {\n marginEnd: 5,\n flex: 1,\n },\n ]}\n labelStyle={CommonStyles.cancelButtonLabel}\n mode={'outlined'}\n onPress={async () => {\n props.onSubmitET({\n paymentMode: paymentMode,\n transactionId: getUniqueTransactionID(props.amount.value),\n ...(await getBaseETResponse(\n EntityCode.INIT_PAYMENT,\n false,\n getEventCodeByET(ExecutionTaskID.INIT_PAYMENT, false),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={disableNext}\n style={[\n CommonStyles.nextButton,\n {\n flex: 1,\n marginStart: 5,\n },\n ]}\n labelStyle={CommonStyles.nextButtonLabel}\n mode={'contained'}\n onPress={async () => {\n if (!isEmptyOrBlank(paymentMode)) {\n setDisableNext(true);\n props.onSubmitET({\n paymentMode: paymentMode,\n transactionId: getUniqueTransactionID(props.amount.value),\n ...(await getBaseETResponse(\n EntityCode.INIT_PAYMENT,\n true,\n getEventCodeByET(ExecutionTaskID.INIT_PAYMENT, true),\n ''\n )),\n });\n } else showToast('No payment mode selected');\n }}\n >\n Collect\n </Button>\n </View>\n </View>\n </View>\n );\n};\nexport default InitPaymentET;\n"],"mappings":"AACA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,QAA3B,QAA2C,OAA3C;AACA,SAASC,QAAT,EAAmBC,IAAnB,EAAyBC,IAAzB,QAAqC,cAArC;AACA,SAASC,MAAT,EAAiBC,WAAjB,QAAoC,oBAApC;AACA,SAASC,cAAT,QAA+B,yBAA/B;AACA,SAASC,eAAT,EAA0BC,sBAA1B,QAAwD,iBAAxD;AACA,SAASC,iBAAT,QAAkC,iCAAlC;AACA,SACEC,UADF,EAEEC,eAFF,QAGO,uCAHP;AAIA,SAASC,gBAAT,QAAiC,sDAAjC;AACA,SAASC,aAAT,QAA8B,kBAA9B;AACA,SAASC,YAAT,QAA6B,gDAA7B;AACA,SAASC,SAAT,QAA0B,0BAA1B;AAEA,MAAMC,MAAM,GAAGH,aAAf;;AAEA,MAAMI,aAAa,GAAIC,OAAD,IAAsB;EAC1C,IAAIA,OAAJ,EACE,oBACE,oBAAC,IAAD,qBACE,oBAAC,IAAD;IAAM,KAAK,EAAEF,MAAM,CAACG;EAApB,aADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEH,MAAM,CAACI;EAApB,GAAmCF,OAAnC,CAFF,CADF,CADF,KAOK,OAAO,IAAP;AACN,CATD;;AAUA,MAAMG,aAAa,GAAIC,KAAD,IAA6B;EACjD,MAAM,CAACC,WAAD,EAAcC,cAAd,IAAgCxB,QAAQ,CAAC,EAAD,CAA9C;EACA,MAAM,CAACyB,WAAD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IAAI,CAAC9C,cAAc,CAACiB,WAAD,CAAnB,EAAkC;QAChCG,cAAc,CAAC,IAAD,CAAd;QACAJ,KAAK,CAAC0B,UAAN,CAAiB;UACfzB,WAAW,EAAEA,WADE;UAEf0B,aAAa,EAAEzC,sBAAsB,CAACc,KAAK,CAACa,MAAN,CAAaE,KAAd,CAFtB;UAGf,IAAI,MAAM5B,iBAAiB,CACzBC,UAAU,CAACwC,YADc,EAEzB,IAFyB,EAGzBtC,gBAAgB,CAACD,eAAe,CAACuC,YAAjB,EAA+B,IAA/B,CAHS,EAIzB,EAJyB,CAA3B;QAHe,CAAjB;MAUD,CAZD,MAYOnC,SAAS,CAAC,0BAAD,CAAT;IACR;EAzBH,aAhCF,CADF,CAnBF,CADF;AAsFD,CArHD;;AAsHA,eAAeM,aAAf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=InitPaymentSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["InitPaymentSchema.ts"],"sourcesContent":["/**\n * Amount to be collected\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../../models/execTasks/ETBaseModels';\n/**\n * List of allowed Modes\n */\n\nexport type AllowedModes = 'CASH' | 'UPI' | 'PAYMENT_LINK';\n\nexport type InitPaymentInput = BaseETRequest & {\n amount: ETAmount;\n allowedModes: string[];\n onSubmitET: (output: InitPaymentOutput) => void;\n};\n/**\n * Amount to be collected (ISO 4217)\n */\nexport interface ETAmount {\n value: number;\n currencyCode: string;\n minorUnit?: number;\n}\n\nexport type InitPaymentOutput = BaseETResponse & {\n /**\n * Unique transaction id\n */\n transactionId?: string;\n /**\n * Payment mode selected by user\n */\n paymentMode?: string;\n};\n"],"mappings":""}