@os1-platform/dispatch-mobile 2.1.2 → 2.1.3

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/dispatch-mobile.podspec +35 -0
  2. package/ios/DispatchSdk-Bridging-Header.h +3 -0
  3. package/ios/DispatchSdk.m +9 -0
  4. package/ios/DispatchSdk.swift +8 -0
  5. package/ios/DispatchSdk.xcodeproj/project.pbxproj +317 -0
  6. package/ios/EventEmitter.swift +21 -0
  7. package/ios/EventsConstant.swift +13 -0
  8. package/ios/RNEventEmitter.m +15 -0
  9. package/ios/RNEventEmitter.swift +24 -0
  10. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +3 -4
  11. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  12. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +13 -8
  13. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  14. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +3 -4
  15. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  16. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +3 -4
  17. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  18. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  19. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +112 -27
  20. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  21. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +7 -8
  22. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  23. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +113 -48
  24. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  25. package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
  26. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +3 -4
  27. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  28. package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +7 -8
  30. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +6 -7
  32. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  33. package/lib/commonjs/components/executiontasks/forms/FormSchema.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +4 -5
  35. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  36. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +3 -4
  37. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +3 -4
  39. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  40. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +3 -4
  41. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  42. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -4
  43. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  44. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +138 -25
  46. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +228 -132
  48. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/imageCapture/camera.svg +3 -0
  50. package/lib/commonjs/components/executiontasks/imageCapture/circle-xmark.svg +5 -0
  51. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +6 -7
  52. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +6 -7
  54. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +4 -5
  57. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  58. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
  59. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +4 -5
  60. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
  62. package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +3 -4
  64. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +89 -17
  66. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  67. package/lib/commonjs/components/executiontasks/scan/ScanET.js +14 -15
  68. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  69. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +1 -2
  70. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
  71. package/lib/commonjs/components/executiontasks/scan/constants.js +6 -12
  72. package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/scan/interfaces.js +4 -8
  74. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  75. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +4 -5
  76. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  77. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +5 -6
  78. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +8 -9
  80. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/scan/utils.js +2 -2
  82. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  83. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +8 -9
  84. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +1 -2
  86. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/validateOTP/constants.js +6 -12
  88. package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +5 -6
  90. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  91. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +2 -2
  92. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +2 -2
  94. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +3 -4
  96. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  97. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -4
  98. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  99. package/lib/commonjs/components/widgets/AlertDisplay.js +14 -9
  100. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  101. package/lib/commonjs/components/widgets/CancelOrderDialog.js +5 -6
  102. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  103. package/lib/commonjs/components/widgets/Card.js +2 -3
  104. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  105. package/lib/commonjs/components/widgets/GoBackModal.js +1 -2
  106. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
  107. package/lib/commonjs/components/widgets/IconButton.js +1 -2
  108. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  109. package/lib/commonjs/components/widgets/ModalWidget.js +3 -4
  110. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
  111. package/lib/commonjs/components/widgets/ProgressDialog.js +2 -3
  112. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  113. package/lib/commonjs/components/widgets/SearchBar.js +1 -2
  114. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  115. package/lib/commonjs/components/widgets/SnackBarCustom.js +3 -5
  116. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  117. package/lib/commonjs/components/widgets/SplitTextInput.js +3 -4
  118. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  119. package/lib/commonjs/components/widgets/TabsComponent.js +3 -4
  120. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  121. package/lib/commonjs/config/DispatchSDKConfig.js +1 -2
  122. package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
  123. package/lib/commonjs/constants/apiConstants.js +2 -4
  124. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  125. package/lib/commonjs/constants/constants.js +11 -22
  126. package/lib/commonjs/constants/constants.js.map +1 -1
  127. package/lib/commonjs/constants/statuscode.js +1 -2
  128. package/lib/commonjs/constants/statuscode.js.map +1 -1
  129. package/lib/commonjs/errors/ErrorCodes.js +7 -14
  130. package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
  131. package/lib/commonjs/events/EventDispatcher.js +5 -3
  132. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  133. package/lib/commonjs/events/EventListener.js +1 -2
  134. package/lib/commonjs/events/EventListener.js.map +1 -1
  135. package/lib/commonjs/events/constants.js +1 -2
  136. package/lib/commonjs/events/constants.js.map +1 -1
  137. package/lib/commonjs/events/index.js +1 -2
  138. package/lib/commonjs/events/index.js.map +1 -1
  139. package/lib/commonjs/icons/ScanIcon.js +1 -2
  140. package/lib/commonjs/icons/ScanIcon.js.map +1 -1
  141. package/lib/commonjs/icons/circleMark.svg +3 -0
  142. package/lib/commonjs/icons/file.js +1 -2
  143. package/lib/commonjs/icons/file.js.map +1 -1
  144. package/lib/commonjs/index.js +15 -2
  145. package/lib/commonjs/index.js.map +1 -1
  146. package/lib/commonjs/locale/Str.js +21 -0
  147. package/lib/commonjs/locale/Str.js.map +1 -0
  148. package/lib/commonjs/locale/en.json +7 -0
  149. package/lib/commonjs/locale/i18n.js +32 -0
  150. package/lib/commonjs/locale/i18n.js.map +1 -0
  151. package/lib/commonjs/locale/util.js +27 -0
  152. package/lib/commonjs/locale/util.js.map +1 -0
  153. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +5 -3
  154. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  155. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +2 -0
  156. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  157. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +4 -2
  158. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  159. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +4 -2
  160. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  161. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +4 -2
  162. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  163. package/lib/commonjs/manager/location/LocationManager.js +7 -4
  164. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  165. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +4 -2
  166. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  167. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -0
  168. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  169. package/lib/commonjs/manager/sdk/callbacksHandler.js +1 -2
  170. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
  171. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +4 -2
  172. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  173. package/lib/commonjs/manager/syncmanager/DBConfig.js +15 -26
  174. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  175. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +1 -2
  176. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
  177. package/lib/commonjs/manager/syncmanager/constants.js +5 -10
  178. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -1
  179. package/lib/commonjs/manager/syncmanager/database.js +2 -2
  180. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  181. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +5 -4
  182. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  183. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +4 -2
  184. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  185. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +4 -2
  186. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  187. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +15 -3
  188. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  189. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +4 -2
  190. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  191. package/lib/commonjs/models/DispatchModels.js +1 -2
  192. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  193. package/lib/commonjs/models/execTasks/ETConfig.js +6 -12
  194. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  195. package/lib/commonjs/models/fcm.js.map +1 -1
  196. package/lib/commonjs/models/sdk.js +1 -2
  197. package/lib/commonjs/models/sdk.js.map +1 -1
  198. package/lib/commonjs/native/signature/SignatureCapture.js +1 -2
  199. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  200. package/lib/commonjs/network/GraphQLClient.js +48 -4
  201. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  202. package/lib/commonjs/network/Queries.js +5 -10
  203. package/lib/commonjs/network/Queries.js.map +1 -1
  204. package/lib/commonjs/res/strings.js +1 -2
  205. package/lib/commonjs/res/strings.js.map +1 -1
  206. package/lib/commonjs/resources/Login.js +1 -2
  207. package/lib/commonjs/resources/Login.js.map +1 -1
  208. package/lib/commonjs/resources/network.js +1 -2
  209. package/lib/commonjs/resources/network.js.map +1 -1
  210. package/lib/commonjs/styles/SdkColors.js +2 -4
  211. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  212. package/lib/commonjs/styles/executionTasks/CommonStyles.js +8 -11
  213. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  214. package/lib/commonjs/ui/screens/CancellationScreen.js +3 -4
  215. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  216. package/lib/commonjs/ui/screens/CaptureInputScreen.js +5 -5
  217. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  218. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +3 -4
  219. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  220. package/lib/commonjs/ui/screens/DeliverScreen.js +36 -10
  221. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  222. package/lib/commonjs/ui/screens/DisplayScreen.js +3 -4
  223. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  224. package/lib/commonjs/ui/screens/DoodleScreen.js +27 -6
  225. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  226. package/lib/commonjs/ui/screens/DropCashScreen.js +29 -10
  227. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  228. package/lib/commonjs/ui/screens/FormsScreen.js +25 -5
  229. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  230. package/lib/commonjs/ui/screens/GeofenceScreen.js +3 -4
  231. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  232. package/lib/commonjs/ui/screens/HttpRequestScreen.js +1 -2
  233. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  234. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +27 -9
  235. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  236. package/lib/commonjs/ui/screens/PaymentScreen.js +31 -10
  237. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  238. package/lib/commonjs/ui/screens/PickupScreen.js +38 -10
  239. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  240. package/lib/commonjs/ui/screens/ScanScreen.js +3 -4
  241. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  242. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +8 -7
  243. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  244. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +3 -4
  245. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  246. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +4 -4
  247. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  248. package/lib/commonjs/ui/uiConfig/RouteParams.js +1 -2
  249. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  250. package/lib/commonjs/utils/ApiUtils.js +2 -4
  251. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  252. package/lib/commonjs/utils/Logger.js +10 -9
  253. package/lib/commonjs/utils/Logger.js.map +1 -1
  254. package/lib/commonjs/utils/NetworkUtil.js +1 -2
  255. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  256. package/lib/commonjs/utils/SdkUtils.js +12 -8
  257. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  258. package/lib/commonjs/utils/SyncManagerUtils.js +2 -2
  259. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  260. package/lib/commonjs/utils/fcm/FCM.js +3 -4
  261. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  262. package/lib/commonjs/utils/fcm/FcmUtils.js +14 -2
  263. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  264. package/lib/commonjs/utils/helper.js +46 -4
  265. package/lib/commonjs/utils/helper.js.map +1 -1
  266. package/lib/commonjs/utils/hooks/useModal.js +3 -4
  267. package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
  268. package/lib/commonjs/utils/hooks/useTimer.js +1 -2
  269. package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
  270. package/lib/commonjs/utils/loginHelper.js +1 -2
  271. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  272. package/lib/commonjs/utils/storage.js +71 -13
  273. package/lib/commonjs/utils/storage.js.map +1 -1
  274. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  275. package/lib/module/components/executiontasks/cancellation/CancelET.js +11 -5
  276. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  277. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  278. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +112 -25
  279. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  280. package/lib/module/components/executiontasks/display/DisplayModalET.js +5 -5
  281. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  282. package/lib/module/components/executiontasks/doodle/SignatureET.js +111 -45
  283. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  284. package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
  285. package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
  286. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +5 -5
  287. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  288. package/lib/module/components/executiontasks/forms/FormGenerator.js +4 -4
  289. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  290. package/lib/module/components/executiontasks/forms/FormSchema.js.map +1 -1
  291. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -1
  292. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  293. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  294. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +133 -21
  295. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  296. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +226 -130
  297. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  298. package/lib/module/components/executiontasks/imageCapture/camera.svg +3 -0
  299. package/lib/module/components/executiontasks/imageCapture/circle-xmark.svg +5 -0
  300. package/lib/module/components/executiontasks/payments/PaymentStyles.js +6 -6
  301. package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  302. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +4 -4
  303. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  304. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
  305. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +1 -1
  306. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  307. package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
  308. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +1 -1
  309. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  310. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
  311. package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  312. package/lib/module/components/executiontasks/pickup/SLPickupET.js +89 -16
  313. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  314. package/lib/module/components/executiontasks/scan/ScanET.js +12 -12
  315. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  316. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +2 -2
  317. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  318. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +3 -3
  319. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  320. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +6 -6
  321. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  322. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  323. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +6 -6
  324. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  325. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +3 -3
  326. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  327. package/lib/module/components/widgets/AlertDisplay.js +12 -7
  328. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  329. package/lib/module/components/widgets/CancelOrderDialog.js +3 -3
  330. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  331. package/lib/module/components/widgets/Card.js +1 -1
  332. package/lib/module/components/widgets/Card.js.map +1 -1
  333. package/lib/module/components/widgets/ModalWidget.js +3 -3
  334. package/lib/module/components/widgets/ModalWidget.js.map +1 -1
  335. package/lib/module/components/widgets/ProgressDialog.js +2 -2
  336. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  337. package/lib/module/components/widgets/SnackBarCustom.js +2 -2
  338. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  339. package/lib/module/constants/constants.js +1 -1
  340. package/lib/module/constants/constants.js.map +1 -1
  341. package/lib/module/events/EventDispatcher.js +5 -2
  342. package/lib/module/events/EventDispatcher.js.map +1 -1
  343. package/lib/module/icons/circleMark.svg +3 -0
  344. package/lib/module/index.js +4 -2
  345. package/lib/module/index.js.map +1 -1
  346. package/lib/module/locale/Str.js +15 -0
  347. package/lib/module/locale/Str.js.map +1 -0
  348. package/lib/module/locale/en.json +7 -0
  349. package/lib/module/locale/i18n.js +25 -0
  350. package/lib/module/locale/i18n.js.map +1 -0
  351. package/lib/module/locale/util.js +18 -0
  352. package/lib/module/locale/util.js.map +1 -0
  353. package/lib/module/manager/dispatch/DispatchStateContainer.js +3 -1
  354. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  355. package/lib/module/manager/dispatchCodes/EventCodeContainer.js +2 -0
  356. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  357. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +2 -0
  358. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  359. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +2 -0
  360. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  361. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +2 -0
  362. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  363. package/lib/module/manager/location/LocationManager.js +2 -0
  364. package/lib/module/manager/location/LocationManager.js.map +1 -1
  365. package/lib/module/manager/sdk/DispatchSDKManager.js +2 -0
  366. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  367. package/lib/module/manager/sdk/DispatchSdkCache.js +2 -0
  368. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  369. package/lib/module/manager/syncmanager/AppSyncManager.js +2 -0
  370. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  371. package/lib/module/manager/syncmanager/DBConfig.js +1 -0
  372. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  373. package/lib/module/manager/syncmanager/document/DocumentManager.js +2 -0
  374. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  375. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +2 -0
  376. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  377. package/lib/module/manager/syncmanager/events/ETEventsManager.js +13 -1
  378. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  379. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +2 -0
  380. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  381. package/lib/module/models/fcm.js.map +1 -1
  382. package/lib/module/network/GraphQLClient.js +48 -3
  383. package/lib/module/network/GraphQLClient.js.map +1 -1
  384. package/lib/module/styles/executionTasks/CommonStyles.js +2 -1
  385. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  386. package/lib/module/ui/screens/CaptureInputScreen.js +2 -1
  387. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  388. package/lib/module/ui/screens/DeliverScreen.js +33 -6
  389. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  390. package/lib/module/ui/screens/DoodleScreen.js +24 -2
  391. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  392. package/lib/module/ui/screens/DropCashScreen.js +26 -6
  393. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  394. package/lib/module/ui/screens/FormsScreen.js +22 -1
  395. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  396. package/lib/module/ui/screens/ImageCaptureScreen.js +24 -5
  397. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  398. package/lib/module/ui/screens/PaymentScreen.js +28 -6
  399. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  400. package/lib/module/ui/screens/PickupScreen.js +35 -6
  401. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  402. package/lib/module/ui/screens/StartWorkFlowScreen.js +6 -4
  403. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  404. package/lib/module/ui/screens/WithBaseDispatchScreen.js +1 -0
  405. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  406. package/lib/module/utils/Logger.js +2 -0
  407. package/lib/module/utils/Logger.js.map +1 -1
  408. package/lib/module/utils/SdkUtils.js +11 -7
  409. package/lib/module/utils/SdkUtils.js.map +1 -1
  410. package/lib/module/utils/fcm/FcmUtils.js +11 -0
  411. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  412. package/lib/module/utils/helper.js +46 -4
  413. package/lib/module/utils/helper.js.map +1 -1
  414. package/lib/module/utils/storage.js +69 -10
  415. package/lib/module/utils/storage.js.map +1 -1
  416. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +5 -0
  417. package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +1 -0
  418. package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +1 -0
  419. package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +1 -0
  420. package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +1 -0
  421. package/lib/typescript/components/executiontasks/imageCapture/CaptureUtils.d.ts +6 -1
  422. package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +1 -2
  423. package/lib/typescript/components/executiontasks/payments/PaymentStyles.d.ts +4 -5
  424. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +1 -0
  425. package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +1 -0
  426. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +1 -0
  427. package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +2 -0
  428. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +1 -1
  429. package/lib/typescript/constants/constants.d.ts +1 -1
  430. package/lib/typescript/index.d.ts +4 -2
  431. package/lib/typescript/locale/Str.d.ts +13 -0
  432. package/lib/typescript/locale/i18n.d.ts +3 -0
  433. package/lib/typescript/locale/util.d.ts +2 -0
  434. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +2 -1
  435. package/lib/typescript/models/fcm.d.ts +3 -0
  436. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +1 -0
  437. package/lib/typescript/utils/fcm/FcmUtils.d.ts +2 -1
  438. package/lib/typescript/utils/helper.d.ts +4 -3
  439. package/lib/typescript/utils/storage.d.ts +3 -2
  440. package/package.json +22 -7
  441. package/src/@types/assets/index.d.ts +6 -0
  442. package/src/components/dispatch/DispatchExecNavigator.tsx +273 -0
  443. package/src/components/executiontasks/CompletedWFSchema.ts +24 -0
  444. package/src/components/executiontasks/ExecutionTasksIndex.ts +137 -0
  445. package/src/components/executiontasks/cancellation/CancelET.tsx +281 -0
  446. package/src/components/executiontasks/cancellation/CancellationSchema.ts +30 -0
  447. package/src/components/executiontasks/captureInput/CaptureInputSchema.ts +52 -0
  448. package/src/components/executiontasks/captureInput/CaptureText.tsx +172 -0
  449. package/src/components/executiontasks/captureInput/utils.ts +9 -0
  450. package/src/components/executiontasks/deliver/DeliverET.tsx +124 -0
  451. package/src/components/executiontasks/deliver/DeliverETInput.ts +52 -0
  452. package/src/components/executiontasks/deliver/SLDeliverET.tsx +522 -0
  453. package/src/components/executiontasks/display/DisplayModalET.tsx +174 -0
  454. package/src/components/executiontasks/display/DisplaySchema.ts +29 -0
  455. package/src/components/executiontasks/doodle/SignatureET.tsx +325 -0
  456. package/src/components/executiontasks/doodle/SignatureSchema.ts +52 -0
  457. package/src/components/executiontasks/dropCash/DropCashET.tsx +145 -0
  458. package/src/components/executiontasks/dropCash/DropCashSchema.ts +23 -0
  459. package/src/components/executiontasks/dropCash/SLDropCash.tsx +286 -0
  460. package/src/components/executiontasks/forms/FormGenerator.tsx +283 -0
  461. package/src/components/executiontasks/forms/FormSchema.ts +30 -0
  462. package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +144 -0
  463. package/src/components/executiontasks/forms/widgets/DropdownWidget.tsx +52 -0
  464. package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +158 -0
  465. package/src/components/executiontasks/forms/widgets/TimeRangeSelector.tsx +38 -0
  466. package/src/components/executiontasks/httpRequest/HttpEtUtils.ts +49 -0
  467. package/src/components/executiontasks/httpRequest/HttpRequestET.tsx +59 -0
  468. package/src/components/executiontasks/httpRequest/HttpRequestETSchema.ts +42 -0
  469. package/src/components/executiontasks/imageCapture/CaptureSchema.ts +94 -0
  470. package/src/components/executiontasks/imageCapture/CaptureUtils.ts +321 -0
  471. package/src/components/executiontasks/imageCapture/ImageCapture.tsx +457 -0
  472. package/src/components/executiontasks/imageCapture/camera.svg +3 -0
  473. package/src/components/executiontasks/imageCapture/circle-xmark.svg +5 -0
  474. package/src/components/executiontasks/payments/PaymentStyles.ts +93 -0
  475. package/src/components/executiontasks/payments/PaymentUtils.ts +7 -0
  476. package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +238 -0
  477. package/src/components/executiontasks/payments/completePayment/CompletePaymentSchema.ts +24 -0
  478. package/src/components/executiontasks/payments/init/InitPaymentET.tsx +246 -0
  479. package/src/components/executiontasks/payments/init/InitPaymentSchema.ts +38 -0
  480. package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +273 -0
  481. package/src/components/executiontasks/payments/processPayment/ProcessPaymentSchema.ts +39 -0
  482. package/src/components/executiontasks/pickup/PickpSchema.ts +30 -0
  483. package/src/components/executiontasks/pickup/PickupET.tsx +126 -0
  484. package/src/components/executiontasks/pickup/SLPickupET.tsx +372 -0
  485. package/src/components/executiontasks/scan/ScanET.tsx +1059 -0
  486. package/src/components/executiontasks/scan/ScanSchema.ts +121 -0
  487. package/src/components/executiontasks/scan/constants.ts +6 -0
  488. package/src/components/executiontasks/scan/interfaces.ts +109 -0
  489. package/src/components/executiontasks/scan/modalConstant.ts +120 -0
  490. package/src/components/executiontasks/scan/sub_components/CScanner.tsx +107 -0
  491. package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +119 -0
  492. package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +134 -0
  493. package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +1296 -0
  494. package/src/components/executiontasks/scan/utils.ts +1108 -0
  495. package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +436 -0
  496. package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +68 -0
  497. package/src/components/executiontasks/validateOTP/constants.ts +24 -0
  498. package/src/components/executiontasks/validateOTP/sub-components/OTPInput.tsx +83 -0
  499. package/src/components/executiontasks/validateOTP/utils.ts +180 -0
  500. package/src/components/executiontasks/verifyInput/VerifyInputSchema.ts +49 -0
  501. package/src/components/executiontasks/verifyLocation/GeofenceUtils.ts +55 -0
  502. package/src/components/executiontasks/verifyLocation/VerifyLocSchema.ts +56 -0
  503. package/src/components/executiontasks/verifyLocation/VerifyLocationET.tsx +69 -0
  504. package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +96 -0
  505. package/src/components/executiontasks/verifyOtp/VerifyOtpSchema.ts +27 -0
  506. package/src/components/utils/index.ts +18 -0
  507. package/src/components/widgets/AlertDisplay.tsx +38 -0
  508. package/src/components/widgets/CancelOrderDialog.tsx +112 -0
  509. package/src/components/widgets/Card.tsx +99 -0
  510. package/src/components/widgets/GoBackModal.tsx +49 -0
  511. package/src/components/widgets/IconButton.tsx +32 -0
  512. package/src/components/widgets/ModalWidget.tsx +157 -0
  513. package/src/components/widgets/ProgressDialog.tsx +54 -0
  514. package/src/components/widgets/SearchBar.tsx +71 -0
  515. package/src/components/widgets/SnackBarCustom.tsx +212 -0
  516. package/src/components/widgets/SplitTextInput.tsx +116 -0
  517. package/src/components/widgets/TabsComponent.tsx +84 -0
  518. package/src/components/widgets/Toaster.ts +8 -0
  519. package/src/config/DispatchSDKConfig.ts +4 -0
  520. package/src/constants/apiConstants.ts +11 -0
  521. package/src/constants/constants.ts +12 -0
  522. package/src/constants/statuscode.ts +8 -0
  523. package/src/errors/BaseError.ts +16 -0
  524. package/src/errors/ErrorCodes.ts +38 -0
  525. package/src/events/EventDispatcher.ts +22 -0
  526. package/src/events/EventListener.ts +14 -0
  527. package/src/events/constants.ts +7 -0
  528. package/src/events/index.ts +3 -0
  529. package/src/events/interface.ts +1 -0
  530. package/src/icons/ScanIcon.tsx +24 -0
  531. package/src/icons/circleMark.svg +3 -0
  532. package/src/icons/file.tsx +24 -0
  533. package/src/icons/interface.ts +5 -0
  534. package/src/index.tsx +82 -0
  535. package/src/locale/Str.ts +15 -0
  536. package/src/locale/en.json +7 -0
  537. package/src/locale/i18n.ts +26 -0
  538. package/src/locale/util.ts +20 -0
  539. package/src/manager/dispatch/DispatchStateContainer.tsx +842 -0
  540. package/src/manager/dispatchCodes/EventCodeContainer.ts +75 -0
  541. package/src/manager/dispatchCodes/EventCodeRepo.ts +82 -0
  542. package/src/manager/dispatchCodes/ReasonCodeContainer.ts +121 -0
  543. package/src/manager/dispatchCodes/ReasonCodeRepo.ts +90 -0
  544. package/src/manager/dispatchCodes/reasonCodes.json +137 -0
  545. package/src/manager/jobRemoval/JobRemovalManager.ts +21 -0
  546. package/src/manager/location/LocationManager.ts +77 -0
  547. package/src/manager/sdk/DispatchSDKManager.ts +99 -0
  548. package/src/manager/sdk/DispatchSdkCache.ts +47 -0
  549. package/src/manager/sdk/callbacksHandler.ts +25 -0
  550. package/src/manager/syncmanager/AppSyncManager.ts +187 -0
  551. package/src/manager/syncmanager/DBConfig.ts +181 -0
  552. package/src/manager/syncmanager/NativeSyncManager.ts +14 -0
  553. package/src/manager/syncmanager/constants.ts +5 -0
  554. package/src/manager/syncmanager/database.ts +93 -0
  555. package/src/manager/syncmanager/document/DocumentHttpClient.ts +111 -0
  556. package/src/manager/syncmanager/document/DocumentManager.ts +143 -0
  557. package/src/manager/syncmanager/document/DocumentSyncManager.ts +233 -0
  558. package/src/manager/syncmanager/document/models.ts +4 -0
  559. package/src/manager/syncmanager/events/ETEventsManager.ts +647 -0
  560. package/src/manager/syncmanager/events/EventsGraphQLClient.ts +0 -0
  561. package/src/manager/syncmanager/events/EventsSyncManager.ts +490 -0
  562. package/src/manager/syncmanager/events/SyncHttpClient.ts +202 -0
  563. package/src/models/DispatchModels.ts +97 -0
  564. package/src/models/ReasonCodes.ts +12 -0
  565. package/src/models/auth.ts +43 -0
  566. package/src/models/execTasks/ETBaseModels.ts +113 -0
  567. package/src/models/execTasks/ETConfig.ts +94 -0
  568. package/src/models/execution.ts +9 -0
  569. package/src/models/fcm.ts +6 -0
  570. package/src/models/sdk.ts +35 -0
  571. package/src/native/signature/SignatureCapture.tsx +110 -0
  572. package/src/network/GraphQLClient.ts +147 -0
  573. package/src/network/NetworkClient.ts +58 -0
  574. package/src/network/NetworkUtils.ts +41 -0
  575. package/src/network/Queries.ts +46 -0
  576. package/src/network/client.ts +61 -0
  577. package/src/res/strings.ts +1 -0
  578. package/src/resources/Login.ts +36 -0
  579. package/src/resources/network.ts +13 -0
  580. package/src/styles/SdkColors.ts +24 -0
  581. package/src/styles/executionTasks/CommonStyles.ts +189 -0
  582. package/src/ui/screens/CancellationScreen.tsx +144 -0
  583. package/src/ui/screens/CaptureInputScreen.tsx +79 -0
  584. package/src/ui/screens/CompleteObjectiveScreen.tsx +72 -0
  585. package/src/ui/screens/DeliverScreen.tsx +136 -0
  586. package/src/ui/screens/DisplayScreen.tsx +52 -0
  587. package/src/ui/screens/DoodleScreen.tsx +107 -0
  588. package/src/ui/screens/DropCashScreen.tsx +132 -0
  589. package/src/ui/screens/ETScreensIndex.ts +35 -0
  590. package/src/ui/screens/FormsScreen.tsx +186 -0
  591. package/src/ui/screens/GeofenceScreen.tsx +54 -0
  592. package/src/ui/screens/HttpRequestScreen.tsx +47 -0
  593. package/src/ui/screens/ImageCaptureScreen.tsx +95 -0
  594. package/src/ui/screens/PaymentScreen.tsx +213 -0
  595. package/src/ui/screens/PickupScreen.tsx +112 -0
  596. package/src/ui/screens/ScanScreen.tsx +159 -0
  597. package/src/ui/screens/StartWorkFlowScreen.tsx +233 -0
  598. package/src/ui/screens/ValidateOTPScreen.tsx +62 -0
  599. package/src/ui/screens/WithBaseDispatchScreen.tsx +33 -0
  600. package/src/ui/uiConfig/RouteParams.ts +28 -0
  601. package/src/utils/ApiUtils.ts +157 -0
  602. package/src/utils/ExecTaskUtils.ts +214 -0
  603. package/src/utils/Logger.ts +110 -0
  604. package/src/utils/NetworkUtil.ts +50 -0
  605. package/src/utils/SdkUtils.ts +155 -0
  606. package/src/utils/SyncManagerUtils.ts +223 -0
  607. package/src/utils/fcm/FCM.ts +118 -0
  608. package/src/utils/fcm/FcmUtils.ts +130 -0
  609. package/src/utils/helper.ts +67 -0
  610. package/src/utils/hooks/useModal.tsx +67 -0
  611. package/src/utils/hooks/useTimer.ts +44 -0
  612. package/src/utils/loginHelper.ts +51 -0
  613. package/src/utils/storage.ts +292 -0
  614. package/src/utils/test.json +17 -0
  615. package/src/utils/utils.ts +30 -0
  616. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  617. package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  618. package/android/gradlew +0 -185
  619. package/android/gradlew.bat +0 -89
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","FileSystem","_interopRequireWildcard","ImagePicker","_Toaster","ImageManipulator","_Logger","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_BaseError","_ErrorCodes","_interopRequireDefault","_DispatchSdkCache","_SyncManagerUtils","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","deleteImage","imageData","images","deleteAsync","path","filtered","filter","img","id","getMaxImagesCount","props","captureCountLimit","getImagesFileName","Date","now","toString","getCompressionRatio","uri","maxSize","fileInfo","getInfoAsync","size","Math","min","exists","fileSize","error","Logger","getInstance","logEvent","message","LOG_TYPE","SDK_ERROR","checkCameraPermissionUtil","response","getCameraPermissionsAsync","granted","resp","requestCameraPermissionsAsync","status","PermissionStatus","GRANTED","captureImage","imageWidth","imageHeight","Alert","alert","launchCameraAsync","quality","cancelled","actionResize","resize","width","height","compressionRatio","resizedImage","manipulateAsync","compress","then","SDK_DEBUG","catch","showToast","exception","console","getCaptureOutput","imageDataList","captureProps","_captureProps$applica","length","getBaseETResponse","EntityCode","IMAGE_CAPTURE","getEventCodeByET","ExecutionTaskID","applicableReasons","failure","mergedObjectiveId","_captureProps$applica2","success","captures","getImagesData","imagesDataList","output","folderName","DispatchSdkCache","getKeyFromCache","KEYS","FMS_FOLDER","data","insertID","insertDocumentInDB","title","push","url","timestamp","file","folder","name","BaseError","BaseErrorCodes","SQLiteDBIssue"],"sources":["CaptureUtils.ts"],"sourcesContent":["import type {\n CapturedImage,\n CaptureInput,\n CaptureOutput,\n ImageData,\n} from './CaptureSchema';\nimport { Alert } from 'react-native';\nimport * as FileSystem from 'expo-file-system';\nimport * as ImagePicker from 'expo-image-picker';\nimport { PermissionStatus } from 'expo-image-picker';\nimport { showToast } from '../../widgets/Toaster';\nimport type { ActionResize, ImageResult } from 'expo-image-manipulator';\nimport * as ImageManipulator from 'expo-image-manipulator';\nimport Logger, { LOG_TYPE } from '../../../utils/Logger';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { BaseError } from '../../../errors/BaseError';\nimport BaseErrorCodes from '../../../errors/ErrorCodes';\nimport DispatchSdkCache from '../../../manager/sdk/DispatchSdkCache';\nimport { insertDocumentInDB } from '../../../utils/SyncManagerUtils';\n\nexport async function deleteImage(\n imageData: ImageData,\n images: ImageData[]\n): Promise<ImageData[]> {\n await FileSystem.deleteAsync(imageData.path);\n let filtered = images.filter((img) => {\n return img.id !== imageData.id;\n });\n return filtered;\n}\n\nexport function getMaxImagesCount(props: CaptureInput) {\n if (props && props.captureCountLimit) return props.captureCountLimit;\n else return 1;\n}\n\nexport function getImagesFileName() {\n return `IMG_${Date.now().toString()}.jpg`;\n}\n\nexport async function getCompressionRatio(\n uri: string,\n maxSize: number\n): Promise<number> {\n try {\n let fileInfo = await FileSystem.getInfoAsync(uri, {\n size: true,\n });\n maxSize = Math.min(maxSize, 1024);\n if (fileInfo.exists) {\n let fileSize = fileInfo.size / 1024;\n if (fileSize > maxSize) {\n return maxSize / fileSize;\n } else return 1;\n }\n return 1;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'getCompressionRatio',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n return 1;\n }\n}\n\nexport async function checkCameraPermissionUtil(): Promise<boolean> {\n let response = await ImagePicker.getCameraPermissionsAsync();\n if (response.granted) return true;\n else {\n let resp = await ImagePicker.requestCameraPermissionsAsync();\n return resp.status === PermissionStatus.GRANTED;\n }\n}\n\nexport async function captureImage(\n imageWidth: number,\n imageHeight: number,\n fileSize: number\n): Promise<ImageResult | null> {\n try {\n if (!(await checkCameraPermissionUtil())) {\n Alert.alert('Permissions Error', 'Camera permissions not provided!');\n return null;\n }\n let response = await ImagePicker.launchCameraAsync({\n quality: 1,\n });\n if (!response.cancelled) {\n let actionResize: ActionResize = {\n resize: {\n width: imageWidth,\n height: imageHeight,\n },\n };\n let compressionRatio = await getCompressionRatio(response.uri, fileSize);\n let resizedImage = await ImageManipulator.manipulateAsync(\n response.uri,\n [actionResize],\n {\n compress: compressionRatio,\n }\n );\n FileSystem.deleteAsync(response.uri)\n .then(() =>\n Logger.getInstance().logEvent(\n 'CAPTURE_ET',\n 'File deleted success',\n LOG_TYPE.SDK_DEBUG\n )\n )\n .catch((error) => {\n Logger.getInstance().logEvent(\n 'CAPTURE_ET',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n });\n return resizedImage;\n } else {\n showToast('User cancelled the action');\n return null;\n }\n } catch (exception: any) {\n showToast(`Error ${exception.message}`);\n console.error('capture image error: ', exception);\n\n return null;\n }\n}\n\nexport async function getCaptureOutput(\n imageDataList: ImageData[],\n captureProps: CaptureInput\n): Promise<CaptureOutput> {\n if (!imageDataList || imageDataList.length === 0)\n return {\n ...(await getBaseETResponse(\n EntityCode.IMAGE_CAPTURE,\n false,\n getEventCodeByET(\n ExecutionTaskID.IMAGE_CAPTURE,\n false,\n captureProps.applicableReasons?.failure\n ),\n '',\n captureProps.mergedObjectiveId,\n ExecutionTaskID.IMAGE_CAPTURE\n )),\n };\n else {\n return {\n ...(await getBaseETResponse(\n EntityCode.IMAGE_CAPTURE,\n true,\n getEventCodeByET(\n ExecutionTaskID.IMAGE_CAPTURE,\n true,\n captureProps.applicableReasons?.success\n ),\n '',\n captureProps.mergedObjectiveId,\n ExecutionTaskID.IMAGE_CAPTURE\n )),\n captures: await getImagesData(imageDataList, captureProps),\n };\n }\n}\n\nasync function getImagesData(\n imagesDataList: ImageData[],\n captureProps: CaptureInput\n): Promise<CapturedImage[]> {\n if (imagesDataList && imagesDataList.length > 0) {\n let output: CapturedImage[] = [];\n const folderName =\n (await DispatchSdkCache.getInstance().getKeyFromCache(\n DispatchSdkCache.KEYS.FMS_FOLDER\n )) ?? 'NULL';\n for (const data of imagesDataList) {\n let insertID = await insertDocumentInDB(\n data.id,\n folderName,\n // JSON.stringify(captureProps.jobIds),\n // JSON.stringify(captureProps.objRefs),\n null,\n captureProps.title,\n data.path\n );\n if (insertID)\n output.push({\n url: '',\n timestamp: data.timestamp,\n file: { folder: folderName, name: data.id },\n });\n else\n throw new BaseError(\n BaseErrorCodes.SQLiteDBIssue,\n 'Unable to save Image'\n );\n }\n return output;\n } else return [];\n}\n"],"mappings":";;;;;;;;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,uBAAA,CAAA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EH,MAAM,IAAI0F,oBAAS,CACjBC,mBAAc,CAACC,aAAa,EAC5B,sBACF,CAAC;IACL;IACA,OAAOlB,MAAM;EACf,CAAC,MAAM,OAAO,EAAE;AAClB"}
1
+ {"version":3,"names":["_reactNative","require","FileSystem","_interopRequireWildcard","_expoImagePicker","ImagePicker","_Toaster","ImageManipulator","_Logger","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_BaseError","_ErrorCodes","_interopRequireDefault","_DispatchSdkCache","_SyncManagerUtils","_reactNativeImagePicker","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","deleteImage","imageData","images","deleteAsync","path","filtered","filter","ele","img","id","toString","toLowerCase","console","log","getMaxImagesCount","props","captureCountLimit","getImagesFileName","Date","now","getCompressionRatio","uri","maxSize","fileInfo","getInfoAsync","size","Math","min","exists","fileSize","error","Logger","getInstance","logEvent","message","LOG_TYPE","SDK_ERROR","checkCameraPermissionUtil","response","getCameraPermissionsAsync","granted","resp","requestCameraPermissionsAsync","status","PermissionStatus","GRANTED","captureImage","imageWidth","imageHeight","Alert","alert","cameraResult","options","selectionLimit","mediaType","includeBase64","launchCamera","didCancel","showToast","errorCode","errorMessage","assets","compressionRatio","saveOptions","compress","resizedImage","manipulateAsync","then","SDK_DEBUG","catch","exception","getCaptureOutput","imageDataList","captureProps","_captureProps$applica","length","getBaseETResponse","EntityCode","IMAGE_CAPTURE","getEventCodeByET","ExecutionTaskID","applicableReasons","failure","mergedObjectiveId","_captureProps$applica2","success","captures","getImagesData","imagesDataList","output","folderName","DispatchSdkCache","getKeyFromCache","KEYS","FMS_FOLDER","data","insertID","insertDocumentInDB","title","push","url","timestamp","file","folder","name","BaseError","BaseErrorCodes","SQLiteDBIssue"],"sources":["CaptureUtils.ts"],"sourcesContent":["import type {\n CapturedImage,\n CaptureInput,\n CaptureOutput,\n ImageData,\n} from './CaptureSchema';\nimport { Alert, Platform } from 'react-native';\nimport * as FileSystem from 'expo-file-system';\nimport * as ImagePicker from 'expo-image-picker';\nimport { PermissionStatus } from 'expo-image-picker';\nimport { showToast } from '../../widgets/Toaster';\nimport type { ActionResize, ImageResult } from 'expo-image-manipulator';\nimport * as ImageManipulator from 'expo-image-manipulator';\nimport Logger, { LOG_TYPE } from '../../../utils/Logger';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { BaseError } from '../../../errors/BaseError';\nimport BaseErrorCodes from '../../../errors/ErrorCodes';\nimport DispatchSdkCache from '../../../manager/sdk/DispatchSdkCache';\nimport { insertDocumentInDB } from '../../../utils/SyncManagerUtils';\nimport {CameraOptions, launchCamera} from 'react-native-image-picker';\n\nexport async function deleteImage(imageData: { path: string; id: { toString: () => string; }; }, images: any[]) {\n await FileSystem.deleteAsync(imageData.path);\n let filtered = images.filter(ele=>ele).filter(img => img.id.toString().toLowerCase() !== imageData.id.toString().toLowerCase()\n );\n console.log(\"filtered\",filtered);\n return filtered;\n}\n\nexport function getMaxImagesCount(props: CaptureInput) {\n if (props && props.captureCountLimit) return props.captureCountLimit;\n else return 1;\n}\n\nexport function getImagesFileName() {\n return `IMG_${Date.now().toString()}.jpg`;\n}\n\nexport async function getCompressionRatio(\n uri: string,\n maxSize: number\n): Promise<number> {\n try {\n let fileInfo = await FileSystem.getInfoAsync(uri, {\n size: true,\n });\n maxSize = Math.min(maxSize, 1024);\n if (fileInfo.exists) {\n let fileSize = fileInfo.size / 1024;\n if (fileSize > maxSize) {\n return maxSize / fileSize;\n } else return 1;\n }\n return 1;\n } catch (error: any) {\n Logger.getInstance().logEvent(\n 'getCompressionRatio',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n return 1;\n }\n}\n\nexport async function checkCameraPermissionUtil(): Promise<boolean> {\n let response = await ImagePicker.getCameraPermissionsAsync();\n if (response.granted) return true;\n else {\n let resp = await ImagePicker.requestCameraPermissionsAsync();\n return resp.status === PermissionStatus.GRANTED;\n }\n}\n\ninterface responseType {\n cancelled?: boolean;\n uri?: string;\n assets?: any[];\n}\n\nexport async function captureImage(\n imageWidth: number,\n imageHeight: number,\n fileSize: number\n): Promise<ImageResult | null> {\n try {\n if (!(await checkCameraPermissionUtil())) {\n Alert.alert('Permissions Error', 'Camera permissions not provided!');\n return null;\n }\n\n\n //let response : responseType;\n let uri : string = ''\n let cameraResult = null;\n\n const options = {\n selectionLimit: 1,\n mediaType: 'photo',\n includeBase64: false,\n };\n\n \n\n // You can also use as a promise without 'callback':\n // await launchCamera(options as CameraOptions , response => { \n // if (response?.didCancel){\n // console.log(\"aks:didCancel=\")\n // showToast('User cancelled the action'); \n // console.log('User cancelled the action');\n // } else if (response.errorCode == ('camera_unavailable' || 'permission' || 'others')) {\n // console.log(\"aks:errorCode=\")\n // showToast(response.errorMessage? response.errorMessage : ''); \n // console.log('ImagePicker Error: ', response.errorMessage);\n // } else {\n // console.log(\"aks:errorCode=before\")\n // async()=>{\n // console.log(\"aks:else=after\")\n // let assets = response.assets? response.assets : null; \n // console.log(\"aks:assets=\", assets)\n // // \n // if(assets != null){\n // uri = assets[0].uri as string;\n // //\n // let compressionRatio = await getCompressionRatio(uri, fileSize);\n // console.log(\"aks:compressionRatio=\", compressionRatio)\n \n // //\n // const saveOptions = {\n // compress: compressionRatio,\n // }\n // //\n // console.log(\"aks:uri=blank\")\n // console.log(\"aks:uri=\", uri)\n // let resizedImage = await ImageManipulator.manipulateAsync(uri, [], saveOptions,);\n // //\n // console.log(\"aks:resizedImage=\", resizedImage)\n // //delete file\n // FileSystem.deleteAsync(uri)\n // .then(() =>\n // Logger.getInstance().logEvent('CAPTURE_ET','File deleted success',LOG_TYPE.SDK_DEBUG)\n // ).catch((error) => {\n // Logger.getInstance().logEvent('CAPTURE_ET',error.message,LOG_TYPE.SDK_ERROR);\n // });\n // //\n // return resizedImage;\n // } \n // return null; \n // }\n // } \n // });\n\n await launchCamera(options as CameraOptions , response => { \n if (response?.didCancel){\n console.log(\"aks:didCancel=\")\n showToast('User cancelled the action'); \n console.log('User cancelled the action');\n } else if (response.errorCode == ('camera_unavailable' || 'permission' || 'others')) {\n console.log(\"aks:errorCode=\")\n showToast(response.errorMessage? response.errorMessage : ''); \n console.log('ImagePicker Error: ', response.errorMessage);\n } else {\n console.log(\"aks:response=else-start\")\n // \n let assets = response.assets? response.assets : null; \n console.log(\"aks:assets=\", assets)\n \n //\n if(assets != null){\n uri = assets[0].uri as string;\n }\n\n console.log(\"aks:uri=before\", uri)\n } \n });\n\n console.log(\"aks:uri-after=\", uri)\n // \n if(uri != null){ \n //\n let compressionRatio = await getCompressionRatio(uri, fileSize);\n console.log(\"aks:compressionRatio=\", compressionRatio)\n \n //\n const saveOptions = {\n compress: compressionRatio,\n }\n //\n console.log(\"aks:uri=blank\")\n console.log(\"aks:uri=\", uri)\n let resizedImage = await ImageManipulator.manipulateAsync(uri, [], saveOptions,);\n //\n console.log(\"aks:resizedImage=\", resizedImage)\n //delete file\n FileSystem.deleteAsync(uri)\n .then(() =>\n Logger.getInstance().logEvent('CAPTURE_ET','File deleted success',LOG_TYPE.SDK_DEBUG)\n ).catch((error) => {\n Logger.getInstance().logEvent('CAPTURE_ET',error.message,LOG_TYPE.SDK_ERROR);\n });\n //\n\n console.log(\"resizedImage=before\")\n console.log(\"resizedImage=\", resizedImage)\n\n return resizedImage;\n }\n\n // if(Platform.OS = 'android'){\n // response = {'uri': 'hello'}\n // uri = 'hello';\n // } else {\n // response = await ImagePicker.launchCameraAsync({\n // quality: 1,\n // });\n // let assets = response.assets;\n // if(assets){\n // uri = assets[0].uri\n // } \n // }\n\n // if (response?.cancelled){\n // showToast('User cancelled the action');\n // return null;\n // } \n\n \n // let actionResize: ActionResize = {\n // resize: {\n // width: imageWidth,\n // height: imageHeight,\n // },\n // };\n\n return null\n \n } catch (exception: any) {\n //showToast(`Error ${exception.message}`);\n //console.error('capture image error: ', exception);\n return null;\n }\n}\n\n\nexport async function getCaptureOutput(\n imageDataList: ImageData[],\n captureProps: CaptureInput\n): Promise<CaptureOutput> {\n if (!imageDataList || imageDataList.length === 0)\n return {\n ...(await getBaseETResponse(\n EntityCode.IMAGE_CAPTURE,\n false,\n getEventCodeByET(\n ExecutionTaskID.IMAGE_CAPTURE,\n false,\n captureProps.applicableReasons?.failure\n ),\n '',\n captureProps.mergedObjectiveId,\n ExecutionTaskID.IMAGE_CAPTURE\n )),\n };\n else {\n return {\n ...(await getBaseETResponse(\n EntityCode.IMAGE_CAPTURE,\n true,\n getEventCodeByET(\n ExecutionTaskID.IMAGE_CAPTURE,\n true,\n captureProps.applicableReasons?.success\n ),\n '',\n captureProps.mergedObjectiveId,\n ExecutionTaskID.IMAGE_CAPTURE\n )),\n captures: await getImagesData(imageDataList, captureProps),\n };\n }\n}\n\nasync function getImagesData(\n imagesDataList: ImageData[],\n captureProps: CaptureInput\n): Promise<CapturedImage[]> {\n if (imagesDataList && imagesDataList.length > 0) {\n let output: CapturedImage[] = [];\n const folderName =\n (await DispatchSdkCache.getInstance().getKeyFromCache(\n DispatchSdkCache.KEYS.FMS_FOLDER\n )) ?? 'NULL';\n for (const data of imagesDataList) {\n let insertID = await insertDocumentInDB(\n data.id,\n folderName,\n // JSON.stringify(captureProps.jobIds),\n // JSON.stringify(captureProps.objRefs),\n null,\n captureProps.title,\n data.path\n );\n if (insertID)\n output.push({\n url: '',\n timestamp: data.timestamp,\n file: { folder: folderName, name: data.id },\n });\n else\n throw new BaseError(\n BaseErrorCodes.SQLiteDBIssue,\n 'Unable to save Image'\n );\n }\n return output;\n } else return [];\n}"],"mappings":";;;;;;;;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,uBAAA,CAAAF,OAAA;AAAiD,IAAAI,WAAA,GA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D,yBAAgB,CAACE,IAAI,CAACC,UACxB,CAAC,KAAK,MAAM;IACd,KAAK,MAAMC,IAAI,IAAIP,cAAc,EAAE;MACjC,IAAIQ,QAAQ,GAAG,MAAM,IAAAC,oCAAkB,EACrCF,IAAI,CAACtF,EAAE,EACPiF,UAAU;MACV;MACA;MACA,IAAI,EACJjB,YAAY,CAACyB,KAAK,EAClBH,IAAI,CAAC3F,IACP,CAAC;MACD,IAAI4F,QAAQ,EACVP,MAAM,CAACU,IAAI,CAAC;QACVC,GAAG,EAAE,EAAE;QACPC,SAAS,EAAEN,IAAI,CAACM,SAAS;QACzBC,IAAI,EAAE;UAAEC,MAAM,EAAEb,UAAU;UAAEc,IAAI,EAAET,IAAI,CAACtF;QAAG;MAC5C,CAAC,CAAC,CAAC,KAEH,MAAM,IAAIgG,oBAAS,CACjBC,mBAAc,CAACC,aAAa,EAC5B,sBACF,CAAC;IACL;IACA,OAAOlB,MAAM;EACf,CAAC,MAAM,OAAO,EAAE;AAClB"}
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var CaptureUtils = _interopRequireWildcard(require("./CaptureUtils"));
9
+ var _CaptureUtils = _interopRequireWildcard(require("./CaptureUtils"));
10
+ var CaptureUtils = _CaptureUtils;
10
11
  var _Toaster = require("../../widgets/Toaster");
11
- var _SdkColors = _interopRequireWildcard(require("../../../styles/SdkColors"));
12
12
  var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
13
13
  var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
14
14
  var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
@@ -20,42 +20,25 @@ var _Logger = _interopRequireWildcard(require("../../../utils/Logger"));
20
20
  var _utils = require("../../../components/utils");
21
21
  var _GoBackModal = _interopRequireDefault(require("../../../components/widgets/GoBackModal"));
22
22
  var _native = require("@react-navigation/native");
23
+ var _circleXmark = _interopRequireDefault(require("./circle-xmark.svg"));
24
+ var _camera = _interopRequireDefault(require("./camera.svg"));
23
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
- const ImageItem = _ref => {
27
- let {
28
- item,
29
- onPress
30
- } = _ref;
31
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
32
- style: {
33
- marginEnd: 8
34
- }
35
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
36
- source: {
37
- uri: item.path
38
- },
39
- style: styles.image
40
- }), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
41
- onPress: onPress,
42
- name: "highlight-remove",
43
- color: 'red',
44
- size: 32,
45
- style: {
46
- position: 'absolute',
47
- right: 5,
48
- top: 5
49
- }
50
- }));
51
- };
26
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
27
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
52
28
  const ImageCapture = props => {
29
+ let numberOfImagesToCapture;
30
+ if (props.captureMode == "SINGLE") {
31
+ numberOfImagesToCapture = 1;
32
+ } else if (props.captureMode === 'MULTI' && props.captureCountLimit && props.captureCountLimit > 0) {
33
+ numberOfImagesToCapture = props.captureCountLimit;
34
+ }
53
35
  const [images, setImages] = (0, _react.useState)([]);
36
+ const [imagesDummy, setImagesDummy] = (0, _react.useState)([]);
54
37
  const [showCapture, setShowCapture] = (0, _react.useState)(true);
55
38
  const [disableProceed, setDisableProceed] = (0, _react.useState)(false);
56
39
  const [showBackModal, setShowBackModal] = (0, _react.useState)(false);
57
-
58
- // Handle back-button click
40
+ const [buttonProceed, setButtonProceed] = (0, _react.useState)(false);
41
+ const [numColumns, setNumColumns] = (0, _react.useState)(numberOfImagesToCapture <= 2 ? 1 : 2);
59
42
  (0, _native.useFocusEffect)(_react.default.useCallback(() => {
60
43
  const onBackPress = () => {
61
44
  var _props$taskMeta;
@@ -90,6 +73,91 @@ const ImageCapture = props => {
90
73
  }
91
74
  });
92
75
  }, [props.navigation, props.title]);
76
+ (0, _react.useEffect)(() => {
77
+ if (images.length === 0) {
78
+ let arr = [];
79
+ for (let i = 0; i < numberOfImagesToCapture; i++) {
80
+ arr.push({
81
+ path: ''
82
+ });
83
+ }
84
+ setImages(arr);
85
+ }
86
+ }, [images]);
87
+ const ImageItem = _ref => {
88
+ var _imagesDummy$index, _imagesDummy$index2, _imagesDummy$index3, _imagesDummy$index4;
89
+ let {
90
+ item,
91
+ index,
92
+ onPress
93
+ } = _ref;
94
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
95
+ style: {
96
+ width: numColumns == 2 ? '43%' : '88%',
97
+ height: numColumns == 2 ? 160 : numberOfImagesToCapture == 1 ? 336 : 180,
98
+ backgroundColor: 'white',
99
+ alignItems: 'center',
100
+ alignSelf: 'center',
101
+ borderWidth: 1,
102
+ borderColor: '#A3AAC2',
103
+ borderStyle: 'dashed',
104
+ borderRadius: 3,
105
+ marginTop: '6%',
106
+ marginStart: numColumns == 2 ? 17 : numberOfImagesToCapture == 1 ? 0 : 0
107
+ }
108
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
109
+ style: {
110
+ alignItems: 'center',
111
+ width: '80%',
112
+ height: '98%',
113
+ borderRadius: 3
114
+ }
115
+ }, (imagesDummy === null || imagesDummy === void 0 ? void 0 : imagesDummy.length) > index && (_imagesDummy$index = imagesDummy[index]) !== null && _imagesDummy$index !== void 0 && _imagesDummy$index.path ? null : /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
116
+ onPress: onPress
117
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
118
+ style: {
119
+ marginTop: numColumns === 2 ? '32%' : numberOfImagesToCapture === 1 ? '50%' : '20%'
120
+ }
121
+ }, /*#__PURE__*/_react.default.createElement(_camera.default, null))), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
122
+ onPress: () => captureImage(index),
123
+ uppercase: false,
124
+ labelStyle: [{
125
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_500Medium,
126
+ fontStyle: 'normal',
127
+ fontWeight: 'normal',
128
+ fontSize: 14,
129
+ letterSpacing: 0.25,
130
+ color: '#5B80F7'
131
+ }]
132
+ }, (imagesDummy === null || imagesDummy === void 0 ? void 0 : imagesDummy.length) > index && (_imagesDummy$index2 = imagesDummy[index]) !== null && _imagesDummy$index2 !== void 0 && _imagesDummy$index2.path ? null : 'Click Photo'), /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
133
+ source: {
134
+ uri: (imagesDummy === null || imagesDummy === void 0 ? void 0 : imagesDummy.length) > index ? (_imagesDummy$index3 = imagesDummy[index]) === null || _imagesDummy$index3 === void 0 ? void 0 : _imagesDummy$index3.path : item === null || item === void 0 ? void 0 : item.path
135
+ },
136
+ style: {
137
+ height: numColumns == 2 ? '75%' : numberOfImagesToCapture == 1 ? '85%' : '85%',
138
+ width: numColumns == 2 ? '105%' : '118%',
139
+ borderRadius: 10,
140
+ bottom: numColumns == 2 ? '6%' : numberOfImagesToCapture == 1 ? '2%' : '11%'
141
+ }
142
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
143
+ onPress: onPress,
144
+ style: {
145
+ position: 'absolute',
146
+ top: numColumns == 2 ? '17%' : '9%',
147
+ marginRight: '2%'
148
+ }
149
+ }, (imagesDummy === null || imagesDummy === void 0 ? void 0 : imagesDummy.length) > index && ((_imagesDummy$index4 = imagesDummy[index]) === null || _imagesDummy$index4 === void 0 ? void 0 : _imagesDummy$index4.path) && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
150
+ style: {
151
+ width: 25,
152
+ height: 25,
153
+ backgroundColor: 'white',
154
+ borderRadius: 15,
155
+ alignItems: 'center',
156
+ justifyContent: 'center',
157
+ marginLeft: numColumns == 2 ? '78%' : '96%'
158
+ }
159
+ }, /*#__PURE__*/_react.default.createElement(_circleXmark.default, null)))));
160
+ };
93
161
  const renderModal = () => {
94
162
  return /*#__PURE__*/_react.default.createElement(_GoBackModal.default, {
95
163
  showModal: showBackModal,
@@ -106,17 +174,10 @@ const ImageCapture = props => {
106
174
  const handleSubmit = async () => {
107
175
  try {
108
176
  setDisableProceed(true);
109
- if (images.length > 0) {
110
- var _props$additionalMult;
111
- if (((_props$additionalMult = props.additionalMultiConfig) === null || _props$additionalMult === void 0 ? void 0 : _props$additionalMult.minCaptureCount) === 'N' && images.length < props.captureCount) {
112
- (0, _Toaster.showToast)(`Min ${props.captureCount} image(s) required to be captured.`);
113
- return;
114
- }
115
- if (props.captureMode === 'MULTI' && props.captureCountLimit && props.captureCountLimit > 0 && images.length > CaptureUtils.getMaxImagesCount(props)) {
116
- (0, _Toaster.showToast)(`Max ${props.captureCountLimit} image(s) allowed.`);
117
- return;
118
- }
119
- props.onSubmitET(await (0, CaptureUtils.getCaptureOutput)(images, props));
177
+ let imagesArray = imagesDummy.filter(item => item != null && item.path != null && item.path.length != 0);
178
+ console.log('imagesArray:', JSON.stringify(imagesArray));
179
+ if (imagesArray.length > 0) {
180
+ props.onSubmitET(await (0, _CaptureUtils.getCaptureOutput)(imagesArray, props));
120
181
  } else {
121
182
  (0, _Toaster.showToast)('No Images captured');
122
183
  }
@@ -127,56 +188,80 @@ const ImageCapture = props => {
127
188
  setDisableProceed(false);
128
189
  }
129
190
  };
130
- (0, _react.useEffect)(() => {
131
- if (props.captureMode === 'SINGLE') {
132
- if (images.length > 0) {
133
- setShowCapture(false);
134
- } else setShowCapture(true);
135
- } else if (props.captureMode === 'MULTI' && props.captureCountLimit && props.captureCountLimit > 0) {
136
- if (images.length === CaptureUtils.getMaxImagesCount(props)) {
137
- setShowCapture(false);
138
- } else setShowCapture(true);
139
- } else {
140
- if (images.length > 0) {
141
- setShowCapture(true);
142
- }
143
- }
144
- }, [images, props, showCapture]);
145
- const captureImage = (0, _react.useCallback)(async () => {
146
- if (!showCapture) {
147
- (0, _Toaster.showToast)(`Max Image Limit reached`);
148
- return;
149
- }
191
+
192
+ // useEffect(() => {
193
+ // if (props.captureMode === 'SINGLE') {
194
+ // if (images.length > 0) {
195
+ // setShowCapture(false);
196
+ // } else setShowCapture(true);
197
+ // } else if (
198
+ // props.captureMode === 'MULTI' &&
199
+ // props.captureCountLimit &&
200
+ // props.captureCountLimit > 0
201
+ // ) {
202
+ // if (images.length === CaptureUtils.getMaxImagesCount(props)) {
203
+ // setShowCapture(false);
204
+ // } else setShowCapture(true);
205
+ // } else {
206
+ // if (images.length > 0) {
207
+ // setShowCapture(true);
208
+ // }
209
+ // }
210
+ // }, [images, props, showCapture]);
211
+
212
+ const captureImage = (0, _react.useCallback)(async index => {
213
+ // // if (!showCapture) {
214
+ // // showToast(`Max Image Limit reached`);
215
+ // // return;
216
+ // // }
217
+ // console.log("captureImage", CaptureUtils);
150
218
  let imageDataResponse = await CaptureUtils.captureImage(props.resolution.breadth, props.resolution.length, props.fileSizeLimit);
151
219
  if (imageDataResponse != null) {
152
- setImages(prevState => {
153
- return [...prevState, {
154
- id: CaptureUtils.getImagesFileName(),
155
- // @ts-ignore
156
- path: imageDataResponse.uri,
157
- url: '',
158
- timestamp: Date.now()
159
- }];
160
- });
220
+ setButtonProceed(true);
221
+ let imgArray = [];
222
+ imgArray = imagesDummy;
223
+ imgArray[index] = {
224
+ id: CaptureUtils.getImagesFileName(),
225
+ // @ts-ignore
226
+ path: imageDataResponse.uri,
227
+ url: '',
228
+ timestamp: Date.now()
229
+ };
230
+ setImagesDummy([...imgArray]);
231
+ console.log("images211:", JSON.stringify(imgArray));
232
+ }
233
+ }, [props.resolution.breadth, props.resolution.length, props.fileSizeLimit]);
234
+ const deleteImage = async index => {
235
+ let imageDummyArray = [];
236
+ imageDummyArray = imagesDummy;
237
+ imageDummyArray[index].path = "";
238
+ setImagesDummy([...imageDummyArray]);
239
+ let initialProceedValue = false;
240
+ for (let i = 0; i < imageDummyArray.length; i++) {
241
+ var _imageDummyArray$i;
242
+ if ((_imageDummyArray$i = imageDummyArray[i]) !== null && _imageDummyArray$i !== void 0 && _imageDummyArray$i.path) {
243
+ initialProceedValue = true;
244
+ }
161
245
  }
162
- }, [props, showCapture]);
163
- const deleteImage = async imageData => {
246
+ setButtonProceed(initialProceedValue);
164
247
  try {
165
- let filteredImages = await CaptureUtils.deleteImage(imageData, images);
166
- setImages(filteredImages);
248
+ // setImagesDummy(filteredImages);
249
+ // setButtonProceed(false);
167
250
  } catch (err) {
168
251
  _Logger.default.getInstance().logEvent('deleteImageError', err.message, _Logger.LOG_TYPE.SDK_ERROR);
169
- return;
252
+ console.error("Error updating state after deletion:", err);
170
253
  }
171
254
  };
172
255
  const renderItem = _ref2 => {
173
256
  let {
174
- item
257
+ item,
258
+ index
175
259
  } = _ref2;
176
260
  return /*#__PURE__*/_react.default.createElement(ImageItem, {
177
261
  item: item,
262
+ index: index,
178
263
  onPress: async () => {
179
- await deleteImage(item);
264
+ await deleteImage(index);
180
265
  }
181
266
  });
182
267
  };
@@ -186,56 +271,62 @@ const ImageCapture = props => {
186
271
  style: styles.etMessageView
187
272
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
188
273
  style: styles.etMessage
189
- }, props.message)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
190
- style: styles.imageEtContainer
191
- }, images.length === 0 && /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
192
- name: 'photo-camera',
193
- size: 24,
194
- color: '#666666'
195
- }), images.length > 0 && /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
196
- horizontal: true,
274
+ }, "Take a photo of the shipments. Please ensure the items are clearly visible.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
275
+ style: {
276
+ backgroundColor: 'white',
277
+ width: 360,
278
+ height: numColumns == 2 ? '82%' : numberOfImagesToCapture == 1 ? '63%' : '70%',
279
+ alignSelf: 'center',
280
+ marginTop: '5%',
281
+ borderRadius: 7,
282
+ borderColor: '#E0E3EB',
283
+ borderWidth: 0.5
284
+ }
285
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
197
286
  data: images,
287
+ numColumns: numColumns,
198
288
  renderItem: renderItem,
199
- keyExtractor: item => item.id
200
- }), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
201
- onPress: () => captureImage(),
202
- uppercase: false,
203
- labelStyle: [{
204
- fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
205
- fontStyle: 'normal',
206
- fontWeight: 'normal',
207
- fontSize: 14,
208
- alignItems: 'center',
209
- textAlign: 'center',
210
- letterSpacing: 0.25,
211
- color: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].primaryButton
212
- }]
213
- }, images.length > 0 ? 'Click more' : 'Click Picture')), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
214
- style: [_CommonStyles.CommonStyles.bottom, {
215
- marginStart: 10,
216
- marginEnd: 10
217
- }]
218
- }, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
219
- disabled: disableProceed,
220
- style: _CommonStyles.CommonStyles.nextButton,
221
- mode: "contained",
222
- labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
223
- onPress: async () => {
224
- await handleSubmit();
289
+ keyExtractor: item => item === null || item === void 0 ? void 0 : item.id,
290
+ contentContainerStyle: {
291
+ paddingBottom: '30%'
225
292
  }
226
- }, "Proceed"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
293
+ })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
294
+ style: styles.bottomButtons
295
+ }, props.isSelfLoop == false && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
227
296
  style: [_CommonStyles.CommonStyles.cancelButton, {
228
- marginTop: 10
297
+ flexGrow: 1,
298
+ marginStart: '3%'
229
299
  }],
230
300
  mode: "outlined",
231
- labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
301
+ labelStyle: [_CommonStyles.CommonStyles.cancelButtonLabel, {
302
+ textTransform: 'capitalize'
303
+ }],
232
304
  onPress: async () => {
233
305
  var _props$applicableReas;
234
306
  props.onSubmitET({
235
307
  ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.IMAGE_CAPTURE, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.IMAGE_CAPTURE, false, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.failure), '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.IMAGE_CAPTURE))
236
308
  });
237
309
  }
238
- }, "Cancel"))));
310
+ }, "Cancel"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
311
+ labelStyle: {
312
+ color: buttonProceed ? '#ffff' : '#A3AAC2',
313
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_500Medium,
314
+ fontSize: 14,
315
+ lineHeight: 20,
316
+ textAlign: 'center',
317
+ textTransform: 'capitalize'
318
+ },
319
+ style: {
320
+ flexGrow: 1,
321
+ marginHorizontal: '3%',
322
+ backgroundColor: buttonProceed ? '#5B80F7' : '#E0E3EB'
323
+ },
324
+ disabled: !buttonProceed,
325
+ mode: "contained",
326
+ onPress: async () => {
327
+ await handleSubmit();
328
+ }
329
+ }, "Proceed"))));
239
330
  };
240
331
  const styles = _reactNative.StyleSheet.create({
241
332
  imageEtContainer: {
@@ -243,39 +334,44 @@ const styles = _reactNative.StyleSheet.create({
243
334
  marginStart: 16,
244
335
  marginEnd: 16,
245
336
  borderWidth: 1,
246
- borderColor: 'rgba(0, 0, 0, 0.1)',
337
+ borderColor: '#A3AAC2',
247
338
  padding: 10,
248
339
  marginTop: 15,
249
340
  borderStyle: 'dashed',
250
341
  backgroundColor: '#FFFFFF',
251
342
  alignItems: 'center',
252
343
  justifyContent: 'center',
253
- height: 300
344
+ height: 370,
345
+ borderRadius: 5
254
346
  },
255
- image: {
256
- height: 250,
257
- width: 200
347
+ bottomButtons: {
348
+ width: "100%",
349
+ justifyContent: "space-between",
350
+ flexDirection: 'row',
351
+ backgroundColor: "white",
352
+ paddingVertical: 12,
353
+ bottom: 0,
354
+ position: "absolute",
355
+ borderTopColor: "#A3AAC2",
356
+ borderTopWidth: 0.5
258
357
  },
259
358
  etMessage: {
260
- textAlign: 'center',
359
+ // textAlign: 'center',
261
360
  fontStyle: 'normal',
262
- fontWeight: '600',
263
- fontSize: 18,
361
+ fontWeight: '400',
362
+ fontSize: 16,
264
363
  display: 'flex',
265
364
  alignItems: 'center',
266
- letterSpacing: 0.25,
267
365
  color: '#000000',
268
- fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
366
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
269
367
  },
270
368
  etMessageView: {
271
- marginTop: 14,
272
- paddingStart: 40,
273
- paddingEnd: 40,
369
+ marginTop: 17,
370
+ paddingStart: 17,
274
371
  paddingTop: 15,
275
372
  paddingBottom: 15,
276
373
  backgroundColor: '#ffffff'
277
374
  }
278
375
  });
279
- var _default = ImageCapture;
280
- exports.default = _default;
376
+ var _default = exports.default = ImageCapture;
281
377
  //# sourceMappingURL=ImageCapture.js.map