@lhremote/core 0.6.0 → 0.8.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 (356) hide show
  1. package/README.md +39 -0
  2. package/dist/cdp/client.d.ts +5 -1
  3. package/dist/cdp/client.d.ts.map +1 -1
  4. package/dist/cdp/client.js +11 -3
  5. package/dist/cdp/client.js.map +1 -1
  6. package/dist/data/index.d.ts +1 -0
  7. package/dist/data/index.d.ts.map +1 -1
  8. package/dist/data/index.js +1 -0
  9. package/dist/data/index.js.map +1 -1
  10. package/dist/data/linkedin-reference.d.ts +44 -0
  11. package/dist/data/linkedin-reference.d.ts.map +1 -0
  12. package/dist/data/linkedin-reference.js +316 -0
  13. package/dist/data/linkedin-reference.js.map +1 -0
  14. package/dist/data/linkedin-reference.test.d.ts +2 -0
  15. package/dist/data/linkedin-reference.test.d.ts.map +1 -0
  16. package/dist/data/linkedin-reference.test.js +124 -0
  17. package/dist/data/linkedin-reference.test.js.map +1 -0
  18. package/dist/db/index.d.ts +1 -1
  19. package/dist/db/index.d.ts.map +1 -1
  20. package/dist/db/index.js +1 -1
  21. package/dist/db/index.js.map +1 -1
  22. package/dist/db/repositories/action-budget.d.ts +29 -0
  23. package/dist/db/repositories/action-budget.d.ts.map +1 -0
  24. package/dist/db/repositories/action-budget.js +100 -0
  25. package/dist/db/repositories/action-budget.js.map +1 -0
  26. package/dist/db/repositories/action-budget.test.d.ts +2 -0
  27. package/dist/db/repositories/action-budget.test.d.ts.map +1 -0
  28. package/dist/db/repositories/action-budget.test.js +181 -0
  29. package/dist/db/repositories/action-budget.test.js.map +1 -0
  30. package/dist/db/repositories/campaign-hard-delete.integration.test.d.ts +2 -0
  31. package/dist/db/repositories/campaign-hard-delete.integration.test.d.ts.map +1 -0
  32. package/dist/db/repositories/campaign-hard-delete.integration.test.js +78 -0
  33. package/dist/db/repositories/campaign-hard-delete.integration.test.js.map +1 -0
  34. package/dist/db/repositories/campaign.d.ts +14 -0
  35. package/dist/db/repositories/campaign.d.ts.map +1 -1
  36. package/dist/db/repositories/campaign.js +125 -0
  37. package/dist/db/repositories/campaign.js.map +1 -1
  38. package/dist/db/repositories/index.d.ts +1 -0
  39. package/dist/db/repositories/index.d.ts.map +1 -1
  40. package/dist/db/repositories/index.js +1 -0
  41. package/dist/db/repositories/index.js.map +1 -1
  42. package/dist/index.d.ts +6 -5
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +28 -6
  45. package/dist/index.js.map +1 -1
  46. package/dist/linkedin/__tests__/dom-automation.integration.test.d.ts +2 -0
  47. package/dist/linkedin/__tests__/dom-automation.integration.test.d.ts.map +1 -0
  48. package/dist/linkedin/__tests__/dom-automation.integration.test.js +160 -0
  49. package/dist/linkedin/__tests__/dom-automation.integration.test.js.map +1 -0
  50. package/dist/linkedin/__tests__/selectors.integration.test.d.ts +2 -0
  51. package/dist/linkedin/__tests__/selectors.integration.test.d.ts.map +1 -0
  52. package/dist/linkedin/__tests__/selectors.integration.test.js +258 -0
  53. package/dist/linkedin/__tests__/selectors.integration.test.js.map +1 -0
  54. package/dist/linkedin/dom-automation.d.ts +67 -0
  55. package/dist/linkedin/dom-automation.d.ts.map +1 -0
  56. package/dist/linkedin/dom-automation.js +139 -0
  57. package/dist/linkedin/dom-automation.js.map +1 -0
  58. package/dist/linkedin/index.d.ts +3 -0
  59. package/dist/linkedin/index.d.ts.map +1 -0
  60. package/dist/linkedin/index.js +5 -0
  61. package/dist/linkedin/index.js.map +1 -0
  62. package/dist/linkedin/selectors.d.ts +67 -0
  63. package/dist/linkedin/selectors.d.ts.map +1 -0
  64. package/dist/linkedin/selectors.js +74 -0
  65. package/dist/linkedin/selectors.js.map +1 -0
  66. package/dist/operations/build-linkedin-url.d.ts +39 -0
  67. package/dist/operations/build-linkedin-url.d.ts.map +1 -0
  68. package/dist/operations/build-linkedin-url.js +72 -0
  69. package/dist/operations/build-linkedin-url.js.map +1 -0
  70. package/dist/operations/campaign-delete.d.ts +6 -2
  71. package/dist/operations/campaign-delete.d.ts.map +1 -1
  72. package/dist/operations/campaign-delete.js +9 -2
  73. package/dist/operations/campaign-delete.js.map +1 -1
  74. package/dist/operations/campaign-delete.test.js +41 -1
  75. package/dist/operations/campaign-delete.test.js.map +1 -1
  76. package/dist/operations/campaign-erase.d.ts +19 -0
  77. package/dist/operations/campaign-erase.d.ts.map +1 -0
  78. package/dist/operations/campaign-erase.js +22 -0
  79. package/dist/operations/campaign-erase.js.map +1 -0
  80. package/dist/operations/campaign-erase.test.d.ts +2 -0
  81. package/dist/operations/campaign-erase.test.d.ts.map +1 -0
  82. package/dist/operations/campaign-erase.test.js +101 -0
  83. package/dist/operations/campaign-erase.test.js.map +1 -0
  84. package/dist/operations/comment-on-post.d.ts +34 -0
  85. package/dist/operations/comment-on-post.d.ts.map +1 -0
  86. package/dist/operations/comment-on-post.js +108 -0
  87. package/dist/operations/comment-on-post.js.map +1 -0
  88. package/dist/operations/comment-on-post.test.d.ts +2 -0
  89. package/dist/operations/comment-on-post.test.d.ts.map +1 -0
  90. package/dist/operations/comment-on-post.test.js +240 -0
  91. package/dist/operations/comment-on-post.test.js.map +1 -0
  92. package/dist/operations/dismiss-errors.d.ts +22 -0
  93. package/dist/operations/dismiss-errors.d.ts.map +1 -0
  94. package/dist/operations/dismiss-errors.js +55 -0
  95. package/dist/operations/dismiss-errors.js.map +1 -0
  96. package/dist/operations/dismiss-errors.test.d.ts +2 -0
  97. package/dist/operations/dismiss-errors.test.d.ts.map +1 -0
  98. package/dist/operations/dismiss-errors.test.js +136 -0
  99. package/dist/operations/dismiss-errors.test.js.map +1 -0
  100. package/dist/operations/endorse-skills.d.ts +10 -0
  101. package/dist/operations/endorse-skills.d.ts.map +1 -0
  102. package/dist/operations/endorse-skills.js +12 -0
  103. package/dist/operations/endorse-skills.js.map +1 -0
  104. package/dist/operations/enrich-profile.d.ts +18 -0
  105. package/dist/operations/enrich-profile.d.ts.map +1 -0
  106. package/dist/operations/enrich-profile.js +15 -0
  107. package/dist/operations/enrich-profile.js.map +1 -0
  108. package/dist/operations/ephemeral-action.d.ts +22 -0
  109. package/dist/operations/ephemeral-action.d.ts.map +1 -0
  110. package/dist/operations/ephemeral-action.js +31 -0
  111. package/dist/operations/ephemeral-action.js.map +1 -0
  112. package/dist/operations/follow-person.d.ts +9 -0
  113. package/dist/operations/follow-person.d.ts.map +1 -0
  114. package/dist/operations/follow-person.js +11 -0
  115. package/dist/operations/follow-person.js.map +1 -0
  116. package/dist/operations/get-action-budget.d.ts +6 -0
  117. package/dist/operations/get-action-budget.d.ts.map +1 -0
  118. package/dist/operations/get-action-budget.js +22 -0
  119. package/dist/operations/get-action-budget.js.map +1 -0
  120. package/dist/operations/get-action-budget.test.d.ts +2 -0
  121. package/dist/operations/get-action-budget.test.d.ts.map +1 -0
  122. package/dist/operations/get-action-budget.test.js +79 -0
  123. package/dist/operations/get-action-budget.test.js.map +1 -0
  124. package/dist/operations/get-errors.d.ts +9 -3
  125. package/dist/operations/get-errors.d.ts.map +1 -1
  126. package/dist/operations/get-errors.js +41 -4
  127. package/dist/operations/get-errors.js.map +1 -1
  128. package/dist/operations/get-errors.test.js +108 -42
  129. package/dist/operations/get-errors.test.js.map +1 -1
  130. package/dist/operations/get-feed.d.ts +33 -0
  131. package/dist/operations/get-feed.d.ts.map +1 -0
  132. package/dist/operations/get-feed.js +220 -0
  133. package/dist/operations/get-feed.js.map +1 -0
  134. package/dist/operations/get-feed.test.d.ts +2 -0
  135. package/dist/operations/get-feed.test.d.ts.map +1 -0
  136. package/dist/operations/get-feed.test.js +276 -0
  137. package/dist/operations/get-feed.test.js.map +1 -0
  138. package/dist/operations/get-post-engagers.d.ts +40 -0
  139. package/dist/operations/get-post-engagers.d.ts.map +1 -0
  140. package/dist/operations/get-post-engagers.js +128 -0
  141. package/dist/operations/get-post-engagers.js.map +1 -0
  142. package/dist/operations/get-post-engagers.test.d.ts +2 -0
  143. package/dist/operations/get-post-engagers.test.d.ts.map +1 -0
  144. package/dist/operations/get-post-engagers.test.js +19 -0
  145. package/dist/operations/get-post-engagers.test.js.map +1 -0
  146. package/dist/operations/get-post-stats.d.ts +38 -0
  147. package/dist/operations/get-post-stats.d.ts.map +1 -0
  148. package/dist/operations/get-post-stats.js +100 -0
  149. package/dist/operations/get-post-stats.js.map +1 -0
  150. package/dist/operations/get-post-stats.test.d.ts +2 -0
  151. package/dist/operations/get-post-stats.test.d.ts.map +1 -0
  152. package/dist/operations/get-post-stats.test.js +34 -0
  153. package/dist/operations/get-post-stats.test.js.map +1 -0
  154. package/dist/operations/get-post.d.ts +183 -0
  155. package/dist/operations/get-post.d.ts.map +1 -0
  156. package/dist/operations/get-post.js +270 -0
  157. package/dist/operations/get-post.js.map +1 -0
  158. package/dist/operations/get-post.test.d.ts +2 -0
  159. package/dist/operations/get-post.test.d.ts.map +1 -0
  160. package/dist/operations/get-post.test.js +449 -0
  161. package/dist/operations/get-post.test.js.map +1 -0
  162. package/dist/operations/get-profile-activity.d.ts +129 -0
  163. package/dist/operations/get-profile-activity.d.ts.map +1 -0
  164. package/dist/operations/get-profile-activity.js +181 -0
  165. package/dist/operations/get-profile-activity.js.map +1 -0
  166. package/dist/operations/get-profile-activity.test.d.ts +2 -0
  167. package/dist/operations/get-profile-activity.test.d.ts.map +1 -0
  168. package/dist/operations/get-profile-activity.test.js +205 -0
  169. package/dist/operations/get-profile-activity.test.js.map +1 -0
  170. package/dist/operations/get-throttle-status.d.ts +6 -0
  171. package/dist/operations/get-throttle-status.d.ts.map +1 -0
  172. package/dist/operations/get-throttle-status.js +30 -0
  173. package/dist/operations/get-throttle-status.js.map +1 -0
  174. package/dist/operations/get-throttle-status.test.d.ts +2 -0
  175. package/dist/operations/get-throttle-status.test.d.ts.map +1 -0
  176. package/dist/operations/get-throttle-status.test.js +62 -0
  177. package/dist/operations/get-throttle-status.test.js.map +1 -0
  178. package/dist/operations/index.d.ts +24 -0
  179. package/dist/operations/index.d.ts.map +1 -1
  180. package/dist/operations/index.js +35 -0
  181. package/dist/operations/index.js.map +1 -1
  182. package/dist/operations/like-person-posts.d.ts +14 -0
  183. package/dist/operations/like-person-posts.d.ts.map +1 -0
  184. package/dist/operations/like-person-posts.js +28 -0
  185. package/dist/operations/like-person-posts.js.map +1 -0
  186. package/dist/operations/message-person.d.ts +11 -0
  187. package/dist/operations/message-person.d.ts.map +1 -0
  188. package/dist/operations/message-person.js +19 -0
  189. package/dist/operations/message-person.js.map +1 -0
  190. package/dist/operations/react-to-post.d.ts +38 -0
  191. package/dist/operations/react-to-post.d.ts.map +1 -0
  192. package/dist/operations/react-to-post.js +82 -0
  193. package/dist/operations/react-to-post.js.map +1 -0
  194. package/dist/operations/react-to-post.test.d.ts +2 -0
  195. package/dist/operations/react-to-post.test.d.ts.map +1 -0
  196. package/dist/operations/react-to-post.test.js +154 -0
  197. package/dist/operations/react-to-post.test.js.map +1 -0
  198. package/dist/operations/remove-connection.d.ts +6 -0
  199. package/dist/operations/remove-connection.d.ts.map +1 -0
  200. package/dist/operations/remove-connection.js +7 -0
  201. package/dist/operations/remove-connection.js.map +1 -0
  202. package/dist/operations/resolve-linkedin-entity.d.ts +33 -0
  203. package/dist/operations/resolve-linkedin-entity.d.ts.map +1 -0
  204. package/dist/operations/resolve-linkedin-entity.js +198 -0
  205. package/dist/operations/resolve-linkedin-entity.js.map +1 -0
  206. package/dist/operations/search-posts.d.ts +143 -0
  207. package/dist/operations/search-posts.d.ts.map +1 -0
  208. package/dist/operations/search-posts.js +220 -0
  209. package/dist/operations/search-posts.js.map +1 -0
  210. package/dist/operations/search-posts.test.d.ts +2 -0
  211. package/dist/operations/search-posts.test.d.ts.map +1 -0
  212. package/dist/operations/search-posts.test.js +261 -0
  213. package/dist/operations/search-posts.test.js.map +1 -0
  214. package/dist/operations/send-inmail.d.ts +11 -0
  215. package/dist/operations/send-inmail.d.ts.map +1 -0
  216. package/dist/operations/send-inmail.js +19 -0
  217. package/dist/operations/send-inmail.js.map +1 -0
  218. package/dist/operations/send-invite.d.ts +9 -0
  219. package/dist/operations/send-invite.d.ts.map +1 -0
  220. package/dist/operations/send-invite.js +14 -0
  221. package/dist/operations/send-invite.js.map +1 -0
  222. package/dist/operations/visit-profile.d.ts +14 -0
  223. package/dist/operations/visit-profile.d.ts.map +1 -0
  224. package/dist/operations/visit-profile.js +49 -0
  225. package/dist/operations/visit-profile.js.map +1 -0
  226. package/dist/operations/visit-profile.test.d.ts +2 -0
  227. package/dist/operations/visit-profile.test.d.ts.map +1 -0
  228. package/dist/operations/visit-profile.test.js +193 -0
  229. package/dist/operations/visit-profile.test.js.map +1 -0
  230. package/dist/services/app.d.ts.map +1 -1
  231. package/dist/services/app.js +37 -12
  232. package/dist/services/app.js.map +1 -1
  233. package/dist/services/app.test.js +57 -0
  234. package/dist/services/app.test.js.map +1 -1
  235. package/dist/services/boolean-expression.d.ts +29 -0
  236. package/dist/services/boolean-expression.d.ts.map +1 -0
  237. package/dist/services/boolean-expression.js +79 -0
  238. package/dist/services/boolean-expression.js.map +1 -0
  239. package/dist/services/boolean-expression.test.d.ts +2 -0
  240. package/dist/services/boolean-expression.test.d.ts.map +1 -0
  241. package/dist/services/boolean-expression.test.js +64 -0
  242. package/dist/services/boolean-expression.test.js.map +1 -0
  243. package/dist/services/campaign.d.ts +10 -0
  244. package/dist/services/campaign.d.ts.map +1 -1
  245. package/dist/services/campaign.js +16 -0
  246. package/dist/services/campaign.js.map +1 -1
  247. package/dist/services/collection.d.ts +5 -2
  248. package/dist/services/collection.d.ts.map +1 -1
  249. package/dist/services/collection.js +33 -5
  250. package/dist/services/collection.js.map +1 -1
  251. package/dist/services/collection.test.js +64 -6
  252. package/dist/services/collection.test.js.map +1 -1
  253. package/dist/services/ephemeral-campaign.d.ts +64 -0
  254. package/dist/services/ephemeral-campaign.d.ts.map +1 -0
  255. package/dist/services/ephemeral-campaign.js +210 -0
  256. package/dist/services/ephemeral-campaign.js.map +1 -0
  257. package/dist/services/ephemeral-campaign.test.d.ts +2 -0
  258. package/dist/services/ephemeral-campaign.test.d.ts.map +1 -0
  259. package/dist/services/ephemeral-campaign.test.js +333 -0
  260. package/dist/services/ephemeral-campaign.test.js.map +1 -0
  261. package/dist/services/errors.d.ts +21 -0
  262. package/dist/services/errors.d.ts.map +1 -1
  263. package/dist/services/errors.js +35 -0
  264. package/dist/services/errors.js.map +1 -1
  265. package/dist/services/index.d.ts +7 -1
  266. package/dist/services/index.d.ts.map +1 -1
  267. package/dist/services/index.js +7 -1
  268. package/dist/services/index.js.map +1 -1
  269. package/dist/services/instance-context.d.ts.map +1 -1
  270. package/dist/services/instance-context.js +9 -1
  271. package/dist/services/instance-context.js.map +1 -1
  272. package/dist/services/instance-context.test.js +77 -1
  273. package/dist/services/instance-context.test.js.map +1 -1
  274. package/dist/services/instance.d.ts +43 -0
  275. package/dist/services/instance.d.ts.map +1 -1
  276. package/dist/services/instance.js +151 -0
  277. package/dist/services/instance.js.map +1 -1
  278. package/dist/services/instance.test.js +101 -0
  279. package/dist/services/instance.test.js.map +1 -1
  280. package/dist/services/launcher.d.ts +23 -0
  281. package/dist/services/launcher.d.ts.map +1 -1
  282. package/dist/services/launcher.js +81 -11
  283. package/dist/services/launcher.js.map +1 -1
  284. package/dist/services/launcher.test.js +109 -42
  285. package/dist/services/launcher.test.js.map +1 -1
  286. package/dist/services/sn-url-builder.d.ts +21 -0
  287. package/dist/services/sn-url-builder.d.ts.map +1 -0
  288. package/dist/services/sn-url-builder.js +132 -0
  289. package/dist/services/sn-url-builder.js.map +1 -0
  290. package/dist/services/sn-url-builder.test.d.ts +2 -0
  291. package/dist/services/sn-url-builder.test.d.ts.map +1 -0
  292. package/dist/services/sn-url-builder.test.js +130 -0
  293. package/dist/services/sn-url-builder.test.js.map +1 -0
  294. package/dist/services/url-builder.d.ts +12 -0
  295. package/dist/services/url-builder.d.ts.map +1 -0
  296. package/dist/services/url-builder.js +100 -0
  297. package/dist/services/url-builder.js.map +1 -0
  298. package/dist/services/url-builder.test.d.ts +2 -0
  299. package/dist/services/url-builder.test.d.ts.map +1 -0
  300. package/dist/services/url-builder.test.js +79 -0
  301. package/dist/services/url-builder.test.js.map +1 -0
  302. package/dist/services/url-templates.d.ts +41 -0
  303. package/dist/services/url-templates.d.ts.map +1 -0
  304. package/dist/services/url-templates.js +118 -0
  305. package/dist/services/url-templates.js.map +1 -0
  306. package/dist/services/url-templates.test.d.ts +2 -0
  307. package/dist/services/url-templates.test.d.ts.map +1 -0
  308. package/dist/services/url-templates.test.js +159 -0
  309. package/dist/services/url-templates.test.js.map +1 -0
  310. package/dist/types/action-budget.d.ts +52 -0
  311. package/dist/types/action-budget.d.ts.map +1 -0
  312. package/dist/types/action-budget.js +4 -0
  313. package/dist/types/action-budget.js.map +1 -0
  314. package/dist/types/campaign.d.ts +24 -0
  315. package/dist/types/campaign.d.ts.map +1 -1
  316. package/dist/types/feed.d.ts +32 -0
  317. package/dist/types/feed.d.ts.map +1 -0
  318. package/dist/types/feed.js +4 -0
  319. package/dist/types/feed.js.map +1 -0
  320. package/dist/types/index.d.ts +8 -2
  321. package/dist/types/index.d.ts.map +1 -1
  322. package/dist/types/linkedin-url.d.ts +109 -0
  323. package/dist/types/linkedin-url.d.ts.map +1 -0
  324. package/dist/types/linkedin-url.js +4 -0
  325. package/dist/types/linkedin-url.js.map +1 -0
  326. package/dist/types/post-analytics.d.ts +40 -0
  327. package/dist/types/post-analytics.d.ts.map +1 -0
  328. package/dist/types/post-analytics.js +4 -0
  329. package/dist/types/post-analytics.js.map +1 -0
  330. package/dist/types/post.d.ts +43 -0
  331. package/dist/types/post.d.ts.map +1 -0
  332. package/dist/types/post.js +4 -0
  333. package/dist/types/post.js.map +1 -0
  334. package/dist/types/search-posts.d.ts +22 -0
  335. package/dist/types/search-posts.d.ts.map +1 -0
  336. package/dist/types/search-posts.js +4 -0
  337. package/dist/types/search-posts.js.map +1 -0
  338. package/dist/types/ui-health.d.ts +16 -0
  339. package/dist/types/ui-health.d.ts.map +1 -1
  340. package/dist/voyager/index.d.ts +2 -0
  341. package/dist/voyager/index.d.ts.map +1 -0
  342. package/dist/voyager/index.js +4 -0
  343. package/dist/voyager/index.js.map +1 -0
  344. package/dist/voyager/interceptor.d.ts +100 -0
  345. package/dist/voyager/interceptor.d.ts.map +1 -0
  346. package/dist/voyager/interceptor.integration.test.d.ts +2 -0
  347. package/dist/voyager/interceptor.integration.test.d.ts.map +1 -0
  348. package/dist/voyager/interceptor.integration.test.js +89 -0
  349. package/dist/voyager/interceptor.integration.test.js.map +1 -0
  350. package/dist/voyager/interceptor.js +235 -0
  351. package/dist/voyager/interceptor.js.map +1 -0
  352. package/dist/voyager/interceptor.test.d.ts +2 -0
  353. package/dist/voyager/interceptor.test.d.ts.map +1 -0
  354. package/dist/voyager/interceptor.test.js +372 -0
  355. package/dist/voyager/interceptor.test.js.map +1 -0
  356. package/package.json +1 -1
@@ -0,0 +1,449 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
4
+ vi.mock("../cdp/discovery.js", () => ({
5
+ discoverTargets: vi.fn(),
6
+ }));
7
+ vi.mock("../cdp/client.js", () => ({
8
+ CDPClient: vi.fn(),
9
+ }));
10
+ vi.mock("../voyager/interceptor.js", () => ({
11
+ VoyagerInterceptor: vi.fn(),
12
+ }));
13
+ import { discoverTargets } from "../cdp/discovery.js";
14
+ import { CDPClient } from "../cdp/client.js";
15
+ import { VoyagerInterceptor } from "../voyager/interceptor.js";
16
+ import { getPost, parseCommentsResponse, parseFeedUpdateResponse, resolveTextValue, } from "./get-post.js";
17
+ describe("resolveTextValue", () => {
18
+ it("returns empty string for undefined", () => {
19
+ expect(resolveTextValue(undefined)).toBe("");
20
+ });
21
+ it("returns empty string for null", () => {
22
+ expect(resolveTextValue(null)).toBe("");
23
+ });
24
+ it("returns string value as-is", () => {
25
+ expect(resolveTextValue("hello")).toBe("hello");
26
+ });
27
+ it("extracts text from object with text field", () => {
28
+ expect(resolveTextValue({ text: "hello" })).toBe("hello");
29
+ });
30
+ it("returns empty string for object without text field", () => {
31
+ expect(resolveTextValue({})).toBe("");
32
+ });
33
+ });
34
+ describe("parseFeedUpdateResponse", () => {
35
+ const postUrn = "urn:li:activity:1234567890";
36
+ it("parses flat response with inline actor", () => {
37
+ const raw = {
38
+ actor: {
39
+ name: { text: "John Doe" },
40
+ description: { text: "Software Engineer" },
41
+ navigationUrl: "https://www.linkedin.com/in/johndoe",
42
+ },
43
+ commentary: { text: { text: "Hello world!" } },
44
+ publishedAt: 1700000000000,
45
+ socialDetail: {
46
+ totalSocialActivityCounts: {
47
+ numLikes: 42,
48
+ numComments: 5,
49
+ numShares: 3,
50
+ },
51
+ },
52
+ };
53
+ const result = parseFeedUpdateResponse(raw, postUrn, []);
54
+ expect(result).toEqual({
55
+ postUrn,
56
+ authorName: "John Doe",
57
+ authorHeadline: "Software Engineer",
58
+ authorPublicId: "johndoe",
59
+ text: "Hello world!",
60
+ publishedAt: 1700000000000,
61
+ reactionCount: 42,
62
+ commentCount: 5,
63
+ shareCount: 3,
64
+ });
65
+ });
66
+ it("parses nested data response", () => {
67
+ const raw = {
68
+ data: {
69
+ actor: {
70
+ name: { text: "Jane Smith" },
71
+ description: { text: "Product Manager" },
72
+ publicIdentifier: "janesmith",
73
+ },
74
+ commentary: { text: { text: "Great post!" } },
75
+ publishedAt: 1700001000000,
76
+ socialDetail: {
77
+ totalSocialActivityCounts: {
78
+ numLikes: 10,
79
+ numComments: 2,
80
+ numShares: 1,
81
+ },
82
+ },
83
+ },
84
+ };
85
+ const result = parseFeedUpdateResponse(raw, postUrn, []);
86
+ expect(result.authorName).toBe("Jane Smith");
87
+ expect(result.authorPublicId).toBe("janesmith");
88
+ expect(result.text).toBe("Great post!");
89
+ expect(result.publishedAt).toBe(1700001000000);
90
+ });
91
+ it("parses data.elements array response", () => {
92
+ const raw = {
93
+ data: {
94
+ elements: [
95
+ {
96
+ actor: {
97
+ name: { text: "Bob Johnson" },
98
+ description: { text: "Developer" },
99
+ },
100
+ commentary: { text: { text: "First element" } },
101
+ publishedAt: 1700002000000,
102
+ socialDetail: {
103
+ totalSocialActivityCounts: {
104
+ numLikes: 5,
105
+ numComments: 1,
106
+ numShares: 0,
107
+ },
108
+ },
109
+ },
110
+ ],
111
+ },
112
+ };
113
+ const result = parseFeedUpdateResponse(raw, postUrn, []);
114
+ expect(result.authorName).toBe("Bob Johnson");
115
+ expect(result.text).toBe("First element");
116
+ });
117
+ it("resolves actor from URN reference via included", () => {
118
+ const actorUrn = "urn:li:member:999";
119
+ const raw = {
120
+ data: {
121
+ actor: actorUrn,
122
+ commentary: { text: { text: "Referenced actor" } },
123
+ },
124
+ };
125
+ const included = [
126
+ {
127
+ entityUrn: actorUrn,
128
+ firstName: "Alice",
129
+ lastName: "Williams",
130
+ publicIdentifier: "alicew",
131
+ headline: { text: "Engineer" },
132
+ },
133
+ ];
134
+ const result = parseFeedUpdateResponse(raw, postUrn, included);
135
+ expect(result.authorName).toBe("Alice Williams");
136
+ expect(result.authorPublicId).toBe("alicew");
137
+ expect(result.authorHeadline).toBe("Engineer");
138
+ });
139
+ it("resolves actor from *actor URN reference", () => {
140
+ const actorUrn = "urn:li:member:888";
141
+ const raw = {
142
+ data: {
143
+ "*actor": actorUrn,
144
+ commentary: { text: { text: "Star actor ref" } },
145
+ },
146
+ };
147
+ const included = [
148
+ {
149
+ entityUrn: actorUrn,
150
+ name: { text: "Star Actor" },
151
+ description: { text: "CTO" },
152
+ navigationUrl: "https://www.linkedin.com/in/staractor",
153
+ },
154
+ ];
155
+ const result = parseFeedUpdateResponse(raw, postUrn, included);
156
+ expect(result.authorName).toBe("Star Actor");
157
+ expect(result.authorPublicId).toBe("staractor");
158
+ });
159
+ it("handles missing optional fields gracefully", () => {
160
+ const raw = {};
161
+ const result = parseFeedUpdateResponse(raw, postUrn, []);
162
+ expect(result.postUrn).toBe(postUrn);
163
+ expect(result.authorName).toBe("");
164
+ expect(result.authorHeadline).toBeNull();
165
+ expect(result.authorPublicId).toBeNull();
166
+ expect(result.text).toBe("");
167
+ expect(result.publishedAt).toBeNull();
168
+ expect(result.reactionCount).toBe(0);
169
+ expect(result.commentCount).toBe(0);
170
+ expect(result.shareCount).toBe(0);
171
+ });
172
+ it("handles string commentary text", () => {
173
+ const raw = {
174
+ commentary: { text: "Plain string text" },
175
+ };
176
+ const result = parseFeedUpdateResponse(raw, postUrn, []);
177
+ expect(result.text).toBe("Plain string text");
178
+ });
179
+ it("resolves actor with firstName/lastName pattern", () => {
180
+ const raw = {
181
+ actor: {
182
+ firstName: "First",
183
+ lastName: "Last",
184
+ headline: { text: "Title" },
185
+ publicIdentifier: "firstlast",
186
+ },
187
+ };
188
+ const result = parseFeedUpdateResponse(raw, postUrn, []);
189
+ expect(result.authorName).toBe("First Last");
190
+ expect(result.authorPublicId).toBe("firstlast");
191
+ expect(result.authorHeadline).toBe("Title");
192
+ });
193
+ });
194
+ describe("parseCommentsResponse", () => {
195
+ it("parses comments with inline commenter", () => {
196
+ const raw = {
197
+ elements: [
198
+ {
199
+ urn: "urn:li:comment:100",
200
+ commenter: {
201
+ firstName: "Alice",
202
+ lastName: "Smith",
203
+ publicIdentifier: "alices",
204
+ headline: { text: "Engineer" },
205
+ },
206
+ commentV2: { text: { text: "Nice post!" } },
207
+ createdTime: 1700010000000,
208
+ socialDetail: {
209
+ totalSocialActivityCounts: { numLikes: 3 },
210
+ },
211
+ },
212
+ ],
213
+ paging: { start: 0, count: 10, total: 1 },
214
+ };
215
+ const result = parseCommentsResponse(raw);
216
+ expect(result.comments).toHaveLength(1);
217
+ expect(result.comments[0]).toEqual({
218
+ commentUrn: "urn:li:comment:100",
219
+ authorName: "Alice Smith",
220
+ authorHeadline: "Engineer",
221
+ authorPublicId: "alices",
222
+ text: "Nice post!",
223
+ createdAt: 1700010000000,
224
+ reactionCount: 3,
225
+ });
226
+ expect(result.paging).toEqual({ start: 0, count: 10, total: 1 });
227
+ });
228
+ it("parses nested data.elements response", () => {
229
+ const raw = {
230
+ data: {
231
+ elements: [
232
+ {
233
+ entityUrn: "urn:li:comment:200",
234
+ commenter: {
235
+ firstName: "Bob",
236
+ lastName: "Jones",
237
+ },
238
+ commentary: { text: { text: "Commentary format" } },
239
+ createdTime: 1700020000000,
240
+ },
241
+ ],
242
+ paging: { start: 0, count: 5, total: 1 },
243
+ },
244
+ };
245
+ const result = parseCommentsResponse(raw);
246
+ expect(result.comments).toHaveLength(1);
247
+ expect(result.comments[0]?.text).toBe("Commentary format");
248
+ expect(result.comments[0]?.commentUrn).toBe("urn:li:comment:200");
249
+ expect(result.paging).toEqual({ start: 0, count: 5, total: 1 });
250
+ });
251
+ it("resolves commenter from included via URN reference", () => {
252
+ const commenterUrn = "urn:li:member:555";
253
+ const raw = {
254
+ elements: [
255
+ {
256
+ urn: "urn:li:comment:300",
257
+ commenterUrn,
258
+ commentV2: { text: { text: "Looked up commenter" } },
259
+ createdTime: 1700030000000,
260
+ },
261
+ ],
262
+ included: [
263
+ {
264
+ entityUrn: commenterUrn,
265
+ firstName: "Charlie",
266
+ lastName: "Brown",
267
+ publicIdentifier: "charlieb",
268
+ occupation: "Writer",
269
+ },
270
+ ],
271
+ };
272
+ const result = parseCommentsResponse(raw);
273
+ expect(result.comments[0]?.authorName).toBe("Charlie Brown");
274
+ expect(result.comments[0]?.authorPublicId).toBe("charlieb");
275
+ expect(result.comments[0]?.authorHeadline).toBe("Writer");
276
+ });
277
+ it("resolves commenter from *commenter URN reference", () => {
278
+ const commenterUrn = "urn:li:member:666";
279
+ const raw = {
280
+ elements: [
281
+ {
282
+ urn: "urn:li:comment:400",
283
+ "*commenter": commenterUrn,
284
+ commentV2: { text: { text: "Star commenter ref" } },
285
+ },
286
+ ],
287
+ included: [
288
+ {
289
+ entityUrn: commenterUrn,
290
+ firstName: "Dana",
291
+ lastName: "White",
292
+ headline: { text: "Manager" },
293
+ },
294
+ ],
295
+ };
296
+ const result = parseCommentsResponse(raw);
297
+ expect(result.comments[0]?.authorName).toBe("Dana White");
298
+ expect(result.comments[0]?.authorHeadline).toBe("Manager");
299
+ });
300
+ it("handles plain string comment text", () => {
301
+ const raw = {
302
+ elements: [
303
+ {
304
+ comment: "Simple string comment",
305
+ },
306
+ ],
307
+ };
308
+ const result = parseCommentsResponse(raw);
309
+ expect(result.comments[0]?.text).toBe("Simple string comment");
310
+ });
311
+ it("handles comment with text object", () => {
312
+ const raw = {
313
+ elements: [
314
+ {
315
+ comment: { text: "Object text comment" },
316
+ },
317
+ ],
318
+ };
319
+ const result = parseCommentsResponse(raw);
320
+ expect(result.comments[0]?.text).toBe("Object text comment");
321
+ });
322
+ it("handles comment with values array", () => {
323
+ const raw = {
324
+ elements: [
325
+ {
326
+ comment: { values: [{ value: "Part 1" }, { value: " Part 2" }] },
327
+ },
328
+ ],
329
+ };
330
+ const result = parseCommentsResponse(raw);
331
+ expect(result.comments[0]?.text).toBe("Part 1 Part 2");
332
+ });
333
+ it("handles created.time timestamp variant", () => {
334
+ const raw = {
335
+ elements: [
336
+ {
337
+ created: { time: 1700040000000 },
338
+ commentV2: { text: "Nested time" },
339
+ },
340
+ ],
341
+ };
342
+ const result = parseCommentsResponse(raw);
343
+ expect(result.comments[0]?.createdAt).toBe(1700040000000);
344
+ });
345
+ it("handles empty response gracefully", () => {
346
+ const result = parseCommentsResponse({});
347
+ expect(result.comments).toEqual([]);
348
+ expect(result.paging).toEqual({ start: 0, count: 0, total: 0 });
349
+ });
350
+ it("handles missing optional fields", () => {
351
+ const raw = {
352
+ elements: [{}],
353
+ };
354
+ const result = parseCommentsResponse(raw);
355
+ expect(result.comments).toHaveLength(1);
356
+ expect(result.comments[0]).toEqual({
357
+ commentUrn: null,
358
+ authorName: "",
359
+ authorHeadline: null,
360
+ authorPublicId: null,
361
+ text: "",
362
+ createdAt: null,
363
+ reactionCount: 0,
364
+ });
365
+ });
366
+ it("defaults paging from comment count when absent", () => {
367
+ const raw = {
368
+ elements: [{}, {}, {}],
369
+ };
370
+ const result = parseCommentsResponse(raw);
371
+ expect(result.paging).toEqual({ start: 0, count: 3, total: 3 });
372
+ });
373
+ });
374
+ describe("getPost", () => {
375
+ const CDP_PORT = 9222;
376
+ const POST_URL = "https://www.linkedin.com/feed/update/urn:li:activity:1234567890/";
377
+ function setupMocks(opts) {
378
+ const { postStatus = 200, postBody = {}, commentsStatus = 200, commentsBody = { elements: [] }, } = opts ?? {};
379
+ vi.mocked(discoverTargets).mockResolvedValue([
380
+ {
381
+ id: "target-1",
382
+ type: "page",
383
+ title: "LinkedIn",
384
+ url: "https://www.linkedin.com/feed/",
385
+ description: "",
386
+ devtoolsFrontendUrl: "",
387
+ },
388
+ ]);
389
+ const disconnect = vi.fn();
390
+ vi.mocked(CDPClient).mockImplementation(function () {
391
+ return {
392
+ connect: vi.fn().mockResolvedValue(undefined),
393
+ disconnect,
394
+ };
395
+ });
396
+ const fetchMock = vi
397
+ .fn()
398
+ .mockResolvedValueOnce({ url: "", status: postStatus, body: postBody })
399
+ .mockResolvedValueOnce({
400
+ url: "",
401
+ status: commentsStatus,
402
+ body: commentsBody,
403
+ });
404
+ vi.mocked(VoyagerInterceptor).mockImplementation(function () {
405
+ return { fetch: fetchMock };
406
+ });
407
+ return { fetchMock, disconnect };
408
+ }
409
+ beforeEach(() => {
410
+ vi.clearAllMocks();
411
+ });
412
+ afterEach(() => {
413
+ vi.restoreAllMocks();
414
+ });
415
+ it("throws on non-loopback host without allowRemote", async () => {
416
+ await expect(getPost({ postUrl: POST_URL, cdpPort: CDP_PORT, cdpHost: "192.168.1.1" })).rejects.toThrow("requires --allow-remote");
417
+ });
418
+ it("throws when no LinkedIn page found", async () => {
419
+ vi.mocked(discoverTargets).mockResolvedValue([]);
420
+ await expect(getPost({ postUrl: POST_URL, cdpPort: CDP_PORT })).rejects.toThrow("No LinkedIn page found in LinkedHelper");
421
+ });
422
+ it("throws on non-200 response for post detail", async () => {
423
+ setupMocks({ postStatus: 403 });
424
+ await expect(getPost({ postUrl: POST_URL, cdpPort: CDP_PORT })).rejects.toThrow("Voyager API returned HTTP 403 for post detail");
425
+ });
426
+ it("throws on non-object response body for post detail", async () => {
427
+ setupMocks({ postBody: null });
428
+ await expect(getPost({ postUrl: POST_URL, cdpPort: CDP_PORT })).rejects.toThrow("Voyager API returned an unexpected response format for post detail");
429
+ });
430
+ it("throws on non-200 response for post comments", async () => {
431
+ setupMocks({ commentsStatus: 500 });
432
+ await expect(getPost({ postUrl: POST_URL, cdpPort: CDP_PORT })).rejects.toThrow("Voyager API returned HTTP 500 for post comments");
433
+ });
434
+ it("throws on non-object response body for post comments", async () => {
435
+ setupMocks({ commentsBody: null });
436
+ await expect(getPost({ postUrl: POST_URL, cdpPort: CDP_PORT })).rejects.toThrow("Voyager API returned an unexpected response format for post comments");
437
+ });
438
+ it("disconnects CDP client after successful operation", async () => {
439
+ const { disconnect } = setupMocks();
440
+ await getPost({ postUrl: POST_URL, cdpPort: CDP_PORT });
441
+ expect(disconnect).toHaveBeenCalled();
442
+ });
443
+ it("disconnects CDP client even on error", async () => {
444
+ const { disconnect } = setupMocks({ postStatus: 500 });
445
+ await expect(getPost({ postUrl: POST_URL, cdpPort: CDP_PORT })).rejects.toThrow();
446
+ expect(disconnect).toHaveBeenCalled();
447
+ });
448
+ });
449
+ //# sourceMappingURL=get-post.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-post.test.js","sourceRoot":"","sources":["../../src/operations/get-post.test.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEzE,EAAE,CAAC,IAAI,CAAC,qBAAqB,EAAE,GAAG,EAAE,CAAC,CAAC;IACpC,eAAe,EAAE,EAAE,CAAC,EAAE,EAAE;CACzB,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,kBAAkB,EAAE,GAAG,EAAE,CAA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AC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,KAAK,IAAI,EAAE;QACpD,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QAEvD,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAElF,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,129 @@
1
+ import type { FeedPost } from "../types/feed.js";
2
+ import type { ConnectionOptions } from "./types.js";
3
+ /**
4
+ * Input for the get-profile-activity operation.
5
+ */
6
+ export interface GetProfileActivityInput extends ConnectionOptions {
7
+ /** LinkedIn profile public ID or full profile URL. */
8
+ readonly profile: string;
9
+ /** Number of posts to return per page (default: 20). */
10
+ readonly count?: number | undefined;
11
+ /** Offset for pagination (default: 0). */
12
+ readonly start?: number | undefined;
13
+ }
14
+ /**
15
+ * Output from the get-profile-activity operation.
16
+ */
17
+ export interface GetProfileActivityOutput {
18
+ /** Resolved profile public ID. */
19
+ readonly profilePublicId: string;
20
+ /** List of posts from the profile. */
21
+ readonly posts: FeedPost[];
22
+ /** Pagination metadata. */
23
+ readonly paging: {
24
+ readonly start: number;
25
+ readonly count: number;
26
+ readonly total: number;
27
+ };
28
+ }
29
+ /**
30
+ * Extract a LinkedIn public profile ID from a URL or bare identifier.
31
+ *
32
+ * Accepts:
33
+ * - Full URL: `https://www.linkedin.com/in/johndoe`
34
+ * - Bare public ID: `johndoe`
35
+ *
36
+ * @returns The decoded public ID.
37
+ */
38
+ export declare function extractProfileId(input: string): string;
39
+ interface VoyagerProfileUpdatesResponse {
40
+ data?: {
41
+ elements?: VoyagerFeedElement[];
42
+ paging?: VoyagerPaging;
43
+ };
44
+ elements?: VoyagerFeedElement[];
45
+ paging?: VoyagerPaging;
46
+ included?: VoyagerIncludedEntity[];
47
+ }
48
+ interface VoyagerFeedElement {
49
+ actor?: {
50
+ name?: {
51
+ text?: string;
52
+ };
53
+ publicIdentifier?: string;
54
+ description?: {
55
+ text?: string;
56
+ };
57
+ urn?: string;
58
+ "*miniProfile"?: string;
59
+ };
60
+ commentary?: {
61
+ text?: {
62
+ text?: string;
63
+ };
64
+ };
65
+ socialDetail?: {
66
+ totalSocialActivityCounts?: {
67
+ numLikes?: number;
68
+ numComments?: number;
69
+ numShares?: number;
70
+ };
71
+ };
72
+ updateMetadata?: {
73
+ urn?: string;
74
+ shareUrl?: string;
75
+ };
76
+ publishedAt?: number;
77
+ /** Alternative: some API versions use a top-level urn. */
78
+ urn?: string;
79
+ /** Alternative: resharedUpdate text in some versions. */
80
+ resharedUpdate?: {
81
+ commentary?: {
82
+ text?: {
83
+ text?: string;
84
+ };
85
+ };
86
+ };
87
+ }
88
+ interface VoyagerIncludedEntity {
89
+ $type?: string;
90
+ entityUrn?: string;
91
+ firstName?: string;
92
+ lastName?: string;
93
+ publicIdentifier?: string;
94
+ headline?: {
95
+ text?: string;
96
+ } | string;
97
+ occupation?: string;
98
+ }
99
+ interface VoyagerPaging {
100
+ start?: number;
101
+ count?: number;
102
+ total?: number;
103
+ }
104
+ /**
105
+ * Parse the Voyager profile-updates response into normalised FeedPost entries.
106
+ *
107
+ * @internal Exported for testing only.
108
+ */
109
+ export declare function parseProfileUpdatesResponse(raw: VoyagerProfileUpdatesResponse): {
110
+ posts: FeedPost[];
111
+ paging: {
112
+ start: number;
113
+ count: number;
114
+ total: number;
115
+ };
116
+ };
117
+ /**
118
+ * Retrieve recent posts/activity from a LinkedIn profile.
119
+ *
120
+ * Connects to the LinkedIn webview in LinkedHelper and calls the
121
+ * Voyager identity/profileUpdates API to get the profile's recent
122
+ * posts with engagement counts.
123
+ *
124
+ * @param input - Profile identifier, pagination, and CDP connection options.
125
+ * @returns List of posts with pagination metadata.
126
+ */
127
+ export declare function getProfileActivity(input: GetProfileActivityInput): Promise<GetProfileActivityOutput>;
128
+ export {};
129
+ //# sourceMappingURL=get-profile-activity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-profile-activity.d.ts","sourceRoot":"","sources":["../../src/operations/get-profile-activity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,sDAAsD;IACtD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,0CAA0C;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,kCAAkC;IAClC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAC3B,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,EAAE;QACf,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAKD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAetD;AAMD,UAAU,6BAA6B;IACrC,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;QAChC,MAAM,CAAC,EAAE,aAAa,CAAC;KACxB,C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