@selfcommunity/api-services 0.1.7 → 0.1.8-alpha.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 (464) 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 +134 -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 +5 -2
  154. package/lib/cjs/types/index.d.ts.map +1 -0
  155. package/lib/cjs/types/index.js +6 -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 +0 -0
  166. package/lib/{types → cjs}/types/media.d.ts.map +0 -0
  167. package/lib/cjs/types/media.js +22 -26
  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 +80 -0
  386. package/lib/esm/types/media.d.ts.map +1 -0
  387. package/lib/esm/types/media.js +20 -27
  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/index.d.ts.map +0 -1
  463. package/lib/types/types/tag.d.ts.map +0 -1
  464. package/lib/types/utils/apiRequest.d.ts +0 -2
@@ -1,128 +1,111 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = exports.TagApiClient = 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 tags.
14
+ * All endpoints require admin role.
14
15
  */
15
- class TagApiClient {
16
- /**
17
- * This endpoint retrieves all tags.
18
- */
19
- static getAllTags() {
20
- return (0, _apiRequest.apiRequest)(_Endpoints.default.TagsList.url({}), _Endpoints.default.TagsList.method);
21
- }
22
- /**
23
- * This endpoint creates a tag
24
- * @param data
25
- */
26
-
27
-
28
- static createTag(data) {
29
- return (0, _apiRequest.apiRequest)(_Endpoints.default.CreateTag.url({}), _Endpoints.default.CreateTag.method, data);
30
- }
31
- /**
32
- * This endpoint performs tag search.
33
- */
34
-
35
-
36
- static searchTag() {
37
- return (0, _apiRequest.apiRequest)(_Endpoints.default.SearchTag.url({}), _Endpoints.default.SearchTag.method);
38
- }
39
- /**
40
- * This endpoint retrieves a specific tag.
41
- * @param id
42
- */
43
-
44
-
45
- static getSpecificTag(id) {
46
- return (0, _apiRequest.apiRequest)(_Endpoints.default.Tag.url({
47
- id
48
- }), _Endpoints.default.Tag.method);
49
- }
50
- /**
51
- * This endpoint updates a specific tag.
52
- * @param id
53
- * @param data
54
- */
55
-
56
-
57
- static updateTag(id, data) {
58
- return (0, _apiRequest.apiRequest)(_Endpoints.default.UpdateTag.url({
59
- id
60
- }), _Endpoints.default.UpdateTag.method, data != null ? data : null);
61
- }
62
- /**
63
- * This endpoint patches a specific tag.
64
- * @param id
65
- * @param data
66
- */
67
-
68
-
69
- static patchTag(id, data) {
70
- return (0, _apiRequest.apiRequest)(_Endpoints.default.PatchTag.url({
71
- id
72
- }), _Endpoints.default.PatchTag.method, data != null ? data : null);
73
- }
74
- /**
75
- * This endpoint assigns a tag to a user or to a category.
76
- * One param between "user" and "category" need to be passed to this endpoint.
77
- * @param id
78
- * @param user
79
- * @param category
80
- */
81
-
82
-
83
- static assignATag(id, user, category) {
84
- return (0, _apiRequest.apiRequest)(_Endpoints.default.AssignTag.url({
85
- id
86
- }), _Endpoints.default.AssignTag.method, user ? {
87
- user: user
88
- } : {
89
- category: category
90
- });
91
- }
92
-
16
+ export class TagApiClient {
17
+ /**
18
+ * This endpoint retrieves all tags.
19
+ * @param params
20
+ */
21
+ static getAllTags(params) {
22
+ const p = new URLSearchParams(params);
23
+ return apiRequest(`${Endpoints.TagsList.url({})}?${p.toString()}`, Endpoints.TagsList.method);
24
+ }
25
+ /**
26
+ * This endpoint creates a tag
27
+ * @param data
28
+ */
29
+ static createTag(data) {
30
+ return apiRequest(Endpoints.CreateTag.url({}), Endpoints.CreateTag.method, data);
31
+ }
32
+ /**
33
+ * This endpoint performs tag search.
34
+ * @param params
35
+ */
36
+ static searchTag(params) {
37
+ const p = new URLSearchParams(params);
38
+ return apiRequest(`${Endpoints.SearchTag.url({})}?${p.toString()}`, Endpoints.SearchTag.method);
39
+ }
40
+ /**
41
+ * This endpoint retrieves a specific tag.
42
+ * @param id
43
+ */
44
+ static getSpecificTag(id) {
45
+ return apiRequest(Endpoints.Tag.url({ id }), Endpoints.Tag.method);
46
+ }
47
+ /**
48
+ * This endpoint updates a specific tag.
49
+ * @param id
50
+ * @param data
51
+ */
52
+ static updateTag(id, data) {
53
+ return apiRequest(Endpoints.UpdateTag.url({ id }), Endpoints.UpdateTag.method, data !== null && data !== void 0 ? data : null);
54
+ }
55
+ /**
56
+ * This endpoint patches a specific tag.
57
+ * @param id
58
+ * @param data
59
+ */
60
+ static patchTag(id, data) {
61
+ return apiRequest(Endpoints.PatchTag.url({ id }), Endpoints.PatchTag.method, data !== null && data !== void 0 ? data : null);
62
+ }
63
+ /**
64
+ * This endpoint assigns a tag to a user or to a category.
65
+ * One param between "user" and "category" need to be passed to this endpoint.
66
+ * @param id
67
+ * @param user
68
+ * @param category
69
+ */
70
+ static assignATag(id, user, category) {
71
+ return apiRequest(Endpoints.AssignTag.url({ id }), Endpoints.AssignTag.method, user ? { user: user } : { category: category });
72
+ }
93
73
  }
94
-
95
- exports.TagApiClient = TagApiClient;
96
-
97
- class TagService {
98
- static async getAllTags() {
99
- return TagApiClient.getAllTags();
100
- }
101
-
102
- static async createTag(data) {
103
- return TagApiClient.createTag(data);
104
- }
105
-
106
- static async searchTag() {
107
- return TagApiClient.searchTag();
108
- }
109
-
110
- static async getSpecificTag(id) {
111
- return TagApiClient.getSpecificTag(id);
112
- }
113
-
114
- static async updateTag(id, data) {
115
- return TagApiClient.updateTag(id, data);
116
- }
117
-
118
- static async patchTag(id, data) {
119
- return TagApiClient.patchTag(id, data);
120
- }
121
-
122
- static async assignATag(id, user, category) {
123
- return TagApiClient.assignATag(id, user, category);
124
- }
125
-
74
+ export default class TagService {
75
+ static getAllTags(params) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ return TagApiClient.getAllTags(params);
78
+ });
79
+ }
80
+ static createTag(data) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ return TagApiClient.createTag(data);
83
+ });
84
+ }
85
+ static searchTag(params) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ return TagApiClient.searchTag(params);
88
+ });
89
+ }
90
+ static getSpecificTag(id) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ return TagApiClient.getSpecificTag(id);
93
+ });
94
+ }
95
+ static updateTag(id, data) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ return TagApiClient.updateTag(id, data);
98
+ });
99
+ }
100
+ static patchTag(id, data) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ return TagApiClient.patchTag(id, data);
103
+ });
104
+ }
105
+ static assignATag(id, user, category) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ return TagApiClient.assignATag(id, user, category);
108
+ });
109
+ }
126
110
  }
127
-
128
- exports.default = TagService;
111
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAElD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAYlD;;;GAGG;AACH,MAAM,OAAO,YAAY;IACvB;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,MAAqB;QACrC,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAS,CAAC,IAAe;QAC9B,OAAO,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAS,CAAC,MAAqB;QACpC,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAA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YAAY,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;KAAA;IACD,MAAM,CAAO,SAAS,CAAC,IAAe;;YACpC,OAAO,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC;KAAA;IACD,MAAM,CAAO,SAAS,CAAC,MAAqB;;YAC1C,OAAO,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACxC,CAAC;KAAA;IACD,MAAM,CAAO,cAAc,CAAC,EAAU;;YACpC,OAAO,YAAY,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACzC,CAAC;KAAA;IACD,MAAM,CAAO,SAAS,CAAC,EAAU,EAAE,IAAgB;;YACjD,OAAO,YAAY,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;KAAA;IACD,MAAM,CAAO,QAAQ,CAAC,EAAU,EAAE,IAAgB;;YAChD,OAAO,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;KAAA;IACD,MAAM,CAAO,UAAU,CAAC,EAAU,EAAE,IAAa,EAAE,QAAiB;;YAClE,OAAO,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACF"}
@@ -0,0 +1,351 @@
1
+ import { SCUserAutocompleteType, SCUserType, SCUserCounterType, SCUserSettingsType, SCUserChangeEmailType, SCUserAvatarType, SCUserPermissionType, SCPlatformType, SCCategoryType, SCFeedUnitType, SCUserFollowedStatusType, SCUserFollowerStatusType, SCUserConnectionStatusType, SCUserHiddenStatusType, SCUserConnectionRequestType, SCTagType, SCUserLoyaltyPointsType, SCUserEmailTokenType, SCUserHiddenByStatusType, SCAvatarType, SCMediaType } from '@selfcommunity/types';
2
+ import { SCPaginatedResponse, UserAutocompleteParams, UserSearchParams } from '../../types';
3
+ export interface UserApiClientInterface {
4
+ getAllUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
5
+ getHiddenUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
6
+ userAutocomplete(params: UserAutocompleteParams): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;
7
+ userSearch(params: UserSearchParams): Promise<SCPaginatedResponse<SCUserType>>;
8
+ getSpecificUser(id: number): Promise<SCUserType>;
9
+ getUserCounters(id: number): Promise<SCUserCounterType>;
10
+ userUpdate(id: number, data?: SCUserType): Promise<SCUserType>;
11
+ userPatch(id: number, data?: SCUserType): Promise<SCUserType>;
12
+ userDelete(id: number, hard?: number): Promise<any>;
13
+ changeUserMail(id: number, new_email: string, confirm?: boolean): Promise<any | SCUserChangeEmailType>;
14
+ confirmChangeUserMail(id: number, new_email: string, validation_code?: string): Promise<any>;
15
+ changeUserPassword(id: number, password: string, new_password: string): Promise<any>;
16
+ userSettings(id: number): Promise<SCUserSettingsType>;
17
+ userSettingsPatch(id: number, data?: SCUserSettingsType): Promise<SCUserSettingsType>;
18
+ getCurrentUser(): Promise<SCUserType>;
19
+ getCurrentUserAvatar(): Promise<SCUserAvatarType>;
20
+ getCurrentUserPermission(): Promise<SCUserPermissionType>;
21
+ getCurrentUserPlatform(): Promise<SCPlatformType>;
22
+ getUserFollowedCategories(id: number, mutual?: number): Promise<SCCategoryType[]>;
23
+ getUserFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
24
+ getUserFollowers(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
25
+ getUserFollowed(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
26
+ followUser(id: number): Promise<any>;
27
+ checkUserFollowed(id: number): Promise<SCUserFollowedStatusType>;
28
+ checkUserFollower(id: number): Promise<SCUserFollowerStatusType>;
29
+ getUserConnections(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
30
+ checkUserConnections(id: number): Promise<SCUserConnectionStatusType>;
31
+ getUserConnectionRequests(id: number): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
32
+ getUserRequestConnectionsSent(id: number): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
33
+ userAcceptRequestConnection(id: number): Promise<any>;
34
+ userRequestConnection(id: number): Promise<any>;
35
+ userRemoveConnection(id: number): Promise<any>;
36
+ userCancelRejectConnectionRequest(id: number): Promise<any>;
37
+ userCancelRequestConnection(id: number): Promise<any>;
38
+ userRejectConnectionRequest(id: number): Promise<any>;
39
+ userMarkSeenConnectionRequest(id: number): Promise<any>;
40
+ showHideUser(id: number): Promise<any>;
41
+ checkUserHidden(id: number): Promise<SCUserHiddenStatusType>;
42
+ checkUserHiddenBy(id: number): Promise<SCUserHiddenByStatusType>;
43
+ getUserLoyaltyPoints(id: number): Promise<SCUserLoyaltyPointsType>;
44
+ getUserConnectionStatuses(users: number[]): Promise<any>;
45
+ userTagToAddressContribution(): Promise<SCTagType>;
46
+ checkUserEmailToken(email_token: string): Promise<SCUserEmailTokenType>;
47
+ addUserAvatar(avatar: SCMediaType): Promise<SCAvatarType>;
48
+ getUserAvatars(): Promise<SCPaginatedResponse<SCAvatarType>>;
49
+ removeUserAvatar(avatar_id: number): Promise<any>;
50
+ setUserPrimaryAvatar(avatar_id: number): Promise<any>;
51
+ }
52
+ /**
53
+ * Contains all the endpoints needed to manage users.
54
+ */
55
+ export declare class UserApiClient {
56
+ /**
57
+ * This endpoint retrieves the list of all users
58
+ * @param params
59
+ */
60
+ static getAllUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
61
+ /**
62
+ * This endpoint retrieves the list of all users hidden by the authenticated user
63
+ * @param params
64
+ */
65
+ static getHiddenUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
66
+ /**
67
+ * 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.
68
+ * This endpoint is recommended for implementing an autocomplete input field.
69
+ * @param params
70
+ */
71
+ static userAutocomplete(params: UserAutocompleteParams): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;
72
+ /**
73
+ * This endpoint performs users search.
74
+ * @param params
75
+ */
76
+ static userSearch(params: UserSearchParams): Promise<SCPaginatedResponse<SCUserType>>;
77
+ /**
78
+ * This endpoint retrieves a specific user's profile identified by ID.
79
+ * @param id
80
+ */
81
+ static getSpecificUser(id: number): Promise<SCUserType>;
82
+ /**
83
+ * This endpoint retrieves the counters of a specific user identified by Id.
84
+ * @param id
85
+ */
86
+ static getUserCounters(id: number): Promise<SCUserCounterType>;
87
+ /**
88
+ * This endpoint updates the profile of a user identified by ID. A user can only update their personal data.
89
+ * 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'.
90
+ * @param id
91
+ * @param data
92
+ */
93
+ static userUpdate(id: number, data?: SCUserType): Promise<SCUserType>;
94
+ /**
95
+ * This endpoint patches a specific user identified by {id}
96
+ * @param id
97
+ * @param data
98
+ */
99
+ static userPatch(id: number, data?: SCUserType): Promise<SCUserType>;
100
+ /**
101
+ * This endpoint deletes a specific user identified by {id}
102
+ * @param id
103
+ * @param hard
104
+ */
105
+ static userDelete(id: number, hard?: number): Promise<any>;
106
+ /**
107
+ * This endpoint changes the email of the authenticated user.
108
+ * @param id
109
+ * @param new_email
110
+ * @param confirm
111
+ */
112
+ static changeUserMail(id: number, new_email: string, confirm?: boolean): Promise<any | SCUserChangeEmailType>;
113
+ /**
114
+ * This endpoint confirms email change.
115
+ * @param id
116
+ * @param new_email
117
+ * @param validation_code
118
+ */
119
+ static confirmChangeUserMail(id: number, new_email: string, validation_code?: string): Promise<any>;
120
+ /**
121
+ * This endpoint changes the password of the authenticated user.
122
+ * @param id
123
+ * @param password
124
+ * @param new_password
125
+ */
126
+ static changeUserPassword(id: number, password: string, new_password: string): Promise<any>;
127
+ /**
128
+ * This endpoint retrieves all current user's settings for the authenticated user.
129
+ * @param id
130
+ */
131
+ static userSettings(id: number): Promise<SCUserSettingsType>;
132
+ /**
133
+ * This endpoint changes the user settings for the authenticated user.
134
+ * @param id
135
+ * @param data
136
+ */
137
+ static userSettingsPatch(id: number, data?: SCUserSettingsType): Promise<SCUserSettingsType>;
138
+ /**
139
+ * This endpoint returns the user identified by the authentication token.
140
+ */
141
+ static getCurrentUser(): Promise<SCUserType>;
142
+ /**
143
+ * This endpoint returns the url to the user's current avatar.
144
+ */
145
+ static getCurrentUserAvatar(): Promise<SCUserAvatarType>;
146
+ /**
147
+ * 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.
148
+ */
149
+ static getCurrentUserPermission(): Promise<SCUserPermissionType>;
150
+ /**
151
+ * 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.
152
+ */
153
+ static getCurrentUserPlatform(): Promise<SCPlatformType>;
154
+ /**
155
+ * This endpoint gets the list of categories followed by the user.
156
+ * @param id
157
+ * @param mutual
158
+ */
159
+ static getUserFollowedCategories(id: number, mutual?: number): Promise<SCCategoryType[]>;
160
+ /**
161
+ * This endpoint retrieves the list of posts of the user identified by {id}
162
+ * @param id
163
+ */
164
+ static getUserFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
165
+ /**
166
+ * This endpoint retrieves the list of followers of a specific user identified by {id}
167
+ * @param id
168
+ * @param mutual
169
+ */
170
+ static getUserFollowers(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
171
+ /**
172
+ * This endpoint retrieves the list of following of a specific user identified by {id}.
173
+ * @param id
174
+ * @param mutual
175
+ */
176
+ static getUserFollowed(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
177
+ /**
178
+ * This endpoint allows a user to follow another user identified by {id}
179
+ * @param id
180
+ */
181
+ static followUser(id: number): Promise<any>;
182
+ /**
183
+ * This endpoint returns is_followed = true if the user (identified in path) is followed by me.
184
+ * @param id
185
+ */
186
+ static checkUserFollowed(id: number): Promise<SCUserFollowedStatusType>;
187
+ /**
188
+ * This endpoint returns is_follower = true if the user (identified in path) follow me
189
+ * @param id
190
+ */
191
+ static checkUserFollower(id: number): Promise<SCUserFollowerStatusType>;
192
+ /**
193
+ * This endpoint retrieves the list of connections of a specific user identified by ID.
194
+ * @param id
195
+ * @param mutual
196
+ */
197
+ static getUserConnections(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
198
+ /**
199
+ * This endpoint returns is_connection = true if the user (identified in path) is connected with me.
200
+ * @param id
201
+ */
202
+ static checkUserConnections(id: number): Promise<SCUserConnectionStatusType>;
203
+ /**
204
+ * This endpoint retrieves the list of connection requests received by a specific user identified by ID.
205
+ * @param id
206
+ */
207
+ static getUserConnectionRequests(id: number): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
208
+ /**
209
+ * This endpoint retrieves a specific user's list of connection requests sent by user.
210
+ * @param id
211
+ */
212
+ static getUserRequestConnectionsSent(id: number): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
213
+ /**
214
+ * This endpoint accepts a request connection of the user identified by {id}
215
+ * @param id
216
+ */
217
+ static userAcceptRequestConnection(id: number): Promise<any>;
218
+ /**
219
+ * This endpoint requests a connection to the user identified by {id}
220
+ * @param id
221
+ */
222
+ static userRequestConnection(id: number): Promise<any>;
223
+ /**
224
+ * This endpoint removes connection with the user identified by {id}
225
+ * @param id
226
+ */
227
+ static userRemoveConnection(id: number): Promise<any>;
228
+ /**
229
+ * This endpoint cancels reject connection to a user identified by {id}
230
+ * @param id
231
+ */
232
+ static userCancelRejectConnectionRequest(id: number): Promise<any>;
233
+ /**
234
+ * This endpoint cancels a request connection for a user.
235
+ * @param id
236
+ */
237
+ static userCancelRequestConnection(id: number): Promise<any>;
238
+ /**
239
+ * This endpoint rejects a connection request sent from user identified by {id}
240
+ * @param id
241
+ */
242
+ static userRejectConnectionRequest(id: number): Promise<any>;
243
+ /**
244
+ * This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
245
+ * @param id
246
+ */
247
+ static userMarkSeenConnectionRequest(id: number): Promise<any>;
248
+ /**
249
+ * This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
250
+ * @param id
251
+ */
252
+ static showHideUser(id: number): Promise<any>;
253
+ /**
254
+ * This endpoint returns true if the user (identified in path) is hidden by the authenticated user.
255
+ * @param id
256
+ */
257
+ static checkUserHidden(id: number): Promise<SCUserHiddenStatusType>;
258
+ /**
259
+ * This endpoint returns true if the user (identified in path) has hidden by the authenticated user.
260
+ * @param id
261
+ */
262
+ static checkUserHiddenBy(id: number): Promise<SCUserHiddenByStatusType>;
263
+ /**
264
+ * This endpoint returns user's loyalty points.
265
+ * @param id
266
+ */
267
+ static getUserLoyaltyPoints(id: number): Promise<SCUserLoyaltyPointsType>;
268
+ /**
269
+ * This endpoint lists the connection/follow statuses of the logged user starting from a users array.
270
+ * @param users
271
+ */
272
+ static getUserConnectionStatuses(users: number[]): Promise<any>;
273
+ /**
274
+ * This endpoint returns user's tags to address a contribution.
275
+ */
276
+ static userTagToAddressContribution(): Promise<SCTagType>;
277
+ /**
278
+ * This endpoint checks an email token.
279
+ * @param email_token
280
+ */
281
+ static checkUserEmailToken(email_token: any): Promise<SCUserEmailTokenType>;
282
+ /**
283
+ * This endpoint adds an avatar to my avatars.
284
+ * @param avatar
285
+ */
286
+ static addUserAvatar(avatar: SCMediaType): Promise<SCAvatarType>;
287
+ /**
288
+ * This endpoint retrieves all user avatars.
289
+ */
290
+ static getUserAvatars(): Promise<SCPaginatedResponse<SCAvatarType>>;
291
+ /**
292
+ * This endpoint removes/deletes an avatar from the authenticated user avatars.
293
+ * @param avatar_id
294
+ */
295
+ static removeUserAvatar(avatar_id: number): Promise<any>;
296
+ /**
297
+ * This endpoint sets the primary avatar for the authenticated user.
298
+ * @param avatar_id
299
+ */
300
+ static setUserPrimaryAvatar(avatar_id: number): Promise<any>;
301
+ }
302
+ export default class UserService {
303
+ static getAllUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
304
+ static getHiddenUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
305
+ static userAutocomplete(params: UserAutocompleteParams): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;
306
+ static userSearch(params: UserSearchParams): Promise<SCPaginatedResponse<SCUserType>>;
307
+ static getSpecificUser(id: number): Promise<SCUserType>;
308
+ static getUserCounters(id: number): Promise<SCUserCounterType>;
309
+ static userUpdate(id: number, data?: SCUserType): Promise<SCUserType>;
310
+ static userPatch(id: number, data?: SCUserType): Promise<SCUserType>;
311
+ static userDelete(id: number, hard?: number): Promise<any>;
312
+ static changeUserMail(id: number, new_email: string, confirm?: boolean): Promise<any | SCUserChangeEmailType>;
313
+ static confirmChangeUserMail(id: number, new_email: string, validation_code?: string): Promise<any>;
314
+ static changeUserPassword(id: number, password: string, new_password: string): Promise<any>;
315
+ static userSettings(id: number): Promise<SCUserSettingsType>;
316
+ static userSettingsPatch(id: number, data?: SCUserSettingsType): Promise<SCUserSettingsType>;
317
+ static getCurrentUser(): Promise<SCUserType>;
318
+ static getCurrentUserAvatar(): Promise<SCUserAvatarType>;
319
+ static getCurrentUserPermission(): Promise<SCUserPermissionType>;
320
+ static getCurrentUserPlatform(): Promise<SCPlatformType>;
321
+ static getUserFollowedCategories(id: number, mutual?: number): Promise<SCCategoryType[]>;
322
+ static getUserFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
323
+ static getUserFollowers(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
324
+ static getUserFollowed(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
325
+ static followUser(id: number): Promise<any>;
326
+ static checkUserFollowed(id: number): Promise<SCUserFollowedStatusType>;
327
+ static checkUserFollower(id: number): Promise<SCUserFollowerStatusType>;
328
+ static getUserConnections(id: number, mutual?: number): Promise<SCPaginatedResponse<SCUserType>>;
329
+ static checkUserConnections(id: number): Promise<SCUserConnectionStatusType>;
330
+ static getUserConnectionRequests(id: number): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
331
+ static getUserRequestConnectionsSent(id: number): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
332
+ static userAcceptRequestConnection(id: number): Promise<any>;
333
+ static userRequestConnection(id: number): Promise<any>;
334
+ static userRemoveConnection(id: number): Promise<any>;
335
+ static userCancelRejectConnectionRequest(id: number): Promise<any>;
336
+ static userCancelRequestConnection(id: number): Promise<any>;
337
+ static userRejectConnectionRequest(id: number): Promise<any>;
338
+ static userMarkSeenConnectionRequest(id: number): Promise<any>;
339
+ static showHideUser(id: number): Promise<any>;
340
+ static checkUserHidden(id: number): Promise<SCUserHiddenStatusType>;
341
+ static checkUserHiddenBy(id: number): Promise<SCUserHiddenByStatusType>;
342
+ static getUserLoyaltyPoints(id: number): Promise<SCUserLoyaltyPointsType>;
343
+ static getUserConnectionStatuses(users: number[]): Promise<any>;
344
+ static userTagToAddressContribution(): Promise<SCTagType>;
345
+ static checkUserEmailToken(email_token: any): Promise<SCUserEmailTokenType>;
346
+ static addUserAvatar(avatar: SCMediaType): Promise<SCAvatarType>;
347
+ static getUserAvatars(): Promise<SCPaginatedResponse<SCAvatarType>>;
348
+ static removeUserAvatar(avatar_id: number): Promise<any>;
349
+ static setUserPrimaryAvatar(avatar_id: number): Promise<any>;
350
+ }
351
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/user/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,mBAAmB,EAAE,sBAAsB,EAAE,gBAAg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