@os1-platform/dispatch-mobile 1.3.11 → 2.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 (619) hide show
  1. package/README.md +198 -30
  2. package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
  3. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  5. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
  7. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  8. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  9. package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
  10. package/android/.gradle/7.2/gc.properties +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  13. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  14. package/android/.gradle/checksums/checksums.lock +0 -0
  15. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  16. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  17. package/android/.idea/compiler.xml +6 -0
  18. package/android/.idea/gradle.xml +6 -1
  19. package/android/.idea/jarRepositories.xml +35 -0
  20. package/android/.idea/kotlinc.xml +6 -0
  21. package/android/.idea/misc.xml +6 -1
  22. package/android/local.properties +1 -1
  23. package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
  24. package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
  25. package/lib/commonjs/@types/assets/index.d.js +2 -0
  26. package/lib/commonjs/@types/assets/index.d.js.map +1 -0
  27. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +4 -4
  28. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +0 -28
  30. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  32. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +35 -35
  33. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
  35. package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
  36. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +2 -2
  37. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +187 -112
  40. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -16
  42. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +37 -34
  44. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +2 -2
  46. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +52 -52
  48. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +71 -66
  50. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  51. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  52. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
  54. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +2 -2
  57. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  58. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
  59. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  60. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
  62. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +34 -34
  64. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  66. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +54 -54
  67. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  68. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +33 -33
  69. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  70. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +33 -33
  71. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  72. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +2 -2
  73. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  74. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +112 -47
  75. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  76. package/lib/commonjs/components/executiontasks/scan/ScanET.js +326 -428
  77. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  78. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +13 -0
  79. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
  80. package/lib/commonjs/components/executiontasks/scan/interfaces.js +15 -1
  81. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  82. package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
  83. package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
  84. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
  86. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
  88. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
  90. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  91. package/lib/commonjs/components/executiontasks/scan/utils.js +548 -159
  92. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +52 -53
  94. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
  96. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  97. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  98. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  99. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
  100. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  101. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
  102. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  103. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  104. package/lib/commonjs/components/utils/index.js +14 -0
  105. package/lib/commonjs/components/utils/index.js.map +1 -0
  106. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  107. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  108. package/lib/commonjs/components/widgets/Card.js +88 -0
  109. package/lib/commonjs/components/widgets/Card.js.map +1 -0
  110. package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
  111. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
  112. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  113. package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
  114. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
  115. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  116. package/lib/commonjs/components/widgets/SearchBar.js +74 -0
  117. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
  118. package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -4
  119. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  120. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  121. package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
  122. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
  123. package/lib/commonjs/constants/apiConstants.js +3 -1
  124. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  125. package/lib/commonjs/constants/constants.js +2 -2
  126. package/lib/commonjs/constants/constants.js.map +1 -1
  127. package/lib/commonjs/events/EventDispatcher.js +1 -5
  128. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  129. package/lib/commonjs/events/constants.js +3 -1
  130. package/lib/commonjs/events/constants.js.map +1 -1
  131. package/lib/commonjs/events/interface.js.map +1 -1
  132. package/lib/commonjs/index.js +32 -13
  133. package/lib/commonjs/index.js.map +1 -1
  134. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +315 -609
  135. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  136. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  137. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  138. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  139. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  140. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +21 -25
  141. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  142. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  143. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +15 -1
  144. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  145. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -2
  146. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  147. package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
  148. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
  149. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +15 -1
  150. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  151. package/lib/commonjs/manager/syncmanager/DBConfig.js +36 -3
  152. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  153. package/lib/commonjs/manager/syncmanager/constants.js +17 -0
  154. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
  155. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  156. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -17
  157. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  158. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +5 -6
  159. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  160. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +16 -6
  161. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  162. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +377 -26
  163. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  164. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +183 -65
  165. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  166. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +150 -37
  167. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  168. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  169. package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
  170. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  171. package/lib/commonjs/models/sdk.js.map +1 -1
  172. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  173. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  174. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  175. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  176. package/lib/commonjs/network/client.js.map +1 -1
  177. package/lib/commonjs/resources/Login.js.map +1 -1
  178. package/lib/commonjs/resources/network.js.map +1 -1
  179. package/lib/commonjs/styles/SdkColors.js +4 -2
  180. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  181. package/lib/commonjs/styles/executionTasks/CommonStyles.js +19 -10
  182. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  183. package/lib/commonjs/ui/screens/CancellationScreen.js +38 -7
  184. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  185. package/lib/commonjs/ui/screens/CaptureInputScreen.js +11 -3
  186. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  187. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -4
  188. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  189. package/lib/commonjs/ui/screens/DeliverScreen.js +26 -4
  190. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  191. package/lib/commonjs/ui/screens/DisplayScreen.js +11 -2
  192. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  193. package/lib/commonjs/ui/screens/DoodleScreen.js +13 -6
  194. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  195. package/lib/commonjs/ui/screens/DropCashScreen.js +39 -15
  196. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  197. package/lib/commonjs/ui/screens/ETScreensIndex.js +0 -7
  198. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  199. package/lib/commonjs/ui/screens/FormsScreen.js +95 -28
  200. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  201. package/lib/commonjs/ui/screens/GeofenceScreen.js +10 -2
  202. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  203. package/lib/commonjs/ui/screens/HttpRequestScreen.js +10 -2
  204. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  205. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +26 -18
  206. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  207. package/lib/commonjs/ui/screens/PaymentScreen.js +22 -11
  208. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  209. package/lib/commonjs/ui/screens/PickupScreen.js +34 -8
  210. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  211. package/lib/commonjs/ui/screens/ScanScreen.js +72 -219
  212. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  213. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +51 -16
  214. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  215. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +13 -7
  216. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  217. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  218. package/lib/commonjs/ui/uiConfig/RouteParams.js +20 -5
  219. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  220. package/lib/commonjs/utils/ApiUtils.js +16 -2
  221. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  222. package/lib/commonjs/utils/ExecTaskUtils.js +33 -25
  223. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  224. package/lib/commonjs/utils/Logger.js.map +1 -1
  225. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  226. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  227. package/lib/commonjs/utils/SyncManagerUtils.js +37 -4
  228. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  229. package/lib/commonjs/utils/fcm/FCM.js +64 -35
  230. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  231. package/lib/commonjs/utils/fcm/FcmUtils.js +82 -46
  232. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  233. package/lib/commonjs/utils/helper.js.map +1 -1
  234. package/lib/commonjs/utils/hooks/useModal.js +53 -0
  235. package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
  236. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  237. package/lib/commonjs/utils/storage.js +37 -2
  238. package/lib/commonjs/utils/storage.js.map +1 -1
  239. package/lib/commonjs/utils/utils.js.map +1 -1
  240. package/lib/module/@types/assets/index.d.js +2 -0
  241. package/lib/module/@types/assets/index.d.js.map +1 -0
  242. package/lib/module/components/dispatch/DispatchExecNavigator.js +4 -4
  243. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  244. package/lib/module/components/executiontasks/ExecutionTasksIndex.js +1 -5
  245. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  246. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  247. package/lib/module/components/executiontasks/captureInput/CaptureText.js +38 -37
  248. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  249. package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
  250. package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
  251. package/lib/module/components/executiontasks/deliver/DeliverET.js +2 -2
  252. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  253. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  254. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +189 -114
  255. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  256. package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -16
  257. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  258. package/lib/module/components/executiontasks/doodle/SignatureET.js +39 -36
  259. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  260. package/lib/module/components/executiontasks/dropCash/DropCashET.js +2 -2
  261. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  262. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +53 -52
  263. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  264. package/lib/module/components/executiontasks/forms/FormGenerator.js +73 -68
  265. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  266. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  267. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  268. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
  269. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  270. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  271. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +3 -3
  272. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  273. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
  274. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  275. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  276. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
  277. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  278. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +36 -36
  279. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  280. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  281. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +55 -54
  282. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  283. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +35 -34
  284. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  285. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +35 -35
  286. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  287. package/lib/module/components/executiontasks/pickup/PickupET.js +2 -2
  288. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  289. package/lib/module/components/executiontasks/pickup/SLPickupET.js +114 -49
  290. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  291. package/lib/module/components/executiontasks/scan/ScanET.js +332 -433
  292. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  293. package/lib/module/components/executiontasks/scan/ScanSchema.js +16 -1
  294. package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
  295. package/lib/module/components/executiontasks/scan/interfaces.js +12 -0
  296. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  297. package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
  298. package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
  299. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  300. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
  301. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  302. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
  303. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  304. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
  305. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  306. package/lib/module/components/executiontasks/scan/utils.js +528 -160
  307. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  308. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +54 -55
  309. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  310. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
  311. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  312. package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
  313. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  314. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
  315. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  316. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
  317. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  318. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  319. package/lib/module/components/utils/index.js +8 -0
  320. package/lib/module/components/utils/index.js.map +1 -0
  321. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  322. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  323. package/lib/module/components/widgets/Card.js +80 -0
  324. package/lib/module/components/widgets/Card.js.map +1 -0
  325. package/lib/module/components/widgets/GoBackModal.js +40 -0
  326. package/lib/module/components/widgets/GoBackModal.js.map +1 -0
  327. package/lib/module/components/widgets/IconButton.js.map +1 -1
  328. package/lib/module/components/widgets/ModalWidget.js +92 -0
  329. package/lib/module/components/widgets/ModalWidget.js.map +1 -0
  330. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  331. package/lib/module/components/widgets/SearchBar.js +66 -0
  332. package/lib/module/components/widgets/SearchBar.js.map +1 -0
  333. package/lib/module/components/widgets/SnackBarCustom.js +12 -4
  334. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  335. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  336. package/lib/module/components/widgets/TabsComponent.js +55 -0
  337. package/lib/module/components/widgets/TabsComponent.js.map +1 -0
  338. package/lib/module/constants/apiConstants.js +3 -1
  339. package/lib/module/constants/apiConstants.js.map +1 -1
  340. package/lib/module/constants/constants.js +2 -2
  341. package/lib/module/constants/constants.js.map +1 -1
  342. package/lib/module/events/EventDispatcher.js +0 -3
  343. package/lib/module/events/EventDispatcher.js.map +1 -1
  344. package/lib/module/events/constants.js +3 -1
  345. package/lib/module/events/constants.js.map +1 -1
  346. package/lib/module/events/interface.js.map +1 -1
  347. package/lib/module/index.js +6 -3
  348. package/lib/module/index.js.map +1 -1
  349. package/lib/module/manager/dispatch/DispatchStateContainer.js +319 -610
  350. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  351. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  352. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  353. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  354. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  355. package/lib/module/manager/jobRemoval/JobRemovalManager.js +21 -19
  356. package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  357. package/lib/module/manager/location/LocationManager.js.map +1 -1
  358. package/lib/module/manager/sdk/DispatchSDKManager.js +15 -1
  359. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  360. package/lib/module/manager/sdk/DispatchSdkCache.js +2 -2
  361. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  362. package/lib/module/manager/sdk/callbacksHandler.js +19 -0
  363. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
  364. package/lib/module/manager/syncmanager/AppSyncManager.js +15 -1
  365. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  366. package/lib/module/manager/syncmanager/DBConfig.js +32 -2
  367. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  368. package/lib/module/manager/syncmanager/constants.js +6 -0
  369. package/lib/module/manager/syncmanager/constants.js.map +1 -0
  370. package/lib/module/manager/syncmanager/database.js.map +1 -1
  371. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -17
  372. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  373. package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -6
  374. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  375. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +16 -6
  376. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  377. package/lib/module/manager/syncmanager/events/ETEventsManager.js +377 -25
  378. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  379. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +183 -65
  380. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  381. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +147 -34
  382. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  383. package/lib/module/models/DispatchModels.js.map +1 -1
  384. package/lib/module/models/execTasks/ETBaseModels.js +1 -1
  385. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  386. package/lib/module/models/sdk.js.map +1 -1
  387. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  388. package/lib/module/network/GraphQLClient.js.map +1 -1
  389. package/lib/module/network/NetworkClient.js.map +1 -1
  390. package/lib/module/network/NetworkUtils.js.map +1 -1
  391. package/lib/module/network/client.js.map +1 -1
  392. package/lib/module/resources/Login.js.map +1 -1
  393. package/lib/module/resources/network.js.map +1 -1
  394. package/lib/module/styles/SdkColors.js +4 -2
  395. package/lib/module/styles/SdkColors.js.map +1 -1
  396. package/lib/module/styles/executionTasks/CommonStyles.js +19 -10
  397. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  398. package/lib/module/ui/screens/CancellationScreen.js +39 -8
  399. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  400. package/lib/module/ui/screens/CaptureInputScreen.js +12 -4
  401. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  402. package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -5
  403. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  404. package/lib/module/ui/screens/DeliverScreen.js +27 -5
  405. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  406. package/lib/module/ui/screens/DisplayScreen.js +12 -3
  407. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  408. package/lib/module/ui/screens/DoodleScreen.js +14 -7
  409. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  410. package/lib/module/ui/screens/DropCashScreen.js +42 -16
  411. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  412. package/lib/module/ui/screens/ETScreensIndex.js +1 -2
  413. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  414. package/lib/module/ui/screens/FormsScreen.js +96 -29
  415. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  416. package/lib/module/ui/screens/GeofenceScreen.js +11 -3
  417. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  418. package/lib/module/ui/screens/HttpRequestScreen.js +11 -3
  419. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  420. package/lib/module/ui/screens/ImageCaptureScreen.js +27 -19
  421. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  422. package/lib/module/ui/screens/PaymentScreen.js +23 -12
  423. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  424. package/lib/module/ui/screens/PickupScreen.js +36 -10
  425. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  426. package/lib/module/ui/screens/ScanScreen.js +74 -222
  427. package/lib/module/ui/screens/ScanScreen.js.map +1 -1
  428. package/lib/module/ui/screens/StartWorkFlowScreen.js +51 -16
  429. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  430. package/lib/module/ui/screens/ValidateOTPScreen.js +14 -8
  431. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  432. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  433. package/lib/module/ui/uiConfig/RouteParams.js +19 -5
  434. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  435. package/lib/module/utils/ApiUtils.js +17 -2
  436. package/lib/module/utils/ApiUtils.js.map +1 -1
  437. package/lib/module/utils/ExecTaskUtils.js +33 -25
  438. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  439. package/lib/module/utils/Logger.js.map +1 -1
  440. package/lib/module/utils/NetworkUtil.js.map +1 -1
  441. package/lib/module/utils/SdkUtils.js.map +1 -1
  442. package/lib/module/utils/SyncManagerUtils.js +37 -4
  443. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  444. package/lib/module/utils/fcm/FCM.js +64 -35
  445. package/lib/module/utils/fcm/FCM.js.map +1 -1
  446. package/lib/module/utils/fcm/FcmUtils.js +82 -46
  447. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  448. package/lib/module/utils/helper.js.map +1 -1
  449. package/lib/module/utils/hooks/useModal.js +43 -0
  450. package/lib/module/utils/hooks/useModal.js.map +1 -0
  451. package/lib/module/utils/loginHelper.js.map +1 -1
  452. package/lib/module/utils/storage.js +37 -2
  453. package/lib/module/utils/storage.js.map +1 -1
  454. package/lib/module/utils/utils.js.map +1 -1
  455. package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
  456. package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +3 -8
  457. package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
  458. package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
  459. package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
  460. package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
  461. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +1 -0
  462. package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
  463. package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
  464. package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
  465. package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
  466. package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
  467. package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
  468. package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +2 -2
  469. package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +2 -2
  470. package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
  471. package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
  472. package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
  473. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
  474. package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +1 -0
  475. package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
  476. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
  477. package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
  478. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
  479. package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
  480. package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
  481. package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +3 -3
  482. package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +25 -9
  483. package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +54 -1
  484. package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
  485. package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +1 -1
  486. package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +1 -1
  487. package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +1 -1
  488. package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
  489. package/lib/typescript/components/executiontasks/scan/utils.d.ts +29 -13
  490. package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +2 -2
  491. package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +2 -2
  492. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
  493. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
  494. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
  495. package/lib/typescript/components/utils/index.d.ts +2 -0
  496. package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
  497. package/lib/typescript/components/widgets/Card.d.ts +17 -0
  498. package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
  499. package/lib/typescript/components/widgets/IconButton.d.ts +2 -2
  500. package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
  501. package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
  502. package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
  503. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
  504. package/lib/typescript/components/widgets/SplitTextInput.d.ts +2 -2
  505. package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
  506. package/lib/typescript/constants/apiConstants.d.ts +1 -0
  507. package/lib/typescript/constants/constants.d.ts +2 -2
  508. package/lib/typescript/events/EventDispatcher.d.ts +0 -2
  509. package/lib/typescript/events/constants.d.ts +2 -0
  510. package/lib/typescript/events/interface.d.ts +1 -1
  511. package/lib/typescript/index.d.ts +8 -6
  512. package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +27 -19
  513. package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -6
  514. package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +0 -1
  515. package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
  516. package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +2 -1
  517. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +63 -7
  518. package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
  519. package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
  520. package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
  521. package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +11 -2
  522. package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +3 -5
  523. package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +4 -3
  524. package/lib/typescript/models/DispatchModels.d.ts +40 -41
  525. package/lib/typescript/models/execTasks/ETBaseModels.d.ts +21 -16
  526. package/lib/typescript/models/sdk.d.ts +7 -0
  527. package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
  528. package/lib/typescript/styles/SdkColors.d.ts +1 -0
  529. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +16 -7
  530. package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
  531. package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
  532. package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
  533. package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
  534. package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
  535. package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
  536. package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
  537. package/lib/typescript/ui/screens/ETScreensIndex.d.ts +1 -2
  538. package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
  539. package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
  540. package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
  541. package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
  542. package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
  543. package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
  544. package/lib/typescript/ui/screens/ScanScreen.d.ts +2 -2
  545. package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
  546. package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +2 -2
  547. package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
  548. package/lib/typescript/ui/uiConfig/RouteParams.d.ts +10 -4
  549. package/lib/typescript/utils/ExecTaskUtils.d.ts +5 -4
  550. package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -5
  551. package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
  552. package/lib/typescript/utils/storage.d.ts +15 -0
  553. package/package.json +5 -4
  554. package/tsconfig.json +0 -1
  555. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  556. package/android/.idea/workspace.xml +0 -131
  557. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -26
  558. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  559. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +0 -134
  560. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
  561. package/lib/commonjs/components/executiontasks/scanner/CScanner.js +0 -105
  562. package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
  563. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -27
  564. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  565. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -164
  566. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  567. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -15
  568. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  569. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -40
  570. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  571. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -93
  572. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  573. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -278
  574. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  575. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -83
  576. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  577. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -248
  578. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  579. package/lib/commonjs/ui/screens/RTScanScreen.js +0 -99
  580. package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
  581. package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
  582. package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  583. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +0 -124
  584. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
  585. package/lib/module/components/executiontasks/scanner/CScanner.js +0 -96
  586. package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
  587. package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
  588. package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  589. package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -146
  590. package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  591. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -7
  592. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  593. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -33
  594. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  595. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -83
  596. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  597. package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -269
  598. package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  599. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -73
  600. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  601. package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -238
  602. package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  603. package/lib/module/ui/screens/RTScanScreen.js +0 -89
  604. package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
  605. package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
  606. package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +0 -8
  607. package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +0 -7
  608. package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
  609. package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
  610. package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
  611. package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -2
  612. package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
  613. package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
  614. package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
  615. package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
  616. package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
  617. /package/android/.gradle/{6.8 → 7.0.2}/fileChanges/last-build.bin +0 -0
  618. /package/android/.gradle/{6.8 → 7.0.2}/gc.properties +0 -0
  619. /package/android/.gradle/{configuration-cache → 7.2/dependencies-accessors}/gc.properties +0 -0
