@os1-platform/dispatch-mobile 2.1.13 → 2.1.15

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 (413) hide show
  1. package/android/.gradle/7.5/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
  4. package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/android/.gradle/7.5/dependencies-accessors/gc.properties +0 -0
  6. package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
  7. package/android/.gradle/7.5/fileChanges/last-build.bin +0 -0
  8. package/android/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
  9. package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
  10. package/android/.gradle/7.5/gc.properties +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  13. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  14. package/android/.gradle/config.properties +2 -0
  15. package/android/.idea/compiler.xml +6 -0
  16. package/android/.idea/gradle.xml +8 -3
  17. package/android/.idea/kotlinc.xml +6 -0
  18. package/android/.idea/migrations.xml +10 -0
  19. package/android/.idea/misc.xml +1 -1
  20. package/android/.idea/other.xml +263 -0
  21. package/android/build.gradle +1 -1
  22. package/android/gradle.properties +4 -4
  23. package/android/src/main/AndroidManifest.xml +10 -6
  24. package/android/src/main/java/com/dispatchsdk/sync/SyncManagerService.kt +7 -1
  25. package/lib/commonjs/@types/assets/index.d.js.map +1 -1
  26. package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -1
  27. package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
  28. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  29. package/lib/commonjs/analytics/sentry/SentryModels.js.map +1 -1
  30. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
  31. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  32. package/lib/commonjs/components/executiontasks/CompletedWFSchema.js.map +1 -1
  33. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  35. package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  36. package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -1
  37. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  40. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  42. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/display/DisplaySchema.js.map +1 -1
  44. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
  46. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
  48. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  50. package/lib/commonjs/components/executiontasks/forms/FormSchema.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.map +1 -1
  54. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  57. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -1
  58. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  59. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  60. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +3 -0
  61. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  62. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  64. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
  66. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  67. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
  68. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  69. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
  70. package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  71. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  72. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/scan/ScanET.js +9 -6
  74. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  75. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
  76. package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
  77. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  78. package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  80. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  82. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +66 -27
  83. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  84. package/lib/commonjs/components/executiontasks/scan/utils.js +4 -2
  85. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  86. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  88. package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  90. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  91. package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -1
  92. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -1
  94. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  96. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  97. package/lib/commonjs/components/utils/index.js.map +1 -1
  98. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  99. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  100. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  101. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
  102. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  103. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
  104. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  105. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  106. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  107. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  108. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  109. package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
  110. package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
  111. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  112. package/lib/commonjs/constants/constants.js.map +1 -1
  113. package/lib/commonjs/constants/statuscode.js.map +1 -1
  114. package/lib/commonjs/errors/BaseError.js.map +1 -1
  115. package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
  116. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  117. package/lib/commonjs/events/EventListener.js.map +1 -1
  118. package/lib/commonjs/events/constants.js.map +1 -1
  119. package/lib/commonjs/events/index.js.map +1 -1
  120. package/lib/commonjs/events/interface.js.map +1 -1
  121. package/lib/commonjs/icons/ScanIcon.js.map +1 -1
  122. package/lib/commonjs/icons/file.js.map +1 -1
  123. package/lib/commonjs/icons/interface.js.map +1 -1
  124. package/lib/commonjs/index.js.map +1 -1
  125. package/lib/commonjs/locale/Str.js.map +1 -1
  126. package/lib/commonjs/locale/i18n.js.map +1 -1
  127. package/lib/commonjs/locale/util.js.map +1 -1
  128. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  129. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  130. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  131. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  132. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  133. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  134. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  135. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  136. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  137. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
  138. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  139. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  140. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
  141. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -1
  142. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  143. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  144. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +9 -3
  145. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  146. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +0 -1
  147. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  148. package/lib/commonjs/manager/syncmanager/document/models.js.map +1 -1
  149. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  150. package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -1
  151. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  152. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  153. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  154. package/lib/commonjs/models/ReasonCodes.js.map +1 -1
  155. package/lib/commonjs/models/auth.js.map +1 -1
  156. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  157. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  158. package/lib/commonjs/models/execution.js.map +1 -1
  159. package/lib/commonjs/models/fcm.js.map +1 -1
  160. package/lib/commonjs/models/sdk.js.map +1 -1
  161. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  162. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  163. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  164. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  165. package/lib/commonjs/network/Queries.js.map +1 -1
  166. package/lib/commonjs/network/client.js.map +1 -1
  167. package/lib/commonjs/res/strings.js.map +1 -1
  168. package/lib/commonjs/resources/Login.js.map +1 -1
  169. package/lib/commonjs/resources/network.js.map +1 -1
  170. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  171. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  172. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  173. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  174. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  175. package/lib/commonjs/ui/screens/DeliverScreen.js +9 -1
  176. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  177. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  178. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  179. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  180. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  181. package/lib/commonjs/ui/screens/FormsScreen.js +9 -1
  182. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  183. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  184. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  185. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  186. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  187. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  188. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  189. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  190. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  191. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  192. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  193. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  194. package/lib/commonjs/utils/Constants.js +9 -0
  195. package/lib/commonjs/utils/Constants.js.map +1 -0
  196. package/lib/commonjs/utils/Enums.js +12 -0
  197. package/lib/commonjs/utils/Enums.js.map +1 -0
  198. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  199. package/lib/commonjs/utils/Logger.js.map +1 -1
  200. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  201. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  202. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  203. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  204. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  205. package/lib/commonjs/utils/helper.js.map +1 -1
  206. package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
  207. package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
  208. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  209. package/lib/commonjs/utils/storage.js.map +1 -1
  210. package/lib/commonjs/utils/utils.js.map +1 -1
  211. package/lib/module/@types/assets/index.d.js.map +1 -1
  212. package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -1
  213. package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
  214. package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  215. package/lib/module/analytics/sentry/SentryModels.js.map +1 -1
  216. package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
  217. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  218. package/lib/module/components/executiontasks/CompletedWFSchema.js.map +1 -1
  219. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  220. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  221. package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  222. package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -1
  223. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  224. package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -1
  225. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  226. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  227. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  228. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  229. package/lib/module/components/executiontasks/display/DisplaySchema.js.map +1 -1
  230. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  231. package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
  232. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  233. package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
  234. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  235. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  236. package/lib/module/components/executiontasks/forms/FormSchema.js.map +1 -1
  237. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  238. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  239. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  240. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  241. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  242. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  243. package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -1
  244. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  245. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  246. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +3 -0
  247. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  248. package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  249. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  250. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  251. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
  252. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  253. package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
  254. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  255. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
  256. package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  257. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  258. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  259. package/lib/module/components/executiontasks/scan/ScanET.js +9 -6
  260. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  261. package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
  262. package/lib/module/components/executiontasks/scan/constants.js.map +1 -1
  263. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  264. package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -1
  265. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  266. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  267. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  268. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +67 -28
  269. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  270. package/lib/module/components/executiontasks/scan/utils.js +4 -2
  271. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  272. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  273. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  274. package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -1
  275. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  276. package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
  277. package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -1
  278. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  279. package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -1
  280. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  281. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  282. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  283. package/lib/module/components/utils/index.js.map +1 -1
  284. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  285. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  286. package/lib/module/components/widgets/Card.js.map +1 -1
  287. package/lib/module/components/widgets/GoBackModal.js.map +1 -1
  288. package/lib/module/components/widgets/IconButton.js.map +1 -1
  289. package/lib/module/components/widgets/ModalWidget.js.map +1 -1
  290. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  291. package/lib/module/components/widgets/SearchBar.js.map +1 -1
  292. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  293. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  294. package/lib/module/components/widgets/TabsComponent.js.map +1 -1
  295. package/lib/module/components/widgets/Toaster.js.map +1 -1
  296. package/lib/module/config/DispatchSDKConfig.js.map +1 -1
  297. package/lib/module/constants/apiConstants.js.map +1 -1
  298. package/lib/module/constants/constants.js.map +1 -1
  299. package/lib/module/constants/statuscode.js.map +1 -1
  300. package/lib/module/errors/BaseError.js.map +1 -1
  301. package/lib/module/errors/ErrorCodes.js.map +1 -1
  302. package/lib/module/events/EventDispatcher.js.map +1 -1
  303. package/lib/module/events/EventListener.js.map +1 -1
  304. package/lib/module/events/constants.js.map +1 -1
  305. package/lib/module/events/index.js.map +1 -1
  306. package/lib/module/events/interface.js.map +1 -1
  307. package/lib/module/icons/ScanIcon.js.map +1 -1
  308. package/lib/module/icons/file.js.map +1 -1
  309. package/lib/module/icons/interface.js.map +1 -1
  310. package/lib/module/index.js.map +1 -1
  311. package/lib/module/locale/Str.js.map +1 -1
  312. package/lib/module/locale/i18n.js.map +1 -1
  313. package/lib/module/locale/util.js.map +1 -1
  314. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  315. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  316. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  317. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  318. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  319. package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  320. package/lib/module/manager/location/LocationManager.js.map +1 -1
  321. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  322. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  323. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
  324. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  325. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  326. package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
  327. package/lib/module/manager/syncmanager/constants.js.map +1 -1
  328. package/lib/module/manager/syncmanager/database.js.map +1 -1
  329. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  330. package/lib/module/manager/syncmanager/document/DocumentManager.js +9 -3
  331. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  332. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +0 -1
  333. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  334. package/lib/module/manager/syncmanager/document/models.js.map +1 -1
  335. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  336. package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -1
  337. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  338. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  339. package/lib/module/models/DispatchModels.js.map +1 -1
  340. package/lib/module/models/ReasonCodes.js.map +1 -1
  341. package/lib/module/models/auth.js.map +1 -1
  342. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  343. package/lib/module/models/execTasks/ETConfig.js.map +1 -1
  344. package/lib/module/models/execution.js.map +1 -1
  345. package/lib/module/models/fcm.js.map +1 -1
  346. package/lib/module/models/sdk.js.map +1 -1
  347. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  348. package/lib/module/network/GraphQLClient.js.map +1 -1
  349. package/lib/module/network/NetworkClient.js.map +1 -1
  350. package/lib/module/network/NetworkUtils.js.map +1 -1
  351. package/lib/module/network/Queries.js.map +1 -1
  352. package/lib/module/network/client.js.map +1 -1
  353. package/lib/module/res/strings.js.map +1 -1
  354. package/lib/module/resources/Login.js.map +1 -1
  355. package/lib/module/resources/network.js.map +1 -1
  356. package/lib/module/styles/SdkColors.js.map +1 -1
  357. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  358. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  359. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  360. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  361. package/lib/module/ui/screens/DeliverScreen.js +9 -1
  362. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  363. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  364. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  365. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  366. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  367. package/lib/module/ui/screens/FormsScreen.js +9 -1
  368. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  369. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  370. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  371. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  372. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  373. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  374. package/lib/module/ui/screens/ScanScreen.js.map +1 -1
  375. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  376. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  377. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  378. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  379. package/lib/module/utils/ApiUtils.js.map +1 -1
  380. package/lib/module/utils/Constants.js +3 -0
  381. package/lib/module/utils/Constants.js.map +1 -0
  382. package/lib/module/utils/Enums.js +6 -0
  383. package/lib/module/utils/Enums.js.map +1 -0
  384. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  385. package/lib/module/utils/Logger.js.map +1 -1
  386. package/lib/module/utils/NetworkUtil.js.map +1 -1
  387. package/lib/module/utils/SdkUtils.js.map +1 -1
  388. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  389. package/lib/module/utils/fcm/FCM.js.map +1 -1
  390. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  391. package/lib/module/utils/helper.js.map +1 -1
  392. package/lib/module/utils/hooks/useModal.js.map +1 -1
  393. package/lib/module/utils/hooks/useTimer.js.map +1 -1
  394. package/lib/module/utils/loginHelper.js.map +1 -1
  395. package/lib/module/utils/storage.js.map +1 -1
  396. package/lib/module/utils/utils.js.map +1 -1
  397. package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +2 -0
  398. package/lib/typescript/utils/Constants.d.ts +1 -0
  399. package/lib/typescript/utils/Enums.d.ts +4 -0
  400. package/package.json +7 -7
  401. package/src/components/executiontasks/imageCapture/ImageCapture.tsx +36 -31
  402. package/src/components/executiontasks/scan/ScanET.tsx +23 -23
  403. package/src/components/executiontasks/scan/interfaces.ts +2 -0
  404. package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +107 -80
  405. package/src/components/executiontasks/scan/utils.ts +4 -1
  406. package/src/manager/syncmanager/document/DocumentManager.ts +15 -6
  407. package/src/manager/syncmanager/document/DocumentSyncManager.ts +45 -46
  408. package/src/ui/screens/DeliverScreen.tsx +9 -7
  409. package/src/ui/screens/FormsScreen.tsx +14 -7
  410. package/src/ui/screens/ImageCaptureScreen.tsx +1 -1
  411. package/src/utils/Constants.ts +2 -0
  412. package/src/utils/Enums.ts +4 -0
  413. package/src/utils/storage.ts +9 -9
