@selfcommunity/api-services 0.4.0-alpha.9 → 0.4.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 (518) hide show
  1. package/lib/cjs/client/index.d.ts +2 -10
  2. package/lib/cjs/client/index.js +3 -6
  3. package/lib/cjs/constants/Endpoints.d.ts +1 -2
  4. package/lib/cjs/constants/Endpoints.js +15 -4
  5. package/lib/cjs/constants/Errors.d.ts +0 -1
  6. package/lib/cjs/constants/Errors.js +0 -1
  7. package/lib/cjs/index.d.ts +3 -4
  8. package/lib/cjs/index.js +36 -61
  9. package/lib/cjs/services/account/index.d.ts +7 -1
  10. package/lib/cjs/services/account/index.js +20 -19
  11. package/lib/cjs/services/category/index.d.ts +0 -1
  12. package/lib/cjs/services/category/index.js +18 -30
  13. package/lib/cjs/services/comment/index.d.ts +0 -1
  14. package/lib/cjs/services/comment/index.js +13 -25
  15. package/lib/cjs/services/custom_adv/index.d.ts +0 -1
  16. package/lib/cjs/services/custom_adv/index.js +5 -17
  17. package/lib/cjs/services/custom_menu/index.d.ts +0 -1
  18. package/lib/cjs/services/custom_menu/index.js +6 -18
  19. package/lib/cjs/services/custom_page/index.d.ts +0 -1
  20. package/lib/cjs/services/custom_page/index.js +5 -17
  21. package/lib/cjs/services/data_portability/index.d.ts +0 -1
  22. package/lib/cjs/services/data_portability/index.js +5 -17
  23. package/lib/cjs/services/embed/index.d.ts +0 -1
  24. package/lib/cjs/services/embed/index.js +10 -22
  25. package/lib/cjs/services/feature/index.d.ts +0 -1
  26. package/lib/cjs/services/feature/index.js +3 -15
  27. package/lib/cjs/services/feed/index.d.ts +0 -1
  28. package/lib/cjs/services/feed/index.js +7 -19
  29. package/lib/cjs/services/feed_object/index.d.ts +0 -1
  30. package/lib/cjs/services/feed_object/index.js +29 -41
  31. package/lib/cjs/services/incubator/index.d.ts +0 -1
  32. package/lib/cjs/services/incubator/index.js +9 -21
  33. package/lib/cjs/services/insight/index.d.ts +0 -1
  34. package/lib/cjs/services/insight/index.js +8 -20
  35. package/lib/cjs/services/invite/index.d.ts +0 -1
  36. package/lib/cjs/services/invite/index.js +3 -15
  37. package/lib/cjs/services/legal_page/index.d.ts +0 -1
  38. package/lib/cjs/services/legal_page/index.js +11 -23
  39. package/lib/cjs/services/locality/index.d.ts +0 -1
  40. package/lib/cjs/services/locality/index.js +4 -16
  41. package/lib/cjs/services/loyalty/index.d.ts +5 -5
  42. package/lib/cjs/services/loyalty/index.js +16 -27
  43. package/lib/cjs/services/media/index.d.ts +0 -1
  44. package/lib/cjs/services/media/index.js +9 -21
  45. package/lib/cjs/services/moderation/index.d.ts +0 -1
  46. package/lib/cjs/services/moderation/index.js +8 -20
  47. package/lib/cjs/services/notification/index.d.ts +0 -1
  48. package/lib/cjs/services/notification/index.js +11 -23
  49. package/lib/cjs/services/preference/index.d.ts +0 -1
  50. package/lib/cjs/services/preference/index.js +5 -17
  51. package/lib/cjs/services/private_message/index.d.ts +0 -1
  52. package/lib/cjs/services/private_message/index.js +13 -25
  53. package/lib/cjs/services/promo/index.d.ts +0 -1
  54. package/lib/cjs/services/promo/index.js +3 -15
  55. package/lib/cjs/services/reactions/index.d.ts +7 -1
  56. package/lib/cjs/services/reactions/index.js +24 -16
  57. package/lib/cjs/services/score/index.d.ts +0 -1
  58. package/lib/cjs/services/score/index.js +5 -17
  59. package/lib/cjs/services/sso/index.d.ts +0 -1
  60. package/lib/cjs/services/sso/index.js +4 -16
  61. package/lib/cjs/services/suggestion/index.d.ts +0 -1
  62. package/lib/cjs/services/suggestion/index.js +7 -19
  63. package/lib/cjs/services/tag/index.d.ts +0 -1
  64. package/lib/cjs/services/tag/index.js +9 -21
  65. package/lib/cjs/services/user/index.d.ts +20 -13
  66. package/lib/cjs/services/user/index.js +82 -84
  67. package/lib/cjs/services/webhook/index.d.ts +0 -1
  68. package/lib/cjs/services/webhook/index.js +14 -26
  69. package/lib/cjs/types/account.d.ts +0 -1
  70. package/lib/cjs/types/account.js +0 -1
  71. package/lib/cjs/types/baseParams.d.ts +0 -1
  72. package/lib/cjs/types/baseParams.js +0 -1
  73. package/lib/cjs/types/category.d.ts +0 -1
  74. package/lib/cjs/types/category.js +0 -1
  75. package/lib/cjs/types/comment.d.ts +0 -1
  76. package/lib/cjs/types/comment.js +0 -1
  77. package/lib/cjs/types/customAdv.d.ts +0 -1
  78. package/lib/cjs/types/customAdv.js +0 -1
  79. package/lib/cjs/types/customPage.d.ts +0 -1
  80. package/lib/cjs/types/customPage.js +0 -1
  81. package/lib/cjs/types/embed.d.ts +0 -1
  82. package/lib/cjs/types/embed.js +0 -1
  83. package/lib/cjs/types/feature.d.ts +0 -1
  84. package/lib/cjs/types/feature.js +0 -1
  85. package/lib/cjs/types/feed.d.ts +0 -1
  86. package/lib/cjs/types/feed.js +0 -1
  87. package/lib/cjs/types/feedObject.d.ts +0 -1
  88. package/lib/cjs/types/feedObject.js +0 -1
  89. package/lib/cjs/types/incubator.d.ts +0 -1
  90. package/lib/cjs/types/incubator.js +0 -1
  91. package/lib/cjs/types/index.d.ts +2 -3
  92. package/lib/cjs/types/index.js +0 -1
  93. package/lib/cjs/types/insight.d.ts +0 -1
  94. package/lib/cjs/types/insight.js +0 -1
  95. package/lib/cjs/types/legalPage.d.ts +0 -1
  96. package/lib/cjs/types/legalPage.js +0 -1
  97. package/lib/cjs/types/media.d.ts +0 -1
  98. package/lib/cjs/types/media.js +0 -1
  99. package/lib/cjs/types/moderation.d.ts +0 -1
  100. package/lib/cjs/types/moderation.js +0 -1
  101. package/lib/cjs/types/notification.d.ts +0 -1
  102. package/lib/cjs/types/notification.js +0 -1
  103. package/lib/cjs/types/paginatedResponse.d.ts +0 -1
  104. package/lib/cjs/types/paginatedResponse.js +0 -1
  105. package/lib/cjs/types/privateMessage.d.ts +0 -1
  106. package/lib/cjs/types/privateMessage.js +0 -1
  107. package/lib/cjs/types/prize.d.ts +14 -1
  108. package/lib/cjs/types/prize.js +0 -1
  109. package/lib/cjs/types/reaction.d.ts +0 -1
  110. package/lib/cjs/types/reaction.js +0 -1
  111. package/lib/cjs/types/score.d.ts +0 -1
  112. package/lib/cjs/types/score.js +0 -1
  113. package/lib/cjs/types/sso.d.ts +0 -1
  114. package/lib/cjs/types/sso.js +0 -1
  115. package/lib/cjs/types/tag.d.ts +0 -1
  116. package/lib/cjs/types/tag.js +0 -1
  117. package/lib/cjs/types/user.d.ts +0 -1
  118. package/lib/cjs/types/user.js +0 -1
  119. package/lib/cjs/types/webhook.d.ts +0 -1
  120. package/lib/cjs/types/webhook.js +0 -1
  121. package/lib/cjs/utils/apiRequest.d.ts +0 -1
  122. package/lib/cjs/utils/apiRequest.js +2 -5
  123. package/lib/cjs/utils/http.d.ts +2 -2
  124. package/lib/cjs/utils/http.js +32 -6
  125. package/lib/cjs/utils/token.d.ts +0 -1
  126. package/lib/cjs/utils/token.js +3 -35
  127. package/lib/cjs/utils/url.d.ts +0 -1
  128. package/lib/cjs/utils/url.js +0 -1
  129. package/lib/esm/client/index.d.ts +2 -10
  130. package/lib/esm/client/index.js +1 -2
  131. package/lib/esm/constants/Endpoints.d.ts +1 -2
  132. package/lib/esm/constants/Endpoints.js +15 -4
  133. package/lib/esm/constants/Errors.d.ts +0 -1
  134. package/lib/esm/constants/Errors.js +0 -1
  135. package/lib/esm/index.d.ts +3 -4
  136. package/lib/esm/index.js +2 -3
  137. package/lib/esm/services/account/index.d.ts +7 -1
  138. package/lib/esm/services/account/index.js +14 -10
  139. package/lib/esm/services/category/index.d.ts +0 -1
  140. package/lib/esm/services/category/index.js +1 -10
  141. package/lib/esm/services/comment/index.d.ts +0 -1
  142. package/lib/esm/services/comment/index.js +1 -10
  143. package/lib/esm/services/custom_adv/index.d.ts +0 -1
  144. package/lib/esm/services/custom_adv/index.js +1 -10
  145. package/lib/esm/services/custom_menu/index.d.ts +0 -1
  146. package/lib/esm/services/custom_menu/index.js +1 -10
  147. package/lib/esm/services/custom_page/index.d.ts +0 -1
  148. package/lib/esm/services/custom_page/index.js +1 -10
  149. package/lib/esm/services/data_portability/index.d.ts +0 -1
  150. package/lib/esm/services/data_portability/index.js +1 -10
  151. package/lib/esm/services/embed/index.d.ts +0 -1
  152. package/lib/esm/services/embed/index.js +1 -10
  153. package/lib/esm/services/feature/index.d.ts +0 -1
  154. package/lib/esm/services/feature/index.js +1 -10
  155. package/lib/esm/services/feed/index.d.ts +0 -1
  156. package/lib/esm/services/feed/index.js +1 -10
  157. package/lib/esm/services/feed_object/index.d.ts +0 -1
  158. package/lib/esm/services/feed_object/index.js +1 -10
  159. package/lib/esm/services/incubator/index.d.ts +0 -1
  160. package/lib/esm/services/incubator/index.js +1 -10
  161. package/lib/esm/services/insight/index.d.ts +0 -1
  162. package/lib/esm/services/insight/index.js +1 -10
  163. package/lib/esm/services/invite/index.d.ts +0 -1
  164. package/lib/esm/services/invite/index.js +1 -10
  165. package/lib/esm/services/legal_page/index.d.ts +0 -1
  166. package/lib/esm/services/legal_page/index.js +1 -10
  167. package/lib/esm/services/locality/index.d.ts +0 -1
  168. package/lib/esm/services/locality/index.js +1 -10
  169. package/lib/esm/services/loyalty/index.d.ts +5 -5
  170. package/lib/esm/services/loyalty/index.js +6 -14
  171. package/lib/esm/services/media/index.d.ts +0 -1
  172. package/lib/esm/services/media/index.js +1 -10
  173. package/lib/esm/services/moderation/index.d.ts +0 -1
  174. package/lib/esm/services/moderation/index.js +1 -10
  175. package/lib/esm/services/notification/index.d.ts +0 -1
  176. package/lib/esm/services/notification/index.js +1 -10
  177. package/lib/esm/services/preference/index.d.ts +0 -1
  178. package/lib/esm/services/preference/index.js +1 -10
  179. package/lib/esm/services/private_message/index.d.ts +0 -1
  180. package/lib/esm/services/private_message/index.js +1 -10
  181. package/lib/esm/services/promo/index.d.ts +0 -1
  182. package/lib/esm/services/promo/index.js +1 -10
  183. package/lib/esm/services/reactions/index.d.ts +7 -1
  184. package/lib/esm/services/reactions/index.js +21 -10
  185. package/lib/esm/services/score/index.d.ts +0 -1
  186. package/lib/esm/services/score/index.js +1 -10
  187. package/lib/esm/services/sso/index.d.ts +0 -1
  188. package/lib/esm/services/sso/index.js +1 -10
  189. package/lib/esm/services/suggestion/index.d.ts +0 -1
  190. package/lib/esm/services/suggestion/index.js +1 -10
  191. package/lib/esm/services/tag/index.d.ts +0 -1
  192. package/lib/esm/services/tag/index.js +1 -10
  193. package/lib/esm/services/user/index.d.ts +20 -13
  194. package/lib/esm/services/user/index.js +31 -30
  195. package/lib/esm/services/webhook/index.d.ts +0 -1
  196. package/lib/esm/services/webhook/index.js +1 -10
  197. package/lib/esm/types/account.d.ts +0 -1
  198. package/lib/esm/types/account.js +0 -1
  199. package/lib/esm/types/baseParams.d.ts +0 -1
  200. package/lib/esm/types/baseParams.js +0 -1
  201. package/lib/esm/types/category.d.ts +0 -1
  202. package/lib/esm/types/category.js +0 -1
  203. package/lib/esm/types/comment.d.ts +0 -1
  204. package/lib/esm/types/comment.js +0 -1
  205. package/lib/esm/types/customAdv.d.ts +0 -1
  206. package/lib/esm/types/customAdv.js +0 -1
  207. package/lib/esm/types/customPage.d.ts +0 -1
  208. package/lib/esm/types/customPage.js +0 -1
  209. package/lib/esm/types/embed.d.ts +0 -1
  210. package/lib/esm/types/embed.js +0 -1
  211. package/lib/esm/types/feature.d.ts +0 -1
  212. package/lib/esm/types/feature.js +0 -1
  213. package/lib/esm/types/feed.d.ts +0 -1
  214. package/lib/esm/types/feed.js +0 -1
  215. package/lib/esm/types/feedObject.d.ts +0 -1
  216. package/lib/esm/types/feedObject.js +0 -1
  217. package/lib/esm/types/incubator.d.ts +0 -1
  218. package/lib/esm/types/incubator.js +0 -1
  219. package/lib/esm/types/index.d.ts +2 -3
  220. package/lib/esm/types/index.js +0 -1
  221. package/lib/esm/types/insight.d.ts +0 -1
  222. package/lib/esm/types/insight.js +0 -1
  223. package/lib/esm/types/legalPage.d.ts +0 -1
  224. package/lib/esm/types/legalPage.js +0 -1
  225. package/lib/esm/types/media.d.ts +0 -1
  226. package/lib/esm/types/media.js +0 -1
  227. package/lib/esm/types/moderation.d.ts +0 -1
  228. package/lib/esm/types/moderation.js +0 -1
  229. package/lib/esm/types/notification.d.ts +0 -1
  230. package/lib/esm/types/notification.js +0 -1
  231. package/lib/esm/types/paginatedResponse.d.ts +0 -1
  232. package/lib/esm/types/paginatedResponse.js +0 -1
  233. package/lib/esm/types/privateMessage.d.ts +0 -1
  234. package/lib/esm/types/privateMessage.js +0 -1
  235. package/lib/esm/types/prize.d.ts +14 -1
  236. package/lib/esm/types/prize.js +0 -1
  237. package/lib/esm/types/reaction.d.ts +0 -1
  238. package/lib/esm/types/reaction.js +0 -1
  239. package/lib/esm/types/score.d.ts +0 -1
  240. package/lib/esm/types/score.js +0 -1
  241. package/lib/esm/types/sso.d.ts +0 -1
  242. package/lib/esm/types/sso.js +0 -1
  243. package/lib/esm/types/tag.d.ts +0 -1
  244. package/lib/esm/types/tag.js +0 -1
  245. package/lib/esm/types/user.d.ts +0 -1
  246. package/lib/esm/types/user.js +0 -1
  247. package/lib/esm/types/webhook.d.ts +0 -1
  248. package/lib/esm/types/webhook.js +0 -1
  249. package/lib/esm/utils/apiRequest.d.ts +0 -1
  250. package/lib/esm/utils/apiRequest.js +0 -1
  251. package/lib/esm/utils/http.d.ts +2 -2
  252. package/lib/esm/utils/http.js +29 -2
  253. package/lib/esm/utils/token.d.ts +0 -1
  254. package/lib/esm/utils/token.js +1 -10
  255. package/lib/esm/utils/url.d.ts +0 -1
  256. package/lib/esm/utils/url.js +0 -1
  257. package/lib/umd/956.js +2 -0
  258. package/lib/umd/956.js.LICENSE.txt +1 -0
  259. package/lib/umd/api-services.js +1 -2
  260. package/lib/umd/api-services.js.LICENSE.txt +1 -1
  261. package/package.json +20 -19
  262. package/lib/cjs/client/index.d.ts.map +0 -1
  263. package/lib/cjs/client/index.js.map +0 -1
  264. package/lib/cjs/constants/Endpoints.d.ts.map +0 -1
  265. package/lib/cjs/constants/Endpoints.js.map +0 -1
  266. package/lib/cjs/constants/Errors.d.ts.map +0 -1
  267. package/lib/cjs/constants/Errors.js.map +0 -1
  268. package/lib/cjs/index.d.ts.map +0 -1
  269. package/lib/cjs/index.js.map +0 -1
  270. package/lib/cjs/services/account/index.d.ts.map +0 -1
  271. package/lib/cjs/services/account/index.js.map +0 -1
  272. package/lib/cjs/services/category/index.d.ts.map +0 -1
  273. package/lib/cjs/services/category/index.js.map +0 -1
  274. package/lib/cjs/services/comment/index.d.ts.map +0 -1
  275. package/lib/cjs/services/comment/index.js.map +0 -1
  276. package/lib/cjs/services/custom_adv/index.d.ts.map +0 -1
  277. package/lib/cjs/services/custom_adv/index.js.map +0 -1
  278. package/lib/cjs/services/custom_menu/index.d.ts.map +0 -1
  279. package/lib/cjs/services/custom_menu/index.js.map +0 -1
  280. package/lib/cjs/services/custom_page/index.d.ts.map +0 -1
  281. package/lib/cjs/services/custom_page/index.js.map +0 -1
  282. package/lib/cjs/services/data_portability/index.d.ts.map +0 -1
  283. package/lib/cjs/services/data_portability/index.js.map +0 -1
  284. package/lib/cjs/services/embed/index.d.ts.map +0 -1
  285. package/lib/cjs/services/embed/index.js.map +0 -1
  286. package/lib/cjs/services/feature/index.d.ts.map +0 -1
  287. package/lib/cjs/services/feature/index.js.map +0 -1
  288. package/lib/cjs/services/feed/index.d.ts.map +0 -1
  289. package/lib/cjs/services/feed/index.js.map +0 -1
  290. package/lib/cjs/services/feed_object/index.d.ts.map +0 -1
  291. package/lib/cjs/services/feed_object/index.js.map +0 -1
  292. package/lib/cjs/services/incubator/index.d.ts.map +0 -1
  293. package/lib/cjs/services/incubator/index.js.map +0 -1
  294. package/lib/cjs/services/insight/index.d.ts.map +0 -1
  295. package/lib/cjs/services/insight/index.js.map +0 -1
  296. package/lib/cjs/services/invite/index.d.ts.map +0 -1
  297. package/lib/cjs/services/invite/index.js.map +0 -1
  298. package/lib/cjs/services/legal_page/index.d.ts.map +0 -1
  299. package/lib/cjs/services/legal_page/index.js.map +0 -1
  300. package/lib/cjs/services/locality/index.d.ts.map +0 -1
  301. package/lib/cjs/services/locality/index.js.map +0 -1
  302. package/lib/cjs/services/loyalty/index.d.ts.map +0 -1
  303. package/lib/cjs/services/loyalty/index.js.map +0 -1
  304. package/lib/cjs/services/media/index.d.ts.map +0 -1
  305. package/lib/cjs/services/media/index.js.map +0 -1
  306. package/lib/cjs/services/moderation/index.d.ts.map +0 -1
  307. package/lib/cjs/services/moderation/index.js.map +0 -1
  308. package/lib/cjs/services/notification/index.d.ts.map +0 -1
  309. package/lib/cjs/services/notification/index.js.map +0 -1
  310. package/lib/cjs/services/preference/index.d.ts.map +0 -1
  311. package/lib/cjs/services/preference/index.js.map +0 -1
  312. package/lib/cjs/services/private_message/index.d.ts.map +0 -1
  313. package/lib/cjs/services/private_message/index.js.map +0 -1
  314. package/lib/cjs/services/promo/index.d.ts.map +0 -1
  315. package/lib/cjs/services/promo/index.js.map +0 -1
  316. package/lib/cjs/services/reactions/index.d.ts.map +0 -1
  317. package/lib/cjs/services/reactions/index.js.map +0 -1
  318. package/lib/cjs/services/score/index.d.ts.map +0 -1
  319. package/lib/cjs/services/score/index.js.map +0 -1
  320. package/lib/cjs/services/sso/index.d.ts.map +0 -1
  321. package/lib/cjs/services/sso/index.js.map +0 -1
  322. package/lib/cjs/services/suggestion/index.d.ts.map +0 -1
  323. package/lib/cjs/services/suggestion/index.js.map +0 -1
  324. package/lib/cjs/services/tag/index.d.ts.map +0 -1
  325. package/lib/cjs/services/tag/index.js.map +0 -1
  326. package/lib/cjs/services/user/index.d.ts.map +0 -1
  327. package/lib/cjs/services/user/index.js.map +0 -1
  328. package/lib/cjs/services/webhook/index.d.ts.map +0 -1
  329. package/lib/cjs/services/webhook/index.js.map +0 -1
  330. package/lib/cjs/types/account.d.ts.map +0 -1
  331. package/lib/cjs/types/account.js.map +0 -1
  332. package/lib/cjs/types/baseParams.d.ts.map +0 -1
  333. package/lib/cjs/types/baseParams.js.map +0 -1
  334. package/lib/cjs/types/category.d.ts.map +0 -1
  335. package/lib/cjs/types/category.js.map +0 -1
  336. package/lib/cjs/types/comment.d.ts.map +0 -1
  337. package/lib/cjs/types/comment.js.map +0 -1
  338. package/lib/cjs/types/customAdv.d.ts.map +0 -1
  339. package/lib/cjs/types/customAdv.js.map +0 -1
  340. package/lib/cjs/types/customPage.d.ts.map +0 -1
  341. package/lib/cjs/types/customPage.js.map +0 -1
  342. package/lib/cjs/types/embed.d.ts.map +0 -1
  343. package/lib/cjs/types/embed.js.map +0 -1
  344. package/lib/cjs/types/feature.d.ts.map +0 -1
  345. package/lib/cjs/types/feature.js.map +0 -1
  346. package/lib/cjs/types/feed.d.ts.map +0 -1
  347. package/lib/cjs/types/feed.js.map +0 -1
  348. package/lib/cjs/types/feedObject.d.ts.map +0 -1
  349. package/lib/cjs/types/feedObject.js.map +0 -1
  350. package/lib/cjs/types/incubator.d.ts.map +0 -1
  351. package/lib/cjs/types/incubator.js.map +0 -1
  352. package/lib/cjs/types/index.d.ts.map +0 -1
  353. package/lib/cjs/types/index.js.map +0 -1
  354. package/lib/cjs/types/insight.d.ts.map +0 -1
  355. package/lib/cjs/types/insight.js.map +0 -1
  356. package/lib/cjs/types/legalPage.d.ts.map +0 -1
  357. package/lib/cjs/types/legalPage.js.map +0 -1
  358. package/lib/cjs/types/media.d.ts.map +0 -1
  359. package/lib/cjs/types/media.js.map +0 -1
  360. package/lib/cjs/types/moderation.d.ts.map +0 -1
  361. package/lib/cjs/types/moderation.js.map +0 -1
  362. package/lib/cjs/types/notification.d.ts.map +0 -1
  363. package/lib/cjs/types/notification.js.map +0 -1
  364. package/lib/cjs/types/paginatedResponse.d.ts.map +0 -1
  365. package/lib/cjs/types/paginatedResponse.js.map +0 -1
  366. package/lib/cjs/types/privateMessage.d.ts.map +0 -1
  367. package/lib/cjs/types/privateMessage.js.map +0 -1
  368. package/lib/cjs/types/prize.d.ts.map +0 -1
  369. package/lib/cjs/types/prize.js.map +0 -1
  370. package/lib/cjs/types/reaction.d.ts.map +0 -1
  371. package/lib/cjs/types/reaction.js.map +0 -1
  372. package/lib/cjs/types/score.d.ts.map +0 -1
  373. package/lib/cjs/types/score.js.map +0 -1
  374. package/lib/cjs/types/sso.d.ts.map +0 -1
  375. package/lib/cjs/types/sso.js.map +0 -1
  376. package/lib/cjs/types/tag.d.ts.map +0 -1
  377. package/lib/cjs/types/tag.js.map +0 -1
  378. package/lib/cjs/types/user.d.ts.map +0 -1
  379. package/lib/cjs/types/user.js.map +0 -1
  380. package/lib/cjs/types/webhook.d.ts.map +0 -1
  381. package/lib/cjs/types/webhook.js.map +0 -1
  382. package/lib/cjs/utils/apiRequest.d.ts.map +0 -1
  383. package/lib/cjs/utils/apiRequest.js.map +0 -1
  384. package/lib/cjs/utils/http.d.ts.map +0 -1
  385. package/lib/cjs/utils/http.js.map +0 -1
  386. package/lib/cjs/utils/token.d.ts.map +0 -1
  387. package/lib/cjs/utils/token.js.map +0 -1
  388. package/lib/cjs/utils/url.d.ts.map +0 -1
  389. package/lib/cjs/utils/url.js.map +0 -1
  390. package/lib/esm/client/index.d.ts.map +0 -1
  391. package/lib/esm/client/index.js.map +0 -1
  392. package/lib/esm/constants/Endpoints.d.ts.map +0 -1
  393. package/lib/esm/constants/Endpoints.js.map +0 -1
  394. package/lib/esm/constants/Errors.d.ts.map +0 -1
  395. package/lib/esm/constants/Errors.js.map +0 -1
  396. package/lib/esm/index.d.ts.map +0 -1
  397. package/lib/esm/index.js.map +0 -1
  398. package/lib/esm/services/account/index.d.ts.map +0 -1
  399. package/lib/esm/services/account/index.js.map +0 -1
  400. package/lib/esm/services/category/index.d.ts.map +0 -1
  401. package/lib/esm/services/category/index.js.map +0 -1
  402. package/lib/esm/services/comment/index.d.ts.map +0 -1
  403. package/lib/esm/services/comment/index.js.map +0 -1
  404. package/lib/esm/services/custom_adv/index.d.ts.map +0 -1
  405. package/lib/esm/services/custom_adv/index.js.map +0 -1
  406. package/lib/esm/services/custom_menu/index.d.ts.map +0 -1
  407. package/lib/esm/services/custom_menu/index.js.map +0 -1
  408. package/lib/esm/services/custom_page/index.d.ts.map +0 -1
  409. package/lib/esm/services/custom_page/index.js.map +0 -1
  410. package/lib/esm/services/data_portability/index.d.ts.map +0 -1
  411. package/lib/esm/services/data_portability/index.js.map +0 -1
  412. package/lib/esm/services/embed/index.d.ts.map +0 -1
  413. package/lib/esm/services/embed/index.js.map +0 -1
  414. package/lib/esm/services/feature/index.d.ts.map +0 -1
  415. package/lib/esm/services/feature/index.js.map +0 -1
  416. package/lib/esm/services/feed/index.d.ts.map +0 -1
  417. package/lib/esm/services/feed/index.js.map +0 -1
  418. package/lib/esm/services/feed_object/index.d.ts.map +0 -1
  419. package/lib/esm/services/feed_object/index.js.map +0 -1
  420. package/lib/esm/services/incubator/index.d.ts.map +0 -1
  421. package/lib/esm/services/incubator/index.js.map +0 -1
  422. package/lib/esm/services/insight/index.d.ts.map +0 -1
  423. package/lib/esm/services/insight/index.js.map +0 -1
  424. package/lib/esm/services/invite/index.d.ts.map +0 -1
  425. package/lib/esm/services/invite/index.js.map +0 -1
  426. package/lib/esm/services/legal_page/index.d.ts.map +0 -1
  427. package/lib/esm/services/legal_page/index.js.map +0 -1
  428. package/lib/esm/services/locality/index.d.ts.map +0 -1
  429. package/lib/esm/services/locality/index.js.map +0 -1
  430. package/lib/esm/services/loyalty/index.d.ts.map +0 -1
  431. package/lib/esm/services/loyalty/index.js.map +0 -1
  432. package/lib/esm/services/media/index.d.ts.map +0 -1
  433. package/lib/esm/services/media/index.js.map +0 -1
  434. package/lib/esm/services/moderation/index.d.ts.map +0 -1
  435. package/lib/esm/services/moderation/index.js.map +0 -1
  436. package/lib/esm/services/notification/index.d.ts.map +0 -1
  437. package/lib/esm/services/notification/index.js.map +0 -1
  438. package/lib/esm/services/preference/index.d.ts.map +0 -1
  439. package/lib/esm/services/preference/index.js.map +0 -1
  440. package/lib/esm/services/private_message/index.d.ts.map +0 -1
  441. package/lib/esm/services/private_message/index.js.map +0 -1
  442. package/lib/esm/services/promo/index.d.ts.map +0 -1
  443. package/lib/esm/services/promo/index.js.map +0 -1
  444. package/lib/esm/services/reactions/index.d.ts.map +0 -1
  445. package/lib/esm/services/reactions/index.js.map +0 -1
  446. package/lib/esm/services/score/index.d.ts.map +0 -1
  447. package/lib/esm/services/score/index.js.map +0 -1
  448. package/lib/esm/services/sso/index.d.ts.map +0 -1
  449. package/lib/esm/services/sso/index.js.map +0 -1
  450. package/lib/esm/services/suggestion/index.d.ts.map +0 -1
  451. package/lib/esm/services/suggestion/index.js.map +0 -1
  452. package/lib/esm/services/tag/index.d.ts.map +0 -1
  453. package/lib/esm/services/tag/index.js.map +0 -1
  454. package/lib/esm/services/user/index.d.ts.map +0 -1
  455. package/lib/esm/services/user/index.js.map +0 -1
  456. package/lib/esm/services/webhook/index.d.ts.map +0 -1
  457. package/lib/esm/services/webhook/index.js.map +0 -1
  458. package/lib/esm/types/account.d.ts.map +0 -1
  459. package/lib/esm/types/account.js.map +0 -1
  460. package/lib/esm/types/baseParams.d.ts.map +0 -1
  461. package/lib/esm/types/baseParams.js.map +0 -1
  462. package/lib/esm/types/category.d.ts.map +0 -1
  463. package/lib/esm/types/category.js.map +0 -1
  464. package/lib/esm/types/comment.d.ts.map +0 -1
  465. package/lib/esm/types/comment.js.map +0 -1
  466. package/lib/esm/types/customAdv.d.ts.map +0 -1
  467. package/lib/esm/types/customAdv.js.map +0 -1
  468. package/lib/esm/types/customPage.d.ts.map +0 -1
  469. package/lib/esm/types/customPage.js.map +0 -1
  470. package/lib/esm/types/embed.d.ts.map +0 -1
  471. package/lib/esm/types/embed.js.map +0 -1
  472. package/lib/esm/types/feature.d.ts.map +0 -1
  473. package/lib/esm/types/feature.js.map +0 -1
  474. package/lib/esm/types/feed.d.ts.map +0 -1
  475. package/lib/esm/types/feed.js.map +0 -1
  476. package/lib/esm/types/feedObject.d.ts.map +0 -1
  477. package/lib/esm/types/feedObject.js.map +0 -1
  478. package/lib/esm/types/incubator.d.ts.map +0 -1
  479. package/lib/esm/types/incubator.js.map +0 -1
  480. package/lib/esm/types/index.d.ts.map +0 -1
  481. package/lib/esm/types/index.js.map +0 -1
  482. package/lib/esm/types/insight.d.ts.map +0 -1
  483. package/lib/esm/types/insight.js.map +0 -1
  484. package/lib/esm/types/legalPage.d.ts.map +0 -1
  485. package/lib/esm/types/legalPage.js.map +0 -1
  486. package/lib/esm/types/media.d.ts.map +0 -1
  487. package/lib/esm/types/media.js.map +0 -1
  488. package/lib/esm/types/moderation.d.ts.map +0 -1
  489. package/lib/esm/types/moderation.js.map +0 -1
  490. package/lib/esm/types/notification.d.ts.map +0 -1
  491. package/lib/esm/types/notification.js.map +0 -1
  492. package/lib/esm/types/paginatedResponse.d.ts.map +0 -1
  493. package/lib/esm/types/paginatedResponse.js.map +0 -1
  494. package/lib/esm/types/privateMessage.d.ts.map +0 -1
  495. package/lib/esm/types/privateMessage.js.map +0 -1
  496. package/lib/esm/types/prize.d.ts.map +0 -1
  497. package/lib/esm/types/prize.js.map +0 -1
  498. package/lib/esm/types/reaction.d.ts.map +0 -1
  499. package/lib/esm/types/reaction.js.map +0 -1
  500. package/lib/esm/types/score.d.ts.map +0 -1
  501. package/lib/esm/types/score.js.map +0 -1
  502. package/lib/esm/types/sso.d.ts.map +0 -1
  503. package/lib/esm/types/sso.js.map +0 -1
  504. package/lib/esm/types/tag.d.ts.map +0 -1
  505. package/lib/esm/types/tag.js.map +0 -1
  506. package/lib/esm/types/user.d.ts.map +0 -1
  507. package/lib/esm/types/user.js.map +0 -1
  508. package/lib/esm/types/webhook.d.ts.map +0 -1
  509. package/lib/esm/types/webhook.js.map +0 -1
  510. package/lib/esm/utils/apiRequest.d.ts.map +0 -1
  511. package/lib/esm/utils/apiRequest.js.map +0 -1
  512. package/lib/esm/utils/http.d.ts.map +0 -1
  513. package/lib/esm/utils/http.js.map +0 -1
  514. package/lib/esm/utils/token.d.ts.map +0 -1
  515. package/lib/esm/utils/token.js.map +0 -1
  516. package/lib/esm/utils/url.d.ts.map +0 -1
  517. package/lib/esm/utils/url.js.map +0 -1
  518. package/lib/umd/api-services.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { AxiosInstance, AxiosRequestConfig } from 'axios';
1
+ import { AxiosInstance, AxiosResponse } from 'axios';
2
2
  /**
3
3
  * List of all Http methods
4
4
  */
@@ -12,14 +12,7 @@ export declare type AxiosResponseHeaders = Record<string, string> & {
12
12
  /**
13
13
  * General HttpResponse
14
14
  */
15
- export interface HttpResponse<T = unknown, D = any> {
16
- data: T;
17
- status: number;
18
- statusText: string;
19
- headers: AxiosResponseHeaders;
20
- config: AxiosRequestConfig<D>;
21
- request?: any;
22
- }
15
+ export declare type HttpResponse<T = unknown, D = any> = AxiosResponse<T, D>;
23
16
  /**
24
17
  * Interface for the ApiClient
25
18
  */
@@ -122,4 +115,3 @@ export declare class ApiClient implements ApiClientInterface {
122
115
  }
123
116
  declare const client: ApiClient;
124
117
  export default client;
125
- //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.ApiClient = void 0;
7
- const axios_1 = __importDefault(require("axios"));
4
+ const tslib_1 = require("tslib");
5
+ const axios_1 = tslib_1.__importDefault(require("axios"));
8
6
  /**
9
7
  * Create an abstraction wrapping of axios
10
8
  * Create a sort of interface between axios and the rest of application
@@ -51,7 +49,7 @@ class ApiClient {
51
49
  }
52
50
  };
53
51
  this.client = this.createClient(config);
54
- this.setDefaultHeader({ name: 'Content-Type', value: 'application/x-www-form-urlencoded', methods: ['post'] });
52
+ this.setDefaultHeader({ name: 'Content-Type', value: 'application/json', methods: ['post'] });
55
53
  }
56
54
  createClient(config) {
57
55
  return axios_1.default.create(Object.assign(Object.assign({}, (config && config.baseURL && { baseURL: config.baseURL })), { responseType: 'json', headers: Object.assign({}, (config && config.accessToken && { Authorization: `Token ${config.accessToken}` })), timeout: ApiClient.DEFAULT_TIMEOUT }));
@@ -144,4 +142,3 @@ exports.ApiClient = ApiClient;
144
142
  ApiClient.DEFAULT_TIMEOUT = 10 * 1000;
145
143
  const client = new ApiClient();
146
144
  exports.default = client;
147
- //# sourceMappingURL=index.js.map
@@ -1,10 +1,9 @@
1
1
  import { HttpMethod } from '../client';
2
2
  export interface EndpointType {
3
- url: (params?: object) => string;
3
+ url: (params?: any) => string;
4
4
  method: HttpMethod;
5
5
  }
6
6
  declare const Endpoints: {
7
7
  [key: string]: EndpointType;
8
8
  };
9
9
  export default Endpoints;
10
- //# sourceMappingURL=Endpoints.d.ts.map
@@ -13,6 +13,10 @@ const Endpoints = {
13
13
  url: (0, utils_1.urlReplacer)('/api/v2/account/verify/'),
14
14
  method: 'POST'
15
15
  },
16
+ AccountVerifyValidationCode: {
17
+ url: (0, utils_1.urlReplacer)('/api/v2/account/verify/validation_code/'),
18
+ method: 'POST'
19
+ },
16
20
  AccountRecover: {
17
21
  url: (0, utils_1.urlReplacer)('/api/v2/account/recover/'),
18
22
  method: 'POST'
@@ -313,6 +317,10 @@ const Endpoints = {
313
317
  url: (0, utils_1.urlReplacer)('/api/v2/user/hidden_users/'),
314
318
  method: 'GET'
315
319
  },
320
+ ListHiddenUsersId: {
321
+ url: (0, utils_1.urlReplacer)('/api/v2/user/hidden_users_id/'),
322
+ method: 'GET'
323
+ },
316
324
  UserAutocomplete: {
317
325
  url: (0, utils_1.urlReplacer)('/api/v2/user/autocomplete/'),
318
326
  method: 'GET'
@@ -409,12 +417,16 @@ const Endpoints = {
409
417
  url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/is_connection/'),
410
418
  method: 'GET'
411
419
  },
420
+ UserCheckConnectionStatus: {
421
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection_status/'),
422
+ method: 'GET'
423
+ },
412
424
  UserConnectionRequests: {
413
- url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/requests/'),
425
+ url: (0, utils_1.urlReplacer)('/api/v2/user/connection/requests/'),
414
426
  method: 'GET'
415
427
  },
416
428
  UserRequestConnectionsSent: {
417
- url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/requests_sent/'),
429
+ url: (0, utils_1.urlReplacer)('/api/v2/user/connection/requests_sent/'),
418
430
  method: 'GET'
419
431
  },
420
432
  UserAcceptRequestConnection: {
@@ -1081,7 +1093,7 @@ const Endpoints = {
1081
1093
  method: 'GET'
1082
1094
  },
1083
1095
  DataPortabilityDownload: {
1084
- url: (0, utils_1.urlReplacer)('/api/v2/udp/download'),
1096
+ url: (0, utils_1.urlReplacer)('/api/v2/udp/download/'),
1085
1097
  method: 'GET'
1086
1098
  },
1087
1099
  /**
@@ -1112,4 +1124,3 @@ const Endpoints = {
1112
1124
  }
1113
1125
  };
1114
1126
  exports.default = Endpoints;
1115
- //# sourceMappingURL=Endpoints.js.map
@@ -2,4 +2,3 @@
2
2
  * Scope prefix used to emit errors
3
3
  */
4
4
  export declare const SCOPE_API_SERVICES = "@selfcommunity/api-services";
5
- //# sourceMappingURL=Errors.d.ts.map
@@ -5,4 +5,3 @@ exports.SCOPE_API_SERVICES = void 0;
5
5
  * Scope prefix used to emit errors
6
6
  */
7
7
  exports.SCOPE_API_SERVICES = '@selfcommunity/api-services';
8
- //# sourceMappingURL=Errors.js.map
@@ -9,7 +9,7 @@ import Endpoints, { EndpointType } from './constants/Endpoints';
9
9
  /**
10
10
  * Utils
11
11
  */
12
- import { formatHttpError, getCancelTokenSourceRequest } from './utils/http';
12
+ import { formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest } from './utils/http';
13
13
  import { generateJWTToken, parseJwt } from './utils/token';
14
14
  import { apiRequest } from './utils/apiRequest';
15
15
  import { urlParams } from './utils/url';
@@ -49,9 +49,8 @@ import ReactionService, { ReactionApiClient, ReactionApiClientInterface } from '
49
49
  /**
50
50
  * Types
51
51
  */
52
- import { AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams } from './types';
52
+ import { AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams } from './types';
53
53
  /**
54
54
  * Export all
55
55
  */
56
- export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, EndpointType, AccountService, AccountApiClient, AccountApiClientInterface, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomMenuService, CustomMenuApiClient, CustomMenuApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, InviteService, InviteApiClient, InviteApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, PromoService, PromoApiClient, PromoApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType, AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, SSOSignUpParams, CommentListParams, LoyaltyPrizeParams, ModerationParams, FlaggedContributionParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, ReactionService, ReactionApiClient, ReactionApiClientInterface };
57
- //# sourceMappingURL=index.d.ts.map
56
+ export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, EndpointType, AccountService, AccountApiClient, AccountApiClientInterface, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomMenuService, CustomMenuApiClient, CustomMenuApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, InviteService, InviteApiClient, InviteApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, PromoService, PromoApiClient, PromoApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType, AccountSearchParams, AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, SSOSignUpParams, CommentListParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, FlaggedContributionParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, ReactionService, ReactionApiClient, ReactionApiClientInterface };
package/lib/cjs/index.js CHANGED
@@ -1,48 +1,24 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
2
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ModerationApiClient = exports.ModerationService = exports.MediaApiClient = exports.MediaService = exports.LoyaltyApiClient = exports.LoyaltyService = exports.LocalityApiClient = exports.LocalityService = exports.LegalPageApiClient = exports.LegalPageService = exports.InviteApiClient = exports.InviteService = exports.InsightApiClient = exports.InsightService = exports.IncubatorApiClient = exports.IncubatorService = exports.FeedObjectApiClient = exports.FeedObjectService = exports.FeedApiClient = exports.FeedService = exports.EmbedApiClient = exports.EmbedService = exports.DataPortabilityApiClient = exports.DataPortabilityService = exports.CustomPageApiClient = exports.CustomPageService = exports.CustomMenuApiClient = exports.CustomMenuService = exports.CustomAdvApiClient = exports.CustomAdvService = exports.CommentApiClient = exports.CommentService = exports.CategoryApiClient = exports.CategoryService = exports.FeatureApiClient = exports.FeatureService = exports.UserApiClient = exports.UserService = exports.PreferenceApiClient = exports.PreferenceService = exports.AccountApiClient = exports.AccountService = exports.Endpoints = exports.urlParams = exports.parseJwt = exports.generateJWTToken = exports.getCancelTokenSourceRequest = exports.formatHttpError = exports.apiRequest = exports.http = void 0;
30
- exports.ReactionApiClient = exports.ReactionService = exports.MediaTypes = exports.WebhookApiClient = exports.WebhookService = exports.TagApiClient = exports.TagService = exports.SuggestionApiClient = exports.SuggestionService = exports.SSOApiClient = exports.SSOService = exports.ScoreApiClient = exports.ScoreService = exports.PromoApiClient = exports.PromoService = exports.PrivateMessageApiClient = exports.PrivateMessageService = exports.NotificationApiClient = exports.NotificationService = void 0;
3
+ exports.ModerationService = exports.MediaApiClient = exports.MediaService = exports.LoyaltyApiClient = exports.LoyaltyService = exports.LocalityApiClient = exports.LocalityService = exports.LegalPageApiClient = exports.LegalPageService = exports.InviteApiClient = exports.InviteService = exports.InsightApiClient = exports.InsightService = exports.IncubatorApiClient = exports.IncubatorService = exports.FeedObjectApiClient = exports.FeedObjectService = exports.FeedApiClient = exports.FeedService = exports.EmbedApiClient = exports.EmbedService = exports.DataPortabilityApiClient = exports.DataPortabilityService = exports.CustomPageApiClient = exports.CustomPageService = exports.CustomMenuApiClient = exports.CustomMenuService = exports.CustomAdvApiClient = exports.CustomAdvService = exports.CommentApiClient = exports.CommentService = exports.CategoryApiClient = exports.CategoryService = exports.FeatureApiClient = exports.FeatureService = exports.UserApiClient = exports.UserService = exports.PreferenceApiClient = exports.PreferenceService = exports.AccountApiClient = exports.AccountService = exports.Endpoints = exports.urlParams = exports.parseJwt = exports.generateJWTToken = exports.getCancelTokenSourceRequest = exports.formatHttpErrorCode = exports.formatHttpError = exports.apiRequest = exports.http = void 0;
4
+ exports.ReactionApiClient = exports.ReactionService = exports.MediaTypes = exports.WebhookApiClient = exports.WebhookService = exports.TagApiClient = exports.TagService = exports.SuggestionApiClient = exports.SuggestionService = exports.SSOApiClient = exports.SSOService = exports.ScoreApiClient = exports.ScoreService = exports.PromoApiClient = exports.PromoService = exports.PrivateMessageApiClient = exports.PrivateMessageService = exports.NotificationApiClient = exports.NotificationService = exports.ModerationApiClient = void 0;
5
+ const tslib_1 = require("tslib");
31
6
  /**
32
7
  * Axios client wrapper
33
8
  */
34
- const client_1 = __importDefault(require("./client"));
9
+ const client_1 = tslib_1.__importDefault(require("./client"));
35
10
  exports.http = client_1.default;
36
11
  /**
37
12
  * Endpoint component
38
13
  */
39
- const Endpoints_1 = __importDefault(require("./constants/Endpoints"));
14
+ const Endpoints_1 = tslib_1.__importDefault(require("./constants/Endpoints"));
40
15
  exports.Endpoints = Endpoints_1.default;
41
16
  /**
42
17
  * Utils
43
18
  */
44
19
  const http_1 = require("./utils/http");
45
20
  Object.defineProperty(exports, "formatHttpError", { enumerable: true, get: function () { return http_1.formatHttpError; } });
21
+ Object.defineProperty(exports, "formatHttpErrorCode", { enumerable: true, get: function () { return http_1.formatHttpErrorCode; } });
46
22
  Object.defineProperty(exports, "getCancelTokenSourceRequest", { enumerable: true, get: function () { return http_1.getCancelTokenSourceRequest; } });
47
23
  const token_1 = require("./utils/token");
48
24
  Object.defineProperty(exports, "generateJWTToken", { enumerable: true, get: function () { return token_1.generateJWTToken; } });
@@ -54,94 +30,94 @@ Object.defineProperty(exports, "urlParams", { enumerable: true, get: function ()
54
30
  /**
55
31
  * Services
56
32
  */
57
- const account_1 = __importStar(require("./services/account"));
33
+ const account_1 = tslib_1.__importStar(require("./services/account"));
58
34
  exports.AccountService = account_1.default;
59
35
  Object.defineProperty(exports, "AccountApiClient", { enumerable: true, get: function () { return account_1.AccountApiClient; } });
60
- const category_1 = __importStar(require("./services/category"));
36
+ const category_1 = tslib_1.__importStar(require("./services/category"));
61
37
  exports.CategoryService = category_1.default;
62
38
  Object.defineProperty(exports, "CategoryApiClient", { enumerable: true, get: function () { return category_1.CategoryApiClient; } });
63
- const comment_1 = __importStar(require("./services/comment"));
39
+ const comment_1 = tslib_1.__importStar(require("./services/comment"));
64
40
  exports.CommentService = comment_1.default;
65
41
  Object.defineProperty(exports, "CommentApiClient", { enumerable: true, get: function () { return comment_1.CommentApiClient; } });
66
- const custom_adv_1 = __importStar(require("./services/custom_adv"));
42
+ const custom_adv_1 = tslib_1.__importStar(require("./services/custom_adv"));
67
43
  exports.CustomAdvService = custom_adv_1.default;
68
44
  Object.defineProperty(exports, "CustomAdvApiClient", { enumerable: true, get: function () { return custom_adv_1.CustomAdvApiClient; } });
69
- const custom_menu_1 = __importStar(require("./services/custom_menu"));
45
+ const custom_menu_1 = tslib_1.__importStar(require("./services/custom_menu"));
70
46
  exports.CustomMenuService = custom_menu_1.default;
71
47
  Object.defineProperty(exports, "CustomMenuApiClient", { enumerable: true, get: function () { return custom_menu_1.CustomMenuApiClient; } });
72
- const custom_page_1 = __importStar(require("./services/custom_page"));
48
+ const custom_page_1 = tslib_1.__importStar(require("./services/custom_page"));
73
49
  exports.CustomPageService = custom_page_1.default;
74
50
  Object.defineProperty(exports, "CustomPageApiClient", { enumerable: true, get: function () { return custom_page_1.CustomPageApiClient; } });
75
- const data_portability_1 = __importStar(require("./services/data_portability"));
51
+ const data_portability_1 = tslib_1.__importStar(require("./services/data_portability"));
76
52
  exports.DataPortabilityService = data_portability_1.default;
77
53
  Object.defineProperty(exports, "DataPortabilityApiClient", { enumerable: true, get: function () { return data_portability_1.DataPortabilityApiClient; } });
78
- const embed_1 = __importStar(require("./services/embed"));
54
+ const embed_1 = tslib_1.__importStar(require("./services/embed"));
79
55
  exports.EmbedService = embed_1.default;
80
56
  Object.defineProperty(exports, "EmbedApiClient", { enumerable: true, get: function () { return embed_1.EmbedApiClient; } });
81
- const feature_1 = __importStar(require("./services/feature"));
57
+ const feature_1 = tslib_1.__importStar(require("./services/feature"));
82
58
  exports.FeatureService = feature_1.default;
83
59
  Object.defineProperty(exports, "FeatureApiClient", { enumerable: true, get: function () { return feature_1.FeatureApiClient; } });
84
- const feed_1 = __importStar(require("./services/feed"));
60
+ const feed_1 = tslib_1.__importStar(require("./services/feed"));
85
61
  exports.FeedService = feed_1.default;
86
62
  Object.defineProperty(exports, "FeedApiClient", { enumerable: true, get: function () { return feed_1.FeedApiClient; } });
87
- const feed_object_1 = __importStar(require("./services/feed_object"));
63
+ const feed_object_1 = tslib_1.__importStar(require("./services/feed_object"));
88
64
  exports.FeedObjectService = feed_object_1.default;
89
65
  Object.defineProperty(exports, "FeedObjectApiClient", { enumerable: true, get: function () { return feed_object_1.FeedObjectApiClient; } });
90
- const incubator_1 = __importStar(require("./services/incubator"));
66
+ const incubator_1 = tslib_1.__importStar(require("./services/incubator"));
91
67
  exports.IncubatorService = incubator_1.default;
92
68
  Object.defineProperty(exports, "IncubatorApiClient", { enumerable: true, get: function () { return incubator_1.IncubatorApiClient; } });
93
- const insight_1 = __importStar(require("./services/insight"));
69
+ const insight_1 = tslib_1.__importStar(require("./services/insight"));
94
70
  exports.InsightService = insight_1.default;
95
71
  Object.defineProperty(exports, "InsightApiClient", { enumerable: true, get: function () { return insight_1.InsightApiClient; } });
96
- const invite_1 = __importStar(require("./services/invite"));
72
+ const invite_1 = tslib_1.__importStar(require("./services/invite"));
97
73
  exports.InviteService = invite_1.default;
98
74
  Object.defineProperty(exports, "InviteApiClient", { enumerable: true, get: function () { return invite_1.InviteApiClient; } });
99
- const legal_page_1 = __importStar(require("./services/legal_page"));
75
+ const legal_page_1 = tslib_1.__importStar(require("./services/legal_page"));
100
76
  exports.LegalPageService = legal_page_1.default;
101
77
  Object.defineProperty(exports, "LegalPageApiClient", { enumerable: true, get: function () { return legal_page_1.LegalPageApiClient; } });
102
- const locality_1 = __importStar(require("./services/locality"));
78
+ const locality_1 = tslib_1.__importStar(require("./services/locality"));
103
79
  exports.LocalityService = locality_1.default;
104
80
  Object.defineProperty(exports, "LocalityApiClient", { enumerable: true, get: function () { return locality_1.LocalityApiClient; } });
105
- const loyalty_1 = __importStar(require("./services/loyalty"));
81
+ const loyalty_1 = tslib_1.__importStar(require("./services/loyalty"));
106
82
  exports.LoyaltyService = loyalty_1.default;
107
83
  Object.defineProperty(exports, "LoyaltyApiClient", { enumerable: true, get: function () { return loyalty_1.LoyaltyApiClient; } });
108
- const media_1 = __importStar(require("./services/media"));
84
+ const media_1 = tslib_1.__importStar(require("./services/media"));
109
85
  exports.MediaService = media_1.default;
110
86
  Object.defineProperty(exports, "MediaApiClient", { enumerable: true, get: function () { return media_1.MediaApiClient; } });
111
- const moderation_1 = __importStar(require("./services/moderation"));
87
+ const moderation_1 = tslib_1.__importStar(require("./services/moderation"));
112
88
  exports.ModerationService = moderation_1.default;
113
89
  Object.defineProperty(exports, "ModerationApiClient", { enumerable: true, get: function () { return moderation_1.ModerationApiClient; } });
114
- const notification_1 = __importStar(require("./services/notification"));
90
+ const notification_1 = tslib_1.__importStar(require("./services/notification"));
115
91
  exports.NotificationService = notification_1.default;
116
92
  Object.defineProperty(exports, "NotificationApiClient", { enumerable: true, get: function () { return notification_1.NotificationApiClient; } });
117
- const preference_1 = __importStar(require("./services/preference"));
93
+ const preference_1 = tslib_1.__importStar(require("./services/preference"));
118
94
  exports.PreferenceService = preference_1.default;
119
95
  Object.defineProperty(exports, "PreferenceApiClient", { enumerable: true, get: function () { return preference_1.PreferenceApiClient; } });
120
- const private_message_1 = __importStar(require("./services/private_message"));
96
+ const private_message_1 = tslib_1.__importStar(require("./services/private_message"));
121
97
  exports.PrivateMessageService = private_message_1.default;
122
98
  Object.defineProperty(exports, "PrivateMessageApiClient", { enumerable: true, get: function () { return private_message_1.PrivateMessageApiClient; } });
123
- const promo_1 = __importStar(require("./services/promo"));
99
+ const promo_1 = tslib_1.__importStar(require("./services/promo"));
124
100
  exports.PromoService = promo_1.default;
125
101
  Object.defineProperty(exports, "PromoApiClient", { enumerable: true, get: function () { return promo_1.PromoApiClient; } });
126
- const score_1 = __importStar(require("./services/score"));
102
+ const score_1 = tslib_1.__importStar(require("./services/score"));
127
103
  exports.ScoreService = score_1.default;
128
104
  Object.defineProperty(exports, "ScoreApiClient", { enumerable: true, get: function () { return score_1.ScoreApiClient; } });
129
- const sso_1 = __importStar(require("./services/sso"));
105
+ const sso_1 = tslib_1.__importStar(require("./services/sso"));
130
106
  exports.SSOService = sso_1.default;
131
107
  Object.defineProperty(exports, "SSOApiClient", { enumerable: true, get: function () { return sso_1.SSOApiClient; } });
132
- const suggestion_1 = __importStar(require("./services/suggestion"));
108
+ const suggestion_1 = tslib_1.__importStar(require("./services/suggestion"));
133
109
  exports.SuggestionService = suggestion_1.default;
134
110
  Object.defineProperty(exports, "SuggestionApiClient", { enumerable: true, get: function () { return suggestion_1.SuggestionApiClient; } });
135
- const tag_1 = __importStar(require("./services/tag"));
111
+ const tag_1 = tslib_1.__importStar(require("./services/tag"));
136
112
  exports.TagService = tag_1.default;
137
113
  Object.defineProperty(exports, "TagApiClient", { enumerable: true, get: function () { return tag_1.TagApiClient; } });
138
- const user_1 = __importStar(require("./services/user"));
114
+ const user_1 = tslib_1.__importStar(require("./services/user"));
139
115
  exports.UserService = user_1.default;
140
116
  Object.defineProperty(exports, "UserApiClient", { enumerable: true, get: function () { return user_1.UserApiClient; } });
141
- const webhook_1 = __importStar(require("./services/webhook"));
117
+ const webhook_1 = tslib_1.__importStar(require("./services/webhook"));
142
118
  exports.WebhookService = webhook_1.default;
143
119
  Object.defineProperty(exports, "WebhookApiClient", { enumerable: true, get: function () { return webhook_1.WebhookApiClient; } });
144
- const reactions_1 = __importStar(require("./services/reactions"));
120
+ const reactions_1 = tslib_1.__importStar(require("./services/reactions"));
145
121
  exports.ReactionService = reactions_1.default;
146
122
  Object.defineProperty(exports, "ReactionApiClient", { enumerable: true, get: function () { return reactions_1.ReactionApiClient; } });
147
123
  /**
@@ -149,4 +125,3 @@ Object.defineProperty(exports, "ReactionApiClient", { enumerable: true, get: fun
149
125
  */
150
126
  const types_1 = require("./types");
151
127
  Object.defineProperty(exports, "MediaTypes", { enumerable: true, get: function () { return types_1.MediaTypes; } });
152
- //# sourceMappingURL=index.js.map
@@ -27,6 +27,12 @@ export declare class AccountApiClient {
27
27
  * @param config
28
28
  */
29
29
  static verify(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any>;
30
+ /**
31
+ * This endpoint verify if a validation code is valid.
32
+ * @param data
33
+ * @param config
34
+ */
35
+ static verifyValidationCode(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any>;
30
36
  /**
31
37
  * This endpoint recover an account.
32
38
  * @param data
@@ -86,8 +92,8 @@ export declare class AccountApiClient {
86
92
  export default class AccountService {
87
93
  static create(data?: AccountCreateParams, config?: AxiosRequestConfig): Promise<SCUserType>;
88
94
  static verify(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any>;
95
+ static verifyValidationCode(params?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<SCUserType>;
89
96
  static recover(data?: AccountRecoverParams, config?: AxiosRequestConfig): Promise<any>;
90
97
  static reset(data?: AccountResetParams, config?: AxiosRequestConfig): Promise<any>;
91
98
  static search(params?: AccountSearchParams, config?: AxiosRequestConfig): Promise<SCUserType>;
92
99
  }
93
- //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,8 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.AccountApiClient = void 0;
16
- const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
4
+ const tslib_1 = require("tslib");
5
+ const Endpoints_1 = tslib_1.__importDefault(require("../../constants/Endpoints"));
17
6
  const apiRequest_1 = require("../../utils/apiRequest");
18
7
  /**
19
8
  * Contains all the endpoints needed to manage categories.
@@ -38,6 +27,14 @@ class AccountApiClient {
38
27
  static verify(data, config) {
39
28
  return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { data, url: Endpoints_1.default.AccountVerify.url({}), method: Endpoints_1.default.AccountVerify.method }));
40
29
  }
30
+ /**
31
+ * This endpoint verify if a validation code is valid.
32
+ * @param data
33
+ * @param config
34
+ */
35
+ static verifyValidationCode(data, config) {
36
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { data, url: Endpoints_1.default.AccountVerifyValidationCode.url({}), method: Endpoints_1.default.AccountVerifyValidationCode.method }));
37
+ }
41
38
  /**
42
39
  * This endpoint recover an account.
43
40
  * @param data
@@ -103,30 +100,34 @@ exports.AccountApiClient = AccountApiClient;
103
100
  */
104
101
  class AccountService {
105
102
  static create(data, config) {
106
- return __awaiter(this, void 0, void 0, function* () {
103
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
107
104
  return AccountApiClient.create(data, config);
108
105
  });
109
106
  }
110
107
  static verify(data, config) {
111
- return __awaiter(this, void 0, void 0, function* () {
108
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
112
109
  return AccountApiClient.verify(data, config);
113
110
  });
114
111
  }
112
+ static verifyValidationCode(params, config) {
113
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
114
+ return AccountApiClient.verifyValidationCode(params, config);
115
+ });
116
+ }
115
117
  static recover(data, config) {
116
- return __awaiter(this, void 0, void 0, function* () {
118
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
117
119
  return AccountApiClient.recover(data, config);
118
120
  });
119
121
  }
120
122
  static reset(data, config) {
121
- return __awaiter(this, void 0, void 0, function* () {
123
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
122
124
  return AccountApiClient.reset(data, config);
123
125
  });
124
126
  }
125
127
  static search(params, config) {
126
- return __awaiter(this, void 0, void 0, function* () {
128
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
127
129
  return AccountApiClient.search(params, config);
128
130
  });
129
131
  }
130
132
  }
131
133
  exports.default = AccountService;
132
- //# sourceMappingURL=index.js.map
@@ -175,4 +175,3 @@ export default class CategoryService {
175
175
  static getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
176
176
  static getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
177
177
  }
178
- //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,8 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.CategoryApiClient = void 0;
16
- const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
4
+ const tslib_1 = require("tslib");
5
+ const Endpoints_1 = tslib_1.__importDefault(require("../../constants/Endpoints"));
17
6
  const apiRequest_1 = require("../../utils/apiRequest");
18
7
  const url_1 = require("../../utils/url");
19
8
  /**
@@ -194,85 +183,84 @@ exports.CategoryApiClient = CategoryApiClient;
194
183
  */
195
184
  class CategoryService {
196
185
  static getAllCategories(params, config) {
197
- return __awaiter(this, void 0, void 0, function* () {
186
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
198
187
  return CategoryApiClient.getAllCategories(params, config);
199
188
  });
200
189
  }
201
190
  static searchCategory(params, config) {
202
- return __awaiter(this, void 0, void 0, function* () {
191
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
203
192
  return CategoryApiClient.searchCategory(params, config);
204
193
  });
205
194
  }
206
195
  static createCategory(data, config) {
207
- return __awaiter(this, void 0, void 0, function* () {
196
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
208
197
  return CategoryApiClient.createCategory(data, config);
209
198
  });
210
199
  }
211
200
  static getSpecificCategory(id, config) {
212
- return __awaiter(this, void 0, void 0, function* () {
201
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
213
202
  return CategoryApiClient.getSpecificCategory(id, config);
214
203
  });
215
204
  }
216
205
  static updateASpecificCategory(id, data, config) {
217
- return __awaiter(this, void 0, void 0, function* () {
206
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
218
207
  return CategoryApiClient.updateASpecificCategory(id, data, config);
219
208
  });
220
209
  }
221
210
  static patchASpecificCategory(id, data, config) {
222
- return __awaiter(this, void 0, void 0, function* () {
211
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
223
212
  return CategoryApiClient.patchASpecificCategory(id, data, config);
224
213
  });
225
214
  }
226
215
  static deleteASpecificCategory(id, config) {
227
- return __awaiter(this, void 0, void 0, function* () {
216
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
228
217
  return CategoryApiClient.deleteASpecificCategory(id, config);
229
218
  });
230
219
  }
231
220
  static getCategoryAudience(id, config) {
232
- return __awaiter(this, void 0, void 0, function* () {
221
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
233
222
  return CategoryApiClient.getCategoryAudience(id, config);
234
223
  });
235
224
  }
236
225
  static getCategoryFollowers(id, params, config) {
237
- return __awaiter(this, void 0, void 0, function* () {
226
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
238
227
  return CategoryApiClient.getCategoryFollowers(id, params, config);
239
228
  });
240
229
  }
241
230
  static getCategoryFeed(id, params, config) {
242
- return __awaiter(this, void 0, void 0, function* () {
231
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
243
232
  return CategoryApiClient.getCategoryFeed(id, params, config);
244
233
  });
245
234
  }
246
235
  static getCategoryTrendingFeed(id, params, config) {
247
- return __awaiter(this, void 0, void 0, function* () {
236
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
248
237
  return CategoryApiClient.getCategoryTrendingFeed(id, params, config);
249
238
  });
250
239
  }
251
240
  static getCategoryTrendingFollowers(id, params, config) {
252
- return __awaiter(this, void 0, void 0, function* () {
241
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
253
242
  return CategoryApiClient.getCategoryTrendingFollowers(id, params, config);
254
243
  });
255
244
  }
256
245
  static followCategory(id, config) {
257
- return __awaiter(this, void 0, void 0, function* () {
246
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
258
247
  return CategoryApiClient.followCategory(id, config);
259
248
  });
260
249
  }
261
250
  static checkCategoryIsFollowed(id, config) {
262
- return __awaiter(this, void 0, void 0, function* () {
251
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
263
252
  return CategoryApiClient.checkCategoryIsFollowed(id, config);
264
253
  });
265
254
  }
266
255
  static getFollowedCategories(params, config) {
267
- return __awaiter(this, void 0, void 0, function* () {
256
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
268
257
  return CategoryApiClient.getFollowedCategories(params, config);
269
258
  });
270
259
  }
271
260
  static getPopularCategories(params, config) {
272
- return __awaiter(this, void 0, void 0, function* () {
261
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
273
262
  return CategoryApiClient.getPopularCategories(params, config);
274
263
  });
275
264
  }
276
265
  }
277
266
  exports.default = CategoryService;
278
- //# sourceMappingURL=index.js.map
@@ -136,4 +136,3 @@ export default class CommentService {
136
136
  static flagComment(id: number | string, flagType: SCFlagTypeEnum, config?: AxiosRequestConfig): Promise<any>;
137
137
  static getSpecificCommentFlagStatus(id: number | string, config?: AxiosRequestConfig): Promise<SCFlagType>;
138
138
  }
139
- //# sourceMappingURL=index.d.ts.map