@os1-platform/dispatch-mobile 2.1.4 → 2.1.6

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 (258) hide show
  1. package/lib/commonjs/analytics/firebase/FirebaseLogging.js +15 -0
  2. package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -0
  3. package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +44 -0
  4. package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
  5. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +79 -0
  6. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
  7. package/lib/commonjs/analytics/sentry/SentryModels.js +6 -0
  8. package/lib/commonjs/analytics/sentry/SentryModels.js.map +1 -0
  9. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +75 -0
  10. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -0
  11. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +51 -0
  12. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  13. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +23 -0
  14. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  15. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +16 -0
  16. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  17. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +52 -2
  18. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  19. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -0
  20. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  21. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +33 -3
  22. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  23. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +16 -0
  24. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  25. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +23 -0
  26. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  27. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +41 -18
  28. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
  30. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
  32. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  33. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +18 -6
  34. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  35. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +62 -5
  36. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  37. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
  38. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +37 -0
  40. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
  42. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +16 -0
  44. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +44 -0
  46. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/scan/ScanET.js +40 -1
  48. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
  50. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  51. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
  52. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  54. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
  55. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  56. package/lib/commonjs/components/widgets/CancelOrderDialog.js +16 -0
  57. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  58. package/lib/commonjs/components/widgets/Card.js +17 -1
  59. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  60. package/lib/commonjs/components/widgets/ModalWidget.js +22 -2
  61. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
  62. package/lib/commonjs/components/widgets/SearchBar.js +9 -0
  63. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  64. package/lib/commonjs/components/widgets/SnackBarCustom.js +9 -0
  65. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  66. package/lib/commonjs/components/widgets/SplitTextInput.js +9 -0
  67. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  68. package/lib/commonjs/components/widgets/TabsComponent.js +12 -1
  69. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  70. package/lib/commonjs/index.js +46 -0
  71. package/lib/commonjs/index.js.map +1 -1
  72. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +3 -2
  73. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  74. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  75. package/lib/commonjs/styles/executionTasks/CommonStyles.js +4 -4
  76. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  77. package/lib/commonjs/ui/screens/DeliverScreen.js +18 -1
  78. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  79. package/lib/commonjs/ui/screens/DoodleScreen.js +9 -0
  80. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  81. package/lib/commonjs/ui/screens/DropCashScreen.js +10 -1
  82. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  83. package/lib/commonjs/ui/screens/FormsScreen.js +7 -0
  84. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  85. package/lib/commonjs/ui/screens/GeofenceScreen.js +12 -0
  86. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  87. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +9 -0
  88. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  89. package/lib/commonjs/ui/screens/PaymentScreen.js +9 -0
  90. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  91. package/lib/commonjs/ui/screens/PickupScreen.js +9 -0
  92. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  93. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +12 -0
  94. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  95. package/lib/commonjs/utils/ExecTaskUtils.js +30 -13
  96. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  97. package/lib/commonjs/utils/Logger.js +54 -41
  98. package/lib/commonjs/utils/Logger.js.map +1 -1
  99. package/lib/module/analytics/firebase/FirebaseLogging.js +8 -0
  100. package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -0
  101. package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +37 -0
  102. package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
  103. package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +70 -0
  104. package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
  105. package/lib/module/analytics/sentry/SentryModels.js +2 -0
  106. package/lib/module/analytics/sentry/SentryModels.js.map +1 -0
  107. package/lib/module/analytics/sentry/SentrySdkConstants.js +69 -0
  108. package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -0
  109. package/lib/module/components/executiontasks/cancellation/CancelET.js +51 -0
  110. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  111. package/lib/module/components/executiontasks/captureInput/CaptureText.js +23 -0
  112. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  113. package/lib/module/components/executiontasks/deliver/DeliverET.js +16 -0
  114. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  115. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +52 -2
  116. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  117. package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -0
  118. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  119. package/lib/module/components/executiontasks/doodle/SignatureET.js +33 -3
  120. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  121. package/lib/module/components/executiontasks/dropCash/DropCashET.js +16 -0
  122. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  123. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +23 -0
  124. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  125. package/lib/module/components/executiontasks/forms/FormGenerator.js +41 -18
  126. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  127. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
  128. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  129. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
  130. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  131. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +18 -6
  132. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  133. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +63 -6
  134. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  135. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
  136. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  137. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +37 -0
  138. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  139. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
  140. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  141. package/lib/module/components/executiontasks/pickup/PickupET.js +16 -0
  142. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  143. package/lib/module/components/executiontasks/pickup/SLPickupET.js +44 -0
  144. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  145. package/lib/module/components/executiontasks/scan/ScanET.js +40 -1
  146. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  147. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
  148. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  149. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
  150. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  151. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  152. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
  153. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  154. package/lib/module/components/widgets/CancelOrderDialog.js +16 -0
  155. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  156. package/lib/module/components/widgets/Card.js +17 -1
  157. package/lib/module/components/widgets/Card.js.map +1 -1
  158. package/lib/module/components/widgets/ModalWidget.js +22 -2
  159. package/lib/module/components/widgets/ModalWidget.js.map +1 -1
  160. package/lib/module/components/widgets/SearchBar.js +9 -0
  161. package/lib/module/components/widgets/SearchBar.js.map +1 -1
  162. package/lib/module/components/widgets/SnackBarCustom.js +9 -0
  163. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  164. package/lib/module/components/widgets/SplitTextInput.js +9 -0
  165. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  166. package/lib/module/components/widgets/TabsComponent.js +12 -1
  167. package/lib/module/components/widgets/TabsComponent.js.map +1 -1
  168. package/lib/module/index.js +9 -0
  169. package/lib/module/index.js.map +1 -1
  170. package/lib/module/manager/sdk/DispatchSdkCache.js +3 -2
  171. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  172. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  173. package/lib/module/styles/executionTasks/CommonStyles.js +5 -5
  174. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  175. package/lib/module/ui/screens/DeliverScreen.js +18 -1
  176. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  177. package/lib/module/ui/screens/DoodleScreen.js +9 -0
  178. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  179. package/lib/module/ui/screens/DropCashScreen.js +10 -0
  180. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  181. package/lib/module/ui/screens/FormsScreen.js +7 -0
  182. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  183. package/lib/module/ui/screens/GeofenceScreen.js +12 -0
  184. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  185. package/lib/module/ui/screens/ImageCaptureScreen.js +9 -0
  186. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  187. package/lib/module/ui/screens/PaymentScreen.js +9 -0
  188. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  189. package/lib/module/ui/screens/PickupScreen.js +9 -0
  190. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  191. package/lib/module/ui/screens/ValidateOTPScreen.js +12 -0
  192. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  193. package/lib/module/utils/ExecTaskUtils.js +30 -13
  194. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  195. package/lib/module/utils/Logger.js +54 -39
  196. package/lib/module/utils/Logger.js.map +1 -1
  197. package/lib/typescript/analytics/firebase/FirebaseLogging.d.ts +2 -0
  198. package/lib/typescript/analytics/sentry/SentryAnalyticsSingleton.d.ts +11 -0
  199. package/lib/typescript/analytics/sentry/SentryAnalyticsUtils.d.ts +2 -0
  200. package/lib/typescript/analytics/sentry/SentryModels.d.ts +15 -0
  201. package/lib/typescript/analytics/sentry/SentrySdkConstants.d.ts +63 -0
  202. package/lib/typescript/index.d.ts +5 -0
  203. package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +2 -0
  204. package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
  205. package/lib/typescript/models/execTasks/ETBaseModels.d.ts +25 -6
  206. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +4 -4
  207. package/lib/typescript/utils/Logger.d.ts +0 -3
  208. package/package.json +6 -4
  209. package/src/analytics/firebase/FirebaseLogging.ts +13 -0
  210. package/src/analytics/sentry/SentryAnalyticsSingleton.ts +35 -0
  211. package/src/analytics/sentry/SentryAnalyticsUtils.ts +71 -0
  212. package/src/analytics/sentry/SentryModels.ts +18 -0
  213. package/src/analytics/sentry/SentrySdkConstants.ts +74 -0
  214. package/src/components/executiontasks/cancellation/CancelET.tsx +25 -2
  215. package/src/components/executiontasks/captureInput/CaptureText.tsx +15 -2
  216. package/src/components/executiontasks/deliver/DeliverET.tsx +8 -0
  217. package/src/components/executiontasks/deliver/SLDeliverET.tsx +22 -5
  218. package/src/components/executiontasks/display/DisplayModalET.tsx +8 -0
  219. package/src/components/executiontasks/doodle/SignatureET.tsx +23 -3
  220. package/src/components/executiontasks/dropCash/DropCashET.tsx +9 -0
  221. package/src/components/executiontasks/dropCash/SLDropCash.tsx +11 -0
  222. package/src/components/executiontasks/forms/FormGenerator.tsx +46 -29
  223. package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +10 -3
  224. package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +8 -1
  225. package/src/components/executiontasks/imageCapture/CaptureUtils.ts +17 -5
  226. package/src/components/executiontasks/imageCapture/ImageCapture.tsx +32 -5
  227. package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +11 -0
  228. package/src/components/executiontasks/payments/init/InitPaymentET.tsx +17 -0
  229. package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +11 -0
  230. package/src/components/executiontasks/pickup/PickupET.tsx +8 -0
  231. package/src/components/executiontasks/pickup/SLPickupET.tsx +19 -0
  232. package/src/components/executiontasks/scan/ScanET.tsx +19 -1
  233. package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +11 -0
  234. package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +14 -0
  235. package/src/components/executiontasks/validateOTP/sub-components/OTPInput.tsx +2 -0
  236. package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +5 -0
  237. package/src/components/widgets/CancelOrderDialog.tsx +7 -0
  238. package/src/components/widgets/Card.tsx +9 -1
  239. package/src/components/widgets/ModalWidget.tsx +16 -2
  240. package/src/components/widgets/SearchBar.tsx +6 -1
  241. package/src/components/widgets/SnackBarCustom.tsx +4 -0
  242. package/src/components/widgets/SplitTextInput.tsx +6 -0
  243. package/src/components/widgets/TabsComponent.tsx +8 -1
  244. package/src/index.tsx +8 -3
  245. package/src/manager/sdk/DispatchSdkCache.ts +2 -1
  246. package/src/models/execTasks/ETBaseModels.ts +20 -7
  247. package/src/styles/executionTasks/CommonStyles.ts +5 -5
  248. package/src/ui/screens/DeliverScreen.tsx +9 -0
  249. package/src/ui/screens/DoodleScreen.tsx +5 -0
  250. package/src/ui/screens/DropCashScreen.tsx +6 -0
  251. package/src/ui/screens/FormsScreen.tsx +3 -0
  252. package/src/ui/screens/GeofenceScreen.tsx +11 -1
  253. package/src/ui/screens/ImageCaptureScreen.tsx +5 -0
  254. package/src/ui/screens/PaymentScreen.tsx +5 -0
  255. package/src/ui/screens/PickupScreen.tsx +7 -1
  256. package/src/ui/screens/ValidateOTPScreen.tsx +10 -0
  257. package/src/utils/ExecTaskUtils.ts +36 -10
  258. package/src/utils/Logger.ts +50 -51
@@ -1,7 +1,6 @@
1
1
  import DispatchSdkCache from '../manager/sdk/DispatchSdkCache';
2
2
  import type { DispatchSDKConfig } from '../models/sdk';
3
3
  import * as Sentry from '@sentry/react-native';
4
- import { Severity } from '@sentry/react-native';
5
4
  import crashlytics from '@react-native-firebase/crashlytics';
6
5
 
7
6
  export const enum LOG_TYPE {
@@ -43,7 +42,7 @@ class Logger {
43
42
  logType === LOG_TYPE.APP_WARNING
44
43
  ) {
45
44
  crashlytics().recordError(new Error(message), TAG);
46
- this.sendSentryException(new Error(message), TAG, logType);
45
+ //this.sendSentryException(new Error(message), TAG, logType);
47
46
  }
48
47
  }
49
48
 
@@ -54,57 +53,57 @@ class Logger {
54
53
  return Logger.instance;
55
54
  }
56
55
 
57
- public sendSentryException(exception: any, logTag: string, logType: string) {
58
- (async () => {
59
- try {
60
- Sentry.captureException(
61
- exception,
62
- await this.getUserConfig(Severity.Error, logType, logTag)
63
- );
64
- } catch (error: any) {}
65
- })();
66
- }
56
+ // public sendSentryException(exception: any, logTag: string, logType: string) {
57
+ // // (async () => {
58
+ // // try {
59
+ // // Sentry.captureException(
60
+ // // exception,
61
+ // // await this.getUserConfig(Severity.Error, logType, logTag)
62
+ // // );
63
+ // // } catch (error: any) {}
64
+ // // })();
65
+ // }
67
66
 
68
- public sendSentryMessage(message: string, logTag: string, logType: string) {
69
- (async () => {
70
- try {
71
- Sentry.captureMessage(
72
- message,
73
- await this.getUserConfig(Severity.Warning, logType, logTag)
74
- );
75
- } catch (error: any) {}
76
- })();
77
- }
67
+ // public sendSentryMessage(message: string, logTag: string, logType: string) {
68
+ // // (async () => {
69
+ // // try {
70
+ // // Sentry.captureMessage(
71
+ // // message,
72
+ // // await this.getUserConfig(Severity.Warning, logType, logTag)
73
+ // // );
74
+ // // } catch (error: any) {}
75
+ // // })();
76
+ // }
78
77
 
79
- private async getUserConfig(
80
- logLevel: Severity,
81
- logType: string,
82
- logTag: string
83
- ) {
84
- try {
85
- const config = (await DispatchSdkCache.getInstance().getObjectFromCache(
86
- DispatchSdkCache.KEYS.SDK_CONFIG
87
- )) as DispatchSDKConfig;
88
- const dspId = await DispatchSdkCache.getInstance().getKeyFromCache(
89
- DispatchSdkCache.KEYS.DISPATCH_ID
90
- );
91
- return {
92
- user: {
93
- id: config?.userID,
94
- username: config?.userName,
95
- },
96
- tags: {
97
- dispatchId: dspId,
98
- errorTime: Date.now(),
99
- logType: logType,
100
- logTag: logTag,
101
- },
102
- level: logLevel,
103
- };
104
- } catch (error: any) {
105
- return undefined;
106
- }
107
- }
78
+ // private async getUserConfig(
79
+ // logLevel: Severity,
80
+ // logType: string,
81
+ // logTag: string
82
+ // ) {
83
+ // try {
84
+ // const config = (await DispatchSdkCache.getInstance().getObjectFromCache(
85
+ // DispatchSdkCache.KEYS.SDK_CONFIG
86
+ // )) as DispatchSDKConfig;
87
+ // const dspId = await DispatchSdkCache.getInstance().getKeyFromCache(
88
+ // DispatchSdkCache.KEYS.DISPATCH_ID
89
+ // );
90
+ // return {
91
+ // user: {
92
+ // id: config?.userID,
93
+ // username: config?.userName,
94
+ // },
95
+ // tags: {
96
+ // dispatchId: dspId,
97
+ // errorTime: Date.now(),
98
+ // logType: logType,
99
+ // logTag: logTag,
100
+ // },
101
+ // level: logLevel,
102
+ // };
103
+ // } catch (error: any) {
104
+ // return undefined;
105
+ // }
106
+ // }
108
107
  }
109
108
 
110
109
  export default Logger;