@os1-platform/dispatch-mobile 3.1.9 → 3.2.1

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 (612) hide show
  1. package/README.md +0 -2
  2. package/android/.gradle/8.13/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.13/checksums/md5-checksums.bin +0 -0
  4. package/android/.gradle/8.13/checksums/sha1-checksums.bin +0 -0
  5. package/android/.gradle/8.13/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/{8.10.2 → 8.13}/fileHashes/fileHashes.bin +0 -0
  7. package/android/.gradle/8.13/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  9. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  10. package/android/.idea/caches/deviceStreaming.xml +218 -12
  11. package/android/build.gradle +14 -15
  12. package/android/gradle.properties +9 -4
  13. package/android/src/main/AndroidManifest.xml +4 -1
  14. package/android/src/main/java/com/dispatchsdk/location/LocationModule.kt +3 -3
  15. package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +2 -3
  16. package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +27 -11
  17. package/babel.config.js +1 -1
  18. package/dispatch-mobile.podspec +1 -1
  19. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +1 -2
  20. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  21. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +4 -0
  22. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
  23. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +1 -2
  24. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  25. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +4 -5
  26. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  27. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +5 -6
  28. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +1 -2
  30. package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +1 -2
  32. package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -1
  33. package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +3 -4
  34. package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
  35. package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +5 -9
  36. package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
  37. package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +8 -9
  38. package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +24 -25
  40. package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +1 -2
  42. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +5 -6
  44. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -2
  46. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +6 -7
  48. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -2
  50. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  51. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +5 -6
  52. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +13 -35
  54. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -2
  56. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  57. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +1 -2
  58. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  59. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +4 -5
  60. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -2
  62. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +1 -2
  64. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +1 -2
  66. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  67. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +5 -6
  68. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  69. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +5 -6
  70. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  71. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
  72. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +5 -6
  74. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  75. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +1 -2
  76. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  77. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +5 -6
  78. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/scan/ScanET.js +8 -9
  80. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/scan/interfaces.js +17 -1
  82. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  83. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +5 -6
  84. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -1
  86. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +1 -2
  88. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +6 -6
  90. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  91. package/lib/commonjs/components/executiontasks/scan/utils.js +13 -15
  92. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +1 -2
  94. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  96. package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js +5 -7
  97. package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
  98. package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js +5 -6
  99. package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
  100. package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js +8 -11
  101. package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
  102. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +1 -2
  103. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  104. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -2
  105. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  106. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +1 -2
  107. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  108. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -2
  109. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  110. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -12
  111. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  112. package/lib/commonjs/components/widgets/AlertDisplay.js +1 -2
  113. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  114. package/lib/commonjs/components/widgets/CancelOrderDialog.js +3 -4
  115. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  116. package/lib/commonjs/components/widgets/Card.js +2 -2
  117. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  118. package/lib/commonjs/components/widgets/SearchBar.js +4 -3
  119. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  120. package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -15
  121. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  122. package/lib/commonjs/components/widgets/SplitTextInput.js +2 -3
  123. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  124. package/lib/commonjs/components/widgets/TabsComponent.js +1 -2
  125. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  126. package/lib/commonjs/components/widgets/Timer.js +1 -2
  127. package/lib/commonjs/components/widgets/Timer.js.map +1 -1
  128. package/lib/commonjs/database/DBManager.js +112 -0
  129. package/lib/commonjs/database/DBManager.js.map +1 -0
  130. package/lib/commonjs/database/dbUpdate.json +6 -0
  131. package/lib/commonjs/index.js +1 -2
  132. package/lib/commonjs/index.js.map +1 -1
  133. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +1 -2
  134. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  135. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +8 -9
  136. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  137. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +5 -6
  138. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  139. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +13 -10
  140. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  141. package/lib/commonjs/manager/location/LocationManager.js +0 -4
  142. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  143. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -3
  144. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  145. package/lib/commonjs/manager/sdk/callbacksHandler.js +1 -1
  146. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
  147. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +1 -2
  148. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  149. package/lib/commonjs/manager/syncmanager/DBConfig.js +6 -2
  150. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  151. package/lib/commonjs/manager/syncmanager/database.js +118 -47
  152. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  153. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +1 -2
  154. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  155. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +17 -22
  156. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  157. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +86 -77
  158. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  159. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +25 -28
  160. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  161. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +1 -2
  162. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  163. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +1 -2
  164. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  165. package/lib/commonjs/models/execTasks/ETConfig.js +1 -0
  166. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  167. package/lib/commonjs/models/sdk.js.map +1 -1
  168. package/lib/commonjs/native/signature/SignatureCapture.js +2 -2
  169. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  170. package/lib/commonjs/network/client.js.map +1 -1
  171. package/lib/commonjs/styles/executionTasks/CommonStyles.js +1 -2
  172. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  173. package/lib/commonjs/ui/screens/CancellationScreen.js +1 -2
  174. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  175. package/lib/commonjs/ui/screens/CaptureInputScreen.js +1 -2
  176. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  177. package/lib/commonjs/ui/screens/CollectPaymentScreen.js +1 -2
  178. package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -1
  179. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +1 -2
  180. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  181. package/lib/commonjs/ui/screens/DeliverScreen.js +1 -2
  182. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  183. package/lib/commonjs/ui/screens/DisplayScreen.js +1 -2
  184. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  185. package/lib/commonjs/ui/screens/DoodleScreen.js +1 -2
  186. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  187. package/lib/commonjs/ui/screens/DropCashScreen.js +1 -2
  188. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  189. package/lib/commonjs/ui/screens/FormsScreen.js +1 -2
  190. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  191. package/lib/commonjs/ui/screens/GeofenceScreen.js +1 -2
  192. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  193. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +1 -2
  194. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  195. package/lib/commonjs/ui/screens/PaymentScreen.js +1 -2
  196. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  197. package/lib/commonjs/ui/screens/PickupScreen.js +1 -2
  198. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  199. package/lib/commonjs/ui/screens/ScanScreen.js +1 -2
  200. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  201. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +1 -2
  202. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  203. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +1 -2
  204. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  205. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +1 -2
  206. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  207. package/lib/commonjs/utils/Constants.js.map +1 -1
  208. package/lib/commonjs/utils/Logger.js +1 -1
  209. package/lib/commonjs/utils/Logger.js.map +1 -1
  210. package/lib/commonjs/utils/SdkUtils.js +6 -5
  211. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  212. package/lib/commonjs/utils/SyncManagerUtils.js +3 -2
  213. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  214. package/lib/commonjs/utils/fcm/FCM.js +1 -2
  215. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  216. package/lib/commonjs/utils/fcm/FcmUtils.js +1 -2
  217. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  218. package/lib/commonjs/utils/hooks/useModal.js +1 -2
  219. package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
  220. package/lib/commonjs/utils/storage.js +1 -2
  221. package/lib/commonjs/utils/storage.js.map +1 -1
  222. package/lib/module/analytics/sentry/SentrySdkConstants.js +4 -0
  223. package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
  224. package/lib/module/components/executiontasks/cancellation/CancelET.js +1 -1
  225. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  226. package/lib/module/components/executiontasks/captureInput/CaptureText.js +3 -3
  227. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  228. package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +2 -2
  229. package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
  230. package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +3 -6
  231. package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
  232. package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +6 -6
  233. package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
  234. package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +21 -21
  235. package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
  236. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +3 -3
  237. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  238. package/lib/module/components/executiontasks/doodle/SignatureET.js +4 -4
  239. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  240. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +3 -3
  241. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  242. package/lib/module/components/executiontasks/forms/FormGenerator.js +11 -32
  243. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  244. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -2
  245. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  246. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +4 -4
  247. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  248. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +3 -3
  249. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  250. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -3
  251. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  252. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +3 -3
  253. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  254. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  255. package/lib/module/components/executiontasks/pickup/SLPickupET.js +3 -3
  256. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  257. package/lib/module/components/executiontasks/scan/ScanET.js +5 -5
  258. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  259. package/lib/module/components/executiontasks/scan/interfaces.js +16 -0
  260. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  261. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +5 -5
  262. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  263. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +2 -2
  264. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  265. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  266. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +3 -3
  267. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  268. package/lib/module/components/executiontasks/scan/utils.js +13 -14
  269. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  270. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  271. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  272. package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js +3 -4
  273. package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
  274. package/lib/module/components/executiontasks/validateOTP/components/OTPView.js +3 -3
  275. package/lib/module/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
  276. package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js +7 -9
  277. package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
  278. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -10
  279. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  280. package/lib/module/components/widgets/CancelOrderDialog.js +1 -1
  281. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  282. package/lib/module/components/widgets/Card.js +1 -1
  283. package/lib/module/components/widgets/Card.js.map +1 -1
  284. package/lib/module/components/widgets/SearchBar.js +2 -1
  285. package/lib/module/components/widgets/SearchBar.js.map +1 -1
  286. package/lib/module/components/widgets/SnackBarCustom.js +6 -8
  287. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  288. package/lib/module/components/widgets/SplitTextInput.js +1 -1
  289. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  290. package/lib/module/components/widgets/Timer.js.map +1 -1
  291. package/lib/module/database/DBManager.js +104 -0
  292. package/lib/module/database/DBManager.js.map +1 -0
  293. package/lib/module/database/dbUpdate.json +6 -0
  294. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  295. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +7 -7
  296. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  297. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +4 -4
  298. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  299. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +13 -8
  300. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  301. package/lib/module/manager/location/LocationManager.js +0 -4
  302. package/lib/module/manager/location/LocationManager.js.map +1 -1
  303. package/lib/module/manager/sdk/DispatchSDKManager.js +7 -1
  304. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  305. package/lib/module/manager/sdk/callbacksHandler.js +0 -2
  306. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
  307. package/lib/module/manager/syncmanager/DBConfig.js +5 -1
  308. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  309. package/lib/module/manager/syncmanager/database.js +117 -43
  310. package/lib/module/manager/syncmanager/database.js.map +1 -1
  311. package/lib/module/manager/syncmanager/document/DocumentManager.js +16 -20
  312. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  313. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +85 -75
  314. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  315. package/lib/module/manager/syncmanager/events/ETEventsManager.js +20 -22
  316. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  317. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  318. package/lib/module/models/execTasks/ETConfig.js +1 -0
  319. package/lib/module/models/execTasks/ETConfig.js.map +1 -1
  320. package/lib/module/models/sdk.js.map +1 -1
  321. package/lib/module/native/signature/SignatureCapture.js +2 -2
  322. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  323. package/lib/module/network/client.js.map +1 -1
  324. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  325. package/lib/module/utils/Constants.js.map +1 -1
  326. package/lib/module/utils/Logger.js +1 -1
  327. package/lib/module/utils/Logger.js.map +1 -1
  328. package/lib/module/utils/SdkUtils.js +5 -3
  329. package/lib/module/utils/SdkUtils.js.map +1 -1
  330. package/lib/module/utils/SyncManagerUtils.js +2 -0
  331. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  332. package/lib/typescript/babel.config.d.ts +1 -0
  333. package/lib/typescript/jest.config.d.ts +7 -0
  334. package/lib/typescript/jest.setup.d.ts +1 -0
  335. package/lib/typescript/scripts/bootstrap.d.ts +1 -0
  336. package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
  337. package/lib/typescript/{components → src/components}/executiontasks/scan/interfaces.d.ts +15 -0
  338. package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPSchema.d.ts +1 -1
  339. package/lib/typescript/{components → src/components}/widgets/CancelOrderDialog.d.ts +1 -1
  340. package/lib/typescript/{components → src/components}/widgets/SnackBarCustom.d.ts +3 -2
  341. package/lib/typescript/src/components/widgets/Timer.d.ts +6 -0
  342. package/lib/typescript/src/database/DBManager.d.ts +1 -0
  343. package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeRepo.d.ts +1 -1
  344. package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeRepo.d.ts +5 -3
  345. package/lib/typescript/{manager → src/manager}/syncmanager/DBConfig.d.ts +5 -1
  346. package/lib/typescript/src/manager/syncmanager/database.d.ts +31 -0
  347. package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentManager.d.ts +2 -3
  348. package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentSyncManager.d.ts +1 -2
  349. package/lib/typescript/{network → src/network}/GraphQLClient.d.ts +5 -5
  350. package/lib/typescript/{network → src/network}/NetworkClient.d.ts +3 -3
  351. package/lib/typescript/{network → src/network}/client.d.ts +3 -3
  352. package/lib/typescript/{resources → src/resources}/Login.d.ts +7 -7
  353. package/lib/typescript/{resources → src/resources}/network.d.ts +1 -1
  354. package/lib/typescript/{utils → src/utils}/ApiUtils.d.ts +2 -2
  355. package/lib/typescript/{utils → src/utils}/Constants.d.ts +4 -0
  356. package/package.json +104 -127
  357. package/src/components/executiontasks/cancellation/CancelET.tsx +1 -1
  358. package/src/components/executiontasks/captureInput/CaptureText.tsx +6 -6
  359. package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +2 -3
  360. package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +3 -7
  361. package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +3 -4
  362. package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +7 -8
  363. package/src/components/executiontasks/deliver/SLDeliverET.tsx +3 -4
  364. package/src/components/executiontasks/doodle/SignatureET.tsx +5 -5
  365. package/src/components/executiontasks/dropCash/SLDropCash.tsx +3 -4
  366. package/src/components/executiontasks/forms/FormGenerator.tsx +38 -55
  367. package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +2 -2
  368. package/src/components/executiontasks/imageCapture/ImageCapture.tsx +5 -7
  369. package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +3 -4
  370. package/src/components/executiontasks/payments/init/InitPaymentET.tsx +3 -4
  371. package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +3 -4
  372. package/src/components/executiontasks/pickup/PickupET.tsx +3 -9
  373. package/src/components/executiontasks/pickup/SLPickupET.tsx +3 -4
  374. package/src/components/executiontasks/scan/ScanET.tsx +5 -6
  375. package/src/components/executiontasks/scan/interfaces.ts +16 -0
  376. package/src/components/executiontasks/scan/sub_components/CScanner.tsx +7 -6
  377. package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +2 -2
  378. package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +0 -1
  379. package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +3 -3
  380. package/src/components/executiontasks/scan/utils.ts +13 -13
  381. package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +5 -0
  382. package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +1 -1
  383. package/src/components/executiontasks/validateOTP/components/ContactListView.tsx +3 -11
  384. package/src/components/executiontasks/validateOTP/components/OTPView.tsx +3 -4
  385. package/src/components/executiontasks/validateOTP/components/VerificationComplete.tsx +7 -7
  386. package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +9 -17
  387. package/src/components/widgets/CancelOrderDialog.tsx +2 -2
  388. package/src/components/widgets/Card.tsx +1 -1
  389. package/src/components/widgets/SearchBar.tsx +2 -1
  390. package/src/components/widgets/SnackBarCustom.tsx +8 -10
  391. package/src/components/widgets/SplitTextInput.tsx +1 -1
  392. package/src/components/widgets/Timer.tsx +0 -1
  393. package/src/database/DBManager.ts +118 -0
  394. package/src/database/dbUpdate.json +6 -0
  395. package/src/manager/dispatch/DispatchStateContainer.tsx +5 -25
  396. package/src/manager/dispatchCodes/EventCodeRepo.ts +8 -12
  397. package/src/manager/dispatchCodes/ReasonCodeContainer.ts +5 -5
  398. package/src/manager/dispatchCodes/ReasonCodeRepo.ts +17 -15
  399. package/src/manager/location/LocationManager.ts +1 -8
  400. package/src/manager/sdk/DispatchSDKManager.ts +12 -4
  401. package/src/manager/sdk/callbacksHandler.ts +3 -8
  402. package/src/manager/syncmanager/DBConfig.ts +6 -1
  403. package/src/manager/syncmanager/database.ts +130 -71
  404. package/src/manager/syncmanager/document/DocumentManager.ts +19 -24
  405. package/src/manager/syncmanager/document/DocumentSyncManager.ts +95 -82
  406. package/src/manager/syncmanager/events/ETEventsManager.ts +30 -35
  407. package/src/manager/syncmanager/events/EventsSyncManager.ts +1 -1
  408. package/src/models/sdk.ts +2 -6
  409. package/src/native/signature/SignatureCapture.tsx +4 -3
  410. package/src/network/client.ts +2 -2
  411. package/src/ui/screens/ValidateOTPScreen.tsx +2 -4
  412. package/src/utils/Constants.ts +6 -1
  413. package/src/utils/Logger.ts +2 -1
  414. package/src/utils/SdkUtils.ts +6 -7
  415. package/src/utils/SyncManagerUtils.ts +1 -0
  416. package/tsconfig.build.json +1 -1
  417. package/tsconfig.json +2 -3
  418. package/android/.gradle/8.10.2/checksums/checksums.lock +0 -0
  419. package/android/.gradle/8.10.2/checksums/md5-checksums.bin +0 -0
  420. package/android/.gradle/8.10.2/checksums/sha1-checksums.bin +0 -0
  421. package/android/.gradle/8.10.2/executionHistory/executionHistory.lock +0 -0
  422. package/android/.gradle/8.10.2/fileHashes/fileHashes.lock +0 -0
  423. package/android/.gradle/8.10.2/gc.properties +0 -0
  424. package/lib/typescript/components/widgets/Timer.d.ts +0 -7
  425. package/lib/typescript/manager/syncmanager/database.d.ts +0 -7
  426. /package/android/.gradle/{8.10.2 → 8.13}/fileChanges/last-build.bin +0 -0
  427. /package/android/.gradle/{8.10.2 → 8.13}/fileHashes/resourceHashesCache.bin +0 -0
  428. /package/android/.gradle/{8.10.2/dependencies-accessors → 8.13}/gc.properties +0 -0
  429. /package/lib/typescript/{analytics → src/analytics}/firebase/FirebaseLogging.d.ts +0 -0
  430. /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsSingleton.d.ts +0 -0
  431. /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsUtils.d.ts +0 -0
  432. /package/lib/typescript/{analytics → src/analytics}/sentry/SentryModels.d.ts +0 -0
  433. /package/lib/typescript/{analytics → src/analytics}/sentry/SentrySdkConstants.d.ts +0 -0
  434. /package/lib/typescript/{components → src/components}/dispatch/DispatchExecNavigator.d.ts +0 -0
  435. /package/lib/typescript/{components → src/components}/executiontasks/CompletedWFSchema.d.ts +0 -0
  436. /package/lib/typescript/{components → src/components}/executiontasks/ExecutionTasksIndex.d.ts +0 -0
  437. /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancelET.d.ts +0 -0
  438. /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancellationSchema.d.ts +0 -0
  439. /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureInputSchema.d.ts +0 -0
  440. /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureText.d.ts +0 -0
  441. /package/lib/typescript/{components → src/components}/executiontasks/captureInput/utils.d.ts +0 -0
  442. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPayment.d.ts +0 -0
  443. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPaymentSchema.d.ts +0 -0
  444. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentStyles.d.ts +0 -0
  445. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentUtils.d.ts +0 -0
  446. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CompletePayment.d.ts +0 -0
  447. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CustomContactsModal.d.ts +0 -0
  448. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/InitPayment.d.ts +0 -0
  449. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +0 -0
  450. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/ProcessPayment.d.ts +0 -0
  451. /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverET.d.ts +0 -0
  452. /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverETInput.d.ts +0 -0
  453. /package/lib/typescript/{components → src/components}/executiontasks/deliver/SLDeliverET.d.ts +0 -0
  454. /package/lib/typescript/{components → src/components}/executiontasks/display/DisplayModalET.d.ts +0 -0
  455. /package/lib/typescript/{components → src/components}/executiontasks/display/DisplaySchema.d.ts +0 -0
  456. /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureET.d.ts +0 -0
  457. /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureSchema.d.ts +0 -0
  458. /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashET.d.ts +0 -0
  459. /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashSchema.d.ts +0 -0
  460. /package/lib/typescript/{components → src/components}/executiontasks/dropCash/SLDropCash.d.ts +0 -0
  461. /package/lib/typescript/{components → src/components}/executiontasks/forms/FormGenerator.d.ts +0 -0
  462. /package/lib/typescript/{components → src/components}/executiontasks/forms/FormSchema.d.ts +0 -0
  463. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DateTimeWidget.d.ts +0 -0
  464. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DropdownWidget.d.ts +0 -0
  465. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +0 -0
  466. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/TimeRangeSelector.d.ts +0 -0
  467. /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestET.d.ts +0 -0
  468. /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestETSchema.d.ts +0 -0
  469. /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureSchema.d.ts +0 -0
  470. /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureUtils.d.ts +0 -0
  471. /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/ImageCapture.d.ts +0 -0
  472. /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentStyles.d.ts +0 -0
  473. /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentUtils.d.ts +0 -0
  474. /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentET.d.ts +0 -0
  475. /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +0 -0
  476. /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentET.d.ts +0 -0
  477. /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentSchema.d.ts +0 -0
  478. /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +0 -0
  479. /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +0 -0
  480. /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickpSchema.d.ts +0 -0
  481. /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickupET.d.ts +0 -0
  482. /package/lib/typescript/{components → src/components}/executiontasks/pickup/SLPickupET.d.ts +0 -0
  483. /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanET.d.ts +0 -0
  484. /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanSchema.d.ts +0 -0
  485. /package/lib/typescript/{components → src/components}/executiontasks/scan/constants.d.ts +0 -0
  486. /package/lib/typescript/{components → src/components}/executiontasks/scan/modalConstant.d.ts +0 -0
  487. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/CScanner.d.ts +0 -0
  488. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/DropDownUtils.d.ts +0 -0
  489. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/ERDropDown.d.ts +0 -0
  490. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/SummaryPage.d.ts +0 -0
  491. /package/lib/typescript/{components → src/components}/executiontasks/scan/utils.d.ts +0 -0
  492. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPET.d.ts +0 -0
  493. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOtpStyles.d.ts +0 -0
  494. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/ContactListView.d.ts +0 -0
  495. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/OTPView.d.ts +0 -0
  496. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/VerificationComplete.d.ts +0 -0
  497. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/constants.d.ts +0 -0
  498. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ContactCard.d.ts +0 -0
  499. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/OTPInput.d.ts +0 -0
  500. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ResendOTPButton.d.ts +0 -0
  501. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/utils.d.ts +0 -0
  502. /package/lib/typescript/{components → src/components}/executiontasks/verifyInput/VerifyInputSchema.d.ts +0 -0
  503. /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/GeofenceUtils.d.ts +0 -0
  504. /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocSchema.d.ts +0 -0
  505. /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocationET.d.ts +0 -0
  506. /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpET.d.ts +0 -0
  507. /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +0 -0
  508. /package/lib/typescript/{components → src/components}/utils/Scale.d.ts +0 -0
  509. /package/lib/typescript/{components → src/components}/utils/index.d.ts +0 -0
  510. /package/lib/typescript/{components → src/components}/widgets/AlertDisplay.d.ts +0 -0
  511. /package/lib/typescript/{components → src/components}/widgets/Card.d.ts +0 -0
  512. /package/lib/typescript/{components → src/components}/widgets/ConfirmCancelModal.d.ts +0 -0
  513. /package/lib/typescript/{components → src/components}/widgets/GoBackModal.d.ts +0 -0
  514. /package/lib/typescript/{components → src/components}/widgets/IconButton.d.ts +0 -0
  515. /package/lib/typescript/{components → src/components}/widgets/ModalWidget.d.ts +0 -0
  516. /package/lib/typescript/{components → src/components}/widgets/ProgressDialog.d.ts +0 -0
  517. /package/lib/typescript/{components → src/components}/widgets/SearchBar.d.ts +0 -0
  518. /package/lib/typescript/{components → src/components}/widgets/SplitTextInput.d.ts +0 -0
  519. /package/lib/typescript/{components → src/components}/widgets/TabsComponent.d.ts +0 -0
  520. /package/lib/typescript/{components → src/components}/widgets/Toaster.d.ts +0 -0
  521. /package/lib/typescript/{config → src/config}/DispatchSDKConfig.d.ts +0 -0
  522. /package/lib/typescript/{constants → src/constants}/apiConstants.d.ts +0 -0
  523. /package/lib/typescript/{constants → src/constants}/constants.d.ts +0 -0
  524. /package/lib/typescript/{constants → src/constants}/statuscode.d.ts +0 -0
  525. /package/lib/typescript/{errors → src/errors}/BaseError.d.ts +0 -0
  526. /package/lib/typescript/{errors → src/errors}/ErrorCodes.d.ts +0 -0
  527. /package/lib/typescript/{events → src/events}/EventDispatcher.d.ts +0 -0
  528. /package/lib/typescript/{events → src/events}/EventListener.d.ts +0 -0
  529. /package/lib/typescript/{events → src/events}/constants.d.ts +0 -0
  530. /package/lib/typescript/{events → src/events}/index.d.ts +0 -0
  531. /package/lib/typescript/{events → src/events}/interface.d.ts +0 -0
  532. /package/lib/typescript/{icons → src/icons}/CircleMark.d.ts +0 -0
  533. /package/lib/typescript/{icons → src/icons}/FailedIcon.d.ts +0 -0
  534. /package/lib/typescript/{icons → src/icons}/FailureCloseIcon.d.ts +0 -0
  535. /package/lib/typescript/{icons → src/icons}/ScanIcon.d.ts +0 -0
  536. /package/lib/typescript/{icons → src/icons}/SuccessCompleteIcon.d.ts +0 -0
  537. /package/lib/typescript/{icons → src/icons}/file.d.ts +0 -0
  538. /package/lib/typescript/{icons → src/icons}/index.d.ts +0 -0
  539. /package/lib/typescript/{icons → src/icons}/interface.d.ts +0 -0
  540. /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  541. /package/lib/typescript/{locale → src/locale}/Str.d.ts +0 -0
  542. /package/lib/typescript/{locale → src/locale}/i18n.d.ts +0 -0
  543. /package/lib/typescript/{locale → src/locale}/util.d.ts +0 -0
  544. /package/lib/typescript/{manager → src/manager}/dispatch/DispatchStateContainer.d.ts +0 -0
  545. /package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeContainer.d.ts +0 -0
  546. /package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeContainer.d.ts +0 -0
  547. /package/lib/typescript/{manager → src/manager}/jobRemoval/JobRemovalManager.d.ts +0 -0
  548. /package/lib/typescript/{manager → src/manager}/location/LocationManager.d.ts +0 -0
  549. /package/lib/typescript/{manager → src/manager}/sdk/DispatchSDKManager.d.ts +0 -0
  550. /package/lib/typescript/{manager → src/manager}/sdk/DispatchSdkCache.d.ts +0 -0
  551. /package/lib/typescript/{manager → src/manager}/sdk/callbacksHandler.d.ts +0 -0
  552. /package/lib/typescript/{manager → src/manager}/syncmanager/AppSyncManager.d.ts +0 -0
  553. /package/lib/typescript/{manager → src/manager}/syncmanager/NativeSyncManager.d.ts +0 -0
  554. /package/lib/typescript/{manager → src/manager}/syncmanager/constants.d.ts +0 -0
  555. /package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentHttpClient.d.ts +0 -0
  556. /package/lib/typescript/{manager → src/manager}/syncmanager/document/models.d.ts +0 -0
  557. /package/lib/typescript/{manager → src/manager}/syncmanager/events/ETEventsManager.d.ts +0 -0
  558. /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
  559. /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsSyncManager.d.ts +0 -0
  560. /package/lib/typescript/{manager → src/manager}/syncmanager/events/SyncHttpClient.d.ts +0 -0
  561. /package/lib/typescript/{models → src/models}/DispatchModels.d.ts +0 -0
  562. /package/lib/typescript/{models → src/models}/ReasonCodes.d.ts +0 -0
  563. /package/lib/typescript/{models → src/models}/auth.d.ts +0 -0
  564. /package/lib/typescript/{models → src/models}/execTasks/ETBaseModels.d.ts +0 -0
  565. /package/lib/typescript/{models → src/models}/execTasks/ETConfig.d.ts +0 -0
  566. /package/lib/typescript/{models → src/models}/execution.d.ts +0 -0
  567. /package/lib/typescript/{models → src/models}/fcm.d.ts +0 -0
  568. /package/lib/typescript/{models → src/models}/sdk.d.ts +0 -0
  569. /package/lib/typescript/{native → src/native}/LocationModule.d.ts +0 -0
  570. /package/lib/typescript/{native → src/native}/PermissionModule.d.ts +0 -0
  571. /package/lib/typescript/{native → src/native}/signature/SignatureCapture.d.ts +0 -0
  572. /package/lib/typescript/{network → src/network}/NetworkUtils.d.ts +0 -0
  573. /package/lib/typescript/{network → src/network}/Queries.d.ts +0 -0
  574. /package/lib/typescript/{res → src/res}/strings.d.ts +0 -0
  575. /package/lib/typescript/{styles → src/styles}/SdkColors.d.ts +0 -0
  576. /package/lib/typescript/{styles → src/styles}/executionTasks/CommonStyles.d.ts +0 -0
  577. /package/lib/typescript/{ui → src/ui}/screens/CancellationScreen.d.ts +0 -0
  578. /package/lib/typescript/{ui → src/ui}/screens/CaptureInputScreen.d.ts +0 -0
  579. /package/lib/typescript/{ui → src/ui}/screens/CollectPaymentScreen.d.ts +0 -0
  580. /package/lib/typescript/{ui → src/ui}/screens/CompleteObjectiveScreen.d.ts +0 -0
  581. /package/lib/typescript/{ui → src/ui}/screens/DeliverScreen.d.ts +0 -0
  582. /package/lib/typescript/{ui → src/ui}/screens/DisplayScreen.d.ts +0 -0
  583. /package/lib/typescript/{ui → src/ui}/screens/DoodleScreen.d.ts +0 -0
  584. /package/lib/typescript/{ui → src/ui}/screens/DropCashScreen.d.ts +0 -0
  585. /package/lib/typescript/{ui → src/ui}/screens/ETScreensIndex.d.ts +0 -0
  586. /package/lib/typescript/{ui → src/ui}/screens/FormsScreen.d.ts +0 -0
  587. /package/lib/typescript/{ui → src/ui}/screens/GeofenceScreen.d.ts +0 -0
  588. /package/lib/typescript/{ui → src/ui}/screens/HttpRequestScreen.d.ts +0 -0
  589. /package/lib/typescript/{ui → src/ui}/screens/ImageCaptureScreen.d.ts +0 -0
  590. /package/lib/typescript/{ui → src/ui}/screens/PaymentScreen.d.ts +0 -0
  591. /package/lib/typescript/{ui → src/ui}/screens/PickupScreen.d.ts +0 -0
  592. /package/lib/typescript/{ui → src/ui}/screens/ScanScreen.d.ts +0 -0
  593. /package/lib/typescript/{ui → src/ui}/screens/StartWorkFlowScreen.d.ts +0 -0
  594. /package/lib/typescript/{ui → src/ui}/screens/ValidateOTPScreen.d.ts +0 -0
  595. /package/lib/typescript/{ui → src/ui}/screens/WithBaseDispatchScreen.d.ts +0 -0
  596. /package/lib/typescript/{ui → src/ui}/uiConfig/RouteParams.d.ts +0 -0
  597. /package/lib/typescript/{utils → src/utils}/Enums.d.ts +0 -0
  598. /package/lib/typescript/{utils → src/utils}/ExecTaskUtils.d.ts +0 -0
  599. /package/lib/typescript/{utils → src/utils}/Logger.d.ts +0 -0
  600. /package/lib/typescript/{utils → src/utils}/NetworkUtil.d.ts +0 -0
  601. /package/lib/typescript/{utils → src/utils}/SdkUtils.d.ts +0 -0
  602. /package/lib/typescript/{utils → src/utils}/SyncManagerUtils.d.ts +0 -0
  603. /package/lib/typescript/{utils → src/utils}/context/paymentContext.d.ts +0 -0
  604. /package/lib/typescript/{utils → src/utils}/context/valdiateOTPContext.d.ts +0 -0
  605. /package/lib/typescript/{utils → src/utils}/fcm/FCM.d.ts +0 -0
  606. /package/lib/typescript/{utils → src/utils}/fcm/FcmUtils.d.ts +0 -0
  607. /package/lib/typescript/{utils → src/utils}/helper.d.ts +0 -0
  608. /package/lib/typescript/{utils → src/utils}/hooks/useModal.d.ts +0 -0
  609. /package/lib/typescript/{utils → src/utils}/hooks/useTimer.d.ts +0 -0
  610. /package/lib/typescript/{utils → src/utils}/loginHelper.d.ts +0 -0
  611. /package/lib/typescript/{utils → src/utils}/storage.d.ts +0 -0
  612. /package/lib/typescript/{utils → src/utils}/utils.d.ts +0 -0