@@ -42,7 +42,7 @@ export default class DocumentSyncManager {
42
42
  this._retries = value;
43
43
  }
44
44
 
45
- private constructor() {}
45
+ private constructor() { }
46
46
 
47
47
  public init(baseURL: string, retryCount: number) {
48
48
  if (isEmptyOrBlank(baseURL))
@@ -80,7 +80,7 @@ export default class DocumentSyncManager {
80
80
  screenName: cta,
81
81
  cta: cta,
82
82
  extraParams: {
83
- msg:'No data to sync'
83
+ msg: 'No data to sync'
84
84
  },
85
85
  });
86
86
  Logger.getInstance().logEvent(
@@ -97,7 +97,7 @@ export default class DocumentSyncManager {
97
97
  screenName: cta,
98
98
  cta: cta,
99
99
  extraParams: {
100
- msg:'No Network'
100
+ msg: 'No Network'
101
101
  },
102
102
  });
103
103
  Logger.getInstance().logEvent(
@@ -114,7 +114,7 @@ export default class DocumentSyncManager {
114
114
  screenName: cta,
115
115
  cta: cta,
116
116
  extraParams: {
117
- msg:flattenObject(error)
117
+ msg: flattenObject(error)
118
118
  },
119
119
  });
120
120
  Logger.getInstance().logEvent(
@@ -138,7 +138,7 @@ export default class DocumentSyncManager {
138
138
  screenName: cta,
139
139
  cta: cta,
140
140
  extraParams: {
141
- msg:flattenObject(extraParameters)
141
+ msg: flattenObject(extraParameters)
142
142
  },
143
143
  });
144
144
  Logger.getInstance().logEvent(
@@ -156,7 +156,7 @@ export default class DocumentSyncManager {
156
156
  screenName: cta,
157
157
  cta: cta,
158
158
  extraParams: {
159
- msg:'sync already in progress or max count reached'
159
+ msg: 'sync already in progress or max count reached'
160
160
  },
161
161
  });
162
162
  Logger.getInstance().logEvent(
@@ -206,7 +206,7 @@ export default class DocumentSyncManager {
206
206
  if (!this.docManager) {
207
207
  this.docManager = await DocumentManager.getInstance();
208
208
  }
209
- console.log('insertDocument1:',fmsFolderID);
209
+ console.log('insertDocument1:', fmsFolderID);
210
210
  let insertResponse = await this.docManager?.insertDocument(
211
211
  fmsFolderID,
212
212
  desc,
@@ -229,7 +229,7 @@ export default class DocumentSyncManager {
229
229
  screenName: cta,
230
230
  cta: cta,
231
231
  extraParams: {
232
- msg:'INIT DOC SYNC AGAIN'
232
+ msg: 'INIT DOC SYNC AGAIN'
233
233
  },
234
234
  });
235
235
  Logger.getInstance().logEvent(
@@ -294,7 +294,7 @@ export default class DocumentSyncManager {
294
294
  screenName: cta,
295
295
  cta: cta,
296
296
  extraParams: {
297
- msg:flattenObject(extraParameters)
297
+ msg: flattenObject(extraParameters)
298
298
  },
299
299
  });
300
300
  Logger.getInstance().logEvent(
@@ -304,7 +304,7 @@ export default class DocumentSyncManager {
304
304
  );
305
305
  // Calling update method for attempt count and sync to update event row of type POD_DOC
306
306
  await eventsManager.markPODDocEventSynced(sync, attempt, podId);
307
- if(sync == 1){
307
+ if (sync == 1) {
308
308
  const lastSyncedEventId = await Storage.getInstance().getSharedItem(
309
309
  LAST_SYNCED_EVENT_ID
310
310
  );
@@ -323,7 +323,7 @@ export default class DocumentSyncManager {
323
323
  screenName: cta,
324
324
  cta: cta,
325
325
  extraParams: {
326
- msg:flattenObject(err)
326
+ msg: flattenObject(err)
327
327
  },
328
328
  });
329
329
  Logger.getInstance().logEvent(
@@ -334,7 +334,7 @@ export default class DocumentSyncManager {
334
334
  }
335
335
  }
336
336
 
337
- // This function is updating processed_file_path column for the base64 overlayed data and overlayed image file for POD. Also if it is base 64 then it is also storing temprary file path in file_path as original bae64 image.
337
+ // This function is updating processed_file_path column for the base64 overlayed data and overlayed image file for POD. Also if it is base 64 then it is also storing temprary file path in file_path as original bae64 image.
338
338
  private async updateDocumentProcessedPath(
339
339
  documentRow: DocumentRow,
340
340
  origialFilePath: String,
@@ -355,7 +355,7 @@ export default class DocumentSyncManager {
355
355
  screenName: cta,
356
356
  cta: cta,
357
357
  extraParams: {
358
- msg:flattenObject(err)
358
+ msg: flattenObject(err)
359
359
  },
360
360
  });
361
361
  Logger.getInstance().logEvent(
@@ -378,7 +378,7 @@ export default class DocumentSyncManager {
378
378
  screenName: cta,
379
379
  cta: cta,
380
380
  extraParams: {
381
- msg:flattenObject(err)
381
+ msg: flattenObject(err)
382
382
  },
383
383
  });
384
384
  Logger.getInstance().logEvent(
@@ -407,9 +407,9 @@ export default class DocumentSyncManager {
407
407
  let cta = 'processImageData-started';
408
408
  let extra = {
409
409
  msg: 'processImageData-started',
410
- fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
411
- dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
412
- dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
410
+ fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
411
+ dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
412
+ dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
413
413
  };
414
414
  fireEventWithScreenName({
415
415
  severityLevel: SeverityLevelValue.LOG,
@@ -431,7 +431,7 @@ export default class DocumentSyncManager {
431
431
  let lng = objGeoStamp.lng; // Longitude
432
432
  let accuracy = objGeoStamp.accuracy; // Location accuracy
433
433
  let strDMS = latlngToDms(`${lat}, ${lng}`); // Location in degree format
434
- let strDMSWithAccuracy = strDMS;
434
+ let strDMSWithAccuracy = strDMS;
435
435
  if (accuracy !== '') {
436
436
  strDMSWithAccuracy = strDMS + ' (Accuracy: ' + accuracy + 'm)'; // Appedning accuracy in location
437
437
  }
@@ -444,7 +444,7 @@ export default class DocumentSyncManager {
444
444
  src: documentRow.file_path,
445
445
  scale: 1,
446
446
  },
447
- watermarkTexts: [
447
+ watermarkTexts: [
448
448
  {
449
449
  text: `${dateTime}\n${strDMSWithAccuracy}`, //Overlay text
450
450
  position: {
@@ -463,7 +463,7 @@ export default class DocumentSyncManager {
463
463
  },
464
464
  ],
465
465
  scale: 0,
466
- quality: 100,
466
+ quality: 100,
467
467
  filename: pFilePath,
468
468
  saveFormat: ImageFormat.jpg, // Saving in jpeg format
469
469
  };
@@ -480,15 +480,15 @@ export default class DocumentSyncManager {
480
480
  documentRow.file_path, //original file path catprued from camera
481
481
  completeFilePath // completeFilePath is the path with file:// of processed file
482
482
  );
483
- documentRow.processed_file_path = completeFilePath;
483
+ documentRow.processed_file_path = completeFilePath;
484
484
  }
485
485
  }
486
486
  let cta = 'processImageData-completed';
487
487
  let extra = {
488
488
  msg: 'processImageData-completed',
489
- fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
490
- dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
491
- dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
489
+ fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
490
+ dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
491
+ dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
492
492
  };
493
493
  fireEventWithScreenName({
494
494
  severityLevel: SeverityLevelValue.LOG,
@@ -507,7 +507,6 @@ export default class DocumentSyncManager {
507
507
 
508
508
  // This function will generate overlay base64 data and update documents table for processed_file_path columns with overlayed base64 data.
509
509
  private async processBase64Data(documentRow: DocumentRow) {
510
- // If base64 overlayed data already existing then do not generate it again.
511
510
  if (
512
511
  documentRow.processed_file_path === null ||
513
512
  documentRow.processed_file_path === ''
@@ -515,9 +514,9 @@ export default class DocumentSyncManager {
515
514
  let cta = 'processBase64Data-started';
516
515
  let extra = {
517
516
  msg: 'processBase64Data-started',
518
- fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
519
- dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
520
- dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
517
+ fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
518
+ dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
519
+ dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
521
520
  };
522
521
  fireEventWithScreenName({
523
522
  severityLevel: SeverityLevelValue.LOG,
@@ -553,7 +552,7 @@ export default class DocumentSyncManager {
553
552
  let lng = objGeoStamp.lng; // Longitude
554
553
  let accuracy = objGeoStamp.accuracy; // Location accuracy
555
554
  let strDMS = latlngToDms(`${lat}, ${lng}`); // Location in degree format
556
- let strDMSWithAccuracy = strDMS;
555
+ let strDMSWithAccuracy = strDMS;
557
556
  if (accuracy !== '') {
558
557
  strDMSWithAccuracy = strDMS + ' (Accuracy: ' + accuracy + 'm)'; // Appedning accuracy in location
559
558
  }
@@ -603,9 +602,9 @@ export default class DocumentSyncManager {
603
602
  let cta = 'processBase64Data-completed';
604
603
  let extra = {
605
604
  msg: 'processBase64Data-completed',
606
- fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4): '',
607
- dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4): '',
608
- dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9): ''
605
+ fName: documentRow.file_name && documentRow.file_name.length != 0 ? documentRow.file_name.substring(4) : '',
606
+ dName: documentRow.fms_folder_id && documentRow.fms_folder_id.length != 0 ? documentRow.fms_folder_id.substring(4) : '',
607
+ dispId: documentRow.dispatch_id && documentRow.dispatch_id.length != 0 ? documentRow.dispatch_id.substring(9) : ''
609
608
  };
610
609
  fireEventWithScreenName({
611
610
  severityLevel: SeverityLevelValue.LOG,
@@ -636,15 +635,15 @@ export default class DocumentSyncManager {
636
635
  let docRow = documentRow;
637
636
  let cta = 'uploadDocToServer-geoStamp';
638
637
  let geoStampAvailable = false
639
- if(documentRow.geo_timestamp && documentRow.geo_timestamp.length != 0){
638
+ if (documentRow.geo_timestamp && documentRow.geo_timestamp.length != 0) {
640
639
  geoStampAvailable = true;
641
640
  docRow = await this.processPODData(documentRow);
642
641
  }
643
642
  let extra = {
644
643
  msg: geoStampAvailable ? "geoStamp availale" : 'geoStamp not availale',
645
- fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4): '',
646
- dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4): '',
647
- dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9): ''
644
+ fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4) : '',
645
+ dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4) : '',
646
+ dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9) : ''
648
647
  };
649
648
  fireEventWithScreenName({
650
649
  severityLevel: SeverityLevelValue.LOG,
@@ -662,13 +661,13 @@ export default class DocumentSyncManager {
662
661
 
663
662
  let extraParameters = {
664
663
  fmsID: fmsID ?? '',
665
- fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4): '',
666
- dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4): '',
667
- dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9): ''
664
+ fName: docRow.file_name && docRow.file_name.length != 0 ? docRow.file_name.substring(4) : '',
665
+ dName: docRow.fms_folder_id && docRow.fms_folder_id.length != 0 ? docRow.fms_folder_id.substring(4) : '',
666
+ dispId: docRow.dispatch_id && docRow.dispatch_id.length != 0 ? docRow.dispatch_id.substring(9) : ''
668
667
  };
669
668
  // TODO: SOLELY DEPENDS ON FMS_ID WHICH IS WRONG => IT SHOULD BE Response.status = 202
670
669
  if (fmsID) {
671
- // Calling function updating document row along with attempt count and sync as true.
670
+ // Calling function updating document row along with attempt count and sync as true.
672
671
  await this.updateDocumentWithAttempt(
673
672
  documentRow,
674
673
  fmsID,
@@ -676,7 +675,7 @@ export default class DocumentSyncManager {
676
675
  1
677
676
  );
678
677
  this._retries = 0;
679
- // await this.updateDocument(docRow, fmsID);
678
+ // await this.updateDocument(docRow, fmsID);
680
679
  } else {
681
680
  // Calling function updating document row withalong attempt count and sync as false.
682
681
  await this.updateDocumentWithAttempt(
@@ -703,8 +702,8 @@ export default class DocumentSyncManager {
703
702
  await this.updateDocError(docRow, 'Unexpected Error');
704
703
  }
705
704
  } catch (error: any) {
706
- // Calling function updating document row withalong attempt count and sync as false.
707
- await this.updateDocumentWithAttempt(
705
+ // Calling function updating document row withalong attempt count and sync as false.
706
+ await this.updateDocumentWithAttempt(
708
707
  documentRow,
709
708
  '',
710
709
  this._retries + 1,
@@ -738,8 +737,8 @@ export default class DocumentSyncManager {
738
737
  }
739
738
  }
740
739
 
741
- private async startSyncAfterMaxRetry(extraParameters:any, error:any){
742
- if(this.retries >= this.maxRetryCount){
740
+ private async startSyncAfterMaxRetry(extraParameters: any, error: any) {
741
+ if (this.retries >= this.maxRetryCount) {
743
742
  let cta = 'startSyncAfterMaxRetry-max-retry-reached'
744
743
  fireEventWithScreenName({
745
744
  severityLevel: SeverityLevelValue.LOG,
@@ -757,7 +756,7 @@ export default class DocumentSyncManager {
757
756
  this.docManager = await DocumentManager.getInstance();
758
757
  }
759
758
  let documentRows: DocumentRow[] =
760
- await this.docManager.getUnsyncedDocument();
759
+ await this.docManager.getUnsyncedDocument();
761
760
  if (documentRows?.length > 0) {
762
761
  await this.docManager.updateDocPriority(documentRows[0].id, documentRows[0].priority + 1);
763
762
  this._retries = 0;
@@ -10,15 +10,11 @@ import CancelOrderDialog from '../../components/widgets/CancelOrderDialog';
10
10
  import { onTaskStart } from '../../utils/ExecTaskUtils';
11
11
  import { DispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
12
12
  import Storage from '../../utils/storage';
13
- import {
14
- SCAN_MERGED_OBJ_ID_OUTPUT,
15
- SHARED_PREFERENCE_SCAN_OUTPUT,
16
- } from '../../manager/syncmanager/constants';
17
13
  import { GO_BACK_EVENT_CODE } from '../../constants/constants';
18
14
  import Helper from '../../utils/helper';
19
15
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
20
16
  import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
21
- import AsyncStorage from '@react-native-async-storage/async-storage';
17
+ import { PROGRESS_GROUP } from '../../utils/Constants';
22
18
 
23
19
  const DeliverScreen = ({
24
20
  navigation,
@@ -69,8 +65,14 @@ const DeliverScreen = ({
69
65
  }
70
66
 
71
67
  const getMergedReturnPackageCount = async () => {
72
- const count = await DispatchExecutor.getScannedShipmentsCount(
73
- mergedObjectiveId
68
+ let progressGroup = null;
69
+ try {
70
+ progressGroup = await Storage.getInstance().getSharedItem(PROGRESS_GROUP, false);
71
+ } catch (error) {
72
+ progressGroup = null;
73
+ }
74
+ const count = await DispatchExecutor.getShipmentsCountForDeliverET(
75
+ mergedObjectiveId, progressGroup
74
76
  );
75
77
  setReturnPackageCount(count.totalCount);
76
78
  setShipCount(count.shipCount);
@@ -16,7 +16,8 @@ import { AjvError } from '@rjsf/core';
16
16
  import Helper from '../../utils/helper';
17
17
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
18
18
  import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
19
- import AsyncStorage from '@react-native-async-storage/async-storage';
19
+ import { PROGRESS_GROUP } from '../../utils/Constants';
20
+ import Storage from '../../utils/storage';
20
21
 
21
22
  const FormsScreen = ({
22
23
  route,
@@ -48,12 +49,18 @@ const FormsScreen = ({
48
49
  );
49
50
 
50
51
  if (route.params[RouteParams.ROOT_META_DATA]) {
51
-
52
- //Call objectiveDetails fn and fetch sds ids
53
- const { contact } = await dispatchExecutor.getObjectiveTaskDetails(
54
- mergedObjectiveId[0],
55
- route.params[RouteParams.ROOT_META_DATA].statusFilter
56
- );
52
+ //Call objectiveDetails fn and fetch sds ids
53
+ let progressGroup = null;
54
+ try {
55
+ progressGroup = await Storage.getInstance().getSharedItem(PROGRESS_GROUP, false);
56
+ } catch (error) {
57
+ progressGroup = null;
58
+ }
59
+ const { contact } = await dispatchExecutor.getObjectiveTaskDetails(
60
+ mergedObjectiveId[0],
61
+ progressGroup,
62
+ route.params[RouteParams.ROOT_META_DATA].statusFilter
63
+ );
57
64
 
58
65
  // run callback to get corresponding phone numbers
59
66
  const phoneNumbers = await callbackHandler.getPhoneNumbers(contact);
@@ -33,7 +33,7 @@ const ImageCaptureScreen = ({
33
33
  useEffect(() => {
34
34
  (async () => {
35
35
  //fire sentry event
36
- fireEventWithScreenName({severityLevel:SeverityLevelValue.LOG, eventName:SentryEventNameSdkConstants.CAPTURE_IMAGE_ET_OPENED, screenName:ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN});
36
+ fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.CAPTURE_IMAGE_ET_OPENED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN });
37
37
  //
38
38
  onTaskStart(
39
39
  route.params[RouteParams.NEXT_STATES],
@@ -0,0 +1,2 @@
1
+ const KEY_STORAGE_PREFIX = '@Dsp_Executor_';
2
+ export const PROGRESS_GROUP = KEY_STORAGE_PREFIX + 'progressGroup';
@@ -0,0 +1,4 @@
1
+ export enum Bool {
2
+ TRUE = "1",
3
+ FALSE = "0"
4
+ }
@@ -203,13 +203,13 @@ class Storage {
203
203
  /**
204
204
  * Shared preferences
205
205
  */
206
- async setSharedItem(key: string, value: string, prefix:boolean = true): Promise<void> {
206
+ async setSharedItem(key: string, value: string, prefix: boolean = true): Promise<void> {
207
207
  if (Platform.OS === 'android') {
208
208
  await SharedPreferencesModule.setItem(key, value);
209
209
  } else {
210
- if(prefix){
210
+ if (prefix) {
211
211
  await this.setItem(key, value);
212
- }else{
212
+ } else {
213
213
  await AsyncStorage.setItem(key, value);
214
214
  }
215
215
  }
@@ -225,14 +225,14 @@ class Storage {
225
225
  }
226
226
  }
227
227
 
228
- async getSharedItem(key: string, prefix:boolean = true): Promise<any> {
228
+ async getSharedItem(key: string, prefix: boolean = true): Promise<any> {
229
229
  if (Platform.OS === 'android') {
230
230
  return await SharedPreferencesModule.getItem(key);
231
231
  } else {
232
- if(prefix){
232
+ if (prefix) {
233
233
  let item = await this.getItem(key);
234
234
  return item;
235
- }else{
235
+ } else {
236
236
  let item = await AsyncStorage.getItem(key);
237
237
  return item;
238
238
  }
@@ -280,13 +280,13 @@ class Storage {
280
280
  }
281
281
  }
282
282
 
283
- async removeSharedItem(key: string, prefix:boolean = true): Promise<void> {
283
+ async removeSharedItem(key: string, prefix: boolean = true): Promise<void> {
284
284
  if (Platform.OS === 'android') {
285
285
  await SharedPreferencesModule.removeItem(key);
286
286
  } else {
287
- if(prefix){
287
+ if (prefix) {
288
288
  await this.deleteItem(key);
289
- }else{
289
+ } else {
290
290
  await AsyncStorage.removeItem(key);
291
291
  }
292
292
  }