@@ -1,8 +1,8 @@
1
- import type { Job, state } from '@os1-platform/mobile-execution-lib';
1
+ import { IDispatchExecutor, IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
2
+ import { ExecutionTaskID } from '../../models/execTasks/ETConfig';
2
3
  import type { ETSummary } from '../../models/execTasks/ETBaseModels';
3
- import type { LockObjectiveState, QueryObjectiveState } from '../../models/DispatchModels';
4
4
  import DispatchSdkCache from '../sdk/DispatchSdkCache';
5
- import type { BaseETProps, JobObjectiveType, stateParams, stateWithObjRef } from '../../models/DispatchModels';
5
+ import type { BaseETProps, JobObjectiveType, stateParams } from '../../models/DispatchModels';
6
6
  export default class DispatchStateContainer {
7
7
  cacheKeys: {
8
8
  SDK_CONFIG: string;
@@ -11,44 +11,52 @@ export default class DispatchStateContainer {
11
11
  FIREBASE_REGISTRATION_TOKEN: string;
12
12
  REASON_FETCH_TIME: string;
13
13
  CURRENT_WORKING_TASK_ID: string;
14
- TASK_START_TIME: string;
15
14
  };
16
15
  cache: DispatchSdkCache;
17
16
  get stateKeys(): string[];
18
17
  set stateKeys(value: string[]);
19
- get mappedStates(): Map<string, stateWithObjRef[]>;
20
- set mappedStates(value: Map<string, stateWithObjRef[]>);
18
+ get mappedStates(): Map<string, IDispatch.IExecutionTaskQueryResponse>;
19
+ set mappedStates(value: Map<string, IDispatch.IExecutionTaskQueryResponse>);
21
20
  private static instance;
22
- private dispatchExecutor;
23
21
  private successRoute;
24
22
  private failureRoute;
25
23
  private _stateKeys;
26
24
  _jobObjectives: JobObjectiveType[] | null;
27
25
  private _mappedStates;
26
+ private _mappedStatesData;
28
27
  /**
29
28
  * Call this function when dispatch data is fetched successfully in client app
30
29
  * @param dispatchID
31
30
  * @param jobs
32
- * @param logging
31
+ * @param dispatchWorkflows
33
32
  * @param maxTaskReattempt
34
33
  */
35
- initDispatchExecutor(dispatchID: string, jobs: Job[], logging: boolean, maxTaskReattempt?: number): Promise<void>;
36
- bulkQueryNextET(jobObjectiveList: JobObjectiveType[]): Promise<stateWithObjRef[] | null>;
37
- bulkLockObjectiveStates(lockInput: Array<LockObjectiveState>): Promise<void>;
38
- bulkQueryObjectives(queryInput: QueryObjectiveState[]): Promise<state[]>;
39
- sendPendingETOutput(etOutputData: any, states: stateParams, isJobBasedOutput?: boolean): Promise<void>;
40
- sendETOutput(etOutput: any, states: stateParams, isJobBasedOutput?: boolean, isPendingState?: boolean): Promise<void>;
41
- saveETOutput(jobId: string, objRef: string, etState: state): Promise<void>;
34
+ initDispatchExecutor(dispatchID: string, jobs: IDispatchExecutor.Job[], dispatchWorkflows: {
35
+ [id: string]: IDispatchExecutor.Workflow;
36
+ }, maxTaskReattempt?: number): Promise<void>;
37
+ /**
38
+ *
39
+ * @param mergedObjectiveId
40
+ * @returns IExecutionTaskQueryResponse {
41
+ * mergedObjectiveId: string;
42
+ * taskName: string;
43
+ * taskId: string;
44
+ * input: any;
45
+ * }
46
+ */
47
+ queryNextET(mergedObjectiveId: Array<string>, statusFilter: IDispatchExecutor.ExecutionStatus[]): Promise<IDispatch.IExecutionTaskQueryResponse[]>;
48
+ private updateScanETOutputSharedPreference;
49
+ private updatePendingSharedPreference;
50
+ sendETOutput(etOutput: any, states: any, isMergedObjectiveBasedOutput?: boolean): Promise<void>;
51
+ private findPrefixKey;
42
52
  static getInstance(): DispatchStateContainer;
43
- fetchObjectiveState(objRef: string, jobID: string): string;
44
53
  setSuccessRoute(route: string): void;
45
54
  getSuccessRoute(): string | null;
46
55
  setFailureRoute(route: string): void;
47
56
  getFailureRoute(): string | null;
48
57
  getObjectiveSummary(jobObjective: JobObjectiveType): Promise<ETSummary[]>;
49
- navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID: string, baseETProps: BaseETProps, isLastTask?: boolean, isJobBasedOutput?: boolean): Promise<void>;
50
- private getJobObjectiveList;
58
+ navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID: ExecutionTaskID, baseETProps: BaseETProps, isLastTask?: boolean, isMergeObjectiveBasedOutput?: boolean): Promise<void>;
51
59
  moveToNextET(etOutput: any, baseETProps: BaseETProps, states: stateParams, navigation: any, isLastTask?: boolean): Promise<void>;
52
60
  private saveAndProceedToNextET;
53
- saveAndProceed(baseETProps: BaseETProps, etOutput: any, states: stateParams, navigation: any, isLastTask?: boolean, isJobBasedOutput?: boolean): Promise<void>;
61
+ saveAndProceed(baseETProps: BaseETProps, etOutput: any, states: stateParams, navigation: any, isLastTask?: boolean, isMergedObjectiveBasedOutput?: boolean): Promise<void>;
54
62
  }
@@ -1,6 +0,0 @@
1
- export default class JobRemovalManager {
2
- private static instance;
3
- private constructor();
4
- static getInstance(): JobRemovalManager;
5
- handleRemoval(dispatchId: string, jobs: string[]): Promise<import("@os1-platform/mobile-execution-lib/lib/typescript/interfaces").JobRemovalResult>;
6
- }
@@ -9,7 +9,6 @@ export default class DispatchSdkCache {
9
9
  FIREBASE_REGISTRATION_TOKEN: string;
10
10
  REASON_FETCH_TIME: string;
11
11
  CURRENT_WORKING_TASK_ID: string;
12
- TASK_START_TIME: string;
13
12
  };
14
13
  setObjectInCache(keyName: string, obj: any): Promise<void>;
15
14
  getObjectFromCache(keyName: string): Promise<any>;
@@ -0,0 +1,13 @@
1
+ declare class CallbacksHandler {
2
+ private _callbackToFetchPhoneNumbers;
3
+ init(phoneCallback: (sdsIds: string[]) => Promise<{
4
+ key: string;
5
+ value: string[];
6
+ }>): void;
7
+ getPhoneNumbers(sdsIds: string[]): Promise<{
8
+ key: string;
9
+ value: string[];
10
+ } | null>;
11
+ }
12
+ declare const callbackHandler: CallbacksHandler;
13
+ export default callbackHandler;
@@ -1,5 +1,5 @@
1
1
  import type { SdkSyncType } from '../../models/DispatchModels';
2
- import type { DocumentRow, EventRow } from './DBConfig';
2
+ import type { BulkEvent, DocumentRow, EventRow } from './DBConfig';
3
3
  export default class AppSyncManager {
4
4
  private constructor();
5
5
  private static instance;
@@ -22,4 +22,5 @@ export default class AppSyncManager {
22
22
  getAllEvents(dispatchID?: string): Promise<EventRow[]>;
23
23
  getAllDocuments(dispatchID?: string): Promise<DocumentRow[]>;
24
24
  startSDKSyncManager(): void;
25
+ pushToQueue(pushData: BulkEvent): Promise<boolean>;
25
26
  }
@@ -1,4 +1,9 @@
1
- import type { SyncType } from '@os1-platform/mobile-execution-lib';
1
+ import { IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
2
+ export type ExecEngineSyncType = IDispatch.SyncType;
3
+ export declare enum DispatchSyncType {
4
+ DEFAULT = "DEFAULT",
5
+ DISPATCH_UPDATE = "DISPATCH_UPDATE"
6
+ }
2
7
  export declare const DATABASE_NAME = "DISPATCH_DB";
3
8
  export declare const EVENTS_TABLE = "EVENTS_TABLE";
4
9
  export declare const REASONS_TABLE = "REASONS_TABLE";
@@ -10,9 +15,10 @@ export declare const EVENTS_COLUMNS: {
10
15
  SYNCED: string;
11
16
  CONFIG: string;
12
17
  SYNC_TYPE: string;
13
- OBJECTIVE_REF: string;
18
+ META: string;
14
19
  SYNC_ERROR: string;
15
20
  DISPATCH_ID: string;
21
+ DATA_LENGTH: string;
16
22
  };
17
23
  export declare const DOCUMENT_TABLE = "DOCUMENTS_TABLE";
18
24
  export declare const DOCUMENT_COLUMNS: {
@@ -54,7 +60,7 @@ export type EventRow = {
54
60
  payload: string;
55
61
  synced: boolean;
56
62
  config: string;
57
- sync_type: string;
63
+ sync_type: ExecEngineSyncType | DispatchSyncType;
58
64
  objective_ref: string;
59
65
  sync_error: string;
60
66
  dispatch_id: string;
@@ -88,10 +94,60 @@ export declare const EventColumns: {
88
94
  SUCCESS_EVENT: string;
89
95
  };
90
96
  export interface BulkEvent {
91
- syncType: SyncType;
97
+ syncType: ExecEngineSyncType | DispatchSyncType;
92
98
  dispatchId: string;
93
- data: string;
94
- config: string;
95
- sequence: number;
99
+ data: any;
100
+ meta?: any;
101
+ }
102
+ export interface WFUpdateBulkEventData {
103
+ [customETName: string]: EventETData;
104
+ }
105
+ export interface EventETData {
106
+ output: any;
107
+ }
108
+ export interface WIUpdateOutputPayload {
109
+ dispatchId: string;
110
+ updatedBy: any;
111
+ workflows: Array<WorkflowUpdatePayload>;
112
+ }
113
+ export interface WorkflowUpdatePayload {
114
+ status: string;
115
+ timestamp: number;
116
+ attemptId: 1;
117
+ code: string;
118
+ data: any;
96
119
  meta?: any;
120
+ __unmerged?: Array<UnmergedData>;
121
+ }
122
+ export interface UnmergedData {
123
+ workflowInstanceId: string;
124
+ jobId: string;
125
+ data?: any;
126
+ }
127
+ export interface CustodyData {
128
+ dispatchId: string;
129
+ jobId: string;
130
+ custodyEntity: string;
131
+ custodyLocationId: string;
132
+ custodyEntityAmount: number;
133
+ custodyEntityId: string;
134
+ }
135
+ export declare const WORKFLOW_INSTANCE_TABLE = "WF_INSTANCE_TABLE";
136
+ export declare const WORKFLOW_INSTANCE_COLUMNS: {
137
+ WORKFLOW_INSTANCE_ID: string;
138
+ MERGED_WORKFLOW_INSTANCE_ID: string;
139
+ JOB_ID: string;
140
+ SCANNABLE_ID: string;
141
+ INITIAL_MERGED_WORKFLOW_INSTANCE_ID: string;
142
+ STATUS: string;
143
+ JOB_WF_ID: string;
144
+ DISPLAY_DATA: string;
145
+ WORKFLOW_ID: string;
146
+ };
147
+ export interface SyncManagerPayload {
148
+ data: {
149
+ action: ExecEngineSyncType | DispatchSyncType;
150
+ payload: any;
151
+ };
152
+ length: number;
97
153
  }
@@ -0,0 +1,5 @@
1
+ export declare const BULK_DATA_LIMIT = 1000;
2
+ export declare const LAST_SYNCED_EVENT_ID = "lastSyncedEventId";
3
+ export declare const SHARED_PREFERENCE_DISPATCH_ID = "sharedPreferenceDispatchId";
4
+ export declare const SHARED_PREFERENCE_SCAN_OUTPUT = "scanETMappedOutput";
5
+ export declare const SCAN_MERGED_OBJ_ID_OUTPUT = "scanMergedObjectiveIDs";
@@ -5,7 +5,7 @@ export default class DocumentManager {
5
5
  private constructor();
6
6
  static getInstance(): Promise<DocumentManager>;
7
7
  init(): Promise<void>;
8
- insertDocument(fmsFolderID: string | null, desc: string, dspID: string, jobID: string, objectiveRef: string, base64: boolean, fileName: string, fileType: string, data?: string | null, filePath?: string | null, priority?: number): Promise<SQLResultSet>;
8
+ insertDocument(fmsFolderID: string | null, desc: string, dspID: string, base64: boolean, fileName: string, fileType: string, data?: string | null, filePath?: string | null, priority?: number): Promise<SQLResultSet>;
9
9
  getAllDocuments(dispatchID?: string): Promise<DocumentRow[]>;
10
10
  getAllUnsyncedDocs(): Promise<DocumentRow[]>;
11
11
  deleteAllSyncedDocuments(dispatchID: string): Promise<SQLResultSet>;
@@ -14,7 +14,7 @@ export default class DocumentSyncManager {
14
14
  static getInstance(): DocumentSyncManager;
15
15
  startDocumentSync(): Promise<void>;
16
16
  isSyncPending(): Promise<boolean>;
17
- insertDocument(fmsFolderID: string | null, data: string | null, base64: boolean, desc: string, dspID: string, jobID: string, objRef: string, filePath: string | null, fileType: string, fileName: string, priority?: number): Promise<SQLResultSet>;
17
+ insertDocument(fmsFolderID: string | null, data: string | null, base64: boolean, desc: string, dspID: string, filePath: string | null, fileType: string, fileName: string, priority?: number): Promise<SQLResultSet>;
18
18
  forceDocumentSync(): Promise<void>;
19
19
  private updateDocument;
20
20
  private updateDocError;
@@ -7,14 +7,23 @@ export default class ETEventsManager {
7
7
  static getInstance(): Promise<ETEventsManager>;
8
8
  private static init;
9
9
  insertEvent(sequence: number, payload: string, dspID: string, syncType: string, objectiveRef: string, config?: string): Promise<void>;
10
- insertBulkEvent(_eventData: BulkEvent[]): Promise<void>;
10
+ private getWFIPayload;
11
+ private getCustodyPayload;
12
+ private getJobRemovalPayload;
13
+ private getDispatchUpdatePayload;
14
+ private _modifyEventData;
15
+ private splitData;
16
+ insertQueueEvent(_eventData: BulkEvent): Promise<void>;
17
+ insertBulkEvent(_eventData: BulkEvent): Promise<void>;
11
18
  getAllEvents(dispatchID?: string): Promise<EventRow[]>;
12
19
  getAllUnsyncedEvents(): Promise<EventRow[]>;
13
- deleteAllEvents(): Promise<import("expo-sqlite").SQLResultSet>;
20
+ deleteAllEvents(): Promise<boolean>;
14
21
  updateError(id: number, syncError: string): Promise<void>;
15
22
  markEventSynced(id: number): Promise<void>;
16
23
  getWorkflowUpdateEvents(syncType: string): Promise<EventRow[]>;
17
24
  getJobRemovalEvents(syncType: string): Promise<EventRow[]>;
18
25
  getCustodyBatch(dispatchID: string): Promise<EventRow[]>;
19
26
  getObjectiveDetails(objectiveRef: string): Promise<EventRow[]>;
27
+ getRowToSync(id: string, dispatchId: string): Promise<EventRow[]>;
28
+ getBulkRowsToSync(id: string, dispatchId: string): Promise<EventRow[]>;
20
29
  }
@@ -13,10 +13,6 @@ export default class EventsSyncManager {
13
13
  initSyncManager(baseURL: string, retryCount: number): void;
14
14
  static getInstance(): EventsSyncManager;
15
15
  startSync(): Promise<void>;
16
- private WorkflowUpdateEvent;
17
- private CustodyBatchEvent;
18
- private JobRemovalEvent;
19
- startCustodyScans(custodyScans: EventRow[]): Promise<void>;
20
16
  private updateEventError;
21
17
  /**
22
18
  * force sync events who retry count >3 This function can be called from app UI to sync the events forcefully
@@ -25,10 +21,12 @@ export default class EventsSyncManager {
25
21
  isSyncPending(): Promise<boolean>;
26
22
  private markEventSynced;
27
23
  insertEvent(sequence: number, payload: string, dspID: string, syncType: string, objectiveRef: string, config?: string): Promise<void>;
28
- insertBulkEvent(_bulkData: BulkEvent[]): Promise<void>;
24
+ insertBulkEvent(_bulkData: BulkEvent): Promise<void>;
25
+ insertQueueEvent(_pushData: BulkEvent): Promise<void>;
29
26
  private checkForInitialization;
30
27
  getObjectiveSummary(objectiveRef: string): Promise<any>;
31
28
  private syncEventToServer;
29
+ private syncBulkEventToServer;
32
30
  getAllEvents(dspID?: string): Promise<EventRow[]>;
33
31
  clearEventsDB(): Promise<void>;
34
32
  }
@@ -1,9 +1,10 @@
1
1
  import HttpClient from '../../../network/client';
2
- import type { EventRow } from '../DBConfig';
2
+ import { DispatchSyncType, EventRow } from '../DBConfig';
3
3
  import NetworkClient from '../../../network/NetworkClient';
4
- import { SyncType } from '@os1-platform/mobile-execution-lib';
4
+ import { ExecEngineSyncType } from '../DBConfig';
5
5
  export default class SyncHttpClient extends HttpClient {
6
6
  protected readonly networkInstance: NetworkClient;
7
7
  constructor(baseURL: string);
8
- syncEvent(eventRow: EventRow[], syncType: SyncType): Promise<boolean | null>;
8
+ syncEvent(eventRow: EventRow[], syncType: ExecEngineSyncType | DispatchSyncType): Promise<boolean | null>;
9
+ syncBulkEvent(eventRow: EventRow[]): Promise<boolean | null>;
9
10
  }
@@ -1,4 +1,4 @@
1
- import type { state } from '@os1-platform/mobile-execution-lib';
1
+ import { IDispatch, IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
2
2
  export interface BaseETProps {
3
3
  showProgress: (loading: boolean) => void;
4
4
  }
@@ -12,61 +12,60 @@ export interface JobObjectiveType {
12
12
  groupId?: string;
13
13
  additionalData?: any;
14
14
  }
15
- export interface stateWithObjRef {
16
- nextState: state;
17
- objRef: string;
18
- jobId: string;
19
- groupId?: string;
20
- additionalData?: any;
21
- }
22
15
  export interface endEvent {
23
16
  taskId: string;
24
17
  nextTaskId: string;
25
18
  timestamp: number;
26
- groupId?: string;
19
+ customData?: any;
20
+ etData: {
21
+ [key: string]: any;
22
+ };
23
+ meta?: any;
24
+ }
25
+ export interface onScanEvent {
26
+ taskId: string;
27
+ timestamp: number;
28
+ customData?: any;
29
+ etData: {
30
+ eventCode: string;
31
+ reasonCode: string;
32
+ success: boolean;
33
+ endTime: number;
34
+ scannedData: {
35
+ jobId: string;
36
+ scanValue: string;
37
+ shipmentFlow: string;
38
+ groupId: string;
39
+ }[];
40
+ };
41
+ meta?: any;
42
+ }
43
+ export interface onScanRemoveEvent {
44
+ taskId: string;
45
+ timestamp: number;
46
+ customData?: any;
27
47
  etData: {
28
- [key: string]: {
29
- workflowInstanceId: string;
30
- additionalData?: any;
31
- success?: boolean;
32
- eventCode?: string;
33
- reasonCode?: string;
34
- [key: string]: any;
35
- };
48
+ scannedData: {
49
+ scanValue: string;
50
+ }[];
36
51
  };
37
52
  meta?: any;
38
53
  }
39
54
  export interface startEvent {
40
55
  timestamp: number;
41
56
  taskId: string;
42
- groupId?: string;
57
+ customData?: any;
43
58
  etData: {
44
- [key: string]: {
45
- workflowInstanceId: string;
46
- additionalData?: any;
47
- [key: string]: any;
48
- };
59
+ [key: string]: any;
49
60
  };
50
61
  }
51
62
  export interface stateParams {
52
- next_states: stateWithObjRef[];
53
- pending_states?: stateWithObjRef[];
54
- rootMetaData?: {
63
+ next_states: IDispatch.IExecutionTaskQueryResponse;
64
+ rootMetaData: {
55
65
  meta: any;
66
+ customEventsData?: any;
67
+ statusFilter: IDispatchExecutor.ExecutionStatus[];
68
+ prefixedMergedObjectiveId: string;
56
69
  };
57
- completed_states?: stateWithObjRef[];
58
- pending_states_output?: any;
59
- }
60
- export interface QueryObjectiveState {
61
- objectiveRef: string;
62
- jobId: string;
63
- }
64
- export interface LockObjectiveState {
65
- objectiveRef: string;
66
- jobId: string;
67
- state: state;
68
- }
69
- export interface LockPendingObjectiveState {
70
- jobId: string;
71
- _state: state;
70
+ has_multiple_ets?: boolean;
72
71
  }
@@ -1,4 +1,7 @@
1
+ import { ExecutionTaskID } from './ETConfig';
1
2
  export type BaseETResponse = {
3
+ id: ExecutionTaskID;
4
+ mergedObjectiveIds: Array<string>;
2
5
  /**
3
6
  * Success flag for the operation performed by user
4
7
  */
@@ -19,32 +22,22 @@ export type BaseETResponse = {
19
22
  /**
20
23
  * Epoch timestamp for the start of task
21
24
  */
22
- startTime?: number;
23
25
  /**
24
26
  * Epoch timestamp for the end of task
25
27
  */
26
- endTime?: number;
27
28
  /**
28
29
  * Location at start of task
29
30
  */
30
- location?: {
31
- /**
32
- * Latitude
33
- */
34
- latitude?: string;
35
- /**
36
- * Longitude
37
- */
38
- longitude?: string;
39
- };
40
31
  /**
41
- * Unique identifier of user performing the action
32
+ * Latitude
33
+ */
34
+ /**
35
+ * Longitude
42
36
  */
43
- userDetails: UserData;
44
37
  /**
45
- * Check if ETs are executed in merged form
38
+ * Unique identifier of user performing the action
46
39
  */
47
- isMerged?: boolean;
40
+ userDetails: UserData;
48
41
  };
49
42
  };
50
43
  export interface UserData {
@@ -75,6 +68,9 @@ export type BaseETRequest = {
75
68
  [k: string]: any;
76
69
  };
77
70
  navigation?: any;
71
+ route?: any;
72
+ taskName: string;
73
+ mergedObjectiveId: Array<string>;
78
74
  };
79
75
  export type ApplicableReasons = {
80
76
  [k: string]: string[];
@@ -86,6 +82,9 @@ export type NewApplicableReasons = {
86
82
  failure: {
87
83
  [k: string]: string[];
88
84
  };
85
+ goBack?: {
86
+ [k: string]: string[];
87
+ };
89
88
  };
90
89
  export interface ETSummary {
91
90
  name: string;
@@ -98,3 +97,9 @@ export interface CompleteSummary {
98
97
  objectiveRef: string;
99
98
  jobObjectiveSummary: ETSummary[];
100
99
  }
100
+ export interface ObjectiveSummary {
101
+ entityCode: string;
102
+ eventCode: string;
103
+ reasonCode: string;
104
+ reasonCodeDesc?: string;
105
+ }
@@ -21,6 +21,13 @@ export interface DispatchSDKConfig {
21
21
  interval: number;
22
22
  };
23
23
  eventMapping?: EventCodes[];
24
+ debugLevelLog?: Boolean;
25
+ callbacks?: {
26
+ fetchPhoneNumbersCallback?: (sdsIds: string[]) => Promise<{
27
+ key: string;
28
+ value: string[];
29
+ }>;
30
+ };
24
31
  }
25
32
  export declare enum ENVIRONMENT {
26
33
  DEV = "dev",
@@ -6,7 +6,7 @@ declare class SignatureCapture extends React.Component<SignatureProps, any> {
6
6
  onChange(event: any): void;
7
7
  componentDidMount(): void;
8
8
  componentWillUnmount(): void;
9
- render(): JSX.Element;
9
+ render(): React.JSX.Element;
10
10
  saveImage(): void;
11
11
  resetImage(): void;
12
12
  }
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  darkTintColor: string;
9
9
  primaryButton: string;
10
10
  exitButton: string;
11
+ defaultColor: string;
11
12
  };
12
13
  dark: {
13
14
  tintColor: string;
@@ -63,13 +63,12 @@ export declare const CommonStyles: {
63
63
  };
64
64
  nextButtonLabel: {
65
65
  color: string;
66
- fontFamily: string;
66
+ fontFamily: Fonts;
67
67
  fontSize: number;
68
68
  lineHeight: number;
69
- letterSpacing: number;
70
69
  textAlign: "center";
71
70
  fontStyle: "normal";
72
- fontWeight: "600";
71
+ fontWeight: "500";
73
72
  };
74
73
  cancelButton: {
75
74
  borderWidth: number;
@@ -79,9 +78,20 @@ export declare const CommonStyles: {
79
78
  color: string;
80
79
  fontFamily: Fonts;
81
80
  fontSize: number;
82
- fontWeight: "600";
81
+ fontWeight: "500";
82
+ lineHeight: number;
83
+ textAlign: "center";
84
+ fontStyle: "normal";
85
+ };
86
+ mainExitButton: {
87
+ backgroundColor: string;
88
+ };
89
+ mainExitButtonLabel: {
90
+ color: string;
91
+ fontFamily: Fonts;
92
+ fontSize: number;
93
+ fontWeight: "500";
83
94
  lineHeight: number;
84
- letterSpacing: number;
85
95
  textAlign: "center";
86
96
  fontStyle: "normal";
87
97
  };
@@ -93,9 +103,8 @@ export declare const CommonStyles: {
93
103
  color: string;
94
104
  fontFamily: Fonts;
95
105
  fontSize: number;
96
- fontWeight: "600";
106
+ fontWeight: "500";
97
107
  lineHeight: number;
98
- letterSpacing: number;
99
108
  textAlign: "center";
100
109
  fontStyle: "normal";
101
110
  };
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -11,8 +11,7 @@ import PaymentScreen from './PaymentScreen';
11
11
  import DisplayScreen from './DisplayScreen';
12
12
  import CompleteObjectiveScreen from './CompleteObjectiveScreen';
13
13
  import DropCashScreen from './DropCashScreen';
14
- import RTScanScreen from './RTScanScreen';
15
14
  import ScanScreen from './ScanScreen';
16
15
  import HttpRequestScreen from './HttpRequestScreen';
17
16
  import ValidateOTPScreen from './ValidateOTPScreen';
18
- export { CancellationScreen, DeliverScreen, DoodleScreen, ImageCaptureScreen, FormsScreen, PickupScreen, StartWorkFlowScreen, CaptureInputScreen, GeofenceScreen, PaymentScreen, DisplayScreen, CompleteObjectiveScreen, DropCashScreen, RTScanScreen, ScanScreen, HttpRequestScreen, ValidateOTPScreen, };
17
+ export { CancellationScreen, DeliverScreen, DoodleScreen, ImageCaptureScreen, FormsScreen, PickupScreen, StartWorkFlowScreen, CaptureInputScreen, GeofenceScreen, PaymentScreen, DisplayScreen, CompleteObjectiveScreen, DropCashScreen, ScanScreen, HttpRequestScreen, ValidateOTPScreen, };
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;