@os1-platform/dispatch-mobile 1.0.7 → 1.3.11

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 (653) hide show
  1. package/README.md +90 -26
  2. package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
  3. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  4. package/android/.gradle/6.8/gc.properties +0 -0
  5. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  7. package/android/.gradle/checksums/checksums.lock +0 -0
  8. package/android/.gradle/configuration-cache/gc.properties +0 -0
  9. package/android/.gradle/vcs-1/gc.properties +0 -0
  10. package/android/.idea/gradle.xml +13 -0
  11. package/android/.idea/misc.xml +4 -0
  12. package/android/.idea/vcs.xml +6 -0
  13. package/android/.idea/workspace.xml +131 -0
  14. package/android/gradle.properties +1 -1
  15. package/android/local.properties +8 -0
  16. package/android/src/main/AndroidManifest.xml +0 -1
  17. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +46 -39
  18. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  19. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +14 -24
  20. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  21. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
  22. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  23. package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  24. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +64 -16
  25. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  26. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
  27. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  28. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +68 -26
  29. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  30. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +4 -13
  31. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  32. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -2
  33. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +61 -28
  35. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  36. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
  37. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +62 -18
  39. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  40. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +112 -28
  41. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  42. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
  43. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  44. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
  45. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
  46. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -16
  47. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  48. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
  49. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  50. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +4 -13
  51. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  52. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +0 -12
  53. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  54. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +7 -35
  56. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  57. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +74 -49
  58. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  59. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
  60. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
  62. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -17
  64. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
  66. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  67. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
  68. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  69. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
  70. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  71. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +60 -19
  72. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/scan/ScanET.js +843 -0
  74. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
  75. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +6 -0
  76. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
  77. package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
  78. package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
  79. package/lib/commonjs/components/executiontasks/scan/interfaces.js +29 -0
  80. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
  81. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +103 -0
  82. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
  83. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +74 -0
  84. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
  85. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +115 -0
  86. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
  87. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +134 -0
  88. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
  89. package/lib/commonjs/components/executiontasks/scan/utils.js +373 -0
  90. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
  91. package/lib/commonjs/components/executiontasks/scanner/CScanner.js +3 -21
  92. package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +4 -9
  94. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +7 -36
  96. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
  97. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -5
  98. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
  99. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -9
  100. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
  101. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -14
  102. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
  103. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +1 -40
  104. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
  105. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -17
  106. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
  107. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -28
  108. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
  109. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +334 -0
  110. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
  111. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
  112. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
  113. package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
  114. package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
  115. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +59 -0
  116. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
  117. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
  118. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
  119. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
  120. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  121. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
  122. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  123. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
  124. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  125. package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
  126. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  127. package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
  128. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  129. package/lib/commonjs/components/widgets/IconButton.js +34 -0
  130. package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
  131. package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
  132. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  133. package/lib/commonjs/components/widgets/SnackBarCustom.js +38 -38
  134. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  135. package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
  136. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
  137. package/lib/commonjs/components/widgets/Toaster.js +0 -2
  138. package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
  139. package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
  140. package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
  141. package/lib/commonjs/constants/apiConstants.js +15 -0
  142. package/lib/commonjs/constants/apiConstants.js.map +1 -0
  143. package/lib/commonjs/constants/constants.js +7 -3
  144. package/lib/commonjs/constants/constants.js.map +1 -1
  145. package/lib/commonjs/constants/statuscode.js +3 -5
  146. package/lib/commonjs/constants/statuscode.js.map +1 -1
  147. package/lib/commonjs/errors/BaseError.js +3 -8
  148. package/lib/commonjs/errors/BaseError.js.map +1 -1
  149. package/lib/commonjs/errors/ErrorCodes.js +7 -6
  150. package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
  151. package/lib/commonjs/events/EventDispatcher.js +27 -0
  152. package/lib/commonjs/events/EventDispatcher.js.map +1 -0
  153. package/lib/commonjs/events/EventListener.js +20 -0
  154. package/lib/commonjs/events/EventListener.js.map +1 -0
  155. package/lib/commonjs/events/constants.js +13 -0
  156. package/lib/commonjs/events/constants.js.map +1 -0
  157. package/lib/commonjs/events/index.js +11 -0
  158. package/lib/commonjs/events/index.js.map +1 -0
  159. package/lib/commonjs/events/interface.js +2 -0
  160. package/lib/commonjs/events/interface.js.map +1 -0
  161. package/lib/commonjs/index.js +9 -23
  162. package/lib/commonjs/index.js.map +1 -1
  163. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +527 -177
  164. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  165. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
  166. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  167. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
  168. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
  169. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
  170. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  171. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
  172. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  173. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +27 -0
  174. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
  175. package/lib/commonjs/manager/location/LocationManager.js +3 -20
  176. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  177. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -36
  178. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  179. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
  180. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  181. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +12 -46
  182. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  183. package/lib/commonjs/manager/syncmanager/DBConfig.js +13 -7
  184. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  185. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
  186. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
  187. package/lib/commonjs/manager/syncmanager/database.js +28 -12
  188. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  189. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +0 -19
  190. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  191. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +3 -20
  192. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  193. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +3 -52
  194. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  195. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +59 -25
  196. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  197. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +77 -90
  198. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  199. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +27 -19
  200. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  201. package/lib/commonjs/models/DispatchModels.js +4 -5
  202. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  203. package/lib/commonjs/models/ReasonCodes.js.map +1 -1
  204. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  205. package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
  206. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  207. package/lib/commonjs/models/sdk.js +4 -5
  208. package/lib/commonjs/models/sdk.js.map +1 -1
  209. package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
  210. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  211. package/lib/commonjs/network/GraphQLClient.js +7 -35
  212. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  213. package/lib/commonjs/network/NetworkClient.js +2 -13
  214. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  215. package/lib/commonjs/network/NetworkUtils.js +10 -8
  216. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  217. package/lib/commonjs/network/Queries.js +0 -2
  218. package/lib/commonjs/network/Queries.js.map +1 -1
  219. package/lib/commonjs/network/client.js +6 -21
  220. package/lib/commonjs/network/client.js.map +1 -1
  221. package/lib/commonjs/res/strings.js.map +1 -1
  222. package/lib/commonjs/resources/Login.js +4 -15
  223. package/lib/commonjs/resources/Login.js.map +1 -1
  224. package/lib/commonjs/resources/network.js +3 -8
  225. package/lib/commonjs/resources/network.js.map +1 -1
  226. package/lib/commonjs/styles/SdkColors.js +7 -7
  227. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  228. package/lib/commonjs/styles/executionTasks/CommonStyles.js +42 -18
  229. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  230. package/lib/commonjs/ui/screens/CancellationScreen.js +36 -27
  231. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  232. package/lib/commonjs/ui/screens/CaptureInputScreen.js +6 -15
  233. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  234. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +0 -19
  235. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  236. package/lib/commonjs/ui/screens/DeliverScreen.js +6 -15
  237. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  238. package/lib/commonjs/ui/screens/DisplayScreen.js +7 -12
  239. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  240. package/lib/commonjs/ui/screens/DoodleScreen.js +6 -16
  241. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  242. package/lib/commonjs/ui/screens/DropCashScreen.js +6 -18
  243. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  244. package/lib/commonjs/ui/screens/ETScreensIndex.js +14 -16
  245. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  246. package/lib/commonjs/ui/screens/FormsScreen.js +36 -15
  247. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  248. package/lib/commonjs/ui/screens/GeofenceScreen.js +7 -13
  249. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  250. package/lib/commonjs/ui/screens/HttpRequestScreen.js +5 -10
  251. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  252. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +27 -14
  253. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  254. package/lib/commonjs/ui/screens/PaymentScreen.js +11 -23
  255. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  256. package/lib/commonjs/ui/screens/PickupScreen.js +9 -13
  257. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  258. package/lib/commonjs/ui/screens/RTScanScreen.js +8 -27
  259. package/lib/commonjs/ui/screens/RTScanScreen.js.map +1 -1
  260. package/lib/commonjs/ui/screens/ScanScreen.js +268 -0
  261. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
  262. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +21 -30
  263. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  264. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +49 -0
  265. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
  266. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
  267. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  268. package/lib/commonjs/ui/uiConfig/RouteParams.js +9 -1
  269. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  270. package/lib/commonjs/utils/ApiUtils.js +115 -0
  271. package/lib/commonjs/utils/ApiUtils.js.map +1 -0
  272. package/lib/commonjs/utils/ExecTaskUtils.js +93 -31
  273. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  274. package/lib/commonjs/utils/Logger.js +10 -29
  275. package/lib/commonjs/utils/Logger.js.map +1 -1
  276. package/lib/commonjs/utils/NetworkUtil.js +3 -19
  277. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  278. package/lib/commonjs/utils/SdkUtils.js +2 -31
  279. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  280. package/lib/commonjs/utils/SyncManagerUtils.js +25 -40
  281. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  282. package/lib/commonjs/utils/fcm/FCM.js +35 -16
  283. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  284. package/lib/commonjs/utils/fcm/FcmUtils.js +50 -25
  285. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  286. package/lib/commonjs/utils/helper.js +0 -5
  287. package/lib/commonjs/utils/helper.js.map +1 -1
  288. package/lib/commonjs/utils/hooks/useTimer.js +44 -0
  289. package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
  290. package/lib/commonjs/utils/loginHelper.js +6 -18
  291. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  292. package/lib/commonjs/utils/storage.js +53 -32
  293. package/lib/commonjs/utils/storage.js.map +1 -1
  294. package/lib/commonjs/utils/utils.js +8 -11
  295. package/lib/commonjs/utils/utils.js.map +1 -1
  296. package/lib/module/components/dispatch/DispatchExecNavigator.js +46 -28
  297. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  298. package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -1
  299. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  300. package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
  301. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  302. package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  303. package/lib/module/components/executiontasks/captureInput/CaptureText.js +66 -9
  304. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  305. package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
  306. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  307. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +69 -16
  308. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  309. package/lib/module/components/executiontasks/display/DisplayModalET.js +4 -3
  310. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  311. package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
  312. package/lib/module/components/executiontasks/doodle/SignatureET.js +64 -14
  313. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  314. package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
  315. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  316. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +62 -8
  317. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  318. package/lib/module/components/executiontasks/forms/FormGenerator.js +114 -14
  319. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  320. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
  321. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  322. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
  323. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
  324. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -5
  325. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  326. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
  327. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  328. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +4 -2
  329. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  330. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +0 -3
  331. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  332. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  333. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +7 -10
  334. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  335. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
  336. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  337. package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  338. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  339. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -6
  340. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  341. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +63 -11
  342. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  343. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -10
  344. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  345. package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
  346. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  347. package/lib/module/components/executiontasks/pickup/SLPickupET.js +61 -10
  348. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  349. package/lib/module/components/executiontasks/scan/ScanET.js +833 -0
  350. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
  351. package/lib/module/components/executiontasks/scan/ScanSchema.js +2 -0
  352. package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
  353. package/lib/module/components/executiontasks/scan/constants.js +7 -0
  354. package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
  355. package/lib/module/components/executiontasks/scan/interfaces.js +21 -0
  356. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
  357. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +94 -0
  358. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
  359. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +66 -0
  360. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
  361. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +105 -0
  362. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
  363. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +124 -0
  364. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
  365. package/lib/module/components/executiontasks/scan/utils.js +358 -0
  366. package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
  367. package/lib/module/components/executiontasks/scanner/CScanner.js +3 -8
  368. package/lib/module/components/executiontasks/scanner/CScanner.js.map +1 -1
  369. package/lib/module/components/executiontasks/scanner/ScannerSchema.js +3 -3
  370. package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
  371. package/lib/module/components/executiontasks/scanner/ScannerUtils.js +6 -18
  372. package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
  373. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -2
  374. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
  375. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -5
  376. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
  377. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -3
  378. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
  379. package/lib/module/components/executiontasks/scanner/returns/RTScan.js +1 -19
  380. package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
  381. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -7
  382. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
  383. package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -15
  384. package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
  385. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +325 -0
  386. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
  387. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
  388. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
  389. package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
  390. package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
  391. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +49 -0
  392. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
  393. package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
  394. package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
  395. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
  396. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  397. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
  398. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  399. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +4 -8
  400. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  401. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  402. package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
  403. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  404. package/lib/module/components/widgets/IconButton.js +26 -0
  405. package/lib/module/components/widgets/IconButton.js.map +1 -0
  406. package/lib/module/components/widgets/ProgressDialog.js +0 -2
  407. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  408. package/lib/module/components/widgets/SnackBarCustom.js +36 -18
  409. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  410. package/lib/module/components/widgets/SplitTextInput.js +84 -0
  411. package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
  412. package/lib/module/components/widgets/Toaster.js.map +1 -1
  413. package/lib/module/config/DispatchSDKConfig.js +3 -4
  414. package/lib/module/config/DispatchSDKConfig.js.map +1 -1
  415. package/lib/module/constants/apiConstants.js +7 -0
  416. package/lib/module/constants/apiConstants.js.map +1 -0
  417. package/lib/module/constants/constants.js +4 -2
  418. package/lib/module/constants/constants.js.map +1 -1
  419. package/lib/module/constants/statuscode.js +3 -5
  420. package/lib/module/constants/statuscode.js.map +1 -1
  421. package/lib/module/errors/BaseError.js +3 -6
  422. package/lib/module/errors/BaseError.js.map +1 -1
  423. package/lib/module/errors/ErrorCodes.js +5 -5
  424. package/lib/module/errors/ErrorCodes.js.map +1 -1
  425. package/lib/module/events/EventDispatcher.js +19 -0
  426. package/lib/module/events/EventDispatcher.js.map +1 -0
  427. package/lib/module/events/EventListener.js +13 -0
  428. package/lib/module/events/EventListener.js.map +1 -0
  429. package/lib/module/events/constants.js +6 -0
  430. package/lib/module/events/constants.js.map +1 -0
  431. package/lib/module/events/index.js +3 -0
  432. package/lib/module/events/index.js.map +1 -0
  433. package/lib/module/events/interface.js +2 -0
  434. package/lib/module/events/interface.js.map +1 -0
  435. package/lib/module/index.js +4 -3
  436. package/lib/module/index.js.map +1 -1
  437. package/lib/module/manager/dispatch/DispatchStateContainer.js +529 -151
  438. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  439. package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
  440. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  441. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
  442. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
  443. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
  444. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  445. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
  446. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  447. package/lib/module/manager/jobRemoval/JobRemovalManager.js +20 -0
  448. package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
  449. package/lib/module/manager/location/LocationManager.js +3 -14
  450. package/lib/module/manager/location/LocationManager.js.map +1 -1
  451. package/lib/module/manager/sdk/DispatchSDKManager.js +8 -14
  452. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  453. package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
  454. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  455. package/lib/module/manager/syncmanager/AppSyncManager.js +12 -26
  456. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  457. package/lib/module/manager/syncmanager/DBConfig.js +9 -5
  458. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  459. package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
  460. package/lib/module/manager/syncmanager/database.js +27 -3
  461. package/lib/module/manager/syncmanager/database.js.map +1 -1
  462. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +0 -7
  463. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  464. package/lib/module/manager/syncmanager/document/DocumentManager.js +3 -14
  465. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  466. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +3 -35
  467. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  468. package/lib/module/manager/syncmanager/events/ETEventsManager.js +59 -18
  469. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  470. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +77 -68
  471. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  472. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +26 -11
  473. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  474. package/lib/module/models/DispatchModels.js +3 -4
  475. package/lib/module/models/DispatchModels.js.map +1 -1
  476. package/lib/module/models/ReasonCodes.js.map +1 -1
  477. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  478. package/lib/module/models/execTasks/ETConfig.js +22 -29
  479. package/lib/module/models/execTasks/ETConfig.js.map +1 -1
  480. package/lib/module/models/sdk.js +3 -4
  481. package/lib/module/models/sdk.js.map +1 -1
  482. package/lib/module/native/signature/SignatureCapture.js +3 -18
  483. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  484. package/lib/module/network/GraphQLClient.js +6 -26
  485. package/lib/module/network/GraphQLClient.js.map +1 -1
  486. package/lib/module/network/NetworkClient.js +2 -6
  487. package/lib/module/network/NetworkClient.js.map +1 -1
  488. package/lib/module/network/NetworkUtils.js +10 -3
  489. package/lib/module/network/NetworkUtils.js.map +1 -1
  490. package/lib/module/network/Queries.js.map +1 -1
  491. package/lib/module/network/client.js +7 -17
  492. package/lib/module/network/client.js.map +1 -1
  493. package/lib/module/res/strings.js.map +1 -1
  494. package/lib/module/resources/Login.js +4 -13
  495. package/lib/module/resources/Login.js.map +1 -1
  496. package/lib/module/resources/network.js +3 -6
  497. package/lib/module/resources/network.js.map +1 -1
  498. package/lib/module/styles/SdkColors.js +6 -6
  499. package/lib/module/styles/SdkColors.js.map +1 -1
  500. package/lib/module/styles/executionTasks/CommonStyles.js +41 -7
  501. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  502. package/lib/module/ui/screens/CancellationScreen.js +36 -14
  503. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  504. package/lib/module/ui/screens/CaptureInputScreen.js +7 -4
  505. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  506. package/lib/module/ui/screens/CompleteObjectiveScreen.js +0 -3
  507. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  508. package/lib/module/ui/screens/DeliverScreen.js +7 -4
  509. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  510. package/lib/module/ui/screens/DisplayScreen.js +5 -4
  511. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  512. package/lib/module/ui/screens/DoodleScreen.js +7 -4
  513. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  514. package/lib/module/ui/screens/DropCashScreen.js +7 -7
  515. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  516. package/lib/module/ui/screens/ETScreensIndex.js +3 -1
  517. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  518. package/lib/module/ui/screens/FormsScreen.js +34 -6
  519. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  520. package/lib/module/ui/screens/GeofenceScreen.js +5 -4
  521. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  522. package/lib/module/ui/screens/HttpRequestScreen.js +5 -3
  523. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  524. package/lib/module/ui/screens/ImageCaptureScreen.js +25 -5
  525. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  526. package/lib/module/ui/screens/PaymentScreen.js +12 -10
  527. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  528. package/lib/module/ui/screens/PickupScreen.js +7 -5
  529. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  530. package/lib/module/ui/screens/RTScanScreen.js +9 -13
  531. package/lib/module/ui/screens/RTScanScreen.js.map +1 -1
  532. package/lib/module/ui/screens/ScanScreen.js +259 -0
  533. package/lib/module/ui/screens/ScanScreen.js.map +1 -0
  534. package/lib/module/ui/screens/StartWorkFlowScreen.js +22 -9
  535. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  536. package/lib/module/ui/screens/ValidateOTPScreen.js +39 -0
  537. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
  538. package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
  539. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  540. package/lib/module/ui/uiConfig/RouteParams.js +9 -1
  541. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  542. package/lib/module/utils/ApiUtils.js +101 -0
  543. package/lib/module/utils/ApiUtils.js.map +1 -0
  544. package/lib/module/utils/ExecTaskUtils.js +92 -21
  545. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  546. package/lib/module/utils/Logger.js +9 -21
  547. package/lib/module/utils/Logger.js.map +1 -1
  548. package/lib/module/utils/NetworkUtil.js +3 -15
  549. package/lib/module/utils/NetworkUtil.js.map +1 -1
  550. package/lib/module/utils/SdkUtils.js +2 -15
  551. package/lib/module/utils/SdkUtils.js.map +1 -1
  552. package/lib/module/utils/SyncManagerUtils.js +25 -10
  553. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  554. package/lib/module/utils/fcm/FCM.js +35 -4
  555. package/lib/module/utils/fcm/FCM.js.map +1 -1
  556. package/lib/module/utils/fcm/FcmUtils.js +50 -7
  557. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  558. package/lib/module/utils/helper.js +0 -3
  559. package/lib/module/utils/helper.js.map +1 -1
  560. package/lib/module/utils/hooks/useTimer.js +37 -0
  561. package/lib/module/utils/hooks/useTimer.js.map +1 -0
  562. package/lib/module/utils/loginHelper.js +6 -16
  563. package/lib/module/utils/loginHelper.js.map +1 -1
  564. package/lib/module/utils/storage.js +51 -29
  565. package/lib/module/utils/storage.js.map +1 -1
  566. package/lib/module/utils/utils.js +8 -6
  567. package/lib/module/utils/utils.js.map +1 -1
  568. package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
  569. package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -2
  570. package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
  571. package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
  572. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +7 -7
  573. package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
  574. package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
  575. package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
  576. package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
  577. package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +1 -1
  578. package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
  579. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
  580. package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +16 -11
  581. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
  582. package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
  583. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
  584. package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
  585. package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
  586. package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +70 -0
  587. package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
  588. package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +41 -0
  589. package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +7 -0
  590. package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
  591. package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
  592. package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +8 -0
  593. package/lib/typescript/components/executiontasks/scan/utils.d.ts +21 -0
  594. package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +6 -6
  595. package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +1 -2
  596. package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +1 -1
  597. package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +1 -1
  598. package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
  599. package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
  600. package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
  601. package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
  602. package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
  603. package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
  604. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
  605. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
  606. package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
  607. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +9 -5
  608. package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
  609. package/lib/typescript/constants/apiConstants.d.ts +6 -0
  610. package/lib/typescript/constants/constants.d.ts +4 -2
  611. package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
  612. package/lib/typescript/events/EventDispatcher.d.ts +5 -0
  613. package/lib/typescript/events/EventListener.d.ts +5 -0
  614. package/lib/typescript/events/constants.d.ts +5 -0
  615. package/lib/typescript/events/index.d.ts +2 -0
  616. package/lib/typescript/events/interface.d.ts +1 -0
  617. package/lib/typescript/index.d.ts +5 -4
  618. package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +21 -8
  619. package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
  620. package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
  621. package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +6 -0
  622. package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
  623. package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +1 -0
  624. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +22 -2
  625. package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
  626. package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
  627. package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +5 -1
  628. package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +5 -1
  629. package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +3 -1
  630. package/lib/typescript/models/DispatchModels.d.ts +56 -1
  631. package/lib/typescript/models/ReasonCodes.d.ts +5 -0
  632. package/lib/typescript/models/auth.d.ts +1 -1
  633. package/lib/typescript/models/execTasks/ETBaseModels.d.ts +27 -8
  634. package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
  635. package/lib/typescript/models/sdk.d.ts +5 -0
  636. package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
  637. package/lib/typescript/network/NetworkUtils.d.ts +1 -5
  638. package/lib/typescript/styles/SdkColors.d.ts +1 -0
  639. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +36 -0
  640. package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -1
  641. package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
  642. package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
  643. package/lib/typescript/ui/uiConfig/RouteParams.d.ts +8 -0
  644. package/lib/typescript/utils/ApiUtils.d.ts +61 -0
  645. package/lib/typescript/utils/ExecTaskUtils.d.ts +7 -2
  646. package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
  647. package/lib/typescript/utils/SyncManagerUtils.d.ts +3 -1
  648. package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
  649. package/lib/typescript/utils/storage.d.ts +17 -0
  650. package/package.json +23 -24
  651. package/tsconfig.json +9 -8
  652. package/file_unzip.js +0 -5
  653. package/mobile-execution-lib-0.6.4.tgz +0 -0
@@ -2,32 +2,32 @@
2
2
  * Longitude
3
3
  */
4
4
  import type { BaseETRequest, BaseETResponse } from '../../../models/execTasks/ETBaseModels';
5
- export declare type Longitude = string;
5
+ export type Longitude = string;
6
6
  /**
7
7
  * Latitude
8
8
  */
9
- export declare type Latitude = string;
9
+ export type Latitude = string;
10
10
  /**
11
11
  * Accuracy in meters of the geolocation
12
12
  */
13
- export declare type Accuracy = number | null;
13
+ export type Accuracy = number | null;
14
14
  /**
15
15
  * Boolean key to enable/disable geofencing feature
16
16
  */
17
- export declare type GeofencingEnabled = boolean;
17
+ export type GeofencingEnabled = boolean;
18
18
  /**
19
19
  * Radius in meters around the verifyLocation for geo-fencing
20
20
  */
21
- export declare type Radius = number;
21
+ export type Radius = number;
22
22
  /**
23
23
  * Boolean key to enable manual override the geo-fencing feature
24
24
  */
25
- export declare type Override = boolean;
25
+ export type Override = boolean;
26
26
  /**
27
27
  * Any manual instruction to display for the Operator to work on
28
28
  */
29
- export declare type Instruction = string;
30
- export declare type VerifyLocationInput = BaseETRequest & {
29
+ export type Instruction = string;
30
+ export type VerifyLocationInput = BaseETRequest & {
31
31
  geolocation: GeoLocation;
32
32
  address?: string;
33
33
  onSubmitET: (value: VerifyLocationOutput) => void;
@@ -47,4 +47,4 @@ export interface GeoLocation {
47
47
  export interface Geofencing {
48
48
  radius: Radius;
49
49
  }
50
- export declare type VerifyLocationOutput = BaseETResponse;
50
+ export type VerifyLocationOutput = BaseETResponse;
@@ -2,18 +2,18 @@
2
2
  * Otp entered by user
3
3
  */
4
4
  import type { BaseETResponse } from '../../../models/execTasks/ETBaseModels';
5
- export declare type InputOtp = string;
5
+ export type InputOtp = string;
6
6
  /**
7
7
  * Otp Value
8
8
  */
9
- export declare type Otp = string;
9
+ export type Otp = string;
10
10
  export interface OtpInputSchema {
11
11
  inputCount: number;
12
12
  inputOtp: InputOtp;
13
13
  otp: Otp;
14
14
  onSubmit: (output: OtpOutputSchema) => void;
15
15
  }
16
- export declare type OtpOutputSchema = BaseETResponse & {
16
+ export type OtpOutputSchema = BaseETResponse & {
17
17
  /**
18
18
  * Boolean to represent result of verification
19
19
  */
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare const IconButton: ({ title, onPress, icon, style, textStyles, }: {
3
+ title: string;
4
+ onPress: (e: any) => void;
5
+ icon?: any;
6
+ style?: any;
7
+ textStyles?: any;
8
+ }) => JSX.Element;
9
+ export default IconButton;
@@ -10,11 +10,15 @@ export interface SnackbarProps {
10
10
  * Text content of the Snackbar.
11
11
  */
12
12
  message: string;
13
+ type?: SnackBarType;
13
14
  theme: ReactNativePaper.Theme;
15
+ customBottom?: number;
14
16
  }
15
- declare const _default: React.ComponentType<Pick<SnackbarProps, "visible" | "onDismiss" | "duration" | "message"> & {
16
- theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined; /**
17
- * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called.
18
- */
19
- }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<SnackbarProps> & (({ visible, duration, onDismiss, message, theme, }: SnackbarProps) => JSX.Element | null), {}>;
17
+ export declare enum SnackBarType {
18
+ SUCCESS = 0,
19
+ FAILURE = 1
20
+ }
21
+ declare const _default: React.ComponentType<Pick<SnackbarProps, "visible" | "type" | "onDismiss" | "duration" | "message" | "customBottom"> & {
22
+ theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
23
+ }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<SnackbarProps> & (({ visible, duration, onDismiss, message, theme, type, customBottom, }: SnackbarProps) => JSX.Element | null), {}>;
20
24
  export default _default;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { KeyboardTypeOptions } from 'react-native';
3
+ export interface SplitTextInputProps {
4
+ styles: any;
5
+ value: string;
6
+ onChange: (text: string) => void;
7
+ maxLength: number;
8
+ keyboardType: KeyboardTypeOptions;
9
+ hasError: boolean;
10
+ }
11
+ declare const SplitTextInput: ({ styles, value, onChange, maxLength, keyboardType, hasError, }: SplitTextInputProps) => JSX.Element;
12
+ export default SplitTextInput;
@@ -0,0 +1,6 @@
1
+ export declare const ENDPOINTS: {
2
+ JOB_REMOVAL: (dispatchId: string) => string;
3
+ };
4
+ export declare const API_CONFIG: {
5
+ timeout: number;
6
+ };
@@ -3,7 +3,9 @@ export declare const DEFAULT_NOTIFICATION_TITLE = "Dispatch Sync Manager";
3
3
  export declare const DEFAULT_NOTIFICATION_DESCRIPTION = "Syncing Events & Files";
4
4
  export declare const DEFAULT_INTERVAL = 10000;
5
5
  export declare const DEFAULT_PICKUP_TITLE = "Pickup Order";
6
- export declare const DEFAULT_PICKUP_MESSAGE = "Confirm pickup of $ order(s)";
6
+ export declare const DEFAULT_PICKUP_MESSAGE = "Confirm Pickup of $ order(s)";
7
7
  export declare const DEFAULT_DELIVER_TITLE = "Drop Order";
8
- export declare const DEFAULT_DELIVER_MESSAGE = "Confirm drop of $ order(s)";
8
+ export declare const DEFAULT_DELIVER_MESSAGE = "Confirm Drop of $ order(s)";
9
9
  export declare const DEFAULT_SIGN_ET_MESSAGE = "Please capture a clear signature from the customer";
10
+ export declare const REASON_NOT_USED = "NOT_TO_BE_USED";
11
+ export declare const GO_BACK_EVENT_CODE = "E-099";
@@ -18,11 +18,13 @@ declare const enum BaseErrorCodes {
18
18
  EXECUTION_ENGINE_ERROR = "100116",
19
19
  UNEXPECTED_ERROR = "100117",
20
20
  SYSTEM_TIME_CHECK_FAILED = "100118",
21
- ACCESS_TOKEN_EXPIRED = "100119"
21
+ ACCESS_TOKEN_EXPIRED = "100119",
22
+ MULTI_OBJECTIVE_ERROR = "100119"
22
23
  }
23
24
  export declare const InvalidArgumentsError = "Missing or invalid arguments";
24
25
  export declare const InvalidBaseURL = "URL is invalid";
25
26
  export declare const SyncManagerNotInitialized = "Sync Manager is not initialized.Please call init method first";
26
27
  export declare const AppSyncInitError = "App sync Manager not initialized.Please call initSyncManager() with valid BASE URLs from your app's index file";
27
28
  export declare const MissingOrInvalidProps = "One or more prop(s) is missing or invalid";
29
+ export declare const MultiObjectiveError = "Multiple objective not allowed as enableMultiObjectiveFlow is false.";
28
30
  export default BaseErrorCodes;
@@ -0,0 +1,5 @@
1
+ import type { stateWithObjRef } from '../models/DispatchModels';
2
+ import type { eventType } from './interface';
3
+ export declare const dispatchStartEvent: (customEtName: string, data: stateWithObjRef[]) => void;
4
+ declare const dispatchEvent: (type: eventType, customEtName: string, data: any) => void;
5
+ export default dispatchEvent;
@@ -0,0 +1,5 @@
1
+ declare const eventListener: {
2
+ on(event: string, callback: Function): void;
3
+ remove(event: string): void;
4
+ };
5
+ export default eventListener;
@@ -0,0 +1,5 @@
1
+ export declare const BaseEvents: {
2
+ START: string;
3
+ END: string;
4
+ BACK: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ import EventListener from './EventListener';
2
+ export default EventListener;
@@ -0,0 +1 @@
1
+ export type eventType = 'START' | 'END' | 'BACK';
@@ -1,8 +1,8 @@
1
1
  import Storage from './utils/storage';
2
2
  import type * as ETaskSchema from './components/executiontasks/ExecutionTasksIndex';
3
3
  import * as ExecutionTask from './components/executiontasks/ExecutionTasksIndex';
4
- import type { MTSInitRequest, MTSStartRequest } from '@os1-platform/mts-mobile';
5
- import * as MtsSdk from '@os1-platform/mts-mobile';
4
+ import type { MTSInitRequest, MTSStartRequest } from '@foxtrotplatform/platform-coreos-mts-sdk';
5
+ import * as MtsSdk from '@foxtrotplatform/platform-coreos-mts-sdk';
6
6
  import NativeSyncManager from './manager/syncmanager/NativeSyncManager';
7
7
  import type { DocumentRow, EventRow } from './manager/syncmanager/DBConfig';
8
8
  import { SyncMethod } from './manager/syncmanager/DBConfig';
@@ -11,7 +11,7 @@ import useFCMMessage, { getFCMToken, registerBackgroundHandler, requestFirebaseP
11
11
  import FCM from './utils/fcm/FCM';
12
12
  import DispatchExecNavigator from './components/dispatch/DispatchExecNavigator';
13
13
  import DispatchStateContainer from './manager/dispatch/DispatchStateContainer';
14
- import { objectiveExecutionStatus, ObjectiveNotFoundError } from 'mobile-execution-lib';
14
+ import { objectiveExecutionStatus, ObjectiveNotFoundError } from '@os1-platform/mobile-execution-lib';
15
15
  import { DispatchSDKManager } from './manager/sdk/DispatchSDKManager';
16
16
  import Logger, { LOG_TYPE } from './utils/Logger';
17
17
  import type { ETSummary, CompleteSummary } from './models/execTasks/ETBaseModels';
@@ -19,9 +19,10 @@ import SdkUtils from './utils/SdkUtils';
19
19
  import AppSyncManager from './manager/syncmanager/AppSyncManager';
20
20
  import type { JobObjectiveType } from './models/DispatchModels';
21
21
  import { SdkSyncType } from './models/DispatchModels';
22
+ import EventListener from './events';
22
23
  export { Storage, DispatchExecNavigator };
23
24
  export { ETSummary, CompleteSummary };
24
- export { NativeSyncManager, AppSyncManager, SdkSyncType, EventRow, DocumentRow, useFCMMessage, getFCMToken, requestFirebasePermissions, FCM, registerBackgroundHandler, DispatchStateContainer, SdkUtils, Logger, LOG_TYPE, };
25
+ export { NativeSyncManager, AppSyncManager, SdkSyncType, EventRow, DocumentRow, useFCMMessage, getFCMToken, requestFirebasePermissions, FCM, registerBackgroundHandler, DispatchStateContainer, SdkUtils, Logger, LOG_TYPE, EventListener, };
25
26
  export { SyncMethod, JobObjectiveType };
26
27
  export type { ETaskSchema };
27
28
  export { ExecutionTask, CancelOrderDialog };
@@ -1,7 +1,19 @@
1
- import type { Job, state } from 'mobile-execution-lib';
1
+ import type { Job, state } from '@os1-platform/mobile-execution-lib';
2
2
  import type { ETSummary } from '../../models/execTasks/ETBaseModels';
3
- import type { BaseETProps, JobObjectiveType, stateWithObjRef } from '../../models/DispatchModels';
3
+ import type { LockObjectiveState, QueryObjectiveState } from '../../models/DispatchModels';
4
+ import DispatchSdkCache from '../sdk/DispatchSdkCache';
5
+ import type { BaseETProps, JobObjectiveType, stateParams, stateWithObjRef } from '../../models/DispatchModels';
4
6
  export default class DispatchStateContainer {
7
+ cacheKeys: {
8
+ SDK_CONFIG: string;
9
+ DISPATCH_ID: string;
10
+ FMS_FOLDER: string;
11
+ FIREBASE_REGISTRATION_TOKEN: string;
12
+ REASON_FETCH_TIME: string;
13
+ CURRENT_WORKING_TASK_ID: string;
14
+ TASK_START_TIME: string;
15
+ };
16
+ cache: DispatchSdkCache;
5
17
  get stateKeys(): string[];
6
18
  set stateKeys(value: string[]);
7
19
  get mappedStates(): Map<string, stateWithObjRef[]>;
@@ -22,9 +34,10 @@ export default class DispatchStateContainer {
22
34
  */
23
35
  initDispatchExecutor(dispatchID: string, jobs: Job[], logging: boolean, maxTaskReattempt?: number): Promise<void>;
24
36
  bulkQueryNextET(jobObjectiveList: JobObjectiveType[]): Promise<stateWithObjRef[] | null>;
25
- queryNextTask(jobObjectiveList: JobObjectiveType[]): Promise<state[] | null>;
26
- queryObjective(objRef: string, jobID: string): Promise<state>;
27
- sendETOutput(etOutput: any, etState: stateWithObjRef[]): Promise<void>;
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>;
28
41
  saveETOutput(jobId: string, objRef: string, etState: state): Promise<void>;
29
42
  static getInstance(): DispatchStateContainer;
30
43
  fetchObjectiveState(objRef: string, jobID: string): string;
@@ -33,9 +46,9 @@ export default class DispatchStateContainer {
33
46
  setFailureRoute(route: string): void;
34
47
  getFailureRoute(): string | null;
35
48
  getObjectiveSummary(jobObjective: JobObjectiveType): Promise<ETSummary[]>;
36
- navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID: string, baseETProps: BaseETProps, isLastTask?: boolean): Promise<void>;
49
+ navigateToNextTask(navigation: any, route: any, etOutput: any, etSuccess: boolean, entityCode: string, eTaskID: string, baseETProps: BaseETProps, isLastTask?: boolean, isJobBasedOutput?: boolean): Promise<void>;
37
50
  private getJobObjectiveList;
38
- moveToNextET(baseETProps: BaseETProps, etStates: stateWithObjRef[], navigation: any, isLastTask?: boolean): Promise<void>;
51
+ moveToNextET(etOutput: any, baseETProps: BaseETProps, states: stateParams, navigation: any, isLastTask?: boolean): Promise<void>;
39
52
  private saveAndProceedToNextET;
40
- saveAndProceed(baseETProps: BaseETProps, etOutput: any, etStates: stateWithObjRef[], navigation: any, isLastTask?: boolean): Promise<void>;
53
+ saveAndProceed(baseETProps: BaseETProps, etOutput: any, states: stateParams, navigation: any, isLastTask?: boolean, isJobBasedOutput?: boolean): Promise<void>;
41
54
  }
@@ -1 +1,12 @@
1
- export declare function getEventCodeByET(_etName: string, success: boolean): string;
1
+ import type { EventsRow } from '../syncmanager/DBConfig';
2
+ export declare function getEventCodeByET(_etName: string, success: boolean, events?: {
3
+ [k: string]: string[];
4
+ } | string[]): string;
5
+ export default class EventCodeContainer {
6
+ private static instance;
7
+ private constructor();
8
+ static getInstance(): EventCodeContainer;
9
+ getEventCodes(applicableCodes: object): Promise<EventsRow[]>;
10
+ static getEventCodeFromText(eventText: string, events: EventsRow[]): string;
11
+ getEventByCode(code: string): Promise<EventsRow | null>;
12
+ }
@@ -0,0 +1,13 @@
1
+ import { EventsRow } from '../syncmanager/DBConfig';
2
+ import type { EventCodes } from '../../models/ReasonCodes';
3
+ export default class EventCodeRepo {
4
+ private static instance;
5
+ static getInstance(): EventCodeRepo;
6
+ saveEventCode(eventsList: EventCodes[]): Promise<void>;
7
+ private insertEvent;
8
+ private init;
9
+ getAllEventCodes(): Promise<EventsRow[]>;
10
+ deleteAll(): Promise<import("expo-sqlite").SQLResultSet>;
11
+ getEventsByCode(codes: string[]): Promise<EventsRow[]>;
12
+ getEventByCode(code: string): Promise<EventsRow[]>;
13
+ }
@@ -0,0 +1,6 @@
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
+ }
@@ -8,6 +8,8 @@ export default class DispatchSdkCache {
8
8
  FMS_FOLDER: string;
9
9
  FIREBASE_REGISTRATION_TOKEN: string;
10
10
  REASON_FETCH_TIME: string;
11
+ CURRENT_WORKING_TASK_ID: string;
12
+ TASK_START_TIME: string;
11
13
  };
12
14
  setObjectInCache(keyName: string, obj: any): Promise<void>;
13
15
  getObjectFromCache(keyName: string): Promise<any>;
@@ -4,6 +4,7 @@ export default class AppSyncManager {
4
4
  private constructor();
5
5
  private static instance;
6
6
  isSyncActive: boolean;
7
+ isForceStartEnabled: boolean;
7
8
  /**
8
9
  *
9
10
  * @param forceSync - true/false - if true resets the retry count key and start the sync
@@ -1,6 +1,8 @@
1
+ import type { SyncType } from '@os1-platform/mobile-execution-lib';
1
2
  export declare const DATABASE_NAME = "DISPATCH_DB";
2
3
  export declare const EVENTS_TABLE = "EVENTS_TABLE";
3
4
  export declare const REASONS_TABLE = "REASONS_TABLE";
5
+ export declare const EVENT_CODES_TABLE = "EVENT_CODES_TABLE";
4
6
  export declare const EVENTS_COLUMNS: {
5
7
  ID: string;
6
8
  SEQUENCE: string;
@@ -30,7 +32,7 @@ export declare const DOCUMENT_COLUMNS: {
30
32
  JOB_ID: string;
31
33
  OBJECTIVE_REF: string;
32
34
  };
33
- export declare type DocumentRow = {
35
+ export type DocumentRow = {
34
36
  id: number;
35
37
  data: string;
36
38
  base64: boolean;
@@ -47,7 +49,7 @@ export declare type DocumentRow = {
47
49
  job_id: string;
48
50
  objective_ref: string;
49
51
  };
50
- export declare type EventRow = {
52
+ export type EventRow = {
51
53
  id: number;
52
54
  payload: string;
53
55
  synced: boolean;
@@ -75,3 +77,21 @@ export interface ReasonsRow {
75
77
  reasonCode: string;
76
78
  isSystemDefined: boolean;
77
79
  }
80
+ export interface EventsRow {
81
+ description: string;
82
+ successEvent: boolean;
83
+ eventCode: string;
84
+ }
85
+ export declare const EventColumns: {
86
+ CODE: string;
87
+ DESCRIPTION: string;
88
+ SUCCESS_EVENT: string;
89
+ };
90
+ export interface BulkEvent {
91
+ syncType: SyncType;
92
+ dispatchId: string;
93
+ data: string;
94
+ config: string;
95
+ sequence: number;
96
+ meta?: any;
97
+ }
@@ -1,2 +1,7 @@
1
1
  import type { SQLResultSet } from 'expo-sqlite';
2
+ export interface ExecQuery {
3
+ query: string;
4
+ args: any[];
5
+ }
2
6
  export declare function executeQuery(query: string, args: any[]): Promise<SQLResultSet>;
7
+ export declare function executeBulkQuery(_queryData: ExecQuery[]): Promise<boolean>;
@@ -1,4 +1,4 @@
1
- export declare type FILE_TAGS = {
1
+ export type FILE_TAGS = {
2
2
  key: string;
3
3
  value: string;
4
4
  };
@@ -1,16 +1,20 @@
1
- import { EventRow } from '../DBConfig';
1
+ import { BulkEvent, EventRow } from '../DBConfig';
2
2
  export default class ETEventsManager {
3
3
  private static instance;
4
+ private maxRetryCount;
5
+ private _retries;
4
6
  private constructor();
5
7
  static getInstance(): Promise<ETEventsManager>;
6
8
  private static init;
7
9
  insertEvent(sequence: number, payload: string, dspID: string, syncType: string, objectiveRef: string, config?: string): Promise<void>;
10
+ insertBulkEvent(_eventData: BulkEvent[]): Promise<void>;
8
11
  getAllEvents(dispatchID?: string): Promise<EventRow[]>;
9
12
  getAllUnsyncedEvents(): Promise<EventRow[]>;
10
13
  deleteAllEvents(): Promise<import("expo-sqlite").SQLResultSet>;
11
14
  updateError(id: number, syncError: string): Promise<void>;
12
15
  markEventSynced(id: number): Promise<void>;
13
16
  getWorkflowUpdateEvents(syncType: string): Promise<EventRow[]>;
17
+ getJobRemovalEvents(syncType: string): Promise<EventRow[]>;
14
18
  getCustodyBatch(dispatchID: string): Promise<EventRow[]>;
15
19
  getObjectiveDetails(objectiveRef: string): Promise<EventRow[]>;
16
20
  }
@@ -1,4 +1,4 @@
1
- import type { EventRow } from '../DBConfig';
1
+ import type { BulkEvent, EventRow } from '../DBConfig';
2
2
  export default class EventsSyncManager {
3
3
  private syncHttpClient;
4
4
  private static instance;
@@ -13,6 +13,9 @@ 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;
16
19
  startCustodyScans(custodyScans: EventRow[]): Promise<void>;
17
20
  private updateEventError;
18
21
  /**
@@ -22,6 +25,7 @@ export default class EventsSyncManager {
22
25
  isSyncPending(): Promise<boolean>;
23
26
  private markEventSynced;
24
27
  insertEvent(sequence: number, payload: string, dspID: string, syncType: string, objectiveRef: string, config?: string): Promise<void>;
28
+ insertBulkEvent(_bulkData: BulkEvent[]): Promise<void>;
25
29
  private checkForInitialization;
26
30
  getObjectiveSummary(objectiveRef: string): Promise<any>;
27
31
  private syncEventToServer;
@@ -1,7 +1,9 @@
1
1
  import HttpClient from '../../../network/client';
2
2
  import type { EventRow } from '../DBConfig';
3
- import { SyncType } from 'mobile-execution-lib';
3
+ import NetworkClient from '../../../network/NetworkClient';
4
+ import { SyncType } from '@os1-platform/mobile-execution-lib';
4
5
  export default class SyncHttpClient extends HttpClient {
6
+ protected readonly networkInstance: NetworkClient;
5
7
  constructor(baseURL: string);
6
8
  syncEvent(eventRow: EventRow[], syncType: SyncType): Promise<boolean | null>;
7
9
  }
@@ -1,4 +1,4 @@
1
- import type { state } from 'mobile-execution-lib';
1
+ import type { state } from '@os1-platform/mobile-execution-lib';
2
2
  export interface BaseETProps {
3
3
  showProgress: (loading: boolean) => void;
4
4
  }
@@ -9,9 +9,64 @@ export declare enum SdkSyncType {
9
9
  export interface JobObjectiveType {
10
10
  objectiveId: string;
11
11
  jobId: string;
12
+ groupId?: string;
13
+ additionalData?: any;
12
14
  }
13
15
  export interface stateWithObjRef {
14
16
  nextState: state;
15
17
  objRef: string;
16
18
  jobId: string;
19
+ groupId?: string;
20
+ additionalData?: any;
21
+ }
22
+ export interface endEvent {
23
+ taskId: string;
24
+ nextTaskId: string;
25
+ timestamp: number;
26
+ groupId?: string;
27
+ etData: {
28
+ [key: string]: {
29
+ workflowInstanceId: string;
30
+ additionalData?: any;
31
+ success?: boolean;
32
+ eventCode?: string;
33
+ reasonCode?: string;
34
+ [key: string]: any;
35
+ };
36
+ };
37
+ meta?: any;
38
+ }
39
+ export interface startEvent {
40
+ timestamp: number;
41
+ taskId: string;
42
+ groupId?: string;
43
+ etData: {
44
+ [key: string]: {
45
+ workflowInstanceId: string;
46
+ additionalData?: any;
47
+ [key: string]: any;
48
+ };
49
+ };
50
+ }
51
+ export interface stateParams {
52
+ next_states: stateWithObjRef[];
53
+ pending_states?: stateWithObjRef[];
54
+ rootMetaData?: {
55
+ meta: any;
56
+ };
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;
17
72
  }
@@ -4,3 +4,8 @@ export interface ReasonCodes {
4
4
  reasonCode: string;
5
5
  isSystemDefined: boolean;
6
6
  }
7
+ export interface EventCodes {
8
+ description: string;
9
+ eventCode: string;
10
+ successEvent: boolean;
11
+ }
@@ -26,7 +26,7 @@ export interface RefreshTokenPayload {
26
26
  appName: string;
27
27
  applicationSecret: string;
28
28
  }
29
- export declare type LoginType = 'mobilePassword' | 'mobileOtp' | 'mPin' | 'usernamePassword' | 'clientCredential';
29
+ export type LoginType = 'mobilePassword' | 'mobileOtp' | 'mPin' | 'usernamePassword' | 'clientCredential';
30
30
  export interface Headers {
31
31
  requestId: string;
32
32
  }
@@ -1,4 +1,4 @@
1
- export declare type BaseETResponse = {
1
+ export type BaseETResponse = {
2
2
  /**
3
3
  * Success flag for the operation performed by user
4
4
  */
@@ -41,6 +41,10 @@ export declare type BaseETResponse = {
41
41
  * Unique identifier of user performing the action
42
42
  */
43
43
  userDetails: UserData;
44
+ /**
45
+ * Check if ETs are executed in merged form
46
+ */
47
+ isMerged?: boolean;
44
48
  };
45
49
  };
46
50
  export interface UserData {
@@ -50,24 +54,39 @@ export interface UserData {
50
54
  /**
51
55
  * Title of instruction
52
56
  */
53
- export declare type Title = string;
57
+ export type Title = string;
54
58
  /**
55
59
  * Message of instruction
56
60
  */
57
- export declare type Message = string;
61
+ export type Message = string;
58
62
  /**
59
63
  * Can go back
60
64
  */
61
- export declare type CanGoBack = boolean;
62
- export declare type BaseETRequest = {
65
+ export type CanGoBack = boolean;
66
+ export type BaseETRequest = {
63
67
  title: Title;
64
68
  message?: Message;
65
69
  canGoBack?: CanGoBack;
66
- applicableReasons?: ApplicableReasons;
70
+ applicableReasons?: ApplicableReasons | NewApplicableReasons;
71
+ taskMeta?: {
72
+ [k: string]: any;
73
+ };
74
+ wfMeta?: {
75
+ [k: string]: any;
76
+ };
77
+ navigation?: any;
67
78
  };
68
- export interface ApplicableReasons {
79
+ export type ApplicableReasons = {
69
80
  [k: string]: string[];
70
- }
81
+ };
82
+ export type NewApplicableReasons = {
83
+ success: {
84
+ [k: string]: string[];
85
+ };
86
+ failure: {
87
+ [k: string]: string[];
88
+ };
89
+ };
71
90
  export interface ETSummary {
72
91
  name: string;
73
92
  eventCode: string;
@@ -16,7 +16,8 @@ export declare enum ExecutionTaskID {
16
16
  DISPLAY = "etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44",
17
17
  VERIFY_INPUT = "etask:6fc10a60-a144-5798-97f3-1f12e77f56e2",
18
18
  DELIVER_CASH = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe",
19
- HTTP_REQUEST_ET = "etask:e148b862-8368-5586-b29d-1eda95ffc8c4"
19
+ HTTP_REQUEST_ET = "etask:e148b862-8368-5586-b29d-1eda95ffc8c4",
20
+ VALIDATE_OTP_ET = "etask:8d5b96f3-7342-5e25-a57f-30004f53de17"
20
21
  }
21
22
  export declare enum ExecutionTaskName {
22
23
  DELIVER = "Deliver",
@@ -36,7 +37,8 @@ export declare enum ExecutionTaskName {
36
37
  DISPLAY = "Display",
37
38
  VERIFY_INPUT = "Verifying Input",
38
39
  DELIVER_CASH = "Drop Cash",
39
- HTTP_REQUEST_ET = "Network Request"
40
+ HTTP_REQUEST_ET = "Network Request",
41
+ VALIDATE_OTP_ET = "Validate OTP"
40
42
  }
41
43
  export declare enum CustomScreens {
42
44
  REMARK_SCREEN = "REMARKS_SCREEN"
@@ -59,7 +61,8 @@ export declare enum EntityCode {
59
61
  DISPLAY = "0013",
60
62
  VERIFY_INPUT = "0020",
61
63
  DELIVER_CASH = "0022",
62
- HTTP_REQUEST_ET = "0023"
64
+ HTTP_REQUEST_ET = "0023",
65
+ VALIDATE_OTP_ET = "0052"
63
66
  }
64
67
  export declare enum BaseEventCodes {
65
68
  ENTITY_SUCCESS = "E-010",
@@ -82,5 +85,6 @@ export declare enum FinalETName {
82
85
  VERIFY_LOCATION = "etask:7f3897da-3a1f-5736-b8e5-5d9f131b13cd",
83
86
  DISPLAY = "etask:574ff9b0-c49c-5eb5-b550-8548ae0cab44",
84
87
  VERIFY_INPUT = "etask:6fc10a60-a144-5798-97f3-1f12e77f56e2",
85
- DELIVER_CASH = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe"
88
+ DELIVER_CASH = "etask:2fffdf62-62b3-5e70-bd9e-d4d2644ee2fe",
89
+ VALIDATE_OTP_ET = "Validate OTP"
86
90
  }