@os1-platform/dispatch-mobile 1.0.8 → 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 (778) hide show
  1. package/README.md +310 -74
  2. package/android/.gradle/7.0.2/fileChanges/last-build.bin +0 -0
  3. package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
  4. package/android/.gradle/7.0.2/gc.properties +0 -0
  5. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  6. package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
  7. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  8. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  9. package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
  10. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  11. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  12. package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
  13. package/android/.gradle/7.2/gc.properties +0 -0
  14. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  15. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  16. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  17. package/android/.gradle/checksums/checksums.lock +0 -0
  18. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  19. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  20. package/android/.gradle/vcs-1/gc.properties +0 -0
  21. package/android/.idea/compiler.xml +6 -0
  22. package/android/.idea/gradle.xml +18 -0
  23. package/android/.idea/jarRepositories.xml +35 -0
  24. package/android/.idea/kotlinc.xml +6 -0
  25. package/android/.idea/misc.xml +9 -0
  26. package/android/.idea/vcs.xml +6 -0
  27. package/android/gradle.properties +1 -1
  28. package/android/local.properties +8 -0
  29. package/android/src/main/AndroidManifest.xml +0 -1
  30. package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
  31. package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
  32. package/lib/commonjs/@types/assets/index.d.js +2 -0
  33. package/lib/commonjs/@types/assets/index.d.js.map +1 -0
  34. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +50 -43
  35. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  36. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +10 -48
  37. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
  39. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  40. package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +66 -18
  42. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
  44. package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
  45. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
  46. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  48. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +212 -95
  49. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  50. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -25
  51. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  52. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +65 -29
  53. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  54. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
  55. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +74 -30
  57. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  58. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +139 -50
  59. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  60. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
  61. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  62. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
  63. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
  64. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -17
  65. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  66. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
  67. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  68. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +5 -14
  69. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  70. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -15
  71. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  72. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +11 -36
  74. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  75. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +73 -48
  76. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  77. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
  78. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
  80. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +76 -29
  82. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  83. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
  84. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
  86. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
  88. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +138 -32
  90. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  91. package/lib/commonjs/components/executiontasks/scan/ScanET.js +741 -0
  92. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
  93. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +19 -0
  94. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
  95. package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
  96. package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
  97. package/lib/commonjs/components/executiontasks/scan/interfaces.js +43 -0
  98. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
  99. package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
  100. package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
  101. package/lib/commonjs/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -29
  102. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
  103. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +109 -0
  104. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
  105. package/lib/commonjs/components/executiontasks/{scanner/returns/ReasonDropDown.js → scan/sub_components/ERDropDown.js} +72 -55
  106. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
  107. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
  108. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  109. package/lib/commonjs/components/executiontasks/scan/utils.js +762 -0
  110. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
  111. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +333 -0
  112. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
  113. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
  114. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
  115. package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
  116. package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
  117. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +63 -0
  118. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
  119. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
  120. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
  121. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
  122. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  123. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
  124. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  125. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
  126. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  127. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  128. package/lib/commonjs/components/utils/index.js +14 -0
  129. package/lib/commonjs/components/utils/index.js.map +1 -0
  130. package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
  131. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  132. package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
  133. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  134. package/lib/commonjs/components/widgets/Card.js +88 -0
  135. package/lib/commonjs/components/widgets/Card.js.map +1 -0
  136. package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
  137. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
  138. package/lib/commonjs/components/widgets/IconButton.js +34 -0
  139. package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
  140. package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
  141. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
  142. package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
  143. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  144. package/lib/commonjs/components/widgets/SearchBar.js +74 -0
  145. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
  146. package/lib/commonjs/components/widgets/SnackBarCustom.js +48 -40
  147. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  148. package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
  149. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
  150. package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
  151. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
  152. package/lib/commonjs/components/widgets/Toaster.js +0 -2
  153. package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
  154. package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
  155. package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
  156. package/lib/commonjs/constants/apiConstants.js +17 -0
  157. package/lib/commonjs/constants/apiConstants.js.map +1 -0
  158. package/lib/commonjs/constants/constants.js +7 -3
  159. package/lib/commonjs/constants/constants.js.map +1 -1
  160. package/lib/commonjs/constants/statuscode.js +3 -5
  161. package/lib/commonjs/constants/statuscode.js.map +1 -1
  162. package/lib/commonjs/errors/BaseError.js +3 -8
  163. package/lib/commonjs/errors/BaseError.js.map +1 -1
  164. package/lib/commonjs/errors/ErrorCodes.js +7 -6
  165. package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
  166. package/lib/commonjs/events/EventDispatcher.js +23 -0
  167. package/lib/commonjs/events/EventDispatcher.js.map +1 -0
  168. package/lib/commonjs/events/EventListener.js +20 -0
  169. package/lib/commonjs/events/EventListener.js.map +1 -0
  170. package/lib/commonjs/events/constants.js +15 -0
  171. package/lib/commonjs/events/constants.js.map +1 -0
  172. package/lib/commonjs/events/index.js +11 -0
  173. package/lib/commonjs/events/index.js.map +1 -0
  174. package/lib/commonjs/events/interface.js +2 -0
  175. package/lib/commonjs/events/interface.js.map +1 -0
  176. package/lib/commonjs/index.js +40 -35
  177. package/lib/commonjs/index.js.map +1 -1
  178. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +328 -272
  179. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  180. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
  181. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  182. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
  183. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
  184. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
  185. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  186. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
  187. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  188. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +23 -0
  189. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
  190. package/lib/commonjs/manager/location/LocationManager.js +3 -20
  191. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  192. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +23 -37
  193. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  194. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
  195. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  196. package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
  197. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
  198. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +26 -46
  199. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  200. package/lib/commonjs/manager/syncmanager/DBConfig.js +48 -9
  201. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  202. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
  203. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
  204. package/lib/commonjs/manager/syncmanager/constants.js +17 -0
  205. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
  206. package/lib/commonjs/manager/syncmanager/database.js +28 -12
  207. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  208. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -36
  209. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  210. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +8 -26
  211. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  212. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +19 -58
  213. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  214. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +414 -29
  215. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  216. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +208 -103
  217. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  218. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +157 -36
  219. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  220. package/lib/commonjs/models/DispatchModels.js +4 -5
  221. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  222. package/lib/commonjs/models/ReasonCodes.js.map +1 -1
  223. package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
  224. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  225. package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
  226. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  227. package/lib/commonjs/models/sdk.js +4 -5
  228. package/lib/commonjs/models/sdk.js.map +1 -1
  229. package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
  230. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  231. package/lib/commonjs/network/GraphQLClient.js +7 -35
  232. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  233. package/lib/commonjs/network/NetworkClient.js +2 -13
  234. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  235. package/lib/commonjs/network/NetworkUtils.js +10 -8
  236. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  237. package/lib/commonjs/network/Queries.js +0 -2
  238. package/lib/commonjs/network/Queries.js.map +1 -1
  239. package/lib/commonjs/network/client.js +6 -21
  240. package/lib/commonjs/network/client.js.map +1 -1
  241. package/lib/commonjs/res/strings.js.map +1 -1
  242. package/lib/commonjs/resources/Login.js +4 -15
  243. package/lib/commonjs/resources/Login.js.map +1 -1
  244. package/lib/commonjs/resources/network.js +3 -8
  245. package/lib/commonjs/resources/network.js.map +1 -1
  246. package/lib/commonjs/styles/SdkColors.js +10 -8
  247. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  248. package/lib/commonjs/styles/executionTasks/CommonStyles.js +58 -25
  249. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  250. package/lib/commonjs/ui/screens/CancellationScreen.js +67 -27
  251. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  252. package/lib/commonjs/ui/screens/CaptureInputScreen.js +15 -16
  253. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  254. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -23
  255. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  256. package/lib/commonjs/ui/screens/DeliverScreen.js +30 -17
  257. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  258. package/lib/commonjs/ui/screens/DisplayScreen.js +17 -13
  259. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  260. package/lib/commonjs/ui/screens/DoodleScreen.js +17 -20
  261. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  262. package/lib/commonjs/ui/screens/DropCashScreen.js +43 -31
  263. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  264. package/lib/commonjs/ui/screens/ETScreensIndex.js +10 -19
  265. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  266. package/lib/commonjs/ui/screens/FormsScreen.js +105 -17
  267. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  268. package/lib/commonjs/ui/screens/GeofenceScreen.js +16 -14
  269. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  270. package/lib/commonjs/ui/screens/HttpRequestScreen.js +14 -11
  271. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  272. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +38 -17
  273. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  274. package/lib/commonjs/ui/screens/PaymentScreen.js +28 -29
  275. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  276. package/lib/commonjs/ui/screens/PickupScreen.js +41 -19
  277. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  278. package/lib/commonjs/ui/screens/ScanScreen.js +121 -0
  279. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
  280. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +64 -38
  281. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  282. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +55 -0
  283. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
  284. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
  285. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  286. package/lib/commonjs/ui/uiConfig/RouteParams.js +24 -1
  287. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  288. package/lib/commonjs/utils/ApiUtils.js +129 -0
  289. package/lib/commonjs/utils/ApiUtils.js.map +1 -0
  290. package/lib/commonjs/utils/ExecTaskUtils.js +111 -41
  291. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  292. package/lib/commonjs/utils/Logger.js +10 -29
  293. package/lib/commonjs/utils/Logger.js.map +1 -1
  294. package/lib/commonjs/utils/NetworkUtil.js +3 -19
  295. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  296. package/lib/commonjs/utils/SdkUtils.js +2 -31
  297. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  298. package/lib/commonjs/utils/SyncManagerUtils.js +61 -43
  299. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  300. package/lib/commonjs/utils/fcm/FCM.js +59 -11
  301. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  302. package/lib/commonjs/utils/fcm/FcmUtils.js +82 -21
  303. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  304. package/lib/commonjs/utils/helper.js +0 -5
  305. package/lib/commonjs/utils/helper.js.map +1 -1
  306. package/lib/commonjs/utils/hooks/useModal.js +53 -0
  307. package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
  308. package/lib/commonjs/utils/hooks/useTimer.js +44 -0
  309. package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
  310. package/lib/commonjs/utils/loginHelper.js +6 -18
  311. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  312. package/lib/commonjs/utils/storage.js +87 -31
  313. package/lib/commonjs/utils/storage.js.map +1 -1
  314. package/lib/commonjs/utils/utils.js +8 -11
  315. package/lib/commonjs/utils/utils.js.map +1 -1
  316. package/lib/module/@types/assets/index.d.js +2 -0
  317. package/lib/module/@types/assets/index.d.js.map +1 -0
  318. package/lib/module/components/dispatch/DispatchExecNavigator.js +50 -32
  319. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  320. package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -5
  321. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  322. package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
  323. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  324. package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  325. package/lib/module/components/executiontasks/captureInput/CaptureText.js +68 -10
  326. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  327. package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
  328. package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
  329. package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
  330. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  331. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  332. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +214 -86
  333. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  334. package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -15
  335. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  336. package/lib/module/components/executiontasks/doodle/SignatureET.js +68 -15
  337. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  338. package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
  339. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  340. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +75 -20
  341. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  342. package/lib/module/components/executiontasks/forms/FormGenerator.js +142 -37
  343. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  344. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
  345. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  346. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
  347. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
  348. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -6
  349. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  350. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
  351. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  352. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +6 -4
  353. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  354. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -6
  355. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  356. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  357. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +11 -11
  358. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  359. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
  360. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  361. package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  362. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  363. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +77 -18
  364. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  365. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +64 -11
  366. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  367. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +72 -11
  368. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  369. package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
  370. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  371. package/lib/module/components/executiontasks/pickup/SLPickupET.js +141 -25
  372. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  373. package/lib/module/components/executiontasks/scan/ScanET.js +732 -0
  374. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
  375. package/lib/module/components/executiontasks/scan/ScanSchema.js +17 -0
  376. package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
  377. package/lib/module/components/executiontasks/scan/constants.js +7 -0
  378. package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
  379. package/lib/module/components/executiontasks/scan/interfaces.js +33 -0
  380. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
  381. package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
  382. package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
  383. package/lib/module/components/executiontasks/{scanner → scan/sub_components}/CScanner.js +9 -16
  384. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
  385. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +101 -0
  386. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
  387. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +107 -0
  388. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
  389. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
  390. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  391. package/lib/module/components/executiontasks/scan/utils.js +726 -0
  392. package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
  393. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +324 -0
  394. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
  395. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
  396. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
  397. package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
  398. package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
  399. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +53 -0
  400. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
  401. package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
  402. package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
  403. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
  404. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  405. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
  406. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  407. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +5 -9
  408. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  409. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  410. package/lib/module/components/utils/index.js +8 -0
  411. package/lib/module/components/utils/index.js.map +1 -0
  412. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  413. package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
  414. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  415. package/lib/module/components/widgets/Card.js +80 -0
  416. package/lib/module/components/widgets/Card.js.map +1 -0
  417. package/lib/module/components/widgets/GoBackModal.js +40 -0
  418. package/lib/module/components/widgets/GoBackModal.js.map +1 -0
  419. package/lib/module/components/widgets/IconButton.js +26 -0
  420. package/lib/module/components/widgets/IconButton.js.map +1 -0
  421. package/lib/module/components/widgets/ModalWidget.js +92 -0
  422. package/lib/module/components/widgets/ModalWidget.js.map +1 -0
  423. package/lib/module/components/widgets/ProgressDialog.js +0 -2
  424. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  425. package/lib/module/components/widgets/SearchBar.js +66 -0
  426. package/lib/module/components/widgets/SearchBar.js.map +1 -0
  427. package/lib/module/components/widgets/SnackBarCustom.js +46 -20
  428. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  429. package/lib/module/components/widgets/SplitTextInput.js +84 -0
  430. package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
  431. package/lib/module/components/widgets/TabsComponent.js +55 -0
  432. package/lib/module/components/widgets/TabsComponent.js.map +1 -0
  433. package/lib/module/components/widgets/Toaster.js.map +1 -1
  434. package/lib/module/config/DispatchSDKConfig.js +3 -4
  435. package/lib/module/config/DispatchSDKConfig.js.map +1 -1
  436. package/lib/module/constants/apiConstants.js +9 -0
  437. package/lib/module/constants/apiConstants.js.map +1 -0
  438. package/lib/module/constants/constants.js +4 -2
  439. package/lib/module/constants/constants.js.map +1 -1
  440. package/lib/module/constants/statuscode.js +3 -5
  441. package/lib/module/constants/statuscode.js.map +1 -1
  442. package/lib/module/errors/BaseError.js +3 -6
  443. package/lib/module/errors/BaseError.js.map +1 -1
  444. package/lib/module/errors/ErrorCodes.js +5 -5
  445. package/lib/module/errors/ErrorCodes.js.map +1 -1
  446. package/lib/module/events/EventDispatcher.js +16 -0
  447. package/lib/module/events/EventDispatcher.js.map +1 -0
  448. package/lib/module/events/EventListener.js +13 -0
  449. package/lib/module/events/EventListener.js.map +1 -0
  450. package/lib/module/events/constants.js +8 -0
  451. package/lib/module/events/constants.js.map +1 -0
  452. package/lib/module/events/index.js +3 -0
  453. package/lib/module/events/index.js.map +1 -0
  454. package/lib/module/events/interface.js +2 -0
  455. package/lib/module/events/interface.js.map +1 -0
  456. package/lib/module/index.js +9 -5
  457. package/lib/module/index.js.map +1 -1
  458. package/lib/module/manager/dispatch/DispatchStateContainer.js +334 -247
  459. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  460. package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
  461. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  462. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
  463. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
  464. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
  465. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  466. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
  467. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  468. package/lib/module/manager/jobRemoval/JobRemovalManager.js +22 -0
  469. package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
  470. package/lib/module/manager/location/LocationManager.js +3 -14
  471. package/lib/module/manager/location/LocationManager.js.map +1 -1
  472. package/lib/module/manager/sdk/DispatchSDKManager.js +23 -15
  473. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  474. package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
  475. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  476. package/lib/module/manager/sdk/callbacksHandler.js +19 -0
  477. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
  478. package/lib/module/manager/syncmanager/AppSyncManager.js +26 -26
  479. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  480. package/lib/module/manager/syncmanager/DBConfig.js +41 -7
  481. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  482. package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
  483. package/lib/module/manager/syncmanager/constants.js +6 -0
  484. package/lib/module/manager/syncmanager/constants.js.map +1 -0
  485. package/lib/module/manager/syncmanager/database.js +27 -3
  486. package/lib/module/manager/syncmanager/database.js.map +1 -1
  487. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -24
  488. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  489. package/lib/module/manager/syncmanager/document/DocumentManager.js +8 -20
  490. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  491. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +19 -41
  492. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  493. package/lib/module/manager/syncmanager/events/ETEventsManager.js +415 -22
  494. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  495. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +209 -82
  496. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  497. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +152 -24
  498. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  499. package/lib/module/models/DispatchModels.js +3 -4
  500. package/lib/module/models/DispatchModels.js.map +1 -1
  501. package/lib/module/models/ReasonCodes.js.map +1 -1
  502. package/lib/module/models/execTasks/ETBaseModels.js +1 -1
  503. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  504. package/lib/module/models/execTasks/ETConfig.js +22 -29
  505. package/lib/module/models/execTasks/ETConfig.js.map +1 -1
  506. package/lib/module/models/sdk.js +3 -4
  507. package/lib/module/models/sdk.js.map +1 -1
  508. package/lib/module/native/signature/SignatureCapture.js +3 -18
  509. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  510. package/lib/module/network/GraphQLClient.js +6 -26
  511. package/lib/module/network/GraphQLClient.js.map +1 -1
  512. package/lib/module/network/NetworkClient.js +2 -6
  513. package/lib/module/network/NetworkClient.js.map +1 -1
  514. package/lib/module/network/NetworkUtils.js +10 -3
  515. package/lib/module/network/NetworkUtils.js.map +1 -1
  516. package/lib/module/network/Queries.js.map +1 -1
  517. package/lib/module/network/client.js +7 -17
  518. package/lib/module/network/client.js.map +1 -1
  519. package/lib/module/res/strings.js.map +1 -1
  520. package/lib/module/resources/Login.js +4 -13
  521. package/lib/module/resources/Login.js.map +1 -1
  522. package/lib/module/resources/network.js +3 -6
  523. package/lib/module/resources/network.js.map +1 -1
  524. package/lib/module/styles/SdkColors.js +9 -7
  525. package/lib/module/styles/SdkColors.js.map +1 -1
  526. package/lib/module/styles/executionTasks/CommonStyles.js +57 -14
  527. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  528. package/lib/module/ui/screens/CancellationScreen.js +68 -15
  529. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  530. package/lib/module/ui/screens/CaptureInputScreen.js +17 -6
  531. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  532. package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -8
  533. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  534. package/lib/module/ui/screens/DeliverScreen.js +32 -7
  535. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  536. package/lib/module/ui/screens/DisplayScreen.js +16 -6
  537. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  538. package/lib/module/ui/screens/DoodleScreen.js +19 -9
  539. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  540. package/lib/module/ui/screens/DropCashScreen.js +45 -19
  541. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  542. package/lib/module/ui/screens/ETScreensIndex.js +3 -2
  543. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  544. package/lib/module/ui/screens/FormsScreen.js +104 -9
  545. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  546. package/lib/module/ui/screens/GeofenceScreen.js +15 -6
  547. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  548. package/lib/module/ui/screens/HttpRequestScreen.js +15 -5
  549. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  550. package/lib/module/ui/screens/ImageCaptureScreen.js +37 -9
  551. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  552. package/lib/module/ui/screens/PaymentScreen.js +30 -17
  553. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  554. package/lib/module/ui/screens/PickupScreen.js +40 -12
  555. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  556. package/lib/module/ui/screens/ScanScreen.js +111 -0
  557. package/lib/module/ui/screens/ScanScreen.js.map +1 -0
  558. package/lib/module/ui/screens/StartWorkFlowScreen.js +64 -16
  559. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  560. package/lib/module/ui/screens/ValidateOTPScreen.js +45 -0
  561. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
  562. package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
  563. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  564. package/lib/module/ui/uiConfig/RouteParams.js +23 -1
  565. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  566. package/lib/module/utils/ApiUtils.js +116 -0
  567. package/lib/module/utils/ApiUtils.js.map +1 -0
  568. package/lib/module/utils/ExecTaskUtils.js +110 -31
  569. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  570. package/lib/module/utils/Logger.js +9 -21
  571. package/lib/module/utils/Logger.js.map +1 -1
  572. package/lib/module/utils/NetworkUtil.js +3 -15
  573. package/lib/module/utils/NetworkUtil.js.map +1 -1
  574. package/lib/module/utils/SdkUtils.js +2 -15
  575. package/lib/module/utils/SdkUtils.js.map +1 -1
  576. package/lib/module/utils/SyncManagerUtils.js +62 -14
  577. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  578. package/lib/module/utils/fcm/FCM.js +63 -3
  579. package/lib/module/utils/fcm/FCM.js.map +1 -1
  580. package/lib/module/utils/fcm/FcmUtils.js +86 -7
  581. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  582. package/lib/module/utils/helper.js +0 -3
  583. package/lib/module/utils/helper.js.map +1 -1
  584. package/lib/module/utils/hooks/useModal.js +43 -0
  585. package/lib/module/utils/hooks/useModal.js.map +1 -0
  586. package/lib/module/utils/hooks/useTimer.js +37 -0
  587. package/lib/module/utils/hooks/useTimer.js.map +1 -0
  588. package/lib/module/utils/loginHelper.js +6 -16
  589. package/lib/module/utils/loginHelper.js.map +1 -1
  590. package/lib/module/utils/storage.js +86 -29
  591. package/lib/module/utils/storage.js.map +1 -1
  592. package/lib/module/utils/utils.js +8 -6
  593. package/lib/module/utils/utils.js.map +1 -1
  594. package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
  595. package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
  596. package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -7
  597. package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
  598. package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
  599. package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
  600. package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
  601. package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
  602. package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
  603. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +8 -7
  604. package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
  605. package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
  606. package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
  607. package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
  608. package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
  609. package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
  610. package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
  611. package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
  612. package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
  613. package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
  614. package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +3 -3
  615. package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
  616. package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
  617. package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
  618. package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
  619. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
  620. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
  621. package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +17 -11
  622. package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
  623. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
  624. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
  625. package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
  626. package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
  627. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
  628. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
  629. package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
  630. package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
  631. package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
  632. package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
  633. package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +86 -0
  634. package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
  635. package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +94 -0
  636. package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
  637. package/lib/typescript/components/executiontasks/{scanner → scan/sub_components}/CScanner.d.ts +1 -1
  638. package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
  639. package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
  640. package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
  641. package/lib/typescript/components/executiontasks/scan/utils.d.ts +37 -0
  642. package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
  643. package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
  644. package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
  645. package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
  646. package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
  647. package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
  648. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
  649. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
  650. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
  651. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +6 -6
  652. package/lib/typescript/components/utils/index.d.ts +2 -0
  653. package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
  654. package/lib/typescript/components/widgets/Card.d.ts +17 -0
  655. package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
  656. package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
  657. package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
  658. package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
  659. package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
  660. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +10 -5
  661. package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
  662. package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
  663. package/lib/typescript/constants/apiConstants.d.ts +7 -0
  664. package/lib/typescript/constants/constants.d.ts +4 -2
  665. package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
  666. package/lib/typescript/events/EventDispatcher.d.ts +3 -0
  667. package/lib/typescript/events/EventListener.d.ts +5 -0
  668. package/lib/typescript/events/constants.d.ts +7 -0
  669. package/lib/typescript/events/index.d.ts +2 -0
  670. package/lib/typescript/events/interface.d.ts +1 -0
  671. package/lib/typescript/index.d.ts +12 -9
  672. package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +38 -17
  673. package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
  674. package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
  675. package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -0
  676. package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +1 -0
  677. package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
  678. package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +3 -1
  679. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +80 -4
  680. package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
  681. package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
  682. package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
  683. package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
  684. package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
  685. package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +15 -2
  686. package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +4 -2
  687. package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +6 -3
  688. package/lib/typescript/models/DispatchModels.d.ts +59 -5
  689. package/lib/typescript/models/ReasonCodes.d.ts +5 -0
  690. package/lib/typescript/models/auth.d.ts +1 -1
  691. package/lib/typescript/models/execTasks/ETBaseModels.d.ts +44 -20
  692. package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
  693. package/lib/typescript/models/sdk.d.ts +12 -0
  694. package/lib/typescript/native/signature/SignatureCapture.d.ts +2 -2
  695. package/lib/typescript/network/NetworkUtils.d.ts +1 -5
  696. package/lib/typescript/styles/SdkColors.d.ts +2 -0
  697. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +50 -5
  698. package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
  699. package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
  700. package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
  701. package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
  702. package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
  703. package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
  704. package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
  705. package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -2
  706. package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
  707. package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
  708. package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
  709. package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
  710. package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
  711. package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
  712. package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
  713. package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
  714. package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
  715. package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
  716. package/lib/typescript/ui/uiConfig/RouteParams.d.ts +14 -0
  717. package/lib/typescript/utils/ApiUtils.d.ts +61 -0
  718. package/lib/typescript/utils/ExecTaskUtils.d.ts +10 -4
  719. package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
  720. package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -3
  721. package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
  722. package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
  723. package/lib/typescript/utils/storage.d.ts +32 -0
  724. package/package.json +26 -26
  725. package/tsconfig.json +9 -9
  726. package/file_unzip.js +0 -5
  727. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -28
  728. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  729. package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
  730. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -32
  731. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  732. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -193
  733. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  734. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -20
  735. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  736. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -49
  737. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  738. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -107
  739. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  740. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -317
  741. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  742. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  743. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -276
  744. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  745. package/lib/commonjs/ui/screens/RTScanScreen.js +0 -118
  746. package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
  747. package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
  748. package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  749. package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
  750. package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
  751. package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  752. package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -158
  753. package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  754. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -9
  755. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  756. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -38
  757. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  758. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -86
  759. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  760. package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -287
  761. package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  762. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -80
  763. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  764. package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -253
  765. package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  766. package/lib/module/ui/screens/RTScanScreen.js +0 -93
  767. package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
  768. package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
  769. package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
  770. package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
  771. package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
  772. package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -3
  773. package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
  774. package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
  775. package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
  776. package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
  777. package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
  778. package/mobile-execution-lib-0.6.4.tgz +0 -0
@@ -3,57 +3,49 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
-
6
+ exports.default = exports.SnackBarType = void 0;
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
9
  var _reactNativePaper = require("react-native-paper");
13
-
14
- var _MaterialCommunityIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialCommunityIcons"));
15
-
16
- var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
17
-
10
+ var _vectorIcons = require("@expo/vector-icons");
18
11
  var _CommonStyles = require("../../styles/executionTasks/CommonStyles");
19
-
20
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- const DURATION_MEDIUM = 1000;
23
-
13
+ const DURATION_MEDIUM = 3000;
14
+ let SnackBarType = /*#__PURE__*/function (SnackBarType) {
15
+ SnackBarType[SnackBarType["SUCCESS"] = 0] = "SUCCESS";
16
+ SnackBarType[SnackBarType["FAILURE"] = 1] = "FAILURE";
17
+ SnackBarType[SnackBarType["WARNING"] = 2] = "WARNING";
18
+ return SnackBarType;
19
+ }({});
20
+ exports.SnackBarType = SnackBarType;
24
21
  const SnackbarCustom = _ref => {
25
22
  let {
26
23
  visible,
27
24
  duration = DURATION_MEDIUM,
28
25
  onDismiss,
29
26
  message,
30
- theme
27
+ theme,
28
+ type,
29
+ customBottom = 110
31
30
  } = _ref;
32
-
33
31
  const {
34
32
  current: opacity
35
33
  } = _react.default.useRef(new _reactNative.Animated.Value(0.0));
36
-
37
34
  const [hidden, setHidden] = _react.default.useState(!visible);
38
-
39
35
  const hideTimeout = _react.default.useRef(undefined);
40
-
41
36
  const {
42
37
  scale
43
38
  } = theme.animation;
44
-
45
39
  _react.default.useEffect(() => {
46
40
  return () => {
47
41
  if (hideTimeout.current) clearTimeout(hideTimeout.current);
48
42
  };
49
43
  }, []);
50
-
51
44
  _react.default.useLayoutEffect(() => {
52
45
  if (visible) {
53
46
  // show
54
47
  if (hideTimeout.current) clearTimeout(hideTimeout.current);
55
48
  setHidden(false);
56
-
57
49
  _reactNative.Animated.timing(opacity, {
58
50
  toValue: 1,
59
51
  duration: 200 * scale,
@@ -62,10 +54,8 @@ const SnackbarCustom = _ref => {
62
54
  let {
63
55
  finished
64
56
  } = _ref2;
65
-
66
57
  if (finished) {
67
58
  const isInfinity = duration === Number.POSITIVE_INFINITY || duration === Number.NEGATIVE_INFINITY;
68
-
69
59
  if (finished && !isInfinity) {
70
60
  hideTimeout.current = setTimeout(onDismiss, duration);
71
61
  }
@@ -74,7 +64,6 @@ const SnackbarCustom = _ref => {
74
64
  } else {
75
65
  // hide
76
66
  if (hideTimeout.current) clearTimeout(hideTimeout.current);
77
-
78
67
  _reactNative.Animated.timing(opacity, {
79
68
  toValue: 0,
80
69
  duration: 100 * scale,
@@ -87,15 +76,17 @@ const SnackbarCustom = _ref => {
87
76
  });
88
77
  }
89
78
  }, [visible, duration, opacity, scale, onDismiss]);
90
-
91
79
  const {
92
80
  colors,
93
81
  roundness
94
82
  } = theme;
95
83
  if (hidden) return null;
84
+ if (!message) return null;
96
85
  return /*#__PURE__*/_react.default.createElement(_reactNative.SafeAreaView, {
97
86
  pointerEvents: "box-none",
98
- style: [styles.wrapper]
87
+ style: [styles.wrapper, {
88
+ bottom: customBottom
89
+ }]
99
90
  }, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Surface, {
100
91
  pointerEvents: "box-none",
101
92
  accessibilityLiveRegion: "polite",
@@ -112,28 +103,32 @@ const SnackbarCustom = _ref => {
112
103
  backgroundColor: colors.onSurface
113
104
  }]
114
105
  }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
115
- style: styles.main
116
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
117
- name: 'check-circle-outline',
118
- color: '#ffffff',
119
- size: 24
106
+ style: type && type === SnackBarType.FAILURE ? styles.fail : type && type === SnackBarType.WARNING ? styles.warn : styles.main
107
+ }, type && type === SnackBarType.FAILURE ? /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
108
+ name: "exclamationcircleo",
109
+ size: 20,
110
+ color: "white"
111
+ }) : /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
112
+ name: "checkcircleo",
113
+ size: 20,
114
+ color: "white"
120
115
  }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
121
116
  style: styles.messageStyle
122
- }, message), /*#__PURE__*/_react.default.createElement(_MaterialCommunityIcons.default, {
123
- name: 'close-circle-outline',
124
- color: '#ffffff',
125
- size: 24,
117
+ }, message), /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
118
+ name: "close",
119
+ size: 16,
120
+ color: "white",
126
121
  onPress: () => {
127
122
  setHidden(true);
128
123
  }
129
124
  }))));
130
125
  };
131
-
132
126
  const styles = _reactNative.StyleSheet.create({
133
127
  wrapper: {
134
128
  position: 'absolute',
135
129
  bottom: 110,
136
- width: '100%'
130
+ width: '100%',
131
+ zIndex: 1000
137
132
  },
138
133
  container: {
139
134
  elevation: 6,
@@ -146,7 +141,22 @@ const styles = _reactNative.StyleSheet.create({
146
141
  main: {
147
142
  padding: 16,
148
143
  flexDirection: 'row',
149
- backgroundColor: '#10B981',
144
+ alignItems: 'center',
145
+ backgroundColor: '#059669',
146
+ flex: 1
147
+ },
148
+ fail: {
149
+ padding: 16,
150
+ flexDirection: 'row',
151
+ alignItems: 'center',
152
+ backgroundColor: '#DC2626',
153
+ flex: 1
154
+ },
155
+ warn: {
156
+ padding: 16,
157
+ flexDirection: 'row',
158
+ alignItems: 'center',
159
+ backgroundColor: '#D97706',
150
160
  flex: 1
151
161
  },
152
162
  messageStyle: {
@@ -158,8 +168,6 @@ const styles = _reactNative.StyleSheet.create({
158
168
  fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
159
169
  }
160
170
  });
161
-
162
171
  var _default = (0, _reactNativePaper.withTheme)(SnackbarCustom);
163
-
164
172
  exports.default = _default;
165
173
  //# sourceMappingURL=SnackBarCustom.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DURATION_MEDIUM","SnackbarCustom","visible","duration","onDismiss","message","theme","current","opacity","React","useRef","Animated","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","colors","roundness","styles","wrapper","container","borderRadius","transform","interpolate","inputRange","outputRange","backgroundColor","onSurface","main","messageStyle","StyleSheet","create","position","bottom","width","elevation","flexDirection","justifyContent","alignItems","margin","padding","flex","marginStart","marginEnd","color","fontWeight","fontFamily","Fonts","IBMPlexSans_600SemiBold","withTheme"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Animated,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme } from 'react-native-paper';\nimport MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n /**\n * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called.\n */\n onDismiss: () => void;\n /**\n * Text content of the Snackbar.\n */\n message: string;\n theme: ReactNativePaper.Theme;\n}\nconst DURATION_MEDIUM = 1000;\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(!visible);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n return (\n <SafeAreaView pointerEvents=\"box-none\" style={[styles.wrapper]}>\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View style={styles.main}>\n <Icon name={'check-circle-outline'} color={'#ffffff'} size={24} />\n <Text style={styles.messageStyle}>{message}</Text>\n <MaterialCommunityIcon\n name={'close-circle-outline'}\n color={'#ffffff'}\n size={24}\n onPress={() => {\n setHidden(true);\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 4,\n },\n main: {\n padding: 16,\n flexDirection: 'row',\n backgroundColor: '#10B981',\n flex: 1,\n },\n messageStyle: {\n flex: 1,\n marginStart: 20,\n marginEnd: 20,\n color: '#ffffff',\n fontWeight: '600',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":";;;;;;;AAAA;;AACA;;AASA;;AACA;;AACA;;AACA;;;;AAeA,MAAMA,eAAe,GAAG,IAAxB;;AAEA,MAAMC,cAAc,GAAG,QAMF;EAAA,IANG;IACtBC,OADsB;IAEtBC,QAAQ,GAAGH,eAFW;IAGtBI,SAHsB;IAItBC,OAJsB;IAKtBC;EALsB,CAMH;;EACnB,MAAM;IAAEC,OAAO,EAAEC;EAAX,IAAuBC,cAAA,CAAMC,MAAN,CAC3B,IAAIC,qBAAA,CAASC,KAAb,CAAmB,GAAnB,CAD2B,CAA7B;;EAGA,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsBL,cAAA,CAAMM,QAAN,CAAwB,CAACb,OAAzB,CAA5B;;EAEA,MAAMc,WAAW,GAAGP,cAAA,CAAMC,MAAN,CAAyCO,SAAzC,CAApB;;EACA,MAAM;IAAEC;EAAF,IAAYZ,KAAK,CAACa,SAAxB;;EAEAV,cAAA,CAAMW,SAAN,CAAgB,MAAM;IACpB,OAAO,MAAM;MACX,IAAIJ,WAAW,CAACT,OAAhB,EAAyBc,YAAY,CAACL,WAAW,CAACT,OAAb,CAAZ;IAC1B,CAFD;EAGD,CAJD,EAIG,EAJH;;EAMAE,cAAA,CAAMa,eAAN,CAAsB,MAAM;IAC1B,IAAIpB,OAAJ,EAAa;MACX;MACA,IAAIc,WAAW,CAAC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E;EANL,CANoB;EAc/BO,IAAI,EAAE;IACJY,OAAO,EAAE,EADL;IAEJJ,aAAa,EAAE,KAFX;IAGJV,eAAe,EAAE,SAHb;IAIJe,IAAI,EAAE;EAJF,CAdyB;EAoB/BZ,YAAY,EAAE;IACZY,IAAI,EAAE,CADM;IAEZC,WAAW,EAAE,EAFD;IAGZC,SAAS,EAAE,EAHC;IAIZC,KAAK,EAAE,SAJK;IAKZC,UAAU,EAAE,KALA;IAMZC,UAAU,EAAEC,mBAAA,CAAMC;EANN;AApBiB,CAAlB,CAAf;;eA8Be,IAAAC,2BAAA,EAAUjE,cAAV,C"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativePaper","_vectorIcons","_CommonStyles","obj","__esModule","default","DURATION_MEDIUM","SnackBarType","exports","SnackbarCustom","_ref","visible","duration","onDismiss","message","theme","type","customBottom","current","opacity","React","useRef","Animated","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","_ref2","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","_ref3","colors","roundness","createElement","SafeAreaView","pointerEvents","style","styles","wrapper","bottom","Surface","accessibilityLiveRegion","container","borderRadius","transform","interpolate","inputRange","outputRange","backgroundColor","onSurface","View","FAILURE","fail","WARNING","warn","main","AntDesign","name","size","color","Text","messageStyle","onPress","StyleSheet","create","position","width","zIndex","elevation","flexDirection","justifyContent","alignItems","margin","padding","flex","marginStart","marginEnd","fontWeight","fontFamily","Fonts","IBMPlexSans_600SemiBold","_default","withTheme"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Animated,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme } from 'react-native-paper';\nimport { AntDesign } from '@expo/vector-icons';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n /**\n * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called.\n */\n onDismiss: () => void;\n /**\n * Text content of the Snackbar.\n */\n message: string;\n type?: SnackBarType;\n theme: ReactNativePaper.Theme;\n customBottom?: number;\n}\nconst DURATION_MEDIUM = 3000;\n\nexport enum SnackBarType {\n SUCCESS,\n FAILURE,\n WARNING,\n}\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n type,\n customBottom = 110,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(!visible);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n if (!message) return null;\n\n return (\n <SafeAreaView\n pointerEvents=\"box-none\"\n style={[styles.wrapper, { bottom: customBottom }]}\n >\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View\n style={\n type && type === SnackBarType.FAILURE\n ? styles.fail\n : type && type === SnackBarType.WARNING\n ? styles.warn\n : styles.main\n }\n >\n {type && type === SnackBarType.FAILURE ? (\n <AntDesign name=\"exclamationcircleo\" size={20} color=\"white\" />\n ) : (\n <AntDesign name=\"checkcircleo\" size={20} color=\"white\" />\n )}\n <Text style={styles.messageStyle}>{message}</Text>\n <AntDesign\n name=\"close\"\n size={16}\n color=\"white\"\n onPress={() => {\n setHidden(true);\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n zIndex: 1000,\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 4,\n },\n main: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#059669',\n flex: 1,\n },\n fail: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#DC2626',\n flex: 1,\n },\n warn: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#D97706',\n flex: 1,\n },\n messageStyle: {\n flex: 1,\n marginStart: 20,\n marginEnd: 20,\n color: '#ffffff',\n fontWeight: '600',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAC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,YAAY,EAAE;IACZa,IAAI,EAAE,CAAC;IACPC,WAAW,EAAE,EAAE;IACfC,SAAS,EAAE,EAAE;IACbjB,KAAK,EAAE,SAAS;IAChBkB,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,mBAAK,CAACC;EACpB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAEY,IAAAC,2BAAS,EAACxF,cAAc,CAAC;AAAAD,OAAA,CAAAH,OAAA,GAAA2F,QAAA"}
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ 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); }
10
+ 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; }
11
+ const SplitTextInput = _ref => {
12
+ let {
13
+ styles,
14
+ value,
15
+ onChange,
16
+ maxLength,
17
+ keyboardType,
18
+ hasError
19
+ } = _ref;
20
+ const inputRef = (0, _react.useRef)();
21
+ const boxArray = new Array(maxLength).fill(0);
22
+ const [isInputBoxFocused, setIsInputBoxFocused] = (0, _react.useState)(false);
23
+ const handleOnPress = () => {
24
+ setIsInputBoxFocused(true);
25
+ inputRef.current.focus();
26
+ };
27
+ const handleOnBlur = () => {
28
+ setIsInputBoxFocused(false);
29
+ };
30
+ const boxDigit = (_, index) => {
31
+ const digit = value[index] || '';
32
+ const isCurrentValue = index === value.length;
33
+ const isLastValue = index === maxLength - 1;
34
+ const isCodeComplete = value.length === maxLength;
35
+ const isValueFocused = isCurrentValue || isLastValue && isCodeComplete;
36
+ const splitBoxesStyle = Boolean(hasError) ? widgetStyles.errorSplitBoxes : isInputBoxFocused && isValueFocused || value[index] ? widgetStyles.focusedSplitBoxes : widgetStyles.splitBoxes;
37
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
38
+ style: splitBoxesStyle,
39
+ key: index
40
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
41
+ style: styles
42
+ }, digit));
43
+ };
44
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
45
+ onPress: handleOnPress,
46
+ style: widgetStyles.splitContainer
47
+ }, boxArray.map(boxDigit)), /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
48
+ style: widgetStyles.textInputHidden,
49
+ value: value,
50
+ onChangeText: onChange,
51
+ maxLength: maxLength,
52
+ ref: inputRef,
53
+ onBlur: handleOnBlur,
54
+ keyboardType: keyboardType
55
+ }));
56
+ };
57
+ var _default = SplitTextInput;
58
+ exports.default = _default;
59
+ const widgetStyles = _reactNative.StyleSheet.create({
60
+ splitContainer: {
61
+ width: '100%',
62
+ flexDirection: 'row',
63
+ justifyContent: 'space-evenly'
64
+ },
65
+ splitBoxes: {
66
+ borderColor: '#dddddd',
67
+ borderWidth: 2,
68
+ borderRadius: 5,
69
+ padding: 12,
70
+ minWidth: 50
71
+ },
72
+ focusedSplitBoxes: {
73
+ borderColor: '#666666',
74
+ borderWidth: 2,
75
+ borderRadius: 5,
76
+ padding: 12,
77
+ minWidth: 50
78
+ },
79
+ errorSplitBoxes: {
80
+ borderColor: '#DC2626',
81
+ borderWidth: 2,
82
+ borderRadius: 5,
83
+ padding: 12,
84
+ minWidth: 50
85
+ },
86
+ textInputHidden: {
87
+ height: 30,
88
+ width: 300,
89
+ position: 'absolute',
90
+ opacity: 0
91
+ }
92
+ });
93
+ //# sourceMappingURL=SplitTextInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","SplitTextInput","_ref","styles","value","onChange","maxLength","keyboardType","hasError","inputRef","useRef","boxArray","Array","fill","isInputBoxFocused","setIsInputBoxFocused","useState","handleOnPress","current","focus","handleOnBlur","boxDigit","_","index","digit","isCurrentValue","length","isLastValue","isCodeComplete","isValueFocused","splitBoxesStyle","Boolean","widgetStyles","errorSplitBoxes","focusedSplitBoxes","splitBoxes","createElement","View","style","Text","Fragment","Pressable","onPress","splitContainer","map","TextInput","textInputHidden","onChangeText","ref","onBlur","_default","exports","StyleSheet","create","width","flexDirection","justifyContent","borderColor","borderWidth","borderRadius","padding","minWidth","height","position","opacity"],"sources":["SplitTextInput.tsx"],"sourcesContent":["import {\n View,\n Text,\n Pressable,\n StyleSheet,\n TextInput,\n KeyboardTypeOptions,\n} from 'react-native';\nimport React, { useRef, useState } from 'react';\n\nexport interface SplitTextInputProps {\n styles: any;\n value: string;\n onChange: (text: string) => void;\n maxLength: number;\n keyboardType: KeyboardTypeOptions;\n hasError: boolean;\n}\n\nconst SplitTextInput = ({\n styles,\n value,\n onChange,\n maxLength,\n keyboardType,\n hasError,\n}: SplitTextInputProps) => {\n const inputRef: any = useRef();\n const boxArray = new Array(maxLength).fill(0);\n const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);\n\n const handleOnPress = () => {\n setIsInputBoxFocused(true);\n inputRef.current.focus();\n };\n\n const handleOnBlur = () => {\n setIsInputBoxFocused(false);\n };\n\n const boxDigit = (_: number, index: number) => {\n const digit = value[index] || '';\n\n const isCurrentValue = index === value.length;\n const isLastValue = index === maxLength - 1;\n const isCodeComplete = value.length === maxLength;\n\n const isValueFocused = isCurrentValue || (isLastValue && isCodeComplete);\n\n const splitBoxesStyle = Boolean(hasError)\n ? widgetStyles.errorSplitBoxes\n : (isInputBoxFocused && isValueFocused) || value[index]\n ? widgetStyles.focusedSplitBoxes\n : widgetStyles.splitBoxes;\n\n return (\n <View style={splitBoxesStyle} key={index}>\n <Text style={styles}>{digit}</Text>\n </View>\n );\n };\n\n return (\n <>\n <Pressable onPress={handleOnPress} style={widgetStyles.splitContainer}>\n {boxArray.map(boxDigit)}\n </Pressable>\n <TextInput\n style={widgetStyles.textInputHidden}\n value={value}\n onChangeText={onChange}\n maxLength={maxLength}\n ref={inputRef}\n onBlur={handleOnBlur}\n keyboardType={keyboardType}\n />\n </>\n );\n};\n\nexport default SplitTextInput;\n\nconst widgetStyles = StyleSheet.create({\n splitContainer: {\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'space-evenly',\n },\n splitBoxes: {\n borderColor: '#dddddd',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n focusedSplitBoxes: {\n borderColor: '#666666',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n errorSplitBoxes: {\n borderColor: '#DC2626',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n textInputHidden: {\n height: 30,\n width: 300,\n position: 'absolute',\n opacity: 0,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAgD,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC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AAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDf,eAAe,EAAE;IACfgB,MAAM,EAAE,EAAE;IACVR,KAAK,EAAE,GAAG;IACVS,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE;EACX;AACF,CAAC,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ 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); }
10
+ 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; }
11
+ const TabsComponent = props => {
12
+ const [activeTab, setActiveTab] = (0, _react.useState)(props.initialTab.title);
13
+ const handleTabPress = tabName => {
14
+ setActiveTab(tabName);
15
+ props.onTabChange(tabName);
16
+ };
17
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
18
+ style: styles.container
19
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
20
+ style: {
21
+ flexDirection: 'row'
22
+ }
23
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
24
+ horizontal: true,
25
+ showsHorizontalScrollIndicator: false,
26
+ contentContainerStyle: styles.tabsContainer
27
+ }, props.tabs.map(tab => {
28
+ return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
29
+ key: tab.title,
30
+ style: [styles.tabItem, activeTab === tab.title && styles.activeTab, tab.titleStyle ? tab.titleStyle : {}],
31
+ onPress: () => handleTabPress(tab.title)
32
+ }, props.renderTabItem(tab));
33
+ }))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
34
+ style: styles.contentContainer
35
+ }, props.renderBody(activeTab)));
36
+ };
37
+ const styles = _reactNative.StyleSheet.create({
38
+ container: {
39
+ flex: 1
40
+ },
41
+ tabsContainer: {
42
+ flexDirection: 'row',
43
+ justifyContent: 'space-around',
44
+ backgroundColor: '#f0f0f0',
45
+ flexGrow: 1,
46
+ paddingHorizontal: 20
47
+ },
48
+ tabItem: {
49
+ // width: 200,
50
+ alignItems: 'center',
51
+ paddingVertical: 10,
52
+ marginHorizontal: 10
53
+ },
54
+ activeTab: {
55
+ borderBottomWidth: 2,
56
+ borderBottomColor: 'blue'
57
+ },
58
+ contentContainer: {
59
+ flex: 1
60
+ }
61
+ });
62
+ var _default = TabsComponent;
63
+ exports.default = _default;
64
+ //# sourceMappingURL=TabsComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","TabsComponent","props","activeTab","setActiveTab","useState","initialTab","title","handleTabPress","tabName","onTabChange","createElement","View","style","styles","container","flexDirection","ScrollView","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","tabsContainer","tabs","map","tab","TouchableOpacity","tabItem","titleStyle","onPress","renderTabItem","contentContainer","renderBody","StyleSheet","create","flex","justifyContent","backgroundColor","flexGrow","paddingHorizontal","alignItems","paddingVertical","marginHorizontal","borderBottomWidth","borderBottomColor","_default","exports"],"sources":["TabsComponent.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { View, TouchableOpacity, StyleSheet, ScrollView } from 'react-native';\n\nexport interface Tab {\n title: string;\n count: number;\n titleStyle?: any;\n}\n\ninterface TabsComponentProps {\n tabs: Array<Tab>;\n initialTab: Tab;\n onTabChange: (currentTab: string) => void;\n renderTabItem: (tab: Tab) => JSX.Element;\n renderBody: (currentTab: string) => JSX.Element | null;\n}\n\nconst TabsComponent = (props: TabsComponentProps) => {\n const [activeTab, setActiveTab] = useState(props.initialTab.title);\n\n const handleTabPress = (tabName: string) => {\n setActiveTab(tabName);\n props.onTabChange(tabName);\n };\n\n return (\n <View style={styles.container}>\n <View style={{ flexDirection: 'row' }}>\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n contentContainerStyle={styles.tabsContainer}\n >\n {props.tabs.map((tab: Tab) => {\n return (\n <TouchableOpacity\n key={tab.title}\n style={[\n styles.tabItem,\n activeTab === tab.title && styles.activeTab,\n tab.titleStyle ? tab.titleStyle : {},\n ]}\n onPress={() => handleTabPress(tab.title)}\n >\n {props.renderTabItem(tab)}\n </TouchableOpacity>\n );\n })}\n </ScrollView>\n </View>\n\n {/* Render content based on the active tab */}\n <View style={styles.contentContainer}>{props.renderBody(activeTab)}</View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n tabsContainer: {\n flexDirection: 'row',\n justifyContent: 'space-around',\n backgroundColor: '#f0f0f0',\n flexGrow: 1,\n paddingHorizontal: 20,\n },\n tabItem: {\n // width: 200,\n alignItems: 'center',\n paddingVertical: 10,\n marginHorizontal: 10,\n },\n activeTab: {\n borderBottomWidth: 2,\n borderBottomColor: 'blue',\n },\n contentContainer: {\n flex: 1,\n },\n});\n\nexport default TabsComponent;\n"],"mappings":";;;;;;AAAA,IAAAA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AAC6B,UAAU,CAAC5B,SAAS,CAAQ,CACrE,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAGkB,uBAAU,CAACC,MAAM,CAAC;EAC/BlB,SAAS,EAAE;IACTmB,IAAI,EAAE;EACR,CAAC;EACDb,aAAa,EAAE;IACbL,aAAa,EAAE,KAAK;IACpBmB,cAAc,EAAE,cAAc;IAC9BC,eAAe,EAAE,SAAS;IAC1BC,QAAQ,EAAE,CAAC;IACXC,iBAAiB,EAAE;EACrB,CAAC;EACDZ,OAAO,EAAE;IACP;IACAa,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,gBAAgB,EAAE;EACpB,CAAC;EACDtC,SAAS,EAAE;IACTuC,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAE;EACrB,CAAC;EACDb,gBAAgB,EAAE;IAChBI,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,IAAAU,QAAA,GAEY3C,aAAa;AAAA4C,OAAA,CAAA3D,OAAA,GAAA0D,QAAA"}
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.showToast = showToast;
7
-
8
7
  var _reactNative = require("react-native");
9
-
10
8
  function showToast(message) {
11
9
  if (_reactNative.Platform.OS === 'android') _reactNative.ToastAndroid.show(message, _reactNative.ToastAndroid.SHORT);else {
12
10
  _reactNative.Alert.alert('Info', message);
@@ -1 +1 @@
1
- {"version":3,"names":["showToast","message","Platform","OS","ToastAndroid","show","SHORT","Alert","alert"],"sources":["Toaster.ts"],"sourcesContent":["import { Alert, Platform, ToastAndroid } from 'react-native';\n\nexport function showToast(message: string) {\n if (Platform.OS === 'android') ToastAndroid.show(message, ToastAndroid.SHORT);\n else {\n Alert.alert('Info', message);\n }\n}\n"],"mappings":";;;;;;;AAAA;;AAEO,SAASA,SAAT,CAAmBC,OAAnB,EAAoC;EACzC,IAAIC,qBAAA,CAASC,EAAT,KAAgB,SAApB,EAA+BC,yBAAA,CAAaC,IAAb,CAAkBJ,OAAlB,EAA2BG,yBAAA,CAAaE,KAAxC,EAA/B,KACK;IACHC,kBAAA,CAAMC,KAAN,CAAY,MAAZ,EAAoBP,OAApB;EACD;AACF"}
1
+ {"version":3,"names":["_reactNative","require","showToast","message","Platform","OS","ToastAndroid","show","SHORT","Alert","alert"],"sources":["Toaster.ts"],"sourcesContent":["import { Alert, Platform, ToastAndroid } from 'react-native';\n\nexport function showToast(message: string) {\n if (Platform.OS === 'android') ToastAndroid.show(message, ToastAndroid.SHORT);\n else {\n Alert.alert('Info', message);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,SAASC,SAASA,CAACC,OAAe,EAAE;EACzC,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAEC,yBAAY,CAACC,IAAI,CAACJ,OAAO,EAAEG,yBAAY,CAACE,KAAK,CAAC,CAAC,KACzE;IACHC,kBAAK,CAACC,KAAK,CAAC,MAAM,EAAEP,OAAO,CAAC;EAC9B;AACF"}
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ERROR_TAGS = void 0;
7
- let ERROR_TAGS;
8
- exports.ERROR_TAGS = ERROR_TAGS;
9
-
10
- (function (ERROR_TAGS) {
7
+ let ERROR_TAGS = /*#__PURE__*/function (ERROR_TAGS) {
11
8
  ERROR_TAGS["FCM"] = "FCM";
12
9
  ERROR_TAGS["EXECUTION_TASK"] = "EXECUTION_TASK";
13
- })(ERROR_TAGS || (exports.ERROR_TAGS = ERROR_TAGS = {}));
10
+ return ERROR_TAGS;
11
+ }({});
12
+ exports.ERROR_TAGS = ERROR_TAGS;
14
13
  //# sourceMappingURL=DispatchSDKConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ERROR_TAGS"],"sources":["DispatchSDKConfig.ts"],"sourcesContent":["export const enum ERROR_TAGS {\n FCM = 'FCM',\n EXECUTION_TASK = 'EXECUTION_TASK',\n}\n"],"mappings":";;;;;;IAAkBA,U;;;WAAAA,U;EAAAA,U;EAAAA,U;GAAAA,U,0BAAAA,U"}
1
+ {"version":3,"names":["ERROR_TAGS","exports"],"sources":["DispatchSDKConfig.ts"],"sourcesContent":["export const enum ERROR_TAGS {\n FCM = 'FCM',\n EXECUTION_TASK = 'EXECUTION_TASK',\n}\n"],"mappings":";;;;;;IAAkBA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAAC,OAAA,CAAAD,UAAA,GAAAA,UAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ENDPOINTS = exports.API_CONFIG = void 0;
7
+ const ENDPOINTS = {
8
+ JOB_REMOVAL: dispatchId => `/dispatches/${dispatchId}/multiple-jobs`,
9
+ // NEW CODE
10
+ BULK_JOB_UPDATE: dispatchId => `/api/v2/produce/${dispatchId}/job-bulk-update`
11
+ };
12
+ exports.ENDPOINTS = ENDPOINTS;
13
+ const API_CONFIG = {
14
+ timeout: 15000 // timeout in millis i.e 15s
15
+ };
16
+ exports.API_CONFIG = API_CONFIG;
17
+ //# sourceMappingURL=apiConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ENDPOINTS","JOB_REMOVAL","dispatchId","BULK_JOB_UPDATE","exports","API_CONFIG","timeout"],"sources":["apiConstants.ts"],"sourcesContent":["export const ENDPOINTS = {\n JOB_REMOVAL: (dispatchId: string) =>\n `/dispatches/${dispatchId}/multiple-jobs`,\n // NEW CODE\n BULK_JOB_UPDATE: (dispatchId: string) =>\n `/api/v2/produce/${dispatchId}/job-bulk-update`,\n};\n\nexport const API_CONFIG = {\n timeout: 15000, // timeout in millis i.e 15s\n};\n"],"mappings":";;;;;;AAAO,MAAMA,SAAS,GAAG;EACvBC,WAAW,EAAGC,UAAkB,IAC7B,eAAcA,UAAW,gBAAe;EAC3C;EACAC,eAAe,EAAGD,UAAkB,IACjC,mBAAkBA,UAAW;AAClC,CAAC;AAACE,OAAA,CAAAJ,SAAA,GAAAA,SAAA;AAEK,MAAMK,UAAU,GAAG;EACxBC,OAAO,EAAE,KAAK,CAAE;AAClB,CAAC;AAACF,OAAA,CAAAC,UAAA,GAAAA,UAAA"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.LOCAL_STORAGE_KEY_PREFIX = exports.DEFAULT_SIGN_ET_MESSAGE = exports.DEFAULT_PICKUP_TITLE = exports.DEFAULT_PICKUP_MESSAGE = exports.DEFAULT_NOTIFICATION_TITLE = exports.DEFAULT_NOTIFICATION_DESCRIPTION = exports.DEFAULT_INTERVAL = exports.DEFAULT_DELIVER_TITLE = exports.DEFAULT_DELIVER_MESSAGE = void 0;
6
+ exports.REASON_NOT_USED = exports.LOCAL_STORAGE_KEY_PREFIX = exports.GO_BACK_EVENT_CODE = exports.DEFAULT_SIGN_ET_MESSAGE = exports.DEFAULT_PICKUP_TITLE = exports.DEFAULT_PICKUP_MESSAGE = exports.DEFAULT_NOTIFICATION_TITLE = exports.DEFAULT_NOTIFICATION_DESCRIPTION = exports.DEFAULT_INTERVAL = exports.DEFAULT_DELIVER_TITLE = exports.DEFAULT_DELIVER_MESSAGE = void 0;
7
7
  const LOCAL_STORAGE_KEY_PREFIX = '@dispatch-sdk:';
8
8
  exports.LOCAL_STORAGE_KEY_PREFIX = LOCAL_STORAGE_KEY_PREFIX;
9
9
  const DEFAULT_NOTIFICATION_TITLE = 'Dispatch Sync Manager';
@@ -14,12 +14,16 @@ const DEFAULT_INTERVAL = 10000;
14
14
  exports.DEFAULT_INTERVAL = DEFAULT_INTERVAL;
15
15
  const DEFAULT_PICKUP_TITLE = 'Pickup Order';
16
16
  exports.DEFAULT_PICKUP_TITLE = DEFAULT_PICKUP_TITLE;
17
- const DEFAULT_PICKUP_MESSAGE = 'Confirm pickup of $ order(s)';
17
+ const DEFAULT_PICKUP_MESSAGE = 'Confirm Pickup of $ orders';
18
18
  exports.DEFAULT_PICKUP_MESSAGE = DEFAULT_PICKUP_MESSAGE;
19
19
  const DEFAULT_DELIVER_TITLE = 'Drop Order';
20
20
  exports.DEFAULT_DELIVER_TITLE = DEFAULT_DELIVER_TITLE;
21
- const DEFAULT_DELIVER_MESSAGE = 'Confirm drop of $ order(s)';
21
+ const DEFAULT_DELIVER_MESSAGE = 'Confirm Drop of $ orders';
22
22
  exports.DEFAULT_DELIVER_MESSAGE = DEFAULT_DELIVER_MESSAGE;
23
23
  const DEFAULT_SIGN_ET_MESSAGE = 'Please capture a clear signature from the customer';
24
24
  exports.DEFAULT_SIGN_ET_MESSAGE = DEFAULT_SIGN_ET_MESSAGE;
25
+ const REASON_NOT_USED = 'NOT_TO_BE_USED';
26
+ exports.REASON_NOT_USED = REASON_NOT_USED;
27
+ const GO_BACK_EVENT_CODE = 'E-099';
28
+ exports.GO_BACK_EVENT_CODE = GO_BACK_EVENT_CODE;
25
29
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["LOCAL_STORAGE_KEY_PREFIX","DEFAULT_NOTIFICATION_TITLE","DEFAULT_NOTIFICATION_DESCRIPTION","DEFAULT_INTERVAL","DEFAULT_PICKUP_TITLE","DEFAULT_PICKUP_MESSAGE","DEFAULT_DELIVER_TITLE","DEFAULT_DELIVER_MESSAGE","DEFAULT_SIGN_ET_MESSAGE"],"sources":["constants.ts"],"sourcesContent":["export const LOCAL_STORAGE_KEY_PREFIX = '@dispatch-sdk:';\nexport const DEFAULT_NOTIFICATION_TITLE = 'Dispatch Sync Manager';\nexport const DEFAULT_NOTIFICATION_DESCRIPTION = 'Syncing Events & Files';\nexport const DEFAULT_INTERVAL = 10000;\nexport const DEFAULT_PICKUP_TITLE = 'Pickup Order'\nexport const DEFAULT_PICKUP_MESSAGE = 'Confirm pickup of $ order(s)'\nexport const DEFAULT_DELIVER_TITLE = 'Drop Order'\nexport const DEFAULT_DELIVER_MESSAGE = 'Confirm drop of $ order(s)'\nexport const DEFAULT_SIGN_ET_MESSAGE =\n 'Please capture a clear signature from the customer';\n"],"mappings":";;;;;;AAAO,MAAMA,wBAAwB,GAAG,gBAAjC;;AACA,MAAMC,0BAA0B,GAAG,uBAAnC;;AACA,MAAMC,gCAAgC,GAAG,wBAAzC;;AACA,MAAMC,gBAAgB,GAAG,KAAzB;;AACA,MAAMC,oBAAoB,GAAG,cAA7B;;AACA,MAAMC,sBAAsB,GAAG,8BAA/B;;AACA,MAAMC,qBAAqB,GAAG,YAA9B;;AACA,MAAMC,uBAAuB,GAAG,4BAAhC;;AACA,MAAMC,uBAAuB,GAClC,oDADK"}
1
+ {"version":3,"names":["LOCAL_STORAGE_KEY_PREFIX","exports","DEFAULT_NOTIFICATION_TITLE","DEFAULT_NOTIFICATION_DESCRIPTION","DEFAULT_INTERVAL","DEFAULT_PICKUP_TITLE","DEFAULT_PICKUP_MESSAGE","DEFAULT_DELIVER_TITLE","DEFAULT_DELIVER_MESSAGE","DEFAULT_SIGN_ET_MESSAGE","REASON_NOT_USED","GO_BACK_EVENT_CODE"],"sources":["constants.ts"],"sourcesContent":["export const LOCAL_STORAGE_KEY_PREFIX = '@dispatch-sdk:';\nexport const DEFAULT_NOTIFICATION_TITLE = 'Dispatch Sync Manager';\nexport const DEFAULT_NOTIFICATION_DESCRIPTION = 'Syncing Events & Files';\nexport const DEFAULT_INTERVAL = 10000;\nexport const DEFAULT_PICKUP_TITLE = 'Pickup Order';\nexport const DEFAULT_PICKUP_MESSAGE = 'Confirm Pickup of $ orders';\nexport const DEFAULT_DELIVER_TITLE = 'Drop Order';\nexport const DEFAULT_DELIVER_MESSAGE = 'Confirm Drop of $ orders';\nexport const DEFAULT_SIGN_ET_MESSAGE =\n 'Please capture a clear signature from the customer';\nexport const REASON_NOT_USED = 'NOT_TO_BE_USED';\nexport const GO_BACK_EVENT_CODE = 'E-099';\n"],"mappings":";;;;;;AAAO,MAAMA,wBAAwB,GAAG,gBAAgB;AAACC,OAAA,CAAAD,wBAAA,GAAAA,wBAAA;AAClD,MAAME,0BAA0B,GAAG,uBAAuB;AAACD,OAAA,CAAAC,0BAAA,GAAAA,0BAAA;AAC3D,MAAMC,gCAAgC,GAAG,wBAAwB;AAACF,OAAA,CAAAE,gCAAA,GAAAA,gCAAA;AAClE,MAAMC,gBAAgB,GAAG,KAAK;AAACH,OAAA,CAAAG,gBAAA,GAAAA,gBAAA;AAC/B,MAAMC,oBAAoB,GAAG,cAAc;AAACJ,OAAA,CAAAI,oBAAA,GAAAA,oBAAA;AAC5C,MAAMC,sBAAsB,GAAG,4BAA4B;AAACL,OAAA,CAAAK,sBAAA,GAAAA,sBAAA;AAC5D,MAAMC,qBAAqB,GAAG,YAAY;AAACN,OAAA,CAAAM,qBAAA,GAAAA,qBAAA;AAC3C,MAAMC,uBAAuB,GAAG,0BAA0B;AAACP,OAAA,CAAAO,uBAAA,GAAAA,uBAAA;AAC3D,MAAMC,uBAAuB,GAClC,oDAAoD;AAACR,OAAA,CAAAQ,uBAAA,GAAAA,uBAAA;AAChD,MAAMC,eAAe,GAAG,gBAAgB;AAACT,OAAA,CAAAS,eAAA,GAAAA,eAAA;AACzC,MAAMC,kBAAkB,GAAG,OAAO;AAACV,OAAA,CAAAU,kBAAA,GAAAA,kBAAA"}
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var StatusCode;
8
-
9
- (function (StatusCode) {
7
+ var StatusCode = /*#__PURE__*/function (StatusCode) {
10
8
  StatusCode[StatusCode["Unauthorized"] = 401] = "Unauthorized";
11
9
  StatusCode[StatusCode["Forbidden"] = 403] = "Forbidden";
12
10
  StatusCode[StatusCode["TooManyRequests"] = 429] = "TooManyRequests";
13
11
  StatusCode[StatusCode["InternalServerError"] = 500] = "InternalServerError";
14
- })(StatusCode || (StatusCode = {}));
15
-
12
+ return StatusCode;
13
+ }(StatusCode || {});
16
14
  var _default = StatusCode;
17
15
  exports.default = _default;
18
16
  //# sourceMappingURL=statuscode.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StatusCode"],"sources":["statuscode.ts"],"sourcesContent":["enum StatusCode {\n Unauthorized = 401,\n Forbidden = 403,\n TooManyRequests = 429,\n InternalServerError = 500,\n}\n\nexport default StatusCode;\n"],"mappings":";;;;;;IAAKA,U;;WAAAA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;eAOUA,U"}
1
+ {"version":3,"names":["StatusCode","_default","exports","default"],"sources":["statuscode.ts"],"sourcesContent":["enum StatusCode {\n Unauthorized = 401,\n Forbidden = 403,\n TooManyRequests = 429,\n InternalServerError = 500,\n}\n\nexport default StatusCode;\n"],"mappings":";;;;;;IAAKA,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA,EAAVA,UAAU;AAAA,IAAAC,QAAA,GAOAD,UAAU;AAAAE,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.BaseError = void 0;
7
-
8
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
-
7
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
9
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
10
  /**
11
11
  * A general error class that should be used for all errors in Expo modules.
12
12
  * Guarantees a `code` field that can be used to differentiate between different
@@ -15,16 +15,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
15
15
  class BaseError extends Error {
16
16
  constructor(code, message, info) {
17
17
  super(message);
18
-
19
18
  _defineProperty(this, "code", void 0);
20
-
21
19
  _defineProperty(this, "info", void 0);
22
-
23
20
  this.code = code;
24
21
  if (info) this.info = info;else this.info = message;
25
22
  }
26
-
27
23
  }
28
-
29
24
  exports.BaseError = BaseError;
30
25
  //# sourceMappingURL=BaseError.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseError","Error","constructor","code","message","info"],"sources":["BaseError.ts"],"sourcesContent":["/**\n * A general error class that should be used for all errors in Expo modules.\n * Guarantees a `code` field that can be used to differentiate between different\n * types of errors without further subclassing Error.\n */\nexport class BaseError extends Error {\n code: string;\n info?: any;\n\n constructor(code: string, message: string, info?: string) {\n super(message);\n this.code = code;\n if (info) this.info = info;\n else this.info = message;\n }\n}\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAMA,SAAN,SAAwBC,KAAxB,CAA8B;EAInCC,WAAW,CAACC,IAAD,EAAeC,OAAf,EAAgCC,IAAhC,EAA+C;IACxD,MAAMD,OAAN;;IADwD;;IAAA;;IAExD,KAAKD,IAAL,GAAYA,IAAZ;IACA,IAAIE,IAAJ,EAAU,KAAKA,IAAL,GAAYA,IAAZ,CAAV,KACK,KAAKA,IAAL,GAAYD,OAAZ;EACN;;AATkC"}
1
+ {"version":3,"names":["BaseError","Error","constructor","code","message","info","_defineProperty","exports"],"sources":["BaseError.ts"],"sourcesContent":["/**\n * A general error class that should be used for all errors in Expo modules.\n * Guarantees a `code` field that can be used to differentiate between different\n * types of errors without further subclassing Error.\n */\nexport class BaseError extends Error {\n code: string;\n info?: any;\n\n constructor(code: string, message: string, info?: string) {\n super(message);\n this.code = code;\n if (info) this.info = info;\n else this.info = message;\n }\n}\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAMA,SAAS,SAASC,KAAK,CAAC;EAInCC,WAAWA,CAACC,IAAY,EAAEC,OAAe,EAAEC,IAAa,EAAE;IACxD,KAAK,CAACD,OAAO,CAAC;IAACE,eAAA;IAAAA,eAAA;IACf,IAAI,CAACH,IAAI,GAAGA,IAAI;IAChB,IAAIE,IAAI,EAAE,IAAI,CAACA,IAAI,GAAGA,IAAI,CAAC,KACtB,IAAI,CAACA,IAAI,GAAGD,OAAO;EAC1B;AACF;AAACG,OAAA,CAAAP,SAAA,GAAAA,SAAA"}
@@ -3,10 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.SyncManagerNotInitialized = exports.MissingOrInvalidProps = exports.InvalidBaseURL = exports.InvalidArgumentsError = exports.AppSyncInitError = void 0;
7
- var BaseErrorCodes;
8
-
9
- (function (BaseErrorCodes) {
6
+ exports.default = exports.SyncManagerNotInitialized = exports.MultiObjectiveError = exports.MissingOrInvalidProps = exports.InvalidBaseURL = exports.InvalidArgumentsError = exports.AppSyncInitError = void 0;
7
+ var BaseErrorCodes = /*#__PURE__*/function (BaseErrorCodes) {
10
8
  BaseErrorCodes["InvalidArgumentError"] = "100100";
11
9
  BaseErrorCodes["InvalidBaseURL"] = "100101";
12
10
  BaseErrorCodes["SyncManagerNotInitialized"] = "100102";
@@ -27,8 +25,9 @@ var BaseErrorCodes;
27
25
  BaseErrorCodes["UNEXPECTED_ERROR"] = "100117";
28
26
  BaseErrorCodes["SYSTEM_TIME_CHECK_FAILED"] = "100118";
29
27
  BaseErrorCodes["ACCESS_TOKEN_EXPIRED"] = "100119";
30
- })(BaseErrorCodes || (BaseErrorCodes = {}));
31
-
28
+ BaseErrorCodes["MULTI_OBJECTIVE_ERROR"] = "100119";
29
+ return BaseErrorCodes;
30
+ }(BaseErrorCodes || {});
32
31
  const InvalidArgumentsError = 'Missing or invalid arguments';
33
32
  exports.InvalidArgumentsError = InvalidArgumentsError;
34
33
  const InvalidBaseURL = 'URL is invalid';
@@ -39,6 +38,8 @@ const AppSyncInitError = "App sync Manager not initialized.Please call initSyncM
39
38
  exports.AppSyncInitError = AppSyncInitError;
40
39
  const MissingOrInvalidProps = 'One or more prop(s) is missing or invalid';
41
40
  exports.MissingOrInvalidProps = MissingOrInvalidProps;
41
+ const MultiObjectiveError = 'Multiple objective not allowed as enableMultiObjectiveFlow is false.';
42
+ exports.MultiObjectiveError = MultiObjectiveError;
42
43
  var _default = BaseErrorCodes;
43
44
  exports.default = _default;
44
45
  //# sourceMappingURL=ErrorCodes.js.map