@@ -7,7 +7,7 @@ import { Text, View } from 'react-native';
7
7
  import styles from '../ValidateOtpStyles';
8
8
 
9
9
  // Components
10
- import FastImage from 'react-native-fast-image';
10
+ import { Image } from 'expo-image';
11
11
 
12
12
  // Utilities
13
13
  import { getBaseETResponse } from '../../../../utils/ExecTaskUtils';
@@ -83,10 +83,10 @@ const VerificationComplete: FC<any> = (props) => {
83
83
  const renderSuccessCard = () => {
84
84
  return (
85
85
  <>
86
- <FastImage
86
+ <Image
87
87
  source={require('../../../../icons/icSuccess.gif')}
88
- style={{ height: 116, width: 116 }} // Use consistent dimensions here
89
- resizeMode="contain" // Ensures the GIF is displayed properly without distortion
88
+ style={{ height: 116, width: 116 }}
89
+ contentFit="contain"
90
90
  />
91
91
  <Text style={styles.otpResponseText}>OTP verified successfully!</Text>
92
92
  </>
@@ -96,10 +96,10 @@ const VerificationComplete: FC<any> = (props) => {
96
96
  const renderFailedCard = () => {
97
97
  return (
98
98
  <>
99
- <FastImage
99
+ <Image
100
100
  source={require('../../../../icons/icFailed.gif')}
101
- style={{ height: 116, width: 116 }} // Use consistent dimensions here
102
- resizeMode="contain" // Ensures the GIF is displayed properly without distortion
101
+ style={{ height: 116, width: 116 }}
102
+ contentFit="contain"
103
103
  />
104
104
  <Text style={styles.otpResponseText}>OTP verification Failed!</Text>
105
105
  </>
@@ -1,29 +1,23 @@
1
1
  import { BackHandler, Pressable, StyleSheet, Text, View } from 'react-native';
2
2
  import React, { useEffect, useRef } from 'react';
3
- // @ts-ignore
4
3
  import OTPTextView from 'react-native-otp-textinput';
5
- import { Colors } from 'react-native-paper';
4
+ import { MD2Colors } from 'react-native-paper';
6
5
  import { showToast } from '../../widgets/Toaster';
7
6
  import type { OtpInputSchema } from './VerifyOtpSchema';
8
7
  import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
9
- import {
10
- EntityCode,
11
- ExecutionTaskID,
12
- } from '../../../models/execTasks/ETConfig';
8
+ import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
13
9
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
14
10
  import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
15
11
 
16
12
  const VerifyOtpET = (props: OtpInputSchema) => {
17
- const otpInput = useRef();
13
+ const otpInput = useRef<any>(null);
18
14
 
19
15
  function backButtonHandler() {
20
16
  return true;
21
17
  }
22
18
  useEffect(() => {
23
- BackHandler.addEventListener('hardwareBackPress', backButtonHandler);
24
- return () => {
25
- BackHandler.removeEventListener('hardwareBackPress', backButtonHandler);
26
- };
19
+ const backHandler = BackHandler.addEventListener('hardwareBackPress', backButtonHandler);
20
+ return () => backHandler.remove();
27
21
  }, []);
28
22
 
29
23
  return (
@@ -32,9 +26,9 @@ const VerifyOtpET = (props: OtpInputSchema) => {
32
26
  <Text style={styles.veriOtpText}>Verify OTP</Text>
33
27
  <OTPTextView
34
28
  textInputStyle={styles.otpInputStyle}
35
- ref={otpInput}
29
+ ref={otpInput.current}
36
30
  inputCount={props.inputCount}
37
- tintColor={Colors.blue300}
31
+ tintColor={MD2Colors.blue300}
38
32
  handleTextChange={async (value: string) => {
39
33
  if (value.length === props.inputCount) {
40
34
  props.onSubmit({
@@ -58,10 +52,8 @@ const VerifyOtpET = (props: OtpInputSchema) => {
58
52
  showToast('Resending OTP');
59
53
  const cta = 'Send again';
60
54
  fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VERIFY_OTP_ET_SCREEN, cta: cta });
61
-
62
55
  }}
63
- style={styles.sendAgainText}
64
- >
56
+ style={styles.sendAgainText}>
65
57
  <Text>Send again</Text>
66
58
  </Pressable>
67
59
  </View>
@@ -78,7 +70,7 @@ const styles = StyleSheet.create({
78
70
  },
79
71
  veriOtpText: {
80
72
  fontSize: 24,
81
- color: Colors.black,
73
+ color: "#000000",
82
74
  marginTop: 40,
83
75
  },
84
76
  otpInputStyle: {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Modal, Platform, StyleSheet, View } from 'react-native';
3
3
  import { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';
4
4
  import { Button, Paragraph, Title } from 'react-native-paper';
5
- import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
5
+ import Icon from '@react-native-vector-icons/material-design-icons';
6
6
  import SdkColors, { ColorTheme } from '../../styles/SdkColors';
7
7
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
8
8
  import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
@@ -115,5 +115,5 @@ export interface CancelDialogProps {
115
115
  positiveButtonTitle?: string;
116
116
  negativeButtonTitle?: string;
117
117
  showIcon?: boolean;
118
- iconName?: string;
118
+ iconName?: any;
119
119
  }
@@ -1,7 +1,7 @@
1
1
  import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
2
2
  import React from 'react';
3
3
  import { Checkbox } from 'react-native-paper';
4
- import { Feather } from '@expo/vector-icons';
4
+ import Feather from '@react-native-vector-icons/feather';
5
5
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
6
6
  import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
7
7
 
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { View, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
3
- import { EvilIcons, MaterialIcons } from '@expo/vector-icons';
3
+ import EvilIcons from '@react-native-vector-icons/evil-icons';
4
+ import MaterialIcons from '@react-native-vector-icons/material-icons';
4
5
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
5
6
  import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
6
7
 
@@ -1,5 +1,3 @@
1
- /* eslint-disable react-native/no-inline-styles */
2
- /* eslint-disable @typescript-eslint/no-unused-vars */
3
1
  import React from 'react';
4
2
  import {
5
3
  Animated,
@@ -11,8 +9,8 @@ import {
11
9
  View,
12
10
  ViewStyle,
13
11
  } from 'react-native';
14
- import { Surface, withTheme } from 'react-native-paper';
15
- import { AntDesign } from '@expo/vector-icons';
12
+ import { Surface, withTheme, MD3Theme } from 'react-native-paper';
13
+ import AntDesign from '@react-native-vector-icons/ant-design';
16
14
  import { Fonts } from '../../styles/executionTasks/CommonStyles';
17
15
  import {
18
16
  ScreenNameSdkConstants,
@@ -27,7 +25,7 @@ export interface SnackbarProps {
27
25
  onDismiss: () => void;
28
26
  message: string;
29
27
  type?: SnackBarType;
30
- theme: ReactNativePaper.Theme;
28
+ theme: MD3Theme;
31
29
  customBottom?: number;
32
30
  customTop?: number;
33
31
  }
@@ -163,15 +161,15 @@ const SnackbarCustom = ({
163
161
  }
164
162
  >
165
163
  {type && type === SnackBarType.FAILURE ? (
166
- <AntDesign name="exclamationcircleo" size={20} color="white" />
164
+ <AntDesign name="exclamation-circle" size={20} color="white" />
167
165
  ) : type && type === SnackBarType.PAYMENT_WARNING ? (
168
- <AntDesign name="infocirlceo" size={20} color="#D97706" />
166
+ <AntDesign name="info-circle" size={20} color="#D97706" />
169
167
  ) : type && type === SnackBarType.OTP_SUCCESS ? (
170
- <AntDesign name="checkcircleo" size={20} color="#059669" />
168
+ <AntDesign name="check-circle" size={20} color="#059669" />
171
169
  ) : type && type === SnackBarType.OTP_FAILED ? (
172
- <AntDesign name="closecircleo" size={20} color="#DC2626" />
170
+ <AntDesign name="close-circle" size={20} color="#DC2626" />
173
171
  ) : (
174
- <AntDesign name="checkcircleo" size={20} color="white" />
172
+ <AntDesign name="check-circle" size={20} color="white" />
175
173
  )}
176
174
  <Text
177
175
  style={[
@@ -37,7 +37,7 @@ const SplitTextInput = ({
37
37
  keyboardType,
38
38
  hasError,
39
39
  }: SplitTextInputProps) => {
40
- const inputRef: any = useRef();
40
+ const inputRef: any = useRef(null);
41
41
  const boxArray = new Array(maxLength).fill(0);
42
42
  const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);
43
43
 
@@ -13,7 +13,6 @@ const DEFAULT_TIMER = 120;
13
13
  export const Timer = forwardRef(
14
14
  (
15
15
  props: {
16
- ref: any;
17
16
  singleValue?: boolean;
18
17
  timer?: number;
19
18
  onTimerEnd?: () => void;
@@ -0,0 +1,118 @@
1
+ import Database from "../manager/syncmanager/database"
2
+ import {
3
+ EVENT_CODES_TABLE, EventColumns, REASONS_TABLE, ReasonColums,
4
+ DOCUMENT_TABLE, DOCUMENT_COLUMNS, EVENTS_TABLE, EVENTS_COLUMNS,
5
+ VERSION_TABLE, VERSION_COLUMNS
6
+ } from "../manager/syncmanager/DBConfig"
7
+ import dbUpdate from "./dbUpdate.json"
8
+ import DispatchSdkCache from "../manager/sdk/DispatchSdkCache"
9
+
10
+ export const initAndUpdateDatabase = async () => {
11
+ try {
12
+ const createStmts = [
13
+ {
14
+ sqlSmt: `CREATE TABLE IF NOT EXISTS ${VERSION_TABLE}
15
+ (${VERSION_COLUMNS.VERSION_NO} TEXT NOT NULL);`,
16
+ args: [],
17
+ },
18
+ {
19
+ sqlSmt: `CREATE TABLE IF NOT EXISTS ${EVENT_CODES_TABLE} (
20
+ ${EventColumns.CODE} TEXT PRIMARY KEY NOT NULL,
21
+ ${EventColumns.DESCRIPTION} TEXT,
22
+ ${EventColumns.SUCCESS_EVENT} INTEGER);`,
23
+ args: [],
24
+ },
25
+ {
26
+ sqlSmt: `CREATE TABLE IF NOT EXISTS ${REASONS_TABLE} (
27
+ ${ReasonColums.CODE} TEXT PRIMARY KEY NOT NULL,
28
+ ${ReasonColums.DESCRIPTION} TEXT,
29
+ ${ReasonColums.IS_ENABLED} INTEGER,
30
+ ${ReasonColums.SYSTEM_DEFINED} INTEGER);`,
31
+ args: []
32
+ },
33
+ {
34
+ sqlSmt: `CREATE TABLE IF NOT EXISTS ${DOCUMENT_TABLE} (
35
+ ${DOCUMENT_COLUMNS.ID} INTEGER PRIMARY KEY AUTOINCREMENT,
36
+ ${DOCUMENT_COLUMNS.DATA} TEXT,
37
+ ${DOCUMENT_COLUMNS.BASE64} INTEGER NOT NULL DEFAULT 0,
38
+ ${DOCUMENT_COLUMNS.FILE_PATH} TEXT,
39
+ ${DOCUMENT_COLUMNS.DISPATCH_ID} TEXT NOT NULL,
40
+ ${DOCUMENT_COLUMNS.FILE_NAME} TEXT,
41
+ ${DOCUMENT_COLUMNS.FILE_TYPE} TEXT,
42
+ ${DOCUMENT_COLUMNS.SYNCED} INTEGER DEFAULT 0 NOT NULL,
43
+ ${DOCUMENT_COLUMNS.FMS_ID} TEXT,
44
+ ${DOCUMENT_COLUMNS.FMS_FOLDER_ID} TEXT,
45
+ ${DOCUMENT_COLUMNS.PRIORITY} INTEGER NOT NULL DEFAULT 1,
46
+ ${DOCUMENT_COLUMNS.SYNC_ERROR} TEXT,
47
+ ${DOCUMENT_COLUMNS.ATTEMPT_COUNT} INTEGER DEFAULT 0 NOT NULL,
48
+ ${DOCUMENT_COLUMNS.GEO_TIMESTAMP} TEXT,
49
+ ${DOCUMENT_COLUMNS.PROCESSED_FILE_PATH} TEXT,
50
+ ${DOCUMENT_COLUMNS.DESCRIPTION} TEXT);`,
51
+ args: []
52
+ },
53
+ {
54
+ sqlSmt: `CREATE TABLE IF NOT EXISTS ${EVENTS_TABLE} (
55
+ ${EVENTS_COLUMNS.ID} INTEGER PRIMARY KEY AUTOINCREMENT,
56
+ ${EVENTS_COLUMNS.DISPATCH_ID} TEXT NOT NULL,
57
+ ${EVENTS_COLUMNS.PAYLOAD} TEXT NOT NULL,
58
+ ${EVENTS_COLUMNS.CONFIG} TEXT,
59
+ ${EVENTS_COLUMNS.SYNC_TYPE} TEXT NOT NULL,
60
+ ${EVENTS_COLUMNS.DATA_LENGTH} INTEGER DEFAULT 0 NOT NULL,
61
+ ${EVENTS_COLUMNS.META} TEXT NOT NULL,
62
+ ${EVENTS_COLUMNS.SYNCED} INTEGER DEFAULT 0 NOT NULL,
63
+ ${EVENTS_COLUMNS.ATTEMPT_COUNT} INTEGER DEFAULT 0 NOT NULL,
64
+ ${EVENTS_COLUMNS.SYNC_ERROR} TEXT);`,
65
+ args: []
66
+ }
67
+ ]
68
+ const initResult = await Database.executeStatementsInTxn(createStmts);
69
+ console.debug("Database initialized: ", initResult);
70
+ const versionResult = await Database.executeGetDataQuery(
71
+ `SELECT MAX(${VERSION_COLUMNS.VERSION_NO}) AS version FROM ${VERSION_TABLE}`, []);
72
+ console.debug('versionResult SDK', JSON.stringify(versionResult));
73
+ const raw = (versionResult as any).rows._array[0]?.version;
74
+ const currentVersion = raw != null ? Number(raw) : 0;
75
+
76
+ if (currentVersion === 0) {
77
+ console.debug(`no version found, inserting initial version ${dbUpdate.version}`);
78
+ await DispatchSdkCache.getInstance().clearKeys([DispatchSdkCache.KEYS.REASON_FETCH_TIME]);
79
+ await Database.executeSetDataQuery(
80
+ `INSERT OR REPLACE INTO ${VERSION_TABLE}(${VERSION_COLUMNS.VERSION_NO}) VALUES (?);`,
81
+ [dbUpdate.version]);
82
+ return;
83
+ }
84
+
85
+ if (currentVersion < dbUpdate.version) {
86
+ console.debug(`migrating DB from v${currentVersion} → v${dbUpdate.version}`);
87
+ await DispatchSdkCache.getInstance().clearKeys([DispatchSdkCache.KEYS.REASON_FETCH_TIME]);
88
+ const migrationStmts = buildMigrationStatements(currentVersion, dbUpdate.version);
89
+ await Database.executeStatementsInTxn(migrationStmts);
90
+ }
91
+
92
+ console.debug('Database is up to date (v' + dbUpdate.version + ').');
93
+ } catch (err: any) {
94
+ console.error('initDatabase failed:', err);
95
+ throw new Error('Database initialization error: ' + (err as Error).message);
96
+ }
97
+ }
98
+
99
+ /** Assemble all the SQL statements needed to go from `from v` → `to v`. */
100
+ function buildMigrationStatements(from: number, to: number) {
101
+ const stmts: Array<{ sqlSmt: string; args: any[] }> = [];
102
+
103
+ for (let v = from + 1; v <= to; v++) {
104
+ const key = `v${v}`;
105
+ const upgrade = (dbUpdate.upgrades as Record<string, string[]>)[key];
106
+ if (!upgrade) break;
107
+
108
+ upgrade.forEach((sql) => {
109
+ stmts.push({ sqlSmt: sql, args: [] });
110
+ });
111
+ }
112
+ // finally bump the version
113
+ stmts.push({
114
+ sqlSmt: `INSERT OR REPLACE INTO ${VERSION_TABLE}(${VERSION_COLUMNS.VERSION_NO}) VALUES (?);`,
115
+ args: [to],
116
+ });
117
+ return stmts;
118
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 1,
3
+ "upgrades": {
4
+ "v1": []
5
+ }
6
+ }
@@ -1,28 +1,12 @@
1
1
  import { clearCache, createFmsFolder } from '../../utils/SyncManagerUtils';
2
- import {
3
- DispatchExecutor as dispatchExecutor,
4
- IDispatchExecutor,
5
- IDispatch,
6
- } from '@os1-platform/platform-coreos-execution-engine-sdk';
2
+ import { DispatchExecutor as dispatchExecutor, IDispatchExecutor, IDispatch } from '@os1-platform/platform-coreos-execution-engine-sdk';
7
3
  import { showToast } from '../../components/widgets/Toaster';
8
- import {
9
- CustomScreens,
10
- ExecutionTaskID,
11
- } from '../../models/execTasks/ETConfig';
12
- import type {
13
- ETSummary,
14
- ObjectiveSummary,
15
- } from '../../models/execTasks/ETBaseModels';
16
-
4
+ import { CustomScreens, ExecutionTaskID } from '../../models/execTasks/ETConfig';
5
+ import type { ETSummary, ObjectiveSummary } from '../../models/execTasks/ETBaseModels';
17
6
  import EventsSyncManager from '../syncmanager/events/EventsSyncManager';
18
7
  import Logger, { LOG_TYPE } from '../../utils/Logger';
19
8
  import DispatchSdkCache from '../sdk/DispatchSdkCache';
20
- import type {
21
- BaseETProps,
22
- endEvent,
23
- JobObjectiveType,
24
- stateParams,
25
- } from '../../models/DispatchModels';
9
+ import type { BaseETProps, endEvent, JobObjectiveType, stateParams } from '../../models/DispatchModels';
26
10
  import { BaseError } from '../../errors/BaseError';
27
11
  import { getBaseETResponse } from '../../utils/ExecTaskUtils';
28
12
  import ReasonCodeContainer from '../dispatchCodes/ReasonCodeContainer';
@@ -106,11 +90,7 @@ export default class DispatchStateContainer {
106
90
  !dispatchWorkflows ||
107
91
  Object.keys(dispatchWorkflows).length < 1
108
92
  ) {
109
- Logger.getInstance().logEvent(
110
- 'initDispatchExecutor',
111
- InvalidArgumentsError,
112
- LOG_TYPE.SDK_WARNING
113
- );
93
+ Logger.getInstance().logEvent('initDispatchExecutor', InvalidArgumentsError, LOG_TYPE.SDK_WARNING);
114
94
  throw new BaseError(
115
95
  BaseErrorCodes.InvalidArgumentError,
116
96
  InvalidArgumentsError
@@ -1,9 +1,5 @@
1
- import * as Database from '../syncmanager/database';
2
- import {
3
- EventsRow,
4
- EVENT_CODES_TABLE,
5
- EventColumns,
6
- } from '../syncmanager/DBConfig';
1
+ import Database from '../syncmanager/database';
2
+ import { EventsRow, EVENT_CODES_TABLE, EventColumns } from '../syncmanager/DBConfig';
7
3
  import type { EventCodes } from '../../models/ReasonCodes';
8
4
 
9
5
  export default class EventCodeRepo {
@@ -31,7 +27,7 @@ export default class EventCodeRepo {
31
27
  await Promise.all(promises);
32
28
  }
33
29
  private async insertEvent(event: EventsRow) {
34
- await Database.executeQuery(
30
+ await Database.executeSetDataQuery(
35
31
  `INSERT OR REPLACE INTO ${EVENT_CODES_TABLE}(\
36
32
  ${EventColumns.CODE},\
37
33
  ${EventColumns.DESCRIPTION},\
@@ -42,7 +38,7 @@ export default class EventCodeRepo {
42
38
  }
43
39
 
44
40
  private async init(): Promise<void> {
45
- await Database.executeQuery(
41
+ await Database.executeSetDataQuery(
46
42
  `CREATE TABLE IF NOT EXISTS ${EVENT_CODES_TABLE} (\
47
43
  ${EventColumns.CODE} TEXT PRIMARY KEY NOT NULL,\
48
44
  ${EventColumns.DESCRIPTION} TEXT,\
@@ -51,20 +47,20 @@ export default class EventCodeRepo {
51
47
  );
52
48
  }
53
49
  public async getAllEventCodes(): Promise<EventsRow[]> {
54
- const resultSet = await Database.executeQuery(
50
+ const resultSet = await Database.executeGetDataQuery(
55
51
  `SELECT * FROM ${EVENT_CODES_TABLE};`,
56
52
  []
57
53
  );
58
54
  return resultSet.rows._array;
59
55
  }
60
56
  public async deleteAll() {
61
- return Database.executeQuery(`DELETE FROM ${EVENT_CODES_TABLE};`, []);
57
+ return Database.executeSetDataQuery(`DELETE FROM ${EVENT_CODES_TABLE};`, []);
62
58
  }
63
59
 
64
60
  public async getEventsByCode(codes: string[]): Promise<EventsRow[]> {
65
61
  if (!codes || codes.length < 1) return [];
66
62
  const placeholders = codes.map((it) => `'${it}'`).join(',');
67
- const resultSet = await Database.executeQuery(
63
+ const resultSet = await Database.executeGetDataQuery(
68
64
  `SELECT * FROM ${EVENT_CODES_TABLE} WHERE ${EventColumns.CODE} IN (${placeholders});`,
69
65
  []
70
66
  );
@@ -73,7 +69,7 @@ export default class EventCodeRepo {
73
69
 
74
70
  public async getEventByCode(code: string): Promise<EventsRow[]> {
75
71
  if (!code) return [];
76
- const resultSet = await Database.executeQuery(
72
+ const resultSet = await Database.executeGetDataQuery(
77
73
  `SELECT * FROM ${EVENT_CODES_TABLE} WHERE ${EventColumns.CODE} = ?;`,
78
74
  [code]
79
75
  );
@@ -2,15 +2,15 @@ import DispatchSdkCache from '../sdk/DispatchSdkCache';
2
2
  import Logger, { LOG_TYPE } from '../../utils/Logger';
3
3
  import { BaseError } from '../../errors/BaseError';
4
4
  import ErrorCodes from '../../errors/ErrorCodes';
5
- import ReasonCodeRepo from './ReasonCodeRepo';
6
5
  import type { ApplicableReasons } from '../../models/execTasks/ETBaseModels';
7
6
  import type { ReasonsRow } from '../syncmanager/DBConfig';
8
7
  import GraphQLClient from '../../network/GraphQLClient';
8
+ import ReasonCodeRepoIns from './ReasonCodeRepo';
9
9
 
10
10
  export default class ReasonCodeContainer {
11
11
  private static instance: ReasonCodeContainer;
12
12
  private cache: DispatchSdkCache = DispatchSdkCache.getInstance();
13
- private constructor() {}
13
+ private constructor() { }
14
14
 
15
15
  public static getInstance(): ReasonCodeContainer {
16
16
  if (!ReasonCodeContainer.instance) {
@@ -31,7 +31,7 @@ export default class ReasonCodeContainer {
31
31
  try {
32
32
  const codes: string[] = applicableCodes[entityCode];
33
33
  let finalApplicableCodes =
34
- await ReasonCodeRepo.getInstance().getReasonsByCode(codes);
34
+ await ReasonCodeRepoIns.getReasonsByCode(codes);
35
35
  if (finalApplicableCodes && finalApplicableCodes.length > 0) {
36
36
  return finalApplicableCodes;
37
37
  } else return [];
@@ -54,7 +54,7 @@ export default class ReasonCodeContainer {
54
54
  try {
55
55
  if (!code) return null;
56
56
  else {
57
- const queryResult = await ReasonCodeRepo.getInstance().getReasonByCode(
57
+ const queryResult = await ReasonCodeRepoIns.getReasonByCode(
58
58
  code
59
59
  );
60
60
  if (queryResult && queryResult.length > 0) {
@@ -84,7 +84,7 @@ export default class ReasonCodeContainer {
84
84
  graphlQLResponse.data.reasonList &&
85
85
  graphlQLResponse.data.reasonList.data
86
86
  ) {
87
- await ReasonCodeRepo.getInstance().saveReasonCode(
87
+ await ReasonCodeRepoIns.saveReasonCode(
88
88
  graphlQLResponse.data.reasonList.data
89
89
  );
90
90
  await this.cache.setKeyInCache(
@@ -1,12 +1,9 @@
1
- import * as Database from '../syncmanager/database';
2
- import {
3
- ReasonColums,
4
- REASONS_TABLE,
5
- ReasonsRow,
6
- } from '../syncmanager/DBConfig';
1
+ import Database from '../syncmanager/database';
2
+ import { ReasonColums, REASONS_TABLE, ReasonsRow } from '../syncmanager/DBConfig';
7
3
  import type { ReasonCodes } from '../../models/ReasonCodes';
4
+ import { Platform } from 'react-native';
8
5
 
9
- export default class ReasonCodeRepo {
6
+ class ReasonCodeRepo {
10
7
  private static instance: ReasonCodeRepo;
11
8
  public static getInstance(): ReasonCodeRepo {
12
9
  if (!ReasonCodeRepo.instance) {
@@ -32,7 +29,7 @@ export default class ReasonCodeRepo {
32
29
  await Promise.all(promises);
33
30
  }
34
31
  private async insertReason(reason: ReasonsRow) {
35
- await Database.executeQuery(
32
+ await Database.executeSetDataQuery(
36
33
  `INSERT OR REPLACE INTO ${REASONS_TABLE}(\
37
34
  ${ReasonColums.CODE},\
38
35
  ${ReasonColums.DESCRIPTION},\
@@ -48,8 +45,8 @@ export default class ReasonCodeRepo {
48
45
  );
49
46
  }
50
47
 
51
- private async init(): Promise<void> {
52
- await Database.executeQuery(
48
+ public async init(): Promise<void> {
49
+ const initResult = await Database.executeSetDataQuery(
53
50
  `CREATE TABLE IF NOT EXISTS ${REASONS_TABLE} (\
54
51
  ${ReasonColums.CODE} TEXT PRIMARY KEY NOT NULL,\
55
52
  ${ReasonColums.DESCRIPTION} TEXT,\
@@ -57,23 +54,25 @@ export default class ReasonCodeRepo {
57
54
  ${ReasonColums.SYSTEM_DEFINED} INTEGER);`,
58
55
  []
59
56
  );
57
+ return;
60
58
  }
61
59
  public async getAllReasons(): Promise<ReasonsRow[]> {
62
- const resultSet = await Database.executeQuery(
60
+ const resultSet = await Database.executeGetDataQuery(
63
61
  `SELECT * FROM ${REASONS_TABLE};`,
64
62
  []
65
63
  );
66
64
  return resultSet.rows._array;
67
65
  }
68
66
  public async deleteAll() {
69
- return Database.executeQuery(`DELETE FROM ${REASONS_TABLE};`, []);
67
+ return Database.executeSetDataQuery(`DELETE FROM ${REASONS_TABLE};`, []);
70
68
  }
71
69
 
72
70
  public async getReasonsByCode(codes: string[]): Promise<ReasonsRow[]> {
73
71
  if (!codes || codes.length < 1) return [];
74
72
  const placeholders = codes.map((it) => `'${it}'`).join(',');
75
- const resultSet = await Database.executeQuery(
76
- `SELECT * FROM ${REASONS_TABLE} WHERE (${ReasonColums.IS_ENABLED}=1) and ${ReasonColums.CODE} IN (${placeholders});`,
73
+ const isEnabled = Platform.OS === 'ios' ? '1' : '1';
74
+ const resultSet = await Database.executeGetDataQuery(
75
+ `SELECT * FROM ${REASONS_TABLE} WHERE ${ReasonColums.IS_ENABLED}= '${isEnabled}' AND ${ReasonColums.CODE} IN (${placeholders});`,
77
76
  []
78
77
  );
79
78
  return resultSet.rows._array;
@@ -81,10 +80,13 @@ export default class ReasonCodeRepo {
81
80
 
82
81
  public async getReasonByCode(code: string): Promise<ReasonsRow[]> {
83
82
  if (!code) return [];
84
- const resultSet = await Database.executeQuery(
83
+ const resultSet = await Database.executeGetDataQuery(
85
84
  `SELECT * FROM ${REASONS_TABLE} WHERE ${ReasonColums.CODE} = ?;`,
86
85
  [code]
87
86
  );
88
87
  return resultSet.rows._array;
89
88
  }
90
89
  }
90
+
91
+ const ReasonCodeRepoIns = ReasonCodeRepo.getInstance();
92
+ export default ReasonCodeRepoIns;
@@ -1,6 +1,3 @@
1
- import * as Location from 'expo-location';
2
- import { Accuracy, LocationObject } from 'expo-location';
3
- import Logger, { LOG_TYPE } from '../../utils/Logger';
4
1
  import { EmitterSubscription, Platform } from 'react-native';
5
2
  import PermissionModule from '../../native/PermissionModule';
6
3
  import LocationModule, { LocationType } from '../../native/LocationModule';
@@ -13,7 +10,6 @@ export default class LocationManager {
13
10
  private subscription: EmitterSubscription | null = null;
14
11
 
15
12
  public async checkForLocationPermissions(): Promise<boolean> {
16
- console.log("checkForLocationPermissions");
17
13
  if (Platform.OS === 'ios') {
18
14
  // old code checking for permissions using expo-location
19
15
  // let permissionResponse = await Location.getForegroundPermissionsAsync();
@@ -63,7 +59,6 @@ export default class LocationManager {
63
59
  if (Platform.OS === 'android') {
64
60
  LocationModule.startLocationUpdates();
65
61
  this.subscription = LocationModule.addLocationListener((location) => {
66
- console.log('Location updated:', location);
67
62
  if (location != null) {
68
63
  this.lastLocationAndroid = location
69
64
  }
@@ -84,7 +79,6 @@ export default class LocationManager {
84
79
 
85
80
  public async getLastLocation(): Promise<DLocation> {
86
81
  if (Platform.OS === 'android' && this.lastLocationAndroid != null) {
87
- console.log("lastLocationAndroid:", this.lastLocationAndroid);
88
82
  return {
89
83
  latitude: this.lastLocationAndroid.latitude.toString(),
90
84
  longitude: this.lastLocationAndroid.longitude.toString(),
@@ -93,8 +87,7 @@ export default class LocationManager {
93
87
  }
94
88
  if (Platform.OS === 'ios') {
95
89
  this.lastLocationiOS = await LocationModule.getLastLocation();
96
- console.log("lastLocationiOS:", this.lastLocationiOS);
97
- if(this.lastLocationiOS){
90
+ if (this.lastLocationiOS) {
98
91
  return {
99
92
  latitude: this.lastLocationiOS.latitude.toString(),
100
93
  longitude: this.lastLocationiOS.longitude.toString(),
@@ -17,6 +17,7 @@ import { pushBulkEventForSync } from '../../utils/SyncManagerUtils';
17
17
  import callbackHandler from './callbacksHandler';
18
18
  import { DispatchExecutor as dispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
19
19
  import { MAX_RETRY_COUNT } from '../syncmanager/constants';
20
+ import { initAndUpdateDatabase } from '../../database/DBManager';
20
21
 
21
22
  export class DispatchSDKManager {
22
23
  private static instance: DispatchSDKManager;
@@ -47,27 +48,33 @@ export class DispatchSDKManager {
47
48
  'accessToken',
48
49
  ])
49
50
  ) {
50
- throw new BaseError(
51
- ErrorCodes.InvalidArgumentError,
52
- 'Invalid/Missing Argument Passed in SdkConfig'
53
- );
51
+ throw new BaseError(ErrorCodes.InvalidArgumentError, 'Invalid/Missing Argument Passed in SdkConfig');
54
52
  }
53
+
55
54
  if (isTokenExpired(sdkConfig.accessToken)) {
56
55
  throw new BaseError(
57
56
  ErrorCodes.ACCESS_TOKEN_EXPIRED,
58
57
  'JWT Token Expired!'
59
58
  );
60
59
  }
60
+
61
61
  if (sdkConfig.sentry && sdkConfig.sentry?.enabled) {
62
62
  Sentry.init({
63
63
  enableNative: true,
64
64
  environment: sdkConfig.sentry.env,
65
65
  dsn: sdkConfig.sentry.dsn,
66
66
  tracesSampleRate: 1.0,
67
+ enableAutoSessionTracking: true,
68
+ enableAutoPerformanceTracing: false,
69
+ attachStacktrace: true,
70
+ maxBreadcrumbs: 50,
67
71
  });
68
72
  }
73
+
69
74
  await SdkUtils.checkMandatory();
75
+
70
76
  await this.cache.setObjectInCache(this.keys.SDK_CONFIG, sdkConfig);
77
+ await initAndUpdateDatabase()
71
78
  GraphQLClient.init(sdkConfig.tenantBaseURL);
72
79
  AppSyncManager.initAppSync(
73
80
  sdkConfig.tenantBaseURL,
@@ -78,6 +85,7 @@ export class DispatchSDKManager {
78
85
  EventCodeRepo.getInstance().saveEventCode(sdkConfig.eventMapping);
79
86
  }
80
87
  await ReasonCodeContainer.getInstance().fetchReasonCode();
88
+
81
89
  Logger.getInstance().setLogging(sdkConfig.enableLogging ?? true, sdkConfig);
82
90
  let storage = Storage.getInstance();
83
91