@os1-platform/dispatch-mobile 1.3.11 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (619) hide show
  1. package/README.md +198 -30
  2. package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
  3. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  5. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
  7. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  8. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  9. package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
  10. package/android/.gradle/7.2/gc.properties +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  13. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  14. package/android/.gradle/checksums/checksums.lock +0 -0
  15. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  16. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  17. package/android/.idea/compiler.xml +6 -0
  18. package/android/.idea/gradle.xml +6 -1
  19. package/android/.idea/jarRepositories.xml +35 -0
  20. package/android/.idea/kotlinc.xml +6 -0
  21. package/android/.idea/misc.xml +6 -1
  22. package/android/local.properties +1 -1
  23. package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
  24. package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
  25. package/lib/commonjs/@types/assets/index.d.js +2 -0
  26. package/lib/commonjs/@types/assets/index.d.js.map +1 -0
  27. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +4 -4
  28. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +0 -28
  30. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  32. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +35 -35
  33. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
  35. package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
  36. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +2 -2
  37. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +187 -112
  40. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -16
  42. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +37 -34
  44. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +2 -2
  46. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +52 -52
  48. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +71 -66
  50. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  51. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  52. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
  54. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +2 -2
  57. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  58. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
  59. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  60. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
  62. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +34 -34
  64. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  66. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +54 -54
  67. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  68. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +33 -33
  69. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  70. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +33 -33
  71. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  72. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +2 -2
  73. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  74. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +112 -47
  75. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  76. package/lib/commonjs/components/executiontasks/scan/ScanET.js +326 -428
  77. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  78. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +13 -0
  79. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
  80. package/lib/commonjs/components/executiontasks/scan/interfaces.js +15 -1
  81. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  82. package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
  83. package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
  84. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
  86. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
  88. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
  90. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  91. package/lib/commonjs/components/executiontasks/scan/utils.js +548 -159
  92. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +52 -53
  94. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
  96. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  97. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  98. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  99. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
  100. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  101. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
  102. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  103. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  104. package/lib/commonjs/components/utils/index.js +14 -0
  105. package/lib/commonjs/components/utils/index.js.map +1 -0
  106. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  107. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  108. package/lib/commonjs/components/widgets/Card.js +88 -0
  109. package/lib/commonjs/components/widgets/Card.js.map +1 -0
  110. package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
  111. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
  112. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  113. package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
  114. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
  115. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  116. package/lib/commonjs/components/widgets/SearchBar.js +74 -0
  117. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
  118. package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -4
  119. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  120. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  121. package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
  122. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
  123. package/lib/commonjs/constants/apiConstants.js +3 -1
  124. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  125. package/lib/commonjs/constants/constants.js +2 -2
  126. package/lib/commonjs/constants/constants.js.map +1 -1
  127. package/lib/commonjs/events/EventDispatcher.js +1 -5
  128. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  129. package/lib/commonjs/events/constants.js +3 -1
  130. package/lib/commonjs/events/constants.js.map +1 -1
  131. package/lib/commonjs/events/interface.js.map +1 -1
  132. package/lib/commonjs/index.js +32 -13
  133. package/lib/commonjs/index.js.map +1 -1
  134. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +315 -609
  135. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  136. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  137. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  138. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  139. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  140. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +21 -25
  141. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  142. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  143. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +15 -1
  144. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  145. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -2
  146. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  147. package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
  148. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
  149. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +15 -1
  150. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  151. package/lib/commonjs/manager/syncmanager/DBConfig.js +36 -3
  152. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  153. package/lib/commonjs/manager/syncmanager/constants.js +17 -0
  154. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
  155. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  156. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -17
  157. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  158. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +5 -6
  159. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  160. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +16 -6
  161. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  162. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +377 -26
  163. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  164. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +183 -65
  165. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  166. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +150 -37
  167. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  168. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  169. package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
  170. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  171. package/lib/commonjs/models/sdk.js.map +1 -1
  172. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  173. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  174. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  175. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  176. package/lib/commonjs/network/client.js.map +1 -1
  177. package/lib/commonjs/resources/Login.js.map +1 -1
  178. package/lib/commonjs/resources/network.js.map +1 -1
  179. package/lib/commonjs/styles/SdkColors.js +4 -2
  180. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  181. package/lib/commonjs/styles/executionTasks/CommonStyles.js +19 -10
  182. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  183. package/lib/commonjs/ui/screens/CancellationScreen.js +38 -7
  184. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  185. package/lib/commonjs/ui/screens/CaptureInputScreen.js +11 -3
  186. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  187. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -4
  188. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  189. package/lib/commonjs/ui/screens/DeliverScreen.js +26 -4
  190. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  191. package/lib/commonjs/ui/screens/DisplayScreen.js +11 -2
  192. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  193. package/lib/commonjs/ui/screens/DoodleScreen.js +13 -6
  194. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  195. package/lib/commonjs/ui/screens/DropCashScreen.js +39 -15
  196. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  197. package/lib/commonjs/ui/screens/ETScreensIndex.js +0 -7
  198. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  199. package/lib/commonjs/ui/screens/FormsScreen.js +95 -28
  200. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  201. package/lib/commonjs/ui/screens/GeofenceScreen.js +10 -2
  202. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  203. package/lib/commonjs/ui/screens/HttpRequestScreen.js +10 -2
  204. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  205. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +26 -18
  206. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  207. package/lib/commonjs/ui/screens/PaymentScreen.js +22 -11
  208. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  209. package/lib/commonjs/ui/screens/PickupScreen.js +34 -8
  210. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  211. package/lib/commonjs/ui/screens/ScanScreen.js +72 -219
  212. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  213. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +51 -16
  214. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  215. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +13 -7
  216. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  217. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  218. package/lib/commonjs/ui/uiConfig/RouteParams.js +20 -5
  219. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  220. package/lib/commonjs/utils/ApiUtils.js +16 -2
  221. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  222. package/lib/commonjs/utils/ExecTaskUtils.js +33 -25
  223. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  224. package/lib/commonjs/utils/Logger.js.map +1 -1
  225. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  226. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  227. package/lib/commonjs/utils/SyncManagerUtils.js +37 -4
  228. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  229. package/lib/commonjs/utils/fcm/FCM.js +64 -35
  230. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  231. package/lib/commonjs/utils/fcm/FcmUtils.js +82 -46
  232. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  233. package/lib/commonjs/utils/helper.js.map +1 -1
  234. package/lib/commonjs/utils/hooks/useModal.js +53 -0
  235. package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
  236. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  237. package/lib/commonjs/utils/storage.js +37 -2
  238. package/lib/commonjs/utils/storage.js.map +1 -1
  239. package/lib/commonjs/utils/utils.js.map +1 -1
  240. package/lib/module/@types/assets/index.d.js +2 -0
  241. package/lib/module/@types/assets/index.d.js.map +1 -0
  242. package/lib/module/components/dispatch/DispatchExecNavigator.js +4 -4
  243. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  244. package/lib/module/components/executiontasks/ExecutionTasksIndex.js +1 -5
  245. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  246. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  247. package/lib/module/components/executiontasks/captureInput/CaptureText.js +38 -37
  248. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  249. package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
  250. package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
  251. package/lib/module/components/executiontasks/deliver/DeliverET.js +2 -2
  252. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  253. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  254. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +189 -114
  255. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  256. package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -16
  257. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  258. package/lib/module/components/executiontasks/doodle/SignatureET.js +39 -36
  259. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  260. package/lib/module/components/executiontasks/dropCash/DropCashET.js +2 -2
  261. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  262. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +53 -52
  263. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  264. package/lib/module/components/executiontasks/forms/FormGenerator.js +73 -68
  265. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  266. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  267. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  268. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
  269. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  270. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  271. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +3 -3
  272. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  273. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
  274. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  275. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  276. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
  277. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  278. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +36 -36
  279. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  280. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  281. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +55 -54
  282. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  283. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +35 -34
  284. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  285. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +35 -35
  286. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  287. package/lib/module/components/executiontasks/pickup/PickupET.js +2 -2
  288. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  289. package/lib/module/components/executiontasks/pickup/SLPickupET.js +114 -49
  290. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  291. package/lib/module/components/executiontasks/scan/ScanET.js +332 -433
  292. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  293. package/lib/module/components/executiontasks/scan/ScanSchema.js +16 -1
  294. package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
  295. package/lib/module/components/executiontasks/scan/interfaces.js +12 -0
  296. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  297. package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
  298. package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
  299. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  300. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
  301. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  302. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
  303. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  304. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
  305. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  306. package/lib/module/components/executiontasks/scan/utils.js +528 -160
  307. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  308. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +54 -55
  309. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  310. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
  311. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  312. package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
  313. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  314. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
  315. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  316. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
  317. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  318. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  319. package/lib/module/components/utils/index.js +8 -0
  320. package/lib/module/components/utils/index.js.map +1 -0
  321. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  322. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  323. package/lib/module/components/widgets/Card.js +80 -0
  324. package/lib/module/components/widgets/Card.js.map +1 -0
  325. package/lib/module/components/widgets/GoBackModal.js +40 -0
  326. package/lib/module/components/widgets/GoBackModal.js.map +1 -0
  327. package/lib/module/components/widgets/IconButton.js.map +1 -1
  328. package/lib/module/components/widgets/ModalWidget.js +92 -0
  329. package/lib/module/components/widgets/ModalWidget.js.map +1 -0
  330. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  331. package/lib/module/components/widgets/SearchBar.js +66 -0
  332. package/lib/module/components/widgets/SearchBar.js.map +1 -0
  333. package/lib/module/components/widgets/SnackBarCustom.js +12 -4
  334. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  335. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  336. package/lib/module/components/widgets/TabsComponent.js +55 -0
  337. package/lib/module/components/widgets/TabsComponent.js.map +1 -0
  338. package/lib/module/constants/apiConstants.js +3 -1
  339. package/lib/module/constants/apiConstants.js.map +1 -1
  340. package/lib/module/constants/constants.js +2 -2
  341. package/lib/module/constants/constants.js.map +1 -1
  342. package/lib/module/events/EventDispatcher.js +0 -3
  343. package/lib/module/events/EventDispatcher.js.map +1 -1
  344. package/lib/module/events/constants.js +3 -1
  345. package/lib/module/events/constants.js.map +1 -1
  346. package/lib/module/events/interface.js.map +1 -1
  347. package/lib/module/index.js +6 -3
  348. package/lib/module/index.js.map +1 -1
  349. package/lib/module/manager/dispatch/DispatchStateContainer.js +319 -610
  350. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  351. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  352. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  353. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  354. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  355. package/lib/module/manager/jobRemoval/JobRemovalManager.js +21 -19
  356. package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  357. package/lib/module/manager/location/LocationManager.js.map +1 -1
  358. package/lib/module/manager/sdk/DispatchSDKManager.js +15 -1
  359. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  360. package/lib/module/manager/sdk/DispatchSdkCache.js +2 -2
  361. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  362. package/lib/module/manager/sdk/callbacksHandler.js +19 -0
  363. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
  364. package/lib/module/manager/syncmanager/AppSyncManager.js +15 -1
  365. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  366. package/lib/module/manager/syncmanager/DBConfig.js +32 -2
  367. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  368. package/lib/module/manager/syncmanager/constants.js +6 -0
  369. package/lib/module/manager/syncmanager/constants.js.map +1 -0
  370. package/lib/module/manager/syncmanager/database.js.map +1 -1
  371. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -17
  372. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  373. package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -6
  374. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  375. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +16 -6
  376. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  377. package/lib/module/manager/syncmanager/events/ETEventsManager.js +377 -25
  378. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  379. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +183 -65
  380. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  381. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +147 -34
  382. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  383. package/lib/module/models/DispatchModels.js.map +1 -1
  384. package/lib/module/models/execTasks/ETBaseModels.js +1 -1
  385. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  386. package/lib/module/models/sdk.js.map +1 -1
  387. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  388. package/lib/module/network/GraphQLClient.js.map +1 -1
  389. package/lib/module/network/NetworkClient.js.map +1 -1
  390. package/lib/module/network/NetworkUtils.js.map +1 -1
  391. package/lib/module/network/client.js.map +1 -1
  392. package/lib/module/resources/Login.js.map +1 -1
  393. package/lib/module/resources/network.js.map +1 -1
  394. package/lib/module/styles/SdkColors.js +4 -2
  395. package/lib/module/styles/SdkColors.js.map +1 -1
  396. package/lib/module/styles/executionTasks/CommonStyles.js +19 -10
  397. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  398. package/lib/module/ui/screens/CancellationScreen.js +39 -8
  399. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  400. package/lib/module/ui/screens/CaptureInputScreen.js +12 -4
  401. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  402. package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -5
  403. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  404. package/lib/module/ui/screens/DeliverScreen.js +27 -5
  405. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  406. package/lib/module/ui/screens/DisplayScreen.js +12 -3
  407. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  408. package/lib/module/ui/screens/DoodleScreen.js +14 -7
  409. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  410. package/lib/module/ui/screens/DropCashScreen.js +42 -16
  411. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  412. package/lib/module/ui/screens/ETScreensIndex.js +1 -2
  413. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  414. package/lib/module/ui/screens/FormsScreen.js +96 -29
  415. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  416. package/lib/module/ui/screens/GeofenceScreen.js +11 -3
  417. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  418. package/lib/module/ui/screens/HttpRequestScreen.js +11 -3
  419. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  420. package/lib/module/ui/screens/ImageCaptureScreen.js +27 -19
  421. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  422. package/lib/module/ui/screens/PaymentScreen.js +23 -12
  423. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  424. package/lib/module/ui/screens/PickupScreen.js +36 -10
  425. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  426. package/lib/module/ui/screens/ScanScreen.js +74 -222
  427. package/lib/module/ui/screens/ScanScreen.js.map +1 -1
  428. package/lib/module/ui/screens/StartWorkFlowScreen.js +51 -16
  429. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  430. package/lib/module/ui/screens/ValidateOTPScreen.js +14 -8
  431. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  432. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  433. package/lib/module/ui/uiConfig/RouteParams.js +19 -5
  434. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  435. package/lib/module/utils/ApiUtils.js +17 -2
  436. package/lib/module/utils/ApiUtils.js.map +1 -1
  437. package/lib/module/utils/ExecTaskUtils.js +33 -25
  438. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  439. package/lib/module/utils/Logger.js.map +1 -1
  440. package/lib/module/utils/NetworkUtil.js.map +1 -1
  441. package/lib/module/utils/SdkUtils.js.map +1 -1
  442. package/lib/module/utils/SyncManagerUtils.js +37 -4
  443. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  444. package/lib/module/utils/fcm/FCM.js +64 -35
  445. package/lib/module/utils/fcm/FCM.js.map +1 -1
  446. package/lib/module/utils/fcm/FcmUtils.js +82 -46
  447. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  448. package/lib/module/utils/helper.js.map +1 -1
  449. package/lib/module/utils/hooks/useModal.js +43 -0
  450. package/lib/module/utils/hooks/useModal.js.map +1 -0
  451. package/lib/module/utils/loginHelper.js.map +1 -1
  452. package/lib/module/utils/storage.js +37 -2
  453. package/lib/module/utils/storage.js.map +1 -1
  454. package/lib/module/utils/utils.js.map +1 -1
  455. package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
  456. package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +3 -8
  457. package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
  458. package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
  459. package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
  460. package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
  461. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +1 -0
  462. package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
  463. package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
  464. package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
  465. package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
  466. package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
  467. package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
  468. package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +2 -2
  469. package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +2 -2
  470. package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
  471. package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
  472. package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
  473. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
  474. package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +1 -0
  475. package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
  476. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
  477. package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
  478. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
  479. package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
  480. package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
  481. package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +3 -3
  482. package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +25 -9
  483. package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +54 -1
  484. package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
  485. package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +1 -1
  486. package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +1 -1
  487. package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +1 -1
  488. package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
  489. package/lib/typescript/components/executiontasks/scan/utils.d.ts +29 -13
  490. package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +2 -2
  491. package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +2 -2
  492. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
  493. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
  494. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
  495. package/lib/typescript/components/utils/index.d.ts +2 -0
  496. package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
  497. package/lib/typescript/components/widgets/Card.d.ts +17 -0
  498. package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
  499. package/lib/typescript/components/widgets/IconButton.d.ts +2 -2
  500. package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
  501. package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
  502. package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
  503. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
  504. package/lib/typescript/components/widgets/SplitTextInput.d.ts +2 -2
  505. package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
  506. package/lib/typescript/constants/apiConstants.d.ts +1 -0
  507. package/lib/typescript/constants/constants.d.ts +2 -2
  508. package/lib/typescript/events/EventDispatcher.d.ts +0 -2
  509. package/lib/typescript/events/constants.d.ts +2 -0
  510. package/lib/typescript/events/interface.d.ts +1 -1
  511. package/lib/typescript/index.d.ts +8 -6
  512. package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +27 -19
  513. package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -6
  514. package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +0 -1
  515. package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
  516. package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +2 -1
  517. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +63 -7
  518. package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
  519. package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
  520. package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
  521. package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +11 -2
  522. package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +3 -5
  523. package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +4 -3
  524. package/lib/typescript/models/DispatchModels.d.ts +40 -41
  525. package/lib/typescript/models/execTasks/ETBaseModels.d.ts +21 -16
  526. package/lib/typescript/models/sdk.d.ts +7 -0
  527. package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
  528. package/lib/typescript/styles/SdkColors.d.ts +1 -0
  529. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +16 -7
  530. package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
  531. package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
  532. package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
  533. package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
  534. package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
  535. package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
  536. package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
  537. package/lib/typescript/ui/screens/ETScreensIndex.d.ts +1 -2
  538. package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
  539. package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
  540. package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
  541. package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
  542. package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
  543. package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
  544. package/lib/typescript/ui/screens/ScanScreen.d.ts +2 -2
  545. package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
  546. package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +2 -2
  547. package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
  548. package/lib/typescript/ui/uiConfig/RouteParams.d.ts +10 -4
  549. package/lib/typescript/utils/ExecTaskUtils.d.ts +5 -4
  550. package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -5
  551. package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
  552. package/lib/typescript/utils/storage.d.ts +15 -0
  553. package/package.json +5 -4
  554. package/tsconfig.json +0 -1
  555. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  556. package/android/.idea/workspace.xml +0 -131
  557. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -26
  558. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  559. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +0 -134
  560. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
  561. package/lib/commonjs/components/executiontasks/scanner/CScanner.js +0 -105
  562. package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
  563. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -27
  564. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  565. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -164
  566. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  567. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -15
  568. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  569. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -40
  570. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  571. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -93
  572. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  573. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -278
  574. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  575. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -83
  576. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  577. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -248
  578. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  579. package/lib/commonjs/ui/screens/RTScanScreen.js +0 -99
  580. package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
  581. package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
  582. package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  583. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +0 -124
  584. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
  585. package/lib/module/components/executiontasks/scanner/CScanner.js +0 -96
  586. package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
  587. package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
  588. package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  589. package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -146
  590. package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  591. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -7
  592. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  593. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -33
  594. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  595. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -83
  596. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  597. package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -269
  598. package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  599. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -73
  600. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  601. package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -238
  602. package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  603. package/lib/module/ui/screens/RTScanScreen.js +0 -89
  604. package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
  605. package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
  606. package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +0 -8
  607. package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +0 -7
  608. package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
  609. package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
  610. package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
  611. package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -2
  612. package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
  613. package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
  614. package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
  615. package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
  616. package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
  617. /package/android/.gradle/{6.8 → 7.0.2}/fileChanges/last-build.bin +0 -0
  618. /package/android/.gradle/{6.8 → 7.0.2}/gc.properties +0 -0
  619. /package/android/.gradle/{configuration-cache → 7.2/dependencies-accessors}/gc.properties +0 -0
package/README.md CHANGED
@@ -36,11 +36,15 @@ This sdk can be used to render execution task screens on ui, maintain their stat
36
36
  - Format of events:
37
37
  ```js
38
38
  const eventName =
39
- `onTaskStart:{ET_Name}` | `onTaskEnd:{ET_name}` | `onTaskBack:{ET_name}`;
39
+ `onTaskStart:{ET_Name}` |
40
+ `onTaskEnd:{ET_name}` |
41
+ `onTaskBack:{ET_name}` |
42
+ `onScan:{ET_name}` |
43
+ `onScanRemove:{ET_name}`;
40
44
  ```
41
45
  - Usage:
42
46
  ```js
43
- import { eventListener } from '@dispatch-sdk';
47
+ import { eventListener } from '@os1-platform/dispatch-mobile';
44
48
  eventListener.on('{eventName}', (eventData) => {
45
49
  console.log(eventData);
46
50
  });
@@ -209,20 +213,92 @@ exports.resolver = {
209
213
  ### Init Dispatch SDK
210
214
 
211
215
  ```tsx
216
+ interface EventMapping {
217
+ eventCode: string;
218
+ successEvent: boolean;
219
+ description: string;
220
+ }
221
+
222
+ interface DispatchSDKConfig {
223
+ ...previous configs
224
+ debugLevelLog?: Boolean;
225
+ callbacks?: {
226
+ fetchPhoneNumbersCallback?: (sdsIds: string[]) => Promise<{ key: string; value: string[]}>;
227
+ };
228
+ }
229
+
230
+
231
+ const fetchPhoneNumbersCallback = (ids: string[]) => {
232
+ console.log('sds ids: ', ids);
233
+ return {
234
+ key: 'phoneNumber', //This key is same, what was being sent in meta as key
235
+ value: ['8888888888'],
236
+ };
237
+ };
238
+
212
239
  import { DispatchSDKManager } from '@os1-platform/dispatch-mobile';
213
240
 
214
241
  await DispatchSDKManager.getInstance().initDispatchSDK({
215
242
  userName: 'testuser',
216
243
  userID: 'testID',
217
- tenantID: 'delhivery',
244
+ tenantID: tenantId,
218
245
  tenantBaseURL: 'baseURL',
219
246
  accessToken: 'accessToken',
247
+ headers: {
248
+ 'x-user-id': 'testID',
249
+ 'x-coreos-tid': tenantId,
250
+ 'x-coreos-access': accessToken,
251
+ 'Content-Type': 'application/json',
252
+ 'x-coreos-request-id': new Date().getTime(),
253
+ 'x-coreos-userinfo': JSON.stringify({ id: 'testID' }),
254
+ },
255
+ // Used for Scan ET dropdown list => eventMapping: EventMapping[]
256
+ eventMapping: [
257
+ {
258
+ eventCode: 'E-010',
259
+ successEvent: true,
260
+ description: 'Success',
261
+ },
262
+ {
263
+ eventCode: 'E-011',
264
+ successEvent: false,
265
+ description: 'Failure',
266
+ },
267
+ ],
268
+ callbacks: { fetchPhoneNumbersCallback }, // Callback to fetch mobile number based on the sds-ids passed
220
269
  });
221
270
  ```
222
271
 
223
272
  ### Init Execution engine
224
273
 
225
274
  ```ts
275
+ interface Job {
276
+ id: string;
277
+ jobRef: string;
278
+ jobWorkflowId: string;
279
+ status: string;
280
+ subStatus?: string | null;
281
+ containers: Array<Container>;
282
+ customData: any;
283
+ displayInfo: any;
284
+ start: string;
285
+ objectives: Array<Objective>;
286
+ }
287
+
288
+ interface Workflow {
289
+ name: string;
290
+ id: string;
291
+ tag: IWfTag[];
292
+ description: string;
293
+ flows: Array<ExecutionTask>;
294
+ expire?: boolean;
295
+ meta?: string;
296
+ }
297
+
298
+ interface Workflows {
299
+ [workflowId:string]: Workflow;
300
+ }
301
+
226
302
  import { DispatchStateContainer } from '@os1-platform/dispatch-mobile';
227
303
 
228
304
  /**
@@ -234,26 +310,10 @@ import { DispatchStateContainer } from '@os1-platform/dispatch-mobile';
234
310
  */
235
311
 
236
312
  await DispatchStateContainer.getInstance().initDispatchExecutor(
237
- dispatchID,
238
- dispatch.data.dispatch.jobs.data as Job[],
239
- false
240
- );
241
- ```
242
-
243
- ### Query Objective status
244
-
245
- ```ts
246
- import { DispatchStateContainer } from '@os1-platform/dispatch-mobile';
247
-
248
- /**
249
- *
250
- * @param objRef
251
- * @param jobID
252
- */
253
-
254
- DispatchStateContainer.getInstance().fetchObjectiveState(
255
- 'objective_ref',
256
- 'job_id'
313
+ dispatchID: string,
314
+ dispatchJobs: Job[],
315
+ dispatchWorkflows: Workflows,
316
+ maxTaskReattempt?: number
257
317
  );
258
318
  ```
259
319
 
@@ -273,13 +333,121 @@ React.useEffect(() => {
273
333
  }, [route.params?.sdkError]);
274
334
 
275
335
  navigation.navigate('DispatchExec', {
276
- success: true,
277
- objectives: [], // Pass objective List
278
- successRoute: 'SuccessScreen',
279
- failureRoute: 'FailureScreen',
280
- initRoute: 'TaskDetail',
281
- // Calling Screen name (optional parameter). Used to throw errors back to calling screen
336
+ success: true,
337
+ initRoute: 'TaskDetail',
338
+ mergedWI: {
339
+ mwId: route.params.moId,
340
+ customEventsData: {},
341
+ statusFilter: ExecutionStatus[]
342
+ },
343
+ successRoute: 'SuccessScreen',
344
+ failureRoute: 'FailureScreen',
345
+ meta: META,
282
346
  });
347
+
348
+ ```
349
+
350
+ ### Objective Summary Route Params
351
+
352
+ ```ts
353
+
354
+ export interface ObjectiveSummary {
355
+ entityCode: string;
356
+ eventCode: string;
357
+ reasonCode: string;
358
+ reasonCodeDesc?: string;
359
+ }
360
+
361
+ // When navigating to success or failure route, following are the route params:
362
+ {
363
+ summary: {
364
+ success?: ObjectiveSummary[];
365
+ failure?: ObjectiveSummary[];
366
+ },
367
+ objSuccess: boolean,
368
+ }
369
+ ```
370
+
371
+ ### New functions
372
+
373
+ ```ts
374
+ // getObjectiveTaskList
375
+ public async getMergedObjectiveList getObjectiveTaskList(
376
+ status: ExecutionStatus[]
377
+ ): Promise<IObjectiveTask[]> {
378
+ return [];
379
+ }
380
+
381
+ // getObjectiveTaskDetails
382
+ public async getMergedObjectiveDetails getObjectiveTaskDetails(
383
+ mwId: string,
384
+ status: ExecutionStatus[]
385
+ ): Promise< (IObjectiveTask & { workflowData: StoredWorkflowInstance[] | [] }) | {} >
386
+ {
387
+ return [];
388
+ }
389
+
390
+ // Inventory Data
391
+ public async getRiderInventory(): Promise<IDispatch.ItemsInRiderCustody> {
392
+ return {}
393
+ }
394
+ ```
395
+
396
+ ### Interfaces
397
+
398
+ ```ts
399
+ export interface IObjectiveTask {
400
+ id: string;
401
+ status: ExecutionStatus;
402
+ tags: IWfTag[];
403
+ inputs: any;
404
+ instanceCount: number;
405
+ location: Location;
406
+ contact: string[];
407
+ }
408
+
409
+ export interface StoredWorkflowInstance {
410
+ id: string;
411
+ mergedObjectiveId: string;
412
+ jobId: string;
413
+ scannableId: string;
414
+ initialMergedObjectiveId: string;
415
+ status: ExecutionStatus;
416
+ jobWorkflowId: string;
417
+ workflowId: string;
418
+ displayInfo: any;
419
+ cashAmount: number;
420
+ }
421
+
422
+ enum ExecutionStatus {
423
+ READY = 'READY',
424
+ IN_PROGRESS = 'IN_PROGRESS',
425
+ NOT_READY = 'NOT_READY',
426
+ COMPLETED_SUCCESS = 'COMPLETED-SUCCESS',
427
+ COMPLETED_FAILURE = 'COMPLETED-FAILURE',
428
+ }
429
+
430
+ interface IWfTag {
431
+ name: string;
432
+ value: string;
433
+ }
434
+
435
+ export interface Location {
436
+ locationId: string;
437
+ address?: any;
438
+ geolocation?: any;
439
+ }
440
+ export interface ItemsInRiderCustody {
441
+ shipments: {
442
+ totalCount: number;
443
+ deliveredCount: number;
444
+ pickedCount: number;
445
+ };
446
+ cash: {
447
+ expectedAmount: number;
448
+ collectedAmount: number;
449
+ };
450
+ }
283
451
  ```
284
452
 
285
453
  ## FCM
@@ -451,7 +619,7 @@ let mtsInitReq: MTSInitRequest = {
451
619
  configData: mtsDefaults,
452
620
  baseURL: 'https://delhivery.aws.preprod.fxtrt.io/app/dispatch/v1/api/mts/',
453
621
  accessToken: 'token',
454
- tenantID: 'delhivery',
622
+ tenantID: tenantId,
455
623
  };
456
624
  await MtsLib.initMTS(mtsInitReq);
457
625
  //See Error Codes for Possible error types
File without changes
@@ -1,2 +1,2 @@
1
- #Wed Jun 28 12:43:39 IST 2023
2
- gradle.version=6.8
1
+ #Mon Jul 31 14:50:42 IST 2023
2
+ gradle.version=7.2
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="CompilerConfiguration">
4
+ <bytecodeTargetLevel target="17" />
5
+ </component>
6
+ </project>
@@ -1,12 +1,17 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
+ <component name="GradleMigrationSettings" migrationVersion="1" />
3
4
  <component name="GradleSettings">
4
5
  <option name="linkedExternalProjectsSettings">
5
6
  <GradleProjectSettings>
6
7
  <option name="testRunner" value="GRADLE" />
7
8
  <option name="distributionType" value="DEFAULT_WRAPPED" />
8
9
  <option name="externalProjectPath" value="$PROJECT_DIR$" />
9
- <option name="gradleJvm" value="11 (2)" />
10
+ <option name="modules">
11
+ <set>
12
+ <option value="$PROJECT_DIR$" />
13
+ </set>
14
+ </option>
10
15
  </GradleProjectSettings>
11
16
  </option>
12
17
  </component>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="RemoteRepositoriesConfiguration">
4
+ <remote-repository>
5
+ <option name="id" value="central" />
6
+ <option name="name" value="Maven Central repository" />
7
+ <option name="url" value="https://repo1.maven.org/maven2" />
8
+ </remote-repository>
9
+ <remote-repository>
10
+ <option name="id" value="jboss.community" />
11
+ <option name="name" value="JBoss Community repository" />
12
+ <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
13
+ </remote-repository>
14
+ <remote-repository>
15
+ <option name="id" value="React Native sources" />
16
+ <option name="name" value="React Native sources" />
17
+ <option name="url" value="file:$PROJECT_DIR$/../node_modules/react-native/android/" />
18
+ </remote-repository>
19
+ <remote-repository>
20
+ <option name="id" value="MavenRepo" />
21
+ <option name="name" value="MavenRepo" />
22
+ <option name="url" value="https://repo.maven.apache.org/maven2/" />
23
+ </remote-repository>
24
+ <remote-repository>
25
+ <option name="id" value="BintrayJCenter" />
26
+ <option name="name" value="BintrayJCenter" />
27
+ <option name="url" value="https://jcenter.bintray.com/" />
28
+ </remote-repository>
29
+ <remote-repository>
30
+ <option name="id" value="Google" />
31
+ <option name="name" value="Google" />
32
+ <option name="url" value="https://dl.google.com/dl/android/maven2/" />
33
+ </remote-repository>
34
+ </component>
35
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="KotlinJpsPluginSettings">
4
+ <option name="version" value="1.7.10" />
5
+ </component>
6
+ </project>
@@ -1,4 +1,9 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
1
  <project version="4">
3
2
  <component name="ExternalStorageConfigurationManager" enabled="true" />
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
4
+ <output url="file://$PROJECT_DIR$/build/classes" />
5
+ </component>
6
+ <component name="ProjectType">
7
+ <option name="id" value="Android" />
8
+ </component>
4
9
  </project>
@@ -4,5 +4,5 @@
4
4
  # Location of the SDK. This is only used by Gradle.
5
5
  # For customization when using a Version Control System, please read the
6
6
  # header note.
7
- #Sun Apr 02 13:55:41 IST 2023
7
+ #Mon Jul 31 14:48:47 IST 2023
8
8
  sdk.dir=/Users/delhivery/Library/Android/sdk
@@ -1,5 +1,6 @@
1
1
  package com.dispatchsdk
2
2
 
3
+ import com.dispatchsdk.sharedPref.SharedPreferenceModule
3
4
  import com.dispatchsdk.signaturePad.RSSignatureCaptureViewManager
4
5
  import com.dispatchsdk.sync.SyncModule
5
6
  import com.dispatchsdk.utils.DispatchSdkUtils
@@ -13,7 +14,8 @@ class DispatchSdkPackage : ReactPackage {
13
14
  override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
14
15
  return listOf(
15
16
  SyncModule(reactContext),
16
- DispatchSdkUtils(reactContext)
17
+ DispatchSdkUtils(reactContext),
18
+ SharedPreferenceModule(reactContext)
17
19
  )
18
20
  }
19
21
 
@@ -0,0 +1,166 @@
1
+ package com.dispatchsdk.sharedPref
2
+
3
+ import android.content.Context
4
+ import android.content.SharedPreferences
5
+ import com.dispatchsdk.utils.Tracer
6
+ import com.facebook.react.bridge.*
7
+ import javax.annotation.Nonnull
8
+ import org.json.JSONArray
9
+
10
+ class SharedPreferenceModule(private val reactContext: ReactApplicationContext) :
11
+ ReactContextBaseJavaModule(reactContext) {
12
+
13
+ companion object {
14
+ private var sharedPreference: SharedPreferences? = null
15
+ const val MODULE_NAME = "SharedPreferencesModule"
16
+ private var sharedName = "dispatch_shared_preferences"
17
+ }
18
+
19
+ fun getInstance(): SharedPreferences {
20
+ if (sharedPreference == null) {
21
+ sharedPreference = reactContext.getSharedPreferences(sharedName, Context.MODE_PRIVATE)
22
+ }
23
+ return sharedPreference!!
24
+ }
25
+
26
+ @Nonnull
27
+ override fun getName(): String {
28
+ return MODULE_NAME
29
+ }
30
+
31
+ @ReactMethod
32
+ fun setItem(key: String, value: String): Boolean {
33
+ val _sharedPreference = getInstance()
34
+ var editor = _sharedPreference.edit()
35
+ var result = editor.putString(key, value).commit()
36
+ return result
37
+ }
38
+
39
+ @ReactMethod
40
+ fun setItems(keyValue: String): Boolean {
41
+ var _keyValue = JSONArray(keyValue)
42
+ val _sharedPreference = getInstance()
43
+ var editor = _sharedPreference.edit()
44
+ for (i in 0 until _keyValue.length()) {
45
+ val item = _keyValue.getJSONObject(i)
46
+ var key = item.get("key")
47
+ var value = item.get("value")
48
+ editor.putString(key as String?, value as String?)
49
+ }
50
+ return editor.commit()
51
+ }
52
+
53
+ @ReactMethod
54
+ fun getItem(key: String, promise: Promise) {
55
+ try {
56
+ val _sharedPreference = getInstance()
57
+ var result = _sharedPreference.getString(key, null)
58
+ promise.resolve(result)
59
+ } catch (e: Throwable) {
60
+ promise.reject("getItem sharedPreferences Error: ", e)
61
+ }
62
+ }
63
+
64
+ @ReactMethod
65
+ fun getItems(keys: ReadableArray, promise: Promise) {
66
+ try {
67
+ val _sharedPreference = getInstance()
68
+
69
+ val keysArray = arrayOfNulls<String>(keys.size())
70
+ for (i in 0 until keys.size()) {
71
+ keysArray[i] = keys.getString(i)
72
+ }
73
+
74
+ val results = Array(keysArray.size) { arrayOfNulls<String>(2) }
75
+ for (i in keysArray.indices) {
76
+ results[i][0] = keysArray[i]
77
+ results[i][1] = _sharedPreference.getString(keysArray[i], null)
78
+ }
79
+
80
+ val data = WritableNativeArray()
81
+ for (i in 0 until keys.size()) {
82
+ val arr: WritableArray = WritableNativeArray()
83
+ arr.pushString(results[i][0])
84
+ arr.pushString(results[i][1])
85
+ data.pushArray(arr)
86
+ }
87
+
88
+ promise.resolve(data)
89
+ } catch (e: Throwable) {
90
+ promise.reject("getItems sharedPreferences Error: ", e)
91
+ }
92
+ }
93
+
94
+ @ReactMethod
95
+ fun getAll(promise: Promise) {
96
+ try {
97
+ val _sharedPreference = getInstance()
98
+
99
+ val keyValues: Map<String, *> = _sharedPreference.all
100
+ val keys: List<String> = ArrayList(keyValues.keys)
101
+ val results = Array(keys.size) { arrayOfNulls<String>(2) }
102
+ for (i in keys.indices) {
103
+ results[i][0] = keys[i]
104
+ results[i][1] = keyValues[keys[i]].toString()
105
+ }
106
+
107
+ val data = WritableNativeArray()
108
+ for (i in results.indices) {
109
+ val arr: WritableArray = WritableNativeArray()
110
+ arr.pushString(results[i][0])
111
+ arr.pushString(results[i][1])
112
+ data.pushArray(arr)
113
+ }
114
+
115
+ promise.resolve(data)
116
+ } catch (e: Throwable) {
117
+ promise.reject("getAll sharedPreferences Error: ", e)
118
+ }
119
+ }
120
+
121
+ @ReactMethod
122
+ fun getAllKeys(promise: Promise) {
123
+ try {
124
+ val _sharedPreference = getInstance()
125
+
126
+ val keyValues = _sharedPreference.all
127
+
128
+ val keys: List<String> = ArrayList(keyValues.keys)
129
+ val results = arrayOfNulls<String>(keys.size)
130
+ for (i in keys.indices) {
131
+ results[i] = keys[i]
132
+ }
133
+
134
+ val data = WritableNativeArray()
135
+ for (i in results.indices) {
136
+ data.pushString(results[i])
137
+ }
138
+ promise.resolve(data)
139
+ } catch (e: Throwable) {
140
+ promise.reject("getAllKeys sharedPreferences Error: ", e)
141
+ }
142
+ }
143
+
144
+ @ReactMethod
145
+ fun clear(): Boolean {
146
+ val _sharedPreference = getInstance()
147
+ return _sharedPreference.edit().clear().commit()
148
+ }
149
+
150
+ @ReactMethod
151
+ fun removeItem(key: String): Boolean {
152
+ val _sharedPreference = getInstance()
153
+ var editor = _sharedPreference.edit()
154
+ return editor.remove(key).commit()
155
+ }
156
+
157
+ @ReactMethod
158
+ fun removeItems(keys: ReadableArray): Boolean {
159
+ val _sharedPreference = getInstance()
160
+ var editor = _sharedPreference.edit()
161
+ for (i in 0 until keys.size()) {
162
+ editor.remove(keys.getString(i))
163
+ }
164
+ return editor.commit()
165
+ }
166
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.d.ts"],"sourcesContent":["declare module '*.svg' {\n import React from 'react';\n import {SvgProps} from 'react-native-svg';\n const content: React.FC<SvgProps>;\n export default content;\n}\n"],"mappings":""}
@@ -237,16 +237,16 @@ const DispatchExecNavigator = _ref => {
237
237
  };
238
238
  function getMode(route) {
239
239
  try {
240
- var _route$params$RoutePa, _route$params$RoutePa2, _route$params$RoutePa3, _route$params$RoutePa4;
241
- return route === null || route === void 0 ? void 0 : (_route$params$RoutePa = route.params[_RouteParams.RouteParams.NEXT_STATES][0]) === null || _route$params$RoutePa === void 0 ? void 0 : (_route$params$RoutePa2 = _route$params$RoutePa.nextState) === null || _route$params$RoutePa2 === void 0 ? void 0 : (_route$params$RoutePa3 = _route$params$RoutePa2.data) === null || _route$params$RoutePa3 === void 0 ? void 0 : (_route$params$RoutePa4 = _route$params$RoutePa3.input) === null || _route$params$RoutePa4 === void 0 ? void 0 : _route$params$RoutePa4.paymentMode;
240
+ var _route$params$RoutePa;
241
+ return route === null || route === void 0 || (_route$params$RoutePa = route.params[_RouteParams.RouteParams.NEXT_STATES].input) === null || _route$params$RoutePa === void 0 ? void 0 : _route$params$RoutePa.paymentMode;
242
242
  } catch (error) {
243
243
  return '';
244
244
  }
245
245
  }
246
246
  function getTaskTitle(route) {
247
247
  try {
248
- var _route$params$RoutePa5, _route$params$RoutePa6, _route$params$RoutePa7, _route$params$RoutePa8;
249
- return route === null || route === void 0 ? void 0 : (_route$params$RoutePa5 = route.params[_RouteParams.RouteParams.NEXT_STATES][0]) === null || _route$params$RoutePa5 === void 0 ? void 0 : (_route$params$RoutePa6 = _route$params$RoutePa5.nextState) === null || _route$params$RoutePa6 === void 0 ? void 0 : (_route$params$RoutePa7 = _route$params$RoutePa6.data) === null || _route$params$RoutePa7 === void 0 ? void 0 : (_route$params$RoutePa8 = _route$params$RoutePa7.input) === null || _route$params$RoutePa8 === void 0 ? void 0 : _route$params$RoutePa8.title;
248
+ var _route$params$RoutePa2;
249
+ return route === null || route === void 0 || (_route$params$RoutePa2 = route.params[_RouteParams.RouteParams.NEXT_STATES].input) === null || _route$params$RoutePa2 === void 0 ? void 0 : _route$params$RoutePa2.title;
250
250
  } catch (error) {
251
251
  return '';
252
252
  }