@selfcommunity/api-services 0.1.7 → 0.1.8-alpha.2

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 (463) hide show
  1. package/lib/{types → cjs}/client/index.d.ts +0 -0
  2. package/lib/{types → cjs}/client/index.d.ts.map +0 -0
  3. package/lib/cjs/client/index.js +112 -157
  4. package/lib/cjs/client/index.js.map +1 -0
  5. package/lib/{types → cjs}/constants/Endpoints.d.ts +0 -0
  6. package/lib/{types → cjs}/constants/Endpoints.d.ts.map +1 -1
  7. package/lib/cjs/constants/Endpoints.js +1017 -1051
  8. package/lib/cjs/constants/Endpoints.js.map +1 -0
  9. package/lib/{types → cjs}/index.d.ts +2 -2
  10. package/lib/{types → cjs}/index.d.ts.map +1 -1
  11. package/lib/cjs/index.js +133 -222
  12. package/lib/cjs/index.js.map +1 -0
  13. package/lib/{types → cjs}/services/category/index.d.ts +0 -0
  14. package/lib/{types → cjs}/services/category/index.d.ts.map +0 -0
  15. package/lib/cjs/services/category/index.js +218 -251
  16. package/lib/cjs/services/category/index.js.map +1 -0
  17. package/lib/{types → cjs}/services/comment/index.d.ts +5 -4
  18. package/lib/cjs/services/comment/index.d.ts.map +1 -0
  19. package/lib/cjs/services/comment/index.js +154 -181
  20. package/lib/cjs/services/comment/index.js.map +1 -0
  21. package/lib/{types → cjs}/services/custom_adv/index.d.ts +3 -3
  22. package/lib/cjs/services/custom_adv/index.d.ts.map +1 -0
  23. package/lib/cjs/services/custom_adv/index.js +56 -56
  24. package/lib/cjs/services/custom_adv/index.js.map +1 -0
  25. package/lib/{types → cjs}/services/custom_page/index.d.ts +0 -0
  26. package/lib/{types → cjs}/services/custom_page/index.d.ts.map +0 -0
  27. package/lib/cjs/services/custom_page/index.js +56 -56
  28. package/lib/cjs/services/custom_page/index.js.map +1 -0
  29. package/lib/{types → cjs}/services/data_portability/index.d.ts +0 -0
  30. package/lib/{types → cjs}/services/data_portability/index.d.ts.map +0 -0
  31. package/lib/cjs/services/data_portability/index.js +51 -49
  32. package/lib/cjs/services/data_portability/index.js.map +1 -0
  33. package/lib/{types → cjs}/services/embed/index.d.ts +8 -6
  34. package/lib/cjs/services/embed/index.d.ts.map +1 -0
  35. package/lib/cjs/services/embed/index.js +120 -128
  36. package/lib/cjs/services/embed/index.js.map +1 -0
  37. package/lib/cjs/services/feature/index.d.ts +19 -0
  38. package/lib/cjs/services/feature/index.d.ts.map +1 -0
  39. package/lib/cjs/services/feature/index.js +31 -25
  40. package/lib/cjs/services/feature/index.js.map +1 -0
  41. package/lib/{types → cjs}/services/feed/index.d.ts +2 -0
  42. package/lib/{types → cjs}/services/feed/index.d.ts.map +1 -1
  43. package/lib/cjs/services/feed/index.js +79 -81
  44. package/lib/cjs/services/feed/index.js.map +1 -0
  45. package/lib/{types → cjs}/services/feed_object/index.d.ts +9 -9
  46. package/lib/cjs/services/feed_object/index.d.ts.map +1 -0
  47. package/lib/cjs/services/feed_object/index.js +387 -485
  48. package/lib/cjs/services/feed_object/index.js.map +1 -0
  49. package/lib/{types → cjs}/services/incubator/index.d.ts +0 -0
  50. package/lib/{types → cjs}/services/incubator/index.d.ts.map +0 -0
  51. package/lib/cjs/services/incubator/index.js +104 -114
  52. package/lib/cjs/services/incubator/index.js.map +1 -0
  53. package/lib/{types → cjs}/services/insight/index.d.ts +13 -10
  54. package/lib/cjs/services/insight/index.d.ts.map +1 -0
  55. package/lib/cjs/services/insight/index.js +93 -94
  56. package/lib/cjs/services/insight/index.js.map +1 -0
  57. package/lib/{types → cjs}/services/legal_page/index.d.ts +0 -0
  58. package/lib/{types → cjs}/services/legal_page/index.d.ts.map +0 -0
  59. package/lib/cjs/services/legal_page/index.js +92 -102
  60. package/lib/cjs/services/legal_page/index.js.map +1 -0
  61. package/lib/cjs/services/locality/index.d.ts +26 -0
  62. package/lib/cjs/services/locality/index.d.ts.map +1 -0
  63. package/lib/cjs/services/locality/index.js +44 -37
  64. package/lib/cjs/services/locality/index.js.map +1 -0
  65. package/lib/{types → cjs}/services/loyalty/index.d.ts +3 -3
  66. package/lib/cjs/services/loyalty/index.d.ts.map +1 -0
  67. package/lib/cjs/services/loyalty/index.js +128 -148
  68. package/lib/cjs/services/loyalty/index.js.map +1 -0
  69. package/lib/{types → cjs}/services/media/index.d.ts +0 -0
  70. package/lib/{types → cjs}/services/media/index.d.ts.map +1 -1
  71. package/lib/cjs/services/media/index.js +107 -124
  72. package/lib/cjs/services/media/index.js.map +1 -0
  73. package/lib/{types → cjs}/services/moderation/index.d.ts +0 -0
  74. package/lib/{types → cjs}/services/moderation/index.d.ts.map +1 -1
  75. package/lib/cjs/services/moderation/index.js +95 -109
  76. package/lib/cjs/services/moderation/index.js.map +1 -0
  77. package/lib/{types → cjs}/services/notification/index.d.ts +3 -3
  78. package/lib/cjs/services/notification/index.d.ts.map +1 -0
  79. package/lib/cjs/services/notification/index.js +121 -131
  80. package/lib/cjs/services/notification/index.js.map +1 -0
  81. package/lib/{types → cjs}/services/preference/index.d.ts +0 -0
  82. package/lib/{types → cjs}/services/preference/index.d.ts.map +0 -0
  83. package/lib/cjs/services/preference/index.js +57 -65
  84. package/lib/cjs/services/preference/index.js.map +1 -0
  85. package/lib/{types → cjs}/services/private_message/index.d.ts +0 -0
  86. package/lib/{types → cjs}/services/private_message/index.d.ts.map +0 -0
  87. package/lib/cjs/services/private_message/index.js +137 -148
  88. package/lib/cjs/services/private_message/index.js.map +1 -0
  89. package/lib/cjs/services/score/index.d.ts +33 -0
  90. package/lib/cjs/services/score/index.d.ts.map +1 -0
  91. package/lib/cjs/services/score/index.js +56 -50
  92. package/lib/cjs/services/score/index.js.map +1 -0
  93. package/lib/{types → cjs}/services/sso/index.d.ts +2 -1
  94. package/lib/{types → cjs}/services/sso/index.d.ts.map +1 -1
  95. package/lib/cjs/services/sso/index.js +42 -38
  96. package/lib/cjs/services/sso/index.js.map +1 -0
  97. package/lib/{types → cjs}/services/suggestion/index.d.ts +0 -0
  98. package/lib/{types → cjs}/services/suggestion/index.d.ts.map +0 -0
  99. package/lib/cjs/services/suggestion/index.js +62 -61
  100. package/lib/cjs/services/suggestion/index.js.map +1 -0
  101. package/lib/{types → cjs}/services/tag/index.d.ts +10 -7
  102. package/lib/cjs/services/tag/index.d.ts.map +1 -0
  103. package/lib/cjs/services/tag/index.js +110 -119
  104. package/lib/cjs/services/tag/index.js.map +1 -0
  105. package/lib/{types → cjs}/services/user/index.d.ts +16 -12
  106. package/lib/cjs/services/user/index.d.ts.map +1 -0
  107. package/lib/cjs/services/user/index.js +606 -715
  108. package/lib/cjs/services/user/index.js.map +1 -0
  109. package/lib/{types → cjs}/services/webhook/index.d.ts +0 -0
  110. package/lib/{types → cjs}/services/webhook/index.d.ts.map +0 -0
  111. package/lib/cjs/services/webhook/index.js +164 -193
  112. package/lib/cjs/services/webhook/index.js.map +1 -0
  113. package/lib/{types → cjs}/types/baseParams.d.ts +0 -0
  114. package/lib/{types → cjs}/types/baseParams.d.ts.map +0 -0
  115. package/lib/cjs/types/baseParams.js +5 -2
  116. package/lib/cjs/types/baseParams.js.map +1 -0
  117. package/lib/{types → cjs}/types/category.d.ts +0 -0
  118. package/lib/{types → cjs}/types/category.d.ts.map +0 -0
  119. package/lib/cjs/types/category.js +2 -2
  120. package/lib/cjs/types/category.js.map +1 -0
  121. package/lib/{types → cjs}/types/comment.d.ts +0 -0
  122. package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
  123. package/lib/cjs/types/comment.js +2 -2
  124. package/lib/cjs/types/comment.js.map +1 -0
  125. package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
  126. package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
  127. package/lib/cjs/types/customAdv.js +2 -2
  128. package/lib/cjs/types/customAdv.js.map +1 -0
  129. package/lib/{types → cjs}/types/customPage.d.ts +0 -0
  130. package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
  131. package/lib/cjs/types/customPage.js +2 -2
  132. package/lib/cjs/types/customPage.js.map +1 -0
  133. package/lib/{types → cjs}/types/embed.d.ts +0 -0
  134. package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
  135. package/lib/cjs/types/embed.js +2 -2
  136. package/lib/cjs/types/embed.js.map +1 -0
  137. package/lib/cjs/types/feature.d.ts +11 -0
  138. package/lib/cjs/types/feature.d.ts.map +1 -0
  139. package/lib/cjs/types/feature.js +3 -0
  140. package/lib/cjs/types/feature.js.map +1 -0
  141. package/lib/{types → cjs}/types/feed.d.ts +0 -0
  142. package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
  143. package/lib/cjs/types/feed.js +2 -2
  144. package/lib/cjs/types/feed.js.map +1 -0
  145. package/lib/{types → cjs}/types/feedObject.d.ts +0 -0
  146. package/lib/{types → cjs}/types/feedObject.d.ts.map +0 -0
  147. package/lib/cjs/types/feedObject.js +2 -2
  148. package/lib/cjs/types/feedObject.js.map +1 -0
  149. package/lib/{types → cjs}/types/incubator.d.ts +0 -0
  150. package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
  151. package/lib/cjs/types/incubator.js +2 -2
  152. package/lib/cjs/types/incubator.js.map +1 -0
  153. package/lib/{types → cjs}/types/index.d.ts +6 -3
  154. package/lib/{types → cjs}/types/index.d.ts.map +1 -1
  155. package/lib/cjs/types/index.js +5 -101
  156. package/lib/cjs/types/index.js.map +1 -0
  157. package/lib/cjs/types/insight.d.ts +67 -0
  158. package/lib/cjs/types/insight.d.ts.map +1 -0
  159. package/lib/cjs/types/insight.js +3 -0
  160. package/lib/cjs/types/insight.js.map +1 -0
  161. package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
  162. package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
  163. package/lib/cjs/types/legalPage.js +2 -2
  164. package/lib/cjs/types/legalPage.js.map +1 -0
  165. package/lib/{types → cjs}/types/media.d.ts +2 -15
  166. package/lib/{types → cjs}/types/media.d.ts.map +1 -1
  167. package/lib/cjs/types/media.js +8 -27
  168. package/lib/cjs/types/media.js.map +1 -0
  169. package/lib/{types → cjs}/types/moderation.d.ts +1 -1
  170. package/lib/{types → cjs}/types/moderation.d.ts.map +1 -1
  171. package/lib/cjs/types/moderation.js +2 -2
  172. package/lib/cjs/types/moderation.js.map +1 -0
  173. package/lib/{types → cjs}/types/notification.d.ts +0 -0
  174. package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
  175. package/lib/cjs/types/notification.js +2 -2
  176. package/lib/cjs/types/notification.js.map +1 -0
  177. package/lib/{types → cjs}/types/paginatedResponse.d.ts +0 -0
  178. package/lib/{types → cjs}/types/paginatedResponse.d.ts.map +0 -0
  179. package/lib/cjs/types/paginatedResponse.js +5 -2
  180. package/lib/cjs/types/paginatedResponse.js.map +1 -0
  181. package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
  182. package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
  183. package/lib/cjs/types/privateMessage.js +2 -2
  184. package/lib/cjs/types/privateMessage.js.map +1 -0
  185. package/lib/{types → cjs}/types/prize.d.ts +0 -0
  186. package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
  187. package/lib/cjs/types/prize.js +2 -2
  188. package/lib/cjs/types/prize.js.map +1 -0
  189. package/lib/cjs/types/score.d.ts +19 -0
  190. package/lib/cjs/types/score.d.ts.map +1 -0
  191. package/lib/cjs/types/score.js +3 -0
  192. package/lib/cjs/types/score.js.map +1 -0
  193. package/lib/{types → cjs}/types/sso.d.ts +0 -0
  194. package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
  195. package/lib/cjs/types/sso.js +5 -2
  196. package/lib/cjs/types/sso.js.map +1 -0
  197. package/lib/{types → cjs}/types/tag.d.ts +22 -0
  198. package/lib/cjs/types/tag.d.ts.map +1 -0
  199. package/lib/cjs/types/tag.js +2 -2
  200. package/lib/cjs/types/tag.js.map +1 -0
  201. package/lib/{types → cjs}/types/user.d.ts +0 -0
  202. package/lib/{types → cjs}/types/user.d.ts.map +0 -0
  203. package/lib/cjs/types/user.js +2 -2
  204. package/lib/cjs/types/user.js.map +1 -0
  205. package/lib/{types → cjs}/types/webhook.d.ts +0 -0
  206. package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
  207. package/lib/cjs/types/webhook.js +2 -2
  208. package/lib/cjs/types/webhook.js.map +1 -0
  209. package/lib/cjs/utils/apiRequest.d.ts +2 -0
  210. package/lib/{types → cjs}/utils/apiRequest.d.ts.map +1 -1
  211. package/lib/cjs/utils/apiRequest.js +26 -25
  212. package/lib/cjs/utils/apiRequest.js.map +1 -0
  213. package/lib/{types → cjs}/utils/http.d.ts +0 -0
  214. package/lib/{types → cjs}/utils/http.d.ts.map +0 -0
  215. package/lib/cjs/utils/http.js +41 -45
  216. package/lib/cjs/utils/http.js.map +1 -0
  217. package/lib/{types → cjs}/utils/token.d.ts +0 -0
  218. package/lib/{types → cjs}/utils/token.d.ts.map +0 -0
  219. package/lib/cjs/utils/token.js +62 -31
  220. package/lib/cjs/utils/token.js.map +1 -0
  221. package/lib/esm/client/index.d.ts +115 -0
  222. package/lib/esm/client/index.d.ts.map +1 -0
  223. package/lib/esm/client/index.js +108 -160
  224. package/lib/esm/client/index.js.map +1 -0
  225. package/lib/esm/constants/Endpoints.d.ts +10 -0
  226. package/lib/esm/constants/Endpoints.d.ts.map +1 -0
  227. package/lib/esm/constants/Endpoints.js +1016 -1052
  228. package/lib/esm/constants/Endpoints.js.map +1 -0
  229. package/lib/esm/index.d.ts +51 -0
  230. package/lib/esm/index.d.ts.map +1 -0
  231. package/lib/esm/index.js +51 -223
  232. package/lib/esm/index.js.map +1 -0
  233. package/lib/esm/services/category/index.d.ts +127 -0
  234. package/lib/esm/services/category/index.d.ts.map +1 -0
  235. package/lib/esm/services/category/index.js +214 -255
  236. package/lib/esm/services/category/index.js.map +1 -0
  237. package/lib/esm/services/comment/index.d.ts +92 -0
  238. package/lib/esm/services/comment/index.d.ts.map +1 -0
  239. package/lib/esm/services/comment/index.js +150 -185
  240. package/lib/esm/services/comment/index.js.map +1 -0
  241. package/lib/esm/services/custom_adv/index.d.ts +33 -0
  242. package/lib/esm/services/custom_adv/index.d.ts.map +1 -0
  243. package/lib/esm/services/custom_adv/index.js +52 -60
  244. package/lib/esm/services/custom_adv/index.js.map +1 -0
  245. package/lib/esm/services/custom_page/index.d.ts +33 -0
  246. package/lib/esm/services/custom_page/index.d.ts.map +1 -0
  247. package/lib/esm/services/custom_page/index.js +52 -60
  248. package/lib/esm/services/custom_page/index.js.map +1 -0
  249. package/lib/esm/services/data_portability/index.d.ts +29 -0
  250. package/lib/esm/services/data_portability/index.d.ts.map +1 -0
  251. package/lib/esm/services/data_portability/index.js +47 -53
  252. package/lib/esm/services/data_portability/index.js.map +1 -0
  253. package/lib/esm/services/embed/index.d.ts +71 -0
  254. package/lib/esm/services/embed/index.d.ts.map +1 -0
  255. package/lib/esm/services/embed/index.js +116 -132
  256. package/lib/esm/services/embed/index.js.map +1 -0
  257. package/lib/esm/services/feature/index.d.ts +19 -0
  258. package/lib/esm/services/feature/index.d.ts.map +1 -0
  259. package/lib/esm/services/feature/index.js +27 -29
  260. package/lib/esm/services/feature/index.js.map +1 -0
  261. package/lib/esm/services/feed/index.d.ts +46 -0
  262. package/lib/esm/services/feed/index.d.ts.map +1 -0
  263. package/lib/esm/services/feed/index.js +75 -85
  264. package/lib/esm/services/feed/index.js.map +1 -0
  265. package/lib/esm/services/feed_object/index.d.ts +236 -0
  266. package/lib/esm/services/feed_object/index.d.ts.map +1 -0
  267. package/lib/esm/services/feed_object/index.js +383 -489
  268. package/lib/esm/services/feed_object/index.js.map +1 -0
  269. package/lib/esm/services/incubator/index.d.ts +61 -0
  270. package/lib/esm/services/incubator/index.d.ts.map +1 -0
  271. package/lib/esm/services/incubator/index.js +100 -118
  272. package/lib/esm/services/incubator/index.js.map +1 -0
  273. package/lib/esm/services/insight/index.d.ts +54 -0
  274. package/lib/esm/services/insight/index.d.ts.map +1 -0
  275. package/lib/esm/services/insight/index.js +89 -98
  276. package/lib/esm/services/insight/index.js.map +1 -0
  277. package/lib/esm/services/legal_page/index.d.ts +53 -0
  278. package/lib/esm/services/legal_page/index.d.ts.map +1 -0
  279. package/lib/esm/services/legal_page/index.js +88 -106
  280. package/lib/esm/services/legal_page/index.js.map +1 -0
  281. package/lib/esm/services/locality/index.d.ts +26 -0
  282. package/lib/esm/services/locality/index.d.ts.map +1 -0
  283. package/lib/esm/services/locality/index.js +40 -41
  284. package/lib/esm/services/locality/index.js.map +1 -0
  285. package/lib/esm/services/loyalty/index.d.ts +77 -0
  286. package/lib/esm/services/loyalty/index.d.ts.map +1 -0
  287. package/lib/esm/services/loyalty/index.js +124 -152
  288. package/lib/esm/services/loyalty/index.js.map +1 -0
  289. package/lib/esm/services/media/index.d.ts +65 -0
  290. package/lib/esm/services/media/index.d.ts.map +1 -0
  291. package/lib/esm/services/media/index.js +103 -128
  292. package/lib/esm/services/media/index.js.map +1 -0
  293. package/lib/esm/services/moderation/index.d.ts +58 -0
  294. package/lib/esm/services/moderation/index.d.ts.map +1 -0
  295. package/lib/esm/services/moderation/index.js +91 -113
  296. package/lib/esm/services/moderation/index.js.map +1 -0
  297. package/lib/esm/services/notification/index.d.ts +70 -0
  298. package/lib/esm/services/notification/index.d.ts.map +1 -0
  299. package/lib/esm/services/notification/index.js +117 -135
  300. package/lib/esm/services/notification/index.js.map +1 -0
  301. package/lib/esm/services/preference/index.d.ts +35 -0
  302. package/lib/esm/services/preference/index.d.ts.map +1 -0
  303. package/lib/esm/services/preference/index.js +53 -69
  304. package/lib/esm/services/preference/index.js.map +1 -0
  305. package/lib/esm/services/private_message/index.d.ts +81 -0
  306. package/lib/esm/services/private_message/index.d.ts.map +1 -0
  307. package/lib/esm/services/private_message/index.js +133 -152
  308. package/lib/esm/services/private_message/index.js.map +1 -0
  309. package/lib/esm/services/score/index.d.ts +33 -0
  310. package/lib/esm/services/score/index.d.ts.map +1 -0
  311. package/lib/esm/services/score/index.js +52 -54
  312. package/lib/esm/services/score/index.js.map +1 -0
  313. package/lib/esm/services/sso/index.d.ts +26 -0
  314. package/lib/esm/services/sso/index.d.ts.map +1 -0
  315. package/lib/esm/services/sso/index.js +38 -42
  316. package/lib/esm/services/sso/index.js.map +1 -0
  317. package/lib/esm/services/suggestion/index.d.ts +36 -0
  318. package/lib/esm/services/suggestion/index.d.ts.map +1 -0
  319. package/lib/esm/services/suggestion/index.js +58 -65
  320. package/lib/esm/services/suggestion/index.js.map +1 -0
  321. package/lib/esm/services/tag/index.d.ts +67 -0
  322. package/lib/esm/services/tag/index.d.ts.map +1 -0
  323. package/lib/esm/services/tag/index.js +106 -123
  324. package/lib/esm/services/tag/index.js.map +1 -0
  325. package/lib/esm/services/user/index.d.ts +351 -0
  326. package/lib/esm/services/user/index.d.ts.map +1 -0
  327. package/lib/esm/services/user/index.js +602 -719
  328. package/lib/esm/services/user/index.js.map +1 -0
  329. package/lib/esm/services/webhook/index.d.ts +99 -0
  330. package/lib/esm/services/webhook/index.d.ts.map +1 -0
  331. package/lib/esm/services/webhook/index.js +160 -197
  332. package/lib/esm/services/webhook/index.js.map +1 -0
  333. package/lib/esm/types/baseParams.d.ts +23 -0
  334. package/lib/esm/types/baseParams.d.ts.map +1 -0
  335. package/lib/esm/types/baseParams.js +5 -3
  336. package/lib/esm/types/baseParams.js.map +1 -0
  337. package/lib/esm/types/category.d.ts +15 -0
  338. package/lib/esm/types/category.d.ts.map +1 -0
  339. package/lib/esm/types/category.js +2 -3
  340. package/lib/esm/types/category.js.map +1 -0
  341. package/lib/esm/types/comment.d.ts +51 -0
  342. package/lib/esm/types/comment.d.ts.map +1 -0
  343. package/lib/esm/types/comment.js +2 -3
  344. package/lib/esm/types/comment.js.map +1 -0
  345. package/lib/esm/types/customAdv.d.ts +19 -0
  346. package/lib/esm/types/customAdv.d.ts.map +1 -0
  347. package/lib/esm/types/customAdv.js +2 -3
  348. package/lib/esm/types/customAdv.js.map +1 -0
  349. package/lib/esm/types/customPage.d.ts +24 -0
  350. package/lib/esm/types/customPage.d.ts.map +1 -0
  351. package/lib/esm/types/customPage.js +2 -3
  352. package/lib/esm/types/customPage.js.map +1 -0
  353. package/lib/esm/types/embed.d.ts +26 -0
  354. package/lib/esm/types/embed.d.ts.map +1 -0
  355. package/lib/esm/types/embed.js +2 -3
  356. package/lib/esm/types/embed.js.map +1 -0
  357. package/lib/esm/types/feature.d.ts +11 -0
  358. package/lib/esm/types/feature.d.ts.map +1 -0
  359. package/lib/esm/types/feature.js +2 -0
  360. package/lib/esm/types/feature.js.map +1 -0
  361. package/lib/esm/types/feed.d.ts +11 -0
  362. package/lib/esm/types/feed.d.ts.map +1 -0
  363. package/lib/esm/types/feed.js +2 -3
  364. package/lib/esm/types/feed.js.map +1 -0
  365. package/lib/esm/types/feedObject.d.ts +56 -0
  366. package/lib/esm/types/feedObject.d.ts.map +1 -0
  367. package/lib/esm/types/feedObject.js +2 -3
  368. package/lib/esm/types/feedObject.js.map +1 -0
  369. package/lib/esm/types/incubator.d.ts +33 -0
  370. package/lib/esm/types/incubator.d.ts.map +1 -0
  371. package/lib/esm/types/incubator.js +2 -3
  372. package/lib/esm/types/incubator.js.map +1 -0
  373. package/lib/esm/types/index.d.ts +25 -0
  374. package/lib/esm/types/index.d.ts.map +1 -0
  375. package/lib/esm/types/index.js +3 -102
  376. package/lib/esm/types/index.js.map +1 -0
  377. package/lib/esm/types/insight.d.ts +67 -0
  378. package/lib/esm/types/insight.d.ts.map +1 -0
  379. package/lib/esm/types/insight.js +2 -0
  380. package/lib/esm/types/insight.js.map +1 -0
  381. package/lib/esm/types/legalPage.d.ts +19 -0
  382. package/lib/esm/types/legalPage.d.ts.map +1 -0
  383. package/lib/esm/types/legalPage.js +2 -3
  384. package/lib/esm/types/legalPage.js.map +1 -0
  385. package/lib/esm/types/media.d.ts +67 -0
  386. package/lib/esm/types/media.d.ts.map +1 -0
  387. package/lib/esm/types/media.js +6 -28
  388. package/lib/esm/types/media.js.map +1 -0
  389. package/lib/esm/types/moderation.d.ts +23 -0
  390. package/lib/esm/types/moderation.d.ts.map +1 -0
  391. package/lib/esm/types/moderation.js +2 -3
  392. package/lib/esm/types/moderation.js.map +1 -0
  393. package/lib/esm/types/notification.d.ts +31 -0
  394. package/lib/esm/types/notification.d.ts.map +1 -0
  395. package/lib/esm/types/notification.js +2 -3
  396. package/lib/esm/types/notification.js.map +1 -0
  397. package/lib/esm/types/paginatedResponse.d.ts +10 -0
  398. package/lib/esm/types/paginatedResponse.d.ts.map +1 -0
  399. package/lib/esm/types/paginatedResponse.js +5 -3
  400. package/lib/esm/types/paginatedResponse.js.map +1 -0
  401. package/lib/esm/types/privateMessage.d.ts +176 -0
  402. package/lib/esm/types/privateMessage.d.ts.map +1 -0
  403. package/lib/esm/types/privateMessage.js +2 -3
  404. package/lib/esm/types/privateMessage.js.map +1 -0
  405. package/lib/esm/types/prize.d.ts +47 -0
  406. package/lib/esm/types/prize.d.ts.map +1 -0
  407. package/lib/esm/types/prize.js +2 -3
  408. package/lib/esm/types/prize.js.map +1 -0
  409. package/lib/esm/types/score.d.ts +19 -0
  410. package/lib/esm/types/score.d.ts.map +1 -0
  411. package/lib/esm/types/score.js +2 -0
  412. package/lib/esm/types/score.js.map +1 -0
  413. package/lib/esm/types/sso.d.ts +12 -0
  414. package/lib/esm/types/sso.d.ts.map +1 -0
  415. package/lib/esm/types/sso.js +5 -3
  416. package/lib/esm/types/sso.js.map +1 -0
  417. package/lib/esm/types/tag.d.ts +61 -0
  418. package/lib/esm/types/tag.d.ts.map +1 -0
  419. package/lib/esm/types/tag.js +2 -3
  420. package/lib/esm/types/tag.js.map +1 -0
  421. package/lib/esm/types/user.d.ts +105 -0
  422. package/lib/esm/types/user.d.ts.map +1 -0
  423. package/lib/esm/types/user.js +2 -3
  424. package/lib/esm/types/user.js.map +1 -0
  425. package/lib/esm/types/webhook.d.ts +32 -0
  426. package/lib/esm/types/webhook.d.ts.map +1 -0
  427. package/lib/esm/types/webhook.js +2 -3
  428. package/lib/esm/types/webhook.js.map +1 -0
  429. package/lib/esm/utils/apiRequest.d.ts +2 -0
  430. package/lib/esm/utils/apiRequest.d.ts.map +1 -0
  431. package/lib/esm/utils/apiRequest.js +21 -27
  432. package/lib/esm/utils/apiRequest.js.map +1 -0
  433. package/lib/esm/utils/http.d.ts +6 -0
  434. package/lib/esm/utils/http.d.ts.map +1 -0
  435. package/lib/esm/utils/http.js +39 -48
  436. package/lib/esm/utils/http.js.map +1 -0
  437. package/lib/esm/utils/token.d.ts +21 -0
  438. package/lib/esm/utils/token.d.ts.map +1 -0
  439. package/lib/esm/utils/token.js +36 -33
  440. package/lib/esm/utils/token.js.map +1 -0
  441. package/lib/umd/api-services.js +1 -1
  442. package/lib/umd/api-services.js.map +1 -1
  443. package/package.json +7 -9
  444. package/lib/cjs/index.d.js +0 -2
  445. package/lib/esm/index.d.js +0 -2
  446. package/lib/types/services/comment/index.d.ts.map +0 -1
  447. package/lib/types/services/custom_adv/index.d.ts.map +0 -1
  448. package/lib/types/services/embed/index.d.ts.map +0 -1
  449. package/lib/types/services/feature/index.d.ts +0 -18
  450. package/lib/types/services/feature/index.d.ts.map +0 -1
  451. package/lib/types/services/feed_object/index.d.ts.map +0 -1
  452. package/lib/types/services/insight/index.d.ts.map +0 -1
  453. package/lib/types/services/locality/index.d.ts +0 -24
  454. package/lib/types/services/locality/index.d.ts.map +0 -1
  455. package/lib/types/services/loyalty/index.d.ts.map +0 -1
  456. package/lib/types/services/notification/index.d.ts.map +0 -1
  457. package/lib/types/services/score/index.d.ts +0 -31
  458. package/lib/types/services/score/index.d.ts.map +0 -1
  459. package/lib/types/services/tag/index.d.ts.map +0 -1
  460. package/lib/types/services/user/index.d.ts.map +0 -1
  461. package/lib/types/tsconfig.build.tsbuildinfo +0 -1
  462. package/lib/types/types/tag.d.ts.map +0 -1
  463. package/lib/types/utils/apiRequest.d.ts +0 -2
@@ -1,724 +1,607 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = exports.UserApiClient = void 0;
5
-
6
- var _apiRequest = require("../../utils/apiRequest");
7
-
8
- var _Endpoints = _interopRequireDefault(require("../../constants/Endpoints"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { apiRequest } from '../../utils/apiRequest';
11
+ import Endpoints from '../../constants/Endpoints';
12
12
  /**
13
13
  * Contains all the endpoints needed to manage users.
14
14
  */
15
- class UserApiClient {
16
- /**
17
- * This endpoint retrieves the list of all users
18
- */
19
- static getAllUsers() {
20
- return (0, _apiRequest.apiRequest)(_Endpoints.default.User.url({}), _Endpoints.default.User.method);
21
- }
22
- /**
23
- * This endpoint retrieves the list of all users hidden by the authenticated user
24
- */
25
-
26
-
27
- static getHiddenUsers() {
28
- return (0, _apiRequest.apiRequest)(_Endpoints.default.ListHiddenUsers.url(), _Endpoints.default.ListHiddenUsers.method);
29
- }
30
- /**
31
- * This endpoint retrieves the list of all users that meet the search criteria. The user object returned will contain only the following attributes: id, username, real_name, ext_id and avatar.
32
- * This endpoint is recommended for implementing an autocomplete input field.
33
- * @param params
34
- */
35
-
36
-
37
- static userAutocomplete(params) {
38
- const p = new URLSearchParams(params);
39
- return (0, _apiRequest.apiRequest)(`${_Endpoints.default.UserAutocomplete.url()}?${p.toString()})}`, _Endpoints.default.UserAutocomplete.method);
40
- }
41
- /**
42
- * This endpoint performs users search.
43
- * @param params
44
- */
45
-
46
-
47
- static userSearch(params) {
48
- const p = new URLSearchParams(params);
49
- return (0, _apiRequest.apiRequest)(`${_Endpoints.default.UserSearch.url()}?${p.toString()})}`, _Endpoints.default.UserSearch.method);
50
- }
51
- /**
52
- * This endpoint retrieves a specific user's profile identified by ID.
53
- * @param id
54
- */
55
-
56
-
57
- static getSpecificUser(id) {
58
- return (0, _apiRequest.apiRequest)(_Endpoints.default.User.url({
59
- id
60
- }), _Endpoints.default.User.method);
61
- }
62
- /**
63
- * This endpoint retrieves the counters of a specific user identified by Id.
64
- * @param id
65
- */
66
-
67
-
68
- static getUserCounters(id) {
69
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserCounters.url({
70
- id
71
- }), _Endpoints.default.UserCounters.method);
72
- }
73
- /**
74
- * This endpoint updates the profile of a user identified by ID. A user can only update their personal data.
75
- * @param id
76
- * @param data
77
- */
78
-
79
-
80
- static userUpdate(id, data) {
81
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserUpdate.url({
82
- id
83
- }), _Endpoints.default.UserUpdate.method, data != null ? data : null);
84
- }
85
- /**
86
- * This endpoint patches a specific user identified by {id}
87
- * @param id
88
- * @param data
89
- */
90
-
91
-
92
- static userPatch(id, data) {
93
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserPatch.url({
94
- id
95
- }), _Endpoints.default.UserPatch.method, data != null ? data : null);
96
- }
97
- /**
98
- * This endpoint deletes a specific user identified by {id}
99
- * @param id
100
- * @param hard
101
- */
102
-
103
-
104
- static userDelete(id, hard) {
105
- return (0, _apiRequest.apiRequest)(`${_Endpoints.default.UserDelete.url({
106
- id
107
- })}?${hard.toString()})}`, _Endpoints.default.UserDelete.method);
108
- }
109
- /**
110
- * This endpoint changes the email of the authenticated user.
111
- * @param id
112
- * @param new_email
113
- * @param confirm
114
- */
115
-
116
-
117
- static changeUserMail(id, new_email, confirm) {
118
- return (0, _apiRequest.apiRequest)(_Endpoints.default.ChangeUserMail.url({
119
- id
120
- }), _Endpoints.default.ChangeUserMail.method, {
121
- new_email: new_email,
122
- confirm: confirm != null ? confirm : null
123
- });
124
- }
125
- /**
126
- * This endpoint confirms email change.
127
- * @param id
128
- * @param new_email
129
- * @param validation_code
130
- */
131
-
132
-
133
- static confirmChangeUserMail(id, new_email, validation_code) {
134
- return (0, _apiRequest.apiRequest)(_Endpoints.default.ConfirmUserChangeMail.url({
135
- id
136
- }), _Endpoints.default.ConfirmUserChangeMail.method, {
137
- new_email: new_email,
138
- validation_code: validation_code
139
- });
140
- }
141
- /**
142
- * This endpoint changes the password of the authenticated user.
143
- * @param id
144
- * @param password
145
- * @param new_password
146
- */
147
-
148
-
149
- static changeUserPassword(id, password, new_password) {
150
- return (0, _apiRequest.apiRequest)(_Endpoints.default.ChangeUserPassword.url({
151
- id
152
- }), _Endpoints.default.ChangeUserPassword.method, {
153
- password: password,
154
- new_password: new_password
155
- });
156
- }
157
- /**
158
- * This endpoint retrieves all current user's settings for the authenticated user.
159
- * @param id
160
- */
161
-
162
-
163
- static userSettings(id) {
164
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserSettings.url({
165
- id
166
- }), _Endpoints.default.UserSettings.method);
167
- }
168
- /**
169
- * This endpoint changes the user settings for the authenticated user.
170
- * @param id
171
- * @param data
172
- */
173
-
174
-
175
- static userSettingsPatch(id, data) {
176
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserSettingsPatch.url({
177
- id
178
- }), _Endpoints.default.UserSettingsPatch.method, data != null ? data : null);
179
- }
180
- /**
181
- * This endpoint returns the user identified by the authentication token.
182
- */
183
-
184
-
185
- static getCurrentUser() {
186
- return (0, _apiRequest.apiRequest)(_Endpoints.default.Me.url(), _Endpoints.default.Me.method);
187
- }
188
- /**
189
- * This endpoint returns the url to the user's current avatar.
190
- */
191
-
192
-
193
- static getCurrentUserAvatar() {
194
- return (0, _apiRequest.apiRequest)(_Endpoints.default.MyAvatar.url({}), _Endpoints.default.MyAvatar.method);
195
- }
196
- /**
197
- * This endpoint returns a list of permissions for the user identified by the authentication token. Some of the permissions in the list depend on global community settings.
198
- */
199
-
200
-
201
- static getCurrentUserPermission() {
202
- return (0, _apiRequest.apiRequest)(_Endpoints.default.Permission.url({}), _Endpoints.default.Permission.method);
203
- }
204
- /**
205
- * This endpoint retrieves the platform url starting from the Authorization user token. Using this url, the logged user (must be a staff member) can access the platform to manage the community.
206
- */
207
-
208
-
209
- static getCurrentUserPlatform() {
210
- return (0, _apiRequest.apiRequest)(_Endpoints.default.Platform.url({}), _Endpoints.default.Platform.method);
211
- }
212
- /**
213
- * This endpoint gets the list of categories followed by the user.
214
- * @param id
215
- * @param mutual
216
- */
217
-
218
-
219
- static getUserFollowedCategories(id, mutual) {
220
- return (0, _apiRequest.apiRequest)(`${_Endpoints.default.FollowedCategories.url({
221
- id
222
- })}?${mutual.toString()})}`, _Endpoints.default.FollowedCategories.method);
223
- }
224
- /**
225
- * This endpoint retrieves the list of posts of the user identified by {id}
226
- * @param id
227
- */
228
-
229
-
230
- static getUserFeed(id) {
231
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserFeed.url({
232
- id
233
- }), _Endpoints.default.UserFeed.method);
234
- }
235
- /**
236
- * This endpoint retrieves the list of followers of a specific user identified by {id}
237
- * @param id
238
- * @param mutual
239
- */
240
-
241
-
242
- static getUserFollowers(id, mutual) {
243
- return (0, _apiRequest.apiRequest)(`${_Endpoints.default.UserFollowers.url({
244
- id
245
- })}?${mutual.toString()})}`, _Endpoints.default.UserFollowers.method);
246
- }
247
- /**
248
- * This endpoint retrieves the list of following of a specific user identified by {id}.
249
- * @param id
250
- * @param mutual
251
- */
252
-
253
-
254
- static getUserFollowed(id, mutual) {
255
- return (0, _apiRequest.apiRequest)(`${_Endpoints.default.UserFollowed.url({
256
- id
257
- })}?${mutual.toString()})`, _Endpoints.default.UserFollowed.method);
258
- }
259
- /**
260
- * This endpoint allows a user to follow another user identified by {id}
261
- * @param id
262
- */
263
-
264
-
265
- static followUser(id) {
266
- return (0, _apiRequest.apiRequest)(_Endpoints.default.FollowUser.url({
267
- id
268
- }), _Endpoints.default.FollowUser.method);
269
- }
270
- /**
271
- * This endpoint returns is_followed = true if the user (identified in path) is followed by me.
272
- * @param id
273
- */
274
-
275
-
276
- static checkUserFollowed(id) {
277
- return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckUserFollowed.url({
278
- id
279
- }), _Endpoints.default.CheckUserFollowed.method);
280
- }
281
- /**
282
- * This endpoint returns is_follower = true if the user (identified in path) follow me
283
- * @param id
284
- */
285
-
286
-
287
- static checkUserFollower(id) {
288
- return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckUserFollower.url({
289
- id
290
- }), _Endpoints.default.CheckUserFollower.method);
291
- }
292
- /**
293
- * This endpoint retrieves the list of connections of a specific user identified by ID.
294
- * @param id
295
- * @param mutual
296
- */
297
-
298
-
299
- static getUserConnections(id, mutual) {
300
- return (0, _apiRequest.apiRequest)(`${_Endpoints.default.UserConnections.url({
301
- id
302
- })}?${mutual.toString()})`, _Endpoints.default.UserConnections.method);
303
- }
304
- /**
305
- * This endpoint returns is_connection = true if the user (identified in path) is connected with me.
306
- * @param id
307
- */
308
-
309
-
310
- static checkUserConnections(id) {
311
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserCheckConnection.url({
312
- id
313
- }), _Endpoints.default.UserCheckConnection.method);
314
- }
315
- /**
316
- * This endpoint retrieves the list of connection requests received by a specific user identified by ID.
317
- * @param id
318
- */
319
-
320
-
321
- static getUserConnectionRequests(id) {
322
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserConnectionRequests.url({
323
- id
324
- }), _Endpoints.default.UserConnectionRequests.method);
325
- }
326
- /**
327
- * This endpoint retrieves a specific user's list of connection requests sent by user.
328
- * @param id
329
- */
330
-
331
-
332
- static getUserRequestConnectionsSent(id) {
333
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserRequestConnectionsSent.url({
334
- id
335
- }), _Endpoints.default.UserRequestConnectionsSent.method);
336
- }
337
- /**
338
- * This endpoint accepts a request connection of the user identified by {id}
339
- * @param id
340
- */
341
-
342
-
343
- static userAcceptRequestConnection(id) {
344
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserAcceptRequestConnection.url({
345
- id
346
- }), _Endpoints.default.UserAcceptRequestConnection.method);
347
- }
348
- /**
349
- * This endpoint requests a connection to the user identified by {id}
350
- * @param id
351
- */
352
-
353
-
354
- static userRequestConnection(id) {
355
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserRequestConnection.url({
356
- id
357
- }), _Endpoints.default.UserRequestConnection.method);
358
- }
359
- /**
360
- * This endpoint removes connection with the user identified by {id}
361
- * @param id
362
- */
363
-
364
-
365
- static userRemoveConnection(id) {
366
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserRemoveConnection.url({
367
- id
368
- }), _Endpoints.default.UserRemoveConnection.method);
369
- }
370
- /**
371
- * This endpoint cancels reject connection to a user identified by {id}
372
- * @param id
373
- */
374
-
375
-
376
- static userCancelRejectConnectionRequest(id) {
377
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserCancelRejectConnectionRequest.url({
378
- id
379
- }), _Endpoints.default.UserCancelRejectConnectionRequest.method);
380
- }
381
- /**
382
- * This endpoint cancels a request connection for a user.
383
- * @param id
384
- */
385
-
386
-
387
- static userCancelRequestConnection(id) {
388
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserCancelRequestConnection.url({
389
- id
390
- }), _Endpoints.default.UserCancelRequestConnection.method);
391
- }
392
- /**
393
- * This endpoint rejects a connection request sent from user identified by {id}
394
- * @param id
395
- */
396
-
397
-
398
- static userRejectConnectionRequest(id) {
399
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserRejectConnectionRequest.url({
400
- id
401
- }), _Endpoints.default.UserRejectConnectionRequest.method);
402
- }
403
- /**
404
- * This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
405
- * @param id
406
- */
407
-
408
-
409
- static userMarkSeenConnectionRequest(id) {
410
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserMarkSeenConnectionRequest.url({
411
- id
412
- }), _Endpoints.default.UserMarkSeenConnectionRequest.method);
413
- }
414
- /**
415
- * This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
416
- * @param id
417
- */
418
-
419
-
420
- static showHideUser(id) {
421
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserShowHide.url({
422
- id
423
- }), _Endpoints.default.UserShowHide.method);
424
- }
425
- /**
426
- * This endpoint returns true if the user (identified in path) is hidden by the authenticated user.
427
- * @param id
428
- */
429
-
430
-
431
- static checkUserHidden(id) {
432
- return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckUserHidden.url({
433
- id
434
- }), _Endpoints.default.CheckUserHidden.method);
435
- }
436
- /**
437
- * This endpoint returns true if the user (identified in path) has hidden by the authenticated user.
438
- * @param id
439
- */
440
-
441
-
442
- static checkUserHiddenBy(id) {
443
- return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckUserHiddenBy.url({
444
- id
445
- }), _Endpoints.default.CheckUserHiddenBy.method);
446
- }
447
- /**
448
- * This endpoint returns user's loyalty points.
449
- * @param id
450
- */
451
-
452
-
453
- static getUserLoyaltyPoints(id) {
454
- return (0, _apiRequest.apiRequest)(_Endpoints.default.GetUserLoyaltyPoints.url({
455
- id
456
- }), _Endpoints.default.GetUserLoyaltyPoints.method);
457
- }
458
- /**
459
- * This endpoint lists the connection/follow statuses of the logged user starting from a users array.
460
- * @param users
461
- */
462
-
463
-
464
- static getUserConnectionStatuses(users) {
465
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserConnectionStatuses.url({}), _Endpoints.default.UserConnectionStatuses.method, {
466
- users: users
467
- });
468
- }
469
- /**
470
- * This endpoint returns user's tags to address a contribution.
471
- */
472
-
473
-
474
- static userTagToAddressContribution() {
475
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UserTagToAddressContribution.url({}), _Endpoints.default.UserTagToAddressContribution.method);
476
- }
477
- /**
478
- * This endpoint checks an email token.
479
- */
480
-
481
-
482
- static checkUserEmailToken() {
483
- return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckEmailToken.url({}), _Endpoints.default.CheckEmailToken.method);
484
- }
485
- /**
486
- * This endpoint adds an avatar to my avatars.
487
- * @param avatar
488
- */
489
-
490
-
491
- static addUserAvatar(avatar) {
492
- return (0, _apiRequest.apiRequest)(_Endpoints.default.AddAvatar.url({}), _Endpoints.default.AddAvatar.method, {
493
- 'Content-Type': 'multipart/form-data'
494
- }, {
495
- avatar: avatar
496
- });
497
- }
498
- /**
499
- * This endpoint retrieves all user avatars.
500
- */
501
-
502
-
503
- static getUserAvatars() {
504
- return (0, _apiRequest.apiRequest)(_Endpoints.default.GetAvatars.url({}), _Endpoints.default.GetAvatars.method);
505
- }
506
- /**
507
- * This endpoint removes/deletes an avatar from the authenticated user avatars.
508
- * @param avatar_id
509
- */
510
-
511
-
512
- static removeUserAvatar(avatar_id) {
513
- return (0, _apiRequest.apiRequest)(_Endpoints.default.RemoveAvatar.url({}), _Endpoints.default.RemoveAvatar.method, {
514
- avatar_id: avatar_id
515
- });
516
- }
517
- /**
518
- * This endpoint sets the primary avatar for the authenticated user.
519
- * @param avatar_id
520
- */
521
-
522
-
523
- static setUserPrimaryAvatar(avatar_id) {
524
- return (0, _apiRequest.apiRequest)(_Endpoints.default.SetPrimaryAvatar.url({}), _Endpoints.default.SetPrimaryAvatar.method, {
525
- avatar_id: avatar_id
526
- });
527
- }
528
-
15
+ export class UserApiClient {
16
+ /**
17
+ * This endpoint retrieves the list of all users
18
+ * @param params
19
+ */
20
+ static getAllUsers(params) {
21
+ const p = new URLSearchParams(params);
22
+ return apiRequest(`${Endpoints.UserList.url({})}?${p.toString()}`, Endpoints.UserList.method);
23
+ }
24
+ /**
25
+ * This endpoint retrieves the list of all users hidden by the authenticated user
26
+ * @param params
27
+ */
28
+ static getHiddenUsers(params) {
29
+ const p = new URLSearchParams(params);
30
+ return apiRequest(`${Endpoints.ListHiddenUsers.url({})}?${p.toString()}`, Endpoints.ListHiddenUsers.method);
31
+ }
32
+ /**
33
+ * This endpoint retrieves the list of all users that meet the search criteria. The user object returned will contain only the following attributes: id, username, real_name, ext_id and avatar.
34
+ * This endpoint is recommended for implementing an autocomplete input field.
35
+ * @param params
36
+ */
37
+ static userAutocomplete(params) {
38
+ const p = new URLSearchParams(params);
39
+ return apiRequest(`${Endpoints.UserAutocomplete.url({})}?${p.toString()}`, Endpoints.UserAutocomplete.method);
40
+ }
41
+ /**
42
+ * This endpoint performs users search.
43
+ * @param params
44
+ */
45
+ static userSearch(params) {
46
+ const p = new URLSearchParams(params);
47
+ return apiRequest(`${Endpoints.UserSearch.url({})}?${p.toString()}`, Endpoints.UserSearch.method);
48
+ }
49
+ /**
50
+ * This endpoint retrieves a specific user's profile identified by ID.
51
+ * @param id
52
+ */
53
+ static getSpecificUser(id) {
54
+ return apiRequest(Endpoints.User.url({ id }), Endpoints.User.method);
55
+ }
56
+ /**
57
+ * This endpoint retrieves the counters of a specific user identified by Id.
58
+ * @param id
59
+ */
60
+ static getUserCounters(id) {
61
+ return apiRequest(Endpoints.UserCounters.url({ id }), Endpoints.UserCounters.method);
62
+ }
63
+ /**
64
+ * This endpoint updates the profile of a user identified by ID. A user can only update their personal data.
65
+ * If the request will update the avatar or the cover the 'Content-Type' request header must be set as 'multipart/form-data', otherwise it can be 'application/x-www-form-urlencoded'.
66
+ * @param id
67
+ * @param data
68
+ */
69
+ static userUpdate(id, data) {
70
+ return apiRequest(Endpoints.UserUpdate.url({ id }), Endpoints.UserUpdate.method, data);
71
+ }
72
+ /**
73
+ * This endpoint patches a specific user identified by {id}
74
+ * @param id
75
+ * @param data
76
+ */
77
+ static userPatch(id, data) {
78
+ return apiRequest(Endpoints.UserPatch.url({ id }), Endpoints.UserPatch.method, data);
79
+ }
80
+ /**
81
+ * This endpoint deletes a specific user identified by {id}
82
+ * @param id
83
+ * @param hard
84
+ */
85
+ static userDelete(id, hard) {
86
+ return apiRequest(`${Endpoints.UserDelete.url({ id })}?${hard.toString()}`, Endpoints.UserDelete.method);
87
+ }
88
+ /**
89
+ * This endpoint changes the email of the authenticated user.
90
+ * @param id
91
+ * @param new_email
92
+ * @param confirm
93
+ */
94
+ static changeUserMail(id, new_email, confirm) {
95
+ return apiRequest(Endpoints.ChangeUserMail.url({ id }), Endpoints.ChangeUserMail.method, {
96
+ new_email: new_email,
97
+ confirm: confirm
98
+ });
99
+ }
100
+ /**
101
+ * This endpoint confirms email change.
102
+ * @param id
103
+ * @param new_email
104
+ * @param validation_code
105
+ */
106
+ static confirmChangeUserMail(id, new_email, validation_code) {
107
+ return apiRequest(Endpoints.ConfirmUserChangeMail.url({ id }), Endpoints.ConfirmUserChangeMail.method, {
108
+ new_email: new_email,
109
+ validation_code: validation_code
110
+ });
111
+ }
112
+ /**
113
+ * This endpoint changes the password of the authenticated user.
114
+ * @param id
115
+ * @param password
116
+ * @param new_password
117
+ */
118
+ static changeUserPassword(id, password, new_password) {
119
+ return apiRequest(Endpoints.ChangeUserPassword.url({ id }), Endpoints.ChangeUserPassword.method, {
120
+ password: password,
121
+ new_password: new_password
122
+ });
123
+ }
124
+ /**
125
+ * This endpoint retrieves all current user's settings for the authenticated user.
126
+ * @param id
127
+ */
128
+ static userSettings(id) {
129
+ return apiRequest(Endpoints.UserSettings.url({ id }), Endpoints.UserSettings.method);
130
+ }
131
+ /**
132
+ * This endpoint changes the user settings for the authenticated user.
133
+ * @param id
134
+ * @param data
135
+ */
136
+ static userSettingsPatch(id, data) {
137
+ return apiRequest(Endpoints.UserSettingsPatch.url({ id }), Endpoints.UserSettingsPatch.method, data !== null && data !== void 0 ? data : null);
138
+ }
139
+ /**
140
+ * This endpoint returns the user identified by the authentication token.
141
+ */
142
+ static getCurrentUser() {
143
+ return apiRequest(Endpoints.Me.url(), Endpoints.Me.method);
144
+ }
145
+ /**
146
+ * This endpoint returns the url to the user's current avatar.
147
+ */
148
+ static getCurrentUserAvatar() {
149
+ return apiRequest(Endpoints.MyAvatar.url({}), Endpoints.MyAvatar.method);
150
+ }
151
+ /**
152
+ * This endpoint returns a list of permissions for the user identified by the authentication token. Some of the permissions in the list depend on global community settings.
153
+ */
154
+ static getCurrentUserPermission() {
155
+ return apiRequest(Endpoints.Permission.url({}), Endpoints.Permission.method);
156
+ }
157
+ /**
158
+ * This endpoint retrieves the platform url starting from the Authorization user token. Using this url, the logged user (must be a staff member) can access the platform to manage the community.
159
+ */
160
+ static getCurrentUserPlatform() {
161
+ return apiRequest(Endpoints.Platform.url({}), Endpoints.Platform.method);
162
+ }
163
+ /**
164
+ * This endpoint gets the list of categories followed by the user.
165
+ * @param id
166
+ * @param mutual
167
+ */
168
+ static getUserFollowedCategories(id, mutual) {
169
+ return apiRequest(Endpoints.FollowedCategories.url({ id, mutual }), Endpoints.FollowedCategories.method);
170
+ }
171
+ /**
172
+ * This endpoint retrieves the list of posts of the user identified by {id}
173
+ * @param id
174
+ */
175
+ static getUserFeed(id) {
176
+ return apiRequest(Endpoints.UserFeed.url({ id }), Endpoints.UserFeed.method);
177
+ }
178
+ /**
179
+ * This endpoint retrieves the list of followers of a specific user identified by {id}
180
+ * @param id
181
+ * @param mutual
182
+ */
183
+ static getUserFollowers(id, mutual) {
184
+ return apiRequest(Endpoints.UserFollowers.url({ id, mutual }), Endpoints.UserFollowers.method);
185
+ }
186
+ /**
187
+ * This endpoint retrieves the list of following of a specific user identified by {id}.
188
+ * @param id
189
+ * @param mutual
190
+ */
191
+ static getUserFollowed(id, mutual) {
192
+ return apiRequest(Endpoints.UsersFollowed.url({ id, mutual }), Endpoints.UsersFollowed.method);
193
+ }
194
+ /**
195
+ * This endpoint allows a user to follow another user identified by {id}
196
+ * @param id
197
+ */
198
+ static followUser(id) {
199
+ return apiRequest(Endpoints.FollowUser.url({ id }), Endpoints.FollowUser.method);
200
+ }
201
+ /**
202
+ * This endpoint returns is_followed = true if the user (identified in path) is followed by me.
203
+ * @param id
204
+ */
205
+ static checkUserFollowed(id) {
206
+ return apiRequest(Endpoints.CheckUserFollowed.url({ id }), Endpoints.CheckUserFollowed.method);
207
+ }
208
+ /**
209
+ * This endpoint returns is_follower = true if the user (identified in path) follow me
210
+ * @param id
211
+ */
212
+ static checkUserFollower(id) {
213
+ return apiRequest(Endpoints.CheckUserFollower.url({ id }), Endpoints.CheckUserFollower.method);
214
+ }
215
+ /**
216
+ * This endpoint retrieves the list of connections of a specific user identified by ID.
217
+ * @param id
218
+ * @param mutual
219
+ */
220
+ static getUserConnections(id, mutual) {
221
+ return apiRequest(`${Endpoints.UserConnections.url({ id })}?${mutual.toString()}`, Endpoints.UserConnections.method);
222
+ }
223
+ /**
224
+ * This endpoint returns is_connection = true if the user (identified in path) is connected with me.
225
+ * @param id
226
+ */
227
+ static checkUserConnections(id) {
228
+ return apiRequest(Endpoints.UserCheckConnection.url({ id }), Endpoints.UserCheckConnection.method);
229
+ }
230
+ /**
231
+ * This endpoint retrieves the list of connection requests received by a specific user identified by ID.
232
+ * @param id
233
+ */
234
+ static getUserConnectionRequests(id) {
235
+ return apiRequest(Endpoints.UserConnectionRequests.url({ id }), Endpoints.UserConnectionRequests.method);
236
+ }
237
+ /**
238
+ * This endpoint retrieves a specific user's list of connection requests sent by user.
239
+ * @param id
240
+ */
241
+ static getUserRequestConnectionsSent(id) {
242
+ return apiRequest(Endpoints.UserRequestConnectionsSent.url({ id }), Endpoints.UserRequestConnectionsSent.method);
243
+ }
244
+ /**
245
+ * This endpoint accepts a request connection of the user identified by {id}
246
+ * @param id
247
+ */
248
+ static userAcceptRequestConnection(id) {
249
+ return apiRequest(Endpoints.UserAcceptRequestConnection.url({ id }), Endpoints.UserAcceptRequestConnection.method);
250
+ }
251
+ /**
252
+ * This endpoint requests a connection to the user identified by {id}
253
+ * @param id
254
+ */
255
+ static userRequestConnection(id) {
256
+ return apiRequest(Endpoints.UserRequestConnection.url({ id }), Endpoints.UserRequestConnection.method);
257
+ }
258
+ /**
259
+ * This endpoint removes connection with the user identified by {id}
260
+ * @param id
261
+ */
262
+ static userRemoveConnection(id) {
263
+ return apiRequest(Endpoints.UserRemoveConnection.url({ id }), Endpoints.UserRemoveConnection.method);
264
+ }
265
+ /**
266
+ * This endpoint cancels reject connection to a user identified by {id}
267
+ * @param id
268
+ */
269
+ static userCancelRejectConnectionRequest(id) {
270
+ return apiRequest(Endpoints.UserCancelRejectConnectionRequest.url({ id }), Endpoints.UserCancelRejectConnectionRequest.method);
271
+ }
272
+ /**
273
+ * This endpoint cancels a request connection for a user.
274
+ * @param id
275
+ */
276
+ static userCancelRequestConnection(id) {
277
+ return apiRequest(Endpoints.UserCancelRequestConnection.url({ id }), Endpoints.UserCancelRequestConnection.method);
278
+ }
279
+ /**
280
+ * This endpoint rejects a connection request sent from user identified by {id}
281
+ * @param id
282
+ */
283
+ static userRejectConnectionRequest(id) {
284
+ return apiRequest(Endpoints.UserRejectConnectionRequest.url({ id }), Endpoints.UserRejectConnectionRequest.method);
285
+ }
286
+ /**
287
+ * This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
288
+ * @param id
289
+ */
290
+ static userMarkSeenConnectionRequest(id) {
291
+ return apiRequest(Endpoints.UserMarkSeenConnectionRequest.url({ id }), Endpoints.UserMarkSeenConnectionRequest.method);
292
+ }
293
+ /**
294
+ * This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
295
+ * @param id
296
+ */
297
+ static showHideUser(id) {
298
+ return apiRequest(Endpoints.UserShowHide.url({ id }), Endpoints.UserShowHide.method);
299
+ }
300
+ /**
301
+ * This endpoint returns true if the user (identified in path) is hidden by the authenticated user.
302
+ * @param id
303
+ */
304
+ static checkUserHidden(id) {
305
+ return apiRequest(Endpoints.CheckUserHidden.url({ id }), Endpoints.CheckUserHidden.method);
306
+ }
307
+ /**
308
+ * This endpoint returns true if the user (identified in path) has hidden by the authenticated user.
309
+ * @param id
310
+ */
311
+ static checkUserHiddenBy(id) {
312
+ return apiRequest(Endpoints.CheckUserHiddenBy.url({ id }), Endpoints.CheckUserHiddenBy.method);
313
+ }
314
+ /**
315
+ * This endpoint returns user's loyalty points.
316
+ * @param id
317
+ */
318
+ static getUserLoyaltyPoints(id) {
319
+ return apiRequest(Endpoints.GetUserLoyaltyPoints.url({ id }), Endpoints.GetUserLoyaltyPoints.method);
320
+ }
321
+ /**
322
+ * This endpoint lists the connection/follow statuses of the logged user starting from a users array.
323
+ * @param users
324
+ */
325
+ static getUserConnectionStatuses(users) {
326
+ return apiRequest(Endpoints.UserConnectionStatuses.url({}), Endpoints.UserConnectionStatuses.method, { users: users });
327
+ }
328
+ /**
329
+ * This endpoint returns user's tags to address a contribution.
330
+ */
331
+ static userTagToAddressContribution() {
332
+ return apiRequest(Endpoints.UserTagToAddressContribution.url({}), Endpoints.UserTagToAddressContribution.method);
333
+ }
334
+ /**
335
+ * This endpoint checks an email token.
336
+ * @param email_token
337
+ */
338
+ static checkUserEmailToken(email_token) {
339
+ const p = new URLSearchParams({ email_token: email_token });
340
+ return apiRequest(`${Endpoints.CheckEmailToken.url({})}?${p.toString()}`, Endpoints.CheckEmailToken.method);
341
+ }
342
+ /**
343
+ * This endpoint adds an avatar to my avatars.
344
+ * @param avatar
345
+ */
346
+ static addUserAvatar(avatar) {
347
+ return apiRequest(Endpoints.AddAvatar.url({}), Endpoints.AddAvatar.method, { avatar: avatar });
348
+ }
349
+ /**
350
+ * This endpoint retrieves all user avatars.
351
+ */
352
+ static getUserAvatars() {
353
+ return apiRequest(Endpoints.GetAvatars.url({}), Endpoints.GetAvatars.method);
354
+ }
355
+ /**
356
+ * This endpoint removes/deletes an avatar from the authenticated user avatars.
357
+ * @param avatar_id
358
+ */
359
+ static removeUserAvatar(avatar_id) {
360
+ return apiRequest(Endpoints.RemoveAvatar.url({}), Endpoints.RemoveAvatar.method, { avatar_id: avatar_id });
361
+ }
362
+ /**
363
+ * This endpoint sets the primary avatar for the authenticated user.
364
+ * @param avatar_id
365
+ */
366
+ static setUserPrimaryAvatar(avatar_id) {
367
+ return apiRequest(Endpoints.SetPrimaryAvatar.url({}), Endpoints.SetPrimaryAvatar.method, { avatar_id: avatar_id });
368
+ }
529
369
  }
530
-
531
- exports.UserApiClient = UserApiClient;
532
-
533
- class UserService {
534
- static async getAllUsers() {
535
- return UserApiClient.getAllUsers();
536
- }
537
-
538
- static async getHiddenUsers() {
539
- return UserApiClient.getHiddenUsers();
540
- }
541
-
542
- static async userAutocomplete(params) {
543
- return UserApiClient.userAutocomplete(params);
544
- }
545
-
546
- static async userSearch(params) {
547
- return UserApiClient.userSearch(params);
548
- }
549
-
550
- static async getSpecificUser(id) {
551
- return UserApiClient.getSpecificUser(id);
552
- }
553
-
554
- static async getUserCounters(id) {
555
- return UserApiClient.getUserCounters(id);
556
- }
557
-
558
- static async userUpdate(id, data) {
559
- return UserApiClient.userUpdate(id, data);
560
- }
561
-
562
- static async userPatch(id, data) {
563
- return UserApiClient.userPatch(id, data);
564
- }
565
-
566
- static async userDelete(id, hard) {
567
- return UserApiClient.userDelete(id, hard);
568
- }
569
-
570
- static async changeUserMail(id, new_email, confirm) {
571
- return UserApiClient.changeUserMail(id, new_email, confirm);
572
- }
573
-
574
- static async confirmChangeUserMail(id, new_email, validation_code) {
575
- return UserApiClient.confirmChangeUserMail(id, new_email, validation_code);
576
- }
577
-
578
- static async changeUserPassword(id, password, new_password) {
579
- return UserApiClient.changeUserPassword(id, password, new_password);
580
- }
581
-
582
- static async userSettings(id) {
583
- return UserApiClient.userSettings(id);
584
- }
585
-
586
- static async userSettingsPatch(id, data) {
587
- return UserApiClient.userSettingsPatch(id, data);
588
- }
589
-
590
- static async getCurrentUser() {
591
- return UserApiClient.getCurrentUser();
592
- }
593
-
594
- static async getCurrentUserAvatar() {
595
- return UserApiClient.getCurrentUserAvatar();
596
- }
597
-
598
- static async getCurrentUserPermission() {
599
- return UserApiClient.getCurrentUserPermission();
600
- }
601
-
602
- static async getCurrentUserPlatform() {
603
- return UserApiClient.getCurrentUserPlatform();
604
- }
605
-
606
- static async getUserFollowedCategories(id, mutual) {
607
- return UserApiClient.getUserFollowedCategories(id, mutual);
608
- }
609
-
610
- static async getUserFeed(id) {
611
- return UserApiClient.getUserFeed(id);
612
- }
613
-
614
- static async getUserFollowers(id, mutual) {
615
- return UserApiClient.getUserFollowers(id, mutual);
616
- }
617
-
618
- static async getUserFollowed(id, mutual) {
619
- return UserApiClient.getUserFollowed(id, mutual);
620
- }
621
-
622
- static async followUser(id) {
623
- return UserApiClient.followUser(id);
624
- }
625
-
626
- static async checkUserFollowed(id) {
627
- return UserApiClient.checkUserFollowed(id);
628
- }
629
-
630
- static async checkUserFollower(id) {
631
- return UserApiClient.checkUserFollower(id);
632
- }
633
-
634
- static async getUserConnections(id, mutual) {
635
- return UserApiClient.getUserConnections(id, mutual);
636
- }
637
-
638
- static async checkUserConnections(id) {
639
- return UserApiClient.checkUserConnections(id);
640
- }
641
-
642
- static async getUserConnectionRequests(id) {
643
- return UserApiClient.getUserConnectionRequests(id);
644
- }
645
-
646
- static async getUserRequestConnectionsSent(id) {
647
- return UserApiClient.getUserRequestConnectionsSent(id);
648
- }
649
-
650
- static async userAcceptRequestConnection(id) {
651
- return UserApiClient.userAcceptRequestConnection(id);
652
- }
653
-
654
- static async userRequestConnection(id) {
655
- return UserApiClient.userRequestConnection(id);
656
- }
657
-
658
- static async userRemoveConnection(id) {
659
- return UserApiClient.userRemoveConnection(id);
660
- }
661
-
662
- static async userCancelRejectConnectionRequest(id) {
663
- return UserApiClient.userCancelRejectConnectionRequest(id);
664
- }
665
-
666
- static async userCancelRequestConnection(id) {
667
- return UserApiClient.userCancelRequestConnection(id);
668
- }
669
-
670
- static async userRejectConnectionRequest(id) {
671
- return UserApiClient.userRejectConnectionRequest(id);
672
- }
673
-
674
- static async userMarkSeenConnectionRequest(id) {
675
- return UserApiClient.userMarkSeenConnectionRequest(id);
676
- }
677
-
678
- static async showHideUser(id) {
679
- return UserApiClient.showHideUser(id);
680
- }
681
-
682
- static async checkUserHidden(id) {
683
- return UserApiClient.checkUserHidden(id);
684
- }
685
-
686
- static async checkUserHiddenBy(id) {
687
- return UserApiClient.checkUserHiddenBy(id);
688
- }
689
-
690
- static async getUserLoyaltyPoints(id) {
691
- return UserApiClient.getUserLoyaltyPoints(id);
692
- }
693
-
694
- static async getUserConnectionStatuses(users) {
695
- return UserApiClient.getUserConnectionStatuses(users);
696
- }
697
-
698
- static async userTagToAddressContribution() {
699
- return UserApiClient.userTagToAddressContribution();
700
- }
701
-
702
- static async checkUserEmailToken() {
703
- return UserApiClient.checkUserEmailToken();
704
- }
705
-
706
- static async addUserAvatar(avatar) {
707
- return UserApiClient.addUserAvatar(avatar);
708
- }
709
-
710
- static async getUserAvatars() {
711
- return UserApiClient.getUserAvatars();
712
- }
713
-
714
- static async removeUserAvatar(avatar_id) {
715
- return UserApiClient.removeUserAvatar(avatar_id);
716
- }
717
-
718
- static async setUserPrimaryAvatar(avatar_id) {
719
- return UserApiClient.setUserPrimaryAvatar(avatar_id);
720
- }
721
-
370
+ export default class UserService {
371
+ static getAllUsers(params) {
372
+ return __awaiter(this, void 0, void 0, function* () {
373
+ return UserApiClient.getAllUsers(params);
374
+ });
375
+ }
376
+ static getHiddenUsers(params) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ return UserApiClient.getHiddenUsers(params);
379
+ });
380
+ }
381
+ static userAutocomplete(params) {
382
+ return __awaiter(this, void 0, void 0, function* () {
383
+ return UserApiClient.userAutocomplete(params);
384
+ });
385
+ }
386
+ static userSearch(params) {
387
+ return __awaiter(this, void 0, void 0, function* () {
388
+ return UserApiClient.userSearch(params);
389
+ });
390
+ }
391
+ static getSpecificUser(id) {
392
+ return __awaiter(this, void 0, void 0, function* () {
393
+ return UserApiClient.getSpecificUser(id);
394
+ });
395
+ }
396
+ static getUserCounters(id) {
397
+ return __awaiter(this, void 0, void 0, function* () {
398
+ return UserApiClient.getUserCounters(id);
399
+ });
400
+ }
401
+ static userUpdate(id, data) {
402
+ return __awaiter(this, void 0, void 0, function* () {
403
+ return UserApiClient.userUpdate(id, data);
404
+ });
405
+ }
406
+ static userPatch(id, data) {
407
+ return __awaiter(this, void 0, void 0, function* () {
408
+ return UserApiClient.userPatch(id, data);
409
+ });
410
+ }
411
+ static userDelete(id, hard) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ return UserApiClient.userDelete(id, hard);
414
+ });
415
+ }
416
+ static changeUserMail(id, new_email, confirm) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ return UserApiClient.changeUserMail(id, new_email, confirm);
419
+ });
420
+ }
421
+ static confirmChangeUserMail(id, new_email, validation_code) {
422
+ return __awaiter(this, void 0, void 0, function* () {
423
+ return UserApiClient.confirmChangeUserMail(id, new_email, validation_code);
424
+ });
425
+ }
426
+ static changeUserPassword(id, password, new_password) {
427
+ return __awaiter(this, void 0, void 0, function* () {
428
+ return UserApiClient.changeUserPassword(id, password, new_password);
429
+ });
430
+ }
431
+ static userSettings(id) {
432
+ return __awaiter(this, void 0, void 0, function* () {
433
+ return UserApiClient.userSettings(id);
434
+ });
435
+ }
436
+ static userSettingsPatch(id, data) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ return UserApiClient.userSettingsPatch(id, data);
439
+ });
440
+ }
441
+ static getCurrentUser() {
442
+ return __awaiter(this, void 0, void 0, function* () {
443
+ return UserApiClient.getCurrentUser();
444
+ });
445
+ }
446
+ static getCurrentUserAvatar() {
447
+ return __awaiter(this, void 0, void 0, function* () {
448
+ return UserApiClient.getCurrentUserAvatar();
449
+ });
450
+ }
451
+ static getCurrentUserPermission() {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ return UserApiClient.getCurrentUserPermission();
454
+ });
455
+ }
456
+ static getCurrentUserPlatform() {
457
+ return __awaiter(this, void 0, void 0, function* () {
458
+ return UserApiClient.getCurrentUserPlatform();
459
+ });
460
+ }
461
+ static getUserFollowedCategories(id, mutual) {
462
+ return __awaiter(this, void 0, void 0, function* () {
463
+ return UserApiClient.getUserFollowedCategories(id, mutual);
464
+ });
465
+ }
466
+ static getUserFeed(id) {
467
+ return __awaiter(this, void 0, void 0, function* () {
468
+ return UserApiClient.getUserFeed(id);
469
+ });
470
+ }
471
+ static getUserFollowers(id, mutual) {
472
+ return __awaiter(this, void 0, void 0, function* () {
473
+ return UserApiClient.getUserFollowers(id, mutual);
474
+ });
475
+ }
476
+ static getUserFollowed(id, mutual) {
477
+ return __awaiter(this, void 0, void 0, function* () {
478
+ return UserApiClient.getUserFollowed(id, mutual);
479
+ });
480
+ }
481
+ static followUser(id) {
482
+ return __awaiter(this, void 0, void 0, function* () {
483
+ return UserApiClient.followUser(id);
484
+ });
485
+ }
486
+ static checkUserFollowed(id) {
487
+ return __awaiter(this, void 0, void 0, function* () {
488
+ return UserApiClient.checkUserFollowed(id);
489
+ });
490
+ }
491
+ static checkUserFollower(id) {
492
+ return __awaiter(this, void 0, void 0, function* () {
493
+ return UserApiClient.checkUserFollower(id);
494
+ });
495
+ }
496
+ static getUserConnections(id, mutual) {
497
+ return __awaiter(this, void 0, void 0, function* () {
498
+ return UserApiClient.getUserConnections(id, mutual);
499
+ });
500
+ }
501
+ static checkUserConnections(id) {
502
+ return __awaiter(this, void 0, void 0, function* () {
503
+ return UserApiClient.checkUserConnections(id);
504
+ });
505
+ }
506
+ static getUserConnectionRequests(id) {
507
+ return __awaiter(this, void 0, void 0, function* () {
508
+ return UserApiClient.getUserConnectionRequests(id);
509
+ });
510
+ }
511
+ static getUserRequestConnectionsSent(id) {
512
+ return __awaiter(this, void 0, void 0, function* () {
513
+ return UserApiClient.getUserRequestConnectionsSent(id);
514
+ });
515
+ }
516
+ static userAcceptRequestConnection(id) {
517
+ return __awaiter(this, void 0, void 0, function* () {
518
+ return UserApiClient.userAcceptRequestConnection(id);
519
+ });
520
+ }
521
+ static userRequestConnection(id) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ return UserApiClient.userRequestConnection(id);
524
+ });
525
+ }
526
+ static userRemoveConnection(id) {
527
+ return __awaiter(this, void 0, void 0, function* () {
528
+ return UserApiClient.userRemoveConnection(id);
529
+ });
530
+ }
531
+ static userCancelRejectConnectionRequest(id) {
532
+ return __awaiter(this, void 0, void 0, function* () {
533
+ return UserApiClient.userCancelRejectConnectionRequest(id);
534
+ });
535
+ }
536
+ static userCancelRequestConnection(id) {
537
+ return __awaiter(this, void 0, void 0, function* () {
538
+ return UserApiClient.userCancelRequestConnection(id);
539
+ });
540
+ }
541
+ static userRejectConnectionRequest(id) {
542
+ return __awaiter(this, void 0, void 0, function* () {
543
+ return UserApiClient.userRejectConnectionRequest(id);
544
+ });
545
+ }
546
+ static userMarkSeenConnectionRequest(id) {
547
+ return __awaiter(this, void 0, void 0, function* () {
548
+ return UserApiClient.userMarkSeenConnectionRequest(id);
549
+ });
550
+ }
551
+ static showHideUser(id) {
552
+ return __awaiter(this, void 0, void 0, function* () {
553
+ return UserApiClient.showHideUser(id);
554
+ });
555
+ }
556
+ static checkUserHidden(id) {
557
+ return __awaiter(this, void 0, void 0, function* () {
558
+ return UserApiClient.checkUserHidden(id);
559
+ });
560
+ }
561
+ static checkUserHiddenBy(id) {
562
+ return __awaiter(this, void 0, void 0, function* () {
563
+ return UserApiClient.checkUserHiddenBy(id);
564
+ });
565
+ }
566
+ static getUserLoyaltyPoints(id) {
567
+ return __awaiter(this, void 0, void 0, function* () {
568
+ return UserApiClient.getUserLoyaltyPoints(id);
569
+ });
570
+ }
571
+ static getUserConnectionStatuses(users) {
572
+ return __awaiter(this, void 0, void 0, function* () {
573
+ return UserApiClient.getUserConnectionStatuses(users);
574
+ });
575
+ }
576
+ static userTagToAddressContribution() {
577
+ return __awaiter(this, void 0, void 0, function* () {
578
+ return UserApiClient.userTagToAddressContribution();
579
+ });
580
+ }
581
+ static checkUserEmailToken(email_token) {
582
+ return __awaiter(this, void 0, void 0, function* () {
583
+ return UserApiClient.checkUserEmailToken(email_token);
584
+ });
585
+ }
586
+ static addUserAvatar(avatar) {
587
+ return __awaiter(this, void 0, void 0, function* () {
588
+ return UserApiClient.addUserAvatar(avatar);
589
+ });
590
+ }
591
+ static getUserAvatars() {
592
+ return __awaiter(this, void 0, void 0, function* () {
593
+ return UserApiClient.getUserAvatars();
594
+ });
595
+ }
596
+ static removeUserAvatar(avatar_id) {
597
+ return __awaiter(this, void 0, void 0, function* () {
598
+ return UserApiClient.removeUserAvatar(avatar_id);
599
+ });
600
+ }
601
+ static setUserPrimaryAvatar(avatar_id) {
602
+ return __awaiter(this, void 0, void 0, function* () {
603
+ return UserApiClient.setUserPrimaryAvatar(avatar_id);
604
+ });
605
+ }
722
606
  }
723
-
724
- exports.default = UserService;
607
+ //# sourceMappingURL=index.js.map