@selfcommunity/api-services 0.1.7-alpha.0 → 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,1054 +1,1020 @@
1
1
  "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
-
6
- var _utils = require("@selfcommunity/utils");
7
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("@selfcommunity/utils");
8
4
  const Endpoints = {
9
- /**
10
- * OAuth2 Endpoints
11
- */
12
- OAuthToken: {
13
- url: (0, _utils.urlReplacer)('/oauth/token/'),
14
- method: 'POST'
15
- },
16
-
17
- /**
18
- * Dynamic Preference Endpoints
19
- */
20
- Preferences: {
21
- url: (0, _utils.urlReplacer)('/api/v2/dynamic_preference/'),
22
- method: 'GET'
23
- },
24
-
25
- /**
26
- * SSO Endpoints
27
- */
28
- SignIn: {
29
- url: (0, _utils.urlReplacer)('/api/v2/sso/signin/'),
30
- method: 'POST'
31
- },
32
- SignUp: {
33
- url: (0, _utils.urlReplacer)('/api/v2/sso/signup/'),
34
- method: 'POST'
35
- },
36
-
37
- /**
38
- * Features Endpoints
39
- * */
40
- Feature: {
41
- url: (0, _utils.urlReplacer)('/api/v2/feature/'),
42
- method: 'GET'
43
- },
44
-
45
- /**
46
- * FeedObject Endpoints
47
- */
48
- FeedObjectList: {
49
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/'),
50
- method: 'GET'
51
- },
52
- FeedObjectsUncommented: {
53
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/uncommented/'),
54
- method: 'GET'
55
- },
56
- SearchFeedObject: {
57
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/search/'),
58
- method: 'GET'
59
- },
60
- CreateFeedObject: {
61
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/'),
62
- method: 'POST'
63
- },
64
- FeedObject: {
65
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/'),
66
- method: 'GET'
67
- },
68
- UpdateFeedObject: {
69
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/'),
70
- method: 'PUT'
71
- },
72
- DeleteFeedObject: {
73
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/'),
74
- method: 'DELETE'
75
- },
76
- FeedObjectContributorsList: {
77
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/contributors/'),
78
- method: 'GET'
79
- },
80
- FeedObjectSharesList: {
81
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/shares/'),
82
- method: 'GET'
83
- },
84
- FeedObjectUserSharesList: {
85
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/shares_users/'),
86
- method: 'GET'
87
- },
88
- RestoreFeedObject: {
89
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/restore/'),
90
- method: 'POST'
91
- },
92
- RelatedFeedObjects: {
93
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/related/'),
94
- method: 'GET'
95
- },
96
- HideFeedObject: {
97
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/hide/'),
98
- method: 'POST'
99
- },
100
- FeedObjectHideStatus: {
101
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/hide/status/'),
102
- method: 'GET'
103
- },
104
- CheckIfFollowingFeedObject: {
105
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/following/'),
106
- method: 'GET'
107
- },
108
- FeedObjectFollowingList: {
109
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/following/'),
110
- method: 'GET'
111
- },
112
- FeedObjectFlagList: {
113
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/flag/'),
114
- method: 'POST'
115
- },
116
-
117
- /**
118
- * Comments
119
- */
120
- Comment: {
121
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/'),
122
- method: 'GET'
123
- },
124
- NewComment: {
125
- url: (0, _utils.urlReplacer)('/api/v2/comment/'),
126
- method: 'POST'
127
- },
128
- UpdateComment: {
129
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/'),
130
- method: 'PUT'
131
- },
132
- DeleteComment: {
133
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/'),
134
- method: 'DELETE'
135
- },
136
- RestoreComment: {
137
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/restore/'),
138
- method: 'POST'
139
- },
140
- Comments: {
141
- url: (0, _utils.urlReplacer)('/api/v2/comment/'),
142
- method: 'GET'
143
- },
144
- CommentVote: {
145
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/vote/'),
146
- method: 'POST'
147
- },
148
- CommentVotesList: {
149
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/vote/'),
150
- method: 'GET'
151
- },
152
- CommentRestore: {
153
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/restore'),
154
- method: 'POST'
155
- },
156
- CommentFlagList: {
157
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/flag/'),
158
- method: 'GET'
159
- },
160
- FlagComment: {
161
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/flag/'),
162
- method: 'POST'
163
- },
164
- CommentFlagStatus: {
165
- url: (0, _utils.urlReplacer)('/api/v2/comment/$(id)/flag/status/'),
166
- method: 'GET'
167
- },
168
-
169
- /**
170
- * Reporting Flag Endpoints
171
- */
172
- FlagStatus: {
173
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/flag/status/'),
174
- method: 'GET'
175
- },
176
- Flag: {
177
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/flag/'),
178
- method: 'POST'
179
- },
180
-
181
- /**
182
- * Categories Endpoints
183
- */
184
- CategoryList: {
185
- url: (0, _utils.urlReplacer)('/api/v2/category/'),
186
- method: 'GET'
187
- },
188
- SearchCategory: {
189
- url: (0, _utils.urlReplacer)('/api/v2/category/search/'),
190
- method: 'GET'
191
- },
192
- CreateCategory: {
193
- url: (0, _utils.urlReplacer)('/api/v2/category/'),
194
- method: 'POST'
195
- },
196
- UpdateCategory: {
197
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/'),
198
- method: 'PUT'
199
- },
200
- PatchCategory: {
201
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/'),
202
- method: 'PATCH'
203
- },
204
- DeleteCategory: {
205
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/'),
206
- method: 'DELETE'
207
- },
208
- CategoryAudience: {
209
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/audience/'),
210
- method: 'GET'
211
- },
212
- Category: {
213
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/'),
214
- method: 'GET'
215
- },
216
- CategoriesFollowed: {
217
- url: (0, _utils.urlReplacer)('/api/v2/category/followed/'),
218
- method: 'GET'
219
- },
220
- CategoryFollowers: {
221
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/followers/'),
222
- method: 'GET'
223
- },
224
- CategoryTrendingFeed: {
225
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/feed/trending/'),
226
- method: 'GET'
227
- },
228
- CategoryTrendingPeople: {
229
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/followers/trending/'),
230
- method: 'GET'
231
- },
232
- FollowCategory: {
233
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/follow/'),
234
- method: 'POST'
235
- },
236
- CheckCategoryIsFollowed: {
237
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/is_followed/'),
238
- method: 'GET'
239
- },
240
- PopularCategories: {
241
- url: (0, _utils.urlReplacer)('/api/v2/category/popular/'),
242
- method: 'GET'
243
- },
244
-
245
- /**
246
- * Tag Endpoints
247
- */
248
- TagsList: {
249
- url: (0, _utils.urlReplacer)('/api/v2/tag/'),
250
- method: 'GET'
251
- },
252
- CreateTag: {
253
- url: (0, _utils.urlReplacer)('/api/v2/tag/'),
254
- method: 'POST'
255
- },
256
- SearchTag: {
257
- url: (0, _utils.urlReplacer)('/api/v2/tag/'),
258
- method: 'GET'
259
- },
260
- Tag: {
261
- url: (0, _utils.urlReplacer)('/api/v2/tag/$(id)/'),
262
- method: 'GET'
263
- },
264
- UpdateTag: {
265
- url: (0, _utils.urlReplacer)('/api/v2/tag/$(id)/'),
266
- method: 'PUT'
267
- },
268
- PatchTag: {
269
- url: (0, _utils.urlReplacer)('/api/v2/tag/$(id)/'),
270
- method: 'PATCH'
271
- },
272
- AssignTag: {
273
- url: (0, _utils.urlReplacer)('/api/v2/tag/assign/'),
274
- method: 'POST'
275
- },
276
-
277
- /**
278
- * User Endpoints
279
- */
280
- UserList: {
281
- url: (0, _utils.urlReplacer)('/api/v2/user/'),
282
- method: 'GET'
283
- },
284
- ListHiddenUsers: {
285
- url: (0, _utils.urlReplacer)('/api/v2/user/hidden_users/'),
286
- method: 'GET'
287
- },
288
- UserAutocomplete: {
289
- url: (0, _utils.urlReplacer)('/api/v2/user/autocomplete/'),
290
- method: 'GET'
291
- },
292
- UserSearch: {
293
- url: (0, _utils.urlReplacer)('/api/v2/user/search/'),
294
- method: 'GET'
295
- },
296
- User: {
297
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/'),
298
- method: 'GET'
299
- },
300
- UserCounters: {
301
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/counters/'),
302
- method: 'GET'
303
- },
304
- UserUpdate: {
305
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/'),
306
- method: 'PUT'
307
- },
308
- UserPatch: {
309
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/'),
310
- method: 'PATCH'
311
- },
312
- UserDelete: {
313
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/'),
314
- method: 'DELETE'
315
- },
316
- ChangeUserMail: {
317
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/change_email/'),
318
- method: 'PATCH'
319
- },
320
- ConfirmUserChangeMail: {
321
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/change_email/'),
322
- method: 'POST'
323
- },
324
- ChangeUserPassword: {
325
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/change_password/'),
326
- method: 'PATCH'
327
- },
328
- UserSettings: {
329
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/settings/'),
330
- method: 'GET'
331
- },
332
- UserSettingsPatch: {
333
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/settings/'),
334
- method: 'PATCH'
335
- },
336
- Me: {
337
- url: (0, _utils.urlReplacer)('/api/v2/user/me/'),
338
- method: 'GET'
339
- },
340
- MyAvatar: {
341
- url: (0, _utils.urlReplacer)('/api/v2/user/me/avatar/'),
342
- method: 'GET'
343
- },
344
- Permission: {
345
- url: (0, _utils.urlReplacer)('/api/v2/user/me/permission/'),
346
- method: 'GET'
347
- },
348
- Platform: {
349
- url: (0, _utils.urlReplacer)('/api/v2/user/me/platform_url/'),
350
- method: 'GET'
351
- },
352
- FollowedCategories: {
353
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/categories/'),
354
- method: 'GET'
355
- },
356
- UserFollowers: {
357
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/followers/'),
358
- method: 'GET'
359
- },
360
- UsersFollowed: {
361
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/followings/'),
362
- method: 'GET'
363
- },
364
- FollowUser: {
365
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/follow/'),
366
- method: 'POST'
367
- },
368
- CheckUserFollowed: {
369
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/is_followed/'),
370
- method: 'GET'
371
- },
372
- CheckUserFollower: {
373
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/is_follower/'),
374
- method: 'GET'
375
- },
376
- UserConnections: {
377
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connections/'),
378
- method: 'GET'
379
- },
380
- UserCheckConnection: {
381
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/is_connection/'),
382
- method: 'GET'
383
- },
384
- UserConnectionRequests: {
385
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/requests/'),
386
- method: 'GET'
387
- },
388
- UserRequestConnectionsSent: {
389
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/requests_sent/'),
390
- method: 'GET'
391
- },
392
- UserAcceptRequestConnection: {
393
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/accept/'),
394
- method: 'POST'
395
- },
396
- UserRequestConnection: {
397
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/request/'),
398
- method: 'POST'
399
- },
400
- UserRemoveConnection: {
401
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/remove/'),
402
- method: 'POST'
403
- },
404
- UserCancelRejectConnectionRequest: {
405
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/cancel_reject/'),
406
- method: 'POST'
407
- },
408
- UserCancelRequestConnection: {
409
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/cancel_request/'),
410
- method: 'POST'
411
- },
412
- UserRejectConnectionRequest: {
413
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection/reject/'),
414
- method: 'POST'
415
- },
416
- UserMarkSeenConnectionRequest: {
417
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/connection_requests/mark_seen/'),
418
- method: 'POST'
419
- },
420
- UserShowHide: {
421
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/hide/'),
422
- method: 'POST'
423
- },
424
- CheckUserHidden: {
425
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/is_hidden/'),
426
- method: 'GET'
427
- },
428
- CheckUserHiddenBy: {
429
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/is_hidden_by/'),
430
- method: 'GET'
431
- },
432
- GetUserLoyaltyPoints: {
433
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/loyalty/points/'),
434
- method: 'GET'
435
- },
436
- UserConnectionStatuses: {
437
- url: (0, _utils.urlReplacer)('/api/v2/user/connection/statuses/'),
438
- method: 'POST'
439
- },
440
- UserTagToAddressContribution: {
441
- url: (0, _utils.urlReplacer)('/api/v2/user/tag/tags_to_address_a_contribution/'),
442
- method: 'GET'
443
- },
444
- CheckEmailToken: {
445
- url: (0, _utils.urlReplacer)('/api/v2/user/check_email_token/'),
446
- method: 'GET'
447
- },
448
- AddAvatar: {
449
- url: (0, _utils.urlReplacer)('/api/v2/user/avatar/'),
450
- method: 'POST'
451
- },
452
- GetAvatars: {
453
- url: (0, _utils.urlReplacer)('/api/v2/user/avatar/'),
454
- method: 'GET'
455
- },
456
- RemoveAvatar: {
457
- url: (0, _utils.urlReplacer)('/api/v2/user/avatar/'),
458
- method: 'DELETE'
459
- },
460
- SetPrimaryAvatar: {
461
- url: (0, _utils.urlReplacer)('/api/v2/user/avatar/'),
462
- method: 'PATCH'
463
- },
464
-
465
- /**
466
- * Broadcast Messages
467
- */
468
- BroadcastMessagesList: {
469
- url: (0, _utils.urlReplacer)('/api/v2/notification/banner/'),
470
- method: 'GET'
471
- },
472
- BroadcastMessagesMarkRead: {
473
- url: (0, _utils.urlReplacer)('/api/v2/notification/banner/read/'),
474
- method: 'POST'
475
- },
476
- BroadcastMessagesDispose: {
477
- url: (0, _utils.urlReplacer)('/api/v2/notification/banner/dispose/'),
478
- method: 'POST'
479
- },
480
- BroadcastMessagesUnseenCount: {
481
- url: (0, _utils.urlReplacer)('/api/v2/notification/banner/unseen/count/'),
482
- method: 'GET'
483
- },
484
- BroadcastMessagesUndisposedCount: {
485
- url: (0, _utils.urlReplacer)('/api/v2/notification/banner/undisposed/count/'),
486
- method: 'GET'
487
- },
488
-
489
- /**
490
- * Notifications
491
- */
492
- UserNotificationList: {
493
- url: (0, _utils.urlReplacer)('/api/v2/notification/'),
494
- method: 'GET'
495
- },
496
- UserMarkReadNotification: {
497
- url: (0, _utils.urlReplacer)('/api/v2/notification/read/'),
498
- method: 'POST'
499
- },
500
- UserUnseenNotificationCount: {
501
- url: (0, _utils.urlReplacer)('/api/v2/notification/unseen/'),
502
- method: 'GET'
503
- },
504
- CreateCustomNotification: {
505
- url: (0, _utils.urlReplacer)('/api/v2/notification/notify/'),
506
- method: 'POST'
507
- },
508
- UserSuspendContributionNotification: {
509
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/suspend/'),
510
- method: 'POST'
511
- },
512
- UserCheckContributionNotificationSuspended: {
513
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/suspended/'),
514
- method: 'GET'
515
- },
516
- UserListContributionNotificationSuspended: {
517
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/suspended/'),
518
- method: 'GET'
519
- },
520
-
521
- /**
522
- * Suggestion Endpoints
523
- */
524
- CategoriesSuggestion: {
525
- url: (0, _utils.urlReplacer)('/api/v2/suggestion/category/'),
526
- method: 'GET'
527
- },
528
- GetIncubatorSuggestion: {
529
- url: (0, _utils.urlReplacer)('/api/v2/suggestion/incubator/'),
530
- method: 'GET'
531
- },
532
- PollSuggestion: {
533
- url: (0, _utils.urlReplacer)('/api/v2/suggestion/poll/'),
534
- method: 'GET'
535
- },
536
- UserSuggestion: {
537
- url: (0, _utils.urlReplacer)('/api/v2/suggestion/user/'),
538
- method: 'GET'
539
- },
540
-
541
- /**
542
- * Follow
543
- */
544
- FollowContribution: {
545
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/follow/'),
546
- method: 'POST'
547
- },
548
-
549
- /**
550
- * Manage votes for post, discussion, status and comment
551
- */
552
- Vote: {
553
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/vote/'),
554
- method: 'POST'
555
- },
556
- VotesList: {
557
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/vote/'),
558
- method: 'GET'
559
- },
560
-
561
- /**
562
- * Shares
563
- */
564
- ShareUsersList: {
565
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/shares_users/'),
566
- method: 'GET'
567
- },
568
-
569
- /**
570
- * Poll
571
- */
572
- PollVote: {
573
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/poll/vote/'),
574
- method: 'POST'
575
- },
576
- PollVotesList: {
577
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/poll/vote/'),
578
- method: 'GET'
579
- },
580
-
581
- /**
582
- * Contributors
583
- */
584
- Contributors: {
585
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/contributors/'),
586
- method: 'GET'
587
- },
588
-
589
- /**
590
- * Loyalty Endpoints
591
- */
592
- GetPrizes: {
593
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/prize/'),
594
- method: 'GET'
595
- },
596
- CreatePrize: {
597
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/prize/'),
598
- method: 'GET'
599
- },
600
- GetSpecificPrize: {
601
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/prize/$(id)/'),
602
- method: 'GET'
603
- },
604
- UpdatePrize: {
605
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/prize/$(id)/'),
606
- method: 'PUT'
607
- },
608
- PatchPrize: {
609
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/prize/$(id)/'),
610
- method: 'PATCH'
611
- },
612
- GetPrizeRequests: {
613
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/request/'),
614
- method: 'GET'
615
- },
616
- CreatePrizeRequest: {
617
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/request/'),
618
- method: 'POST'
619
- },
620
- GetSpecificPrizeRequest: {
621
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/request/$(id)/'),
622
- method: 'GET'
623
- },
624
- PatchPrizeRequest: {
625
- url: (0, _utils.urlReplacer)('/api/v2/loyalty/request/$(id)/'),
626
- method: 'PATCH'
627
- },
628
-
629
- /**
630
- * Composer Endpoints
631
- */
632
- Composer: {
633
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/'),
634
- method: 'POST'
635
- },
636
- ComposerEdit: {
637
- url: (0, _utils.urlReplacer)('/api/v2/$(type)/$(id)/'),
638
- method: 'PUT'
639
- },
640
- ComposerChunkUploadMedia: {
641
- url: (0, _utils.urlReplacer)('/api/v2/media/upload/chunk/'),
642
- method: 'POST'
643
- },
644
- ComposerChunkUploadMediaComplete: {
645
- url: (0, _utils.urlReplacer)('/api/v2/media/upload/complete/'),
646
- method: 'POST'
647
- },
648
- ComposerMediaCreate: {
649
- url: (0, _utils.urlReplacer)('/api/v2/media/'),
650
- method: 'POST'
651
- },
652
- ComposerCategoryList: {
653
- url: (0, _utils.urlReplacer)('/api/v2/category/'),
654
- method: 'GET'
655
- },
656
- ComposerAddressingTagList: {
657
- url: (0, _utils.urlReplacer)('/api/v2/user/tag/tags_to_address_a_contribution/'),
658
- method: 'GET'
659
- },
660
- ComposerLocalitySearch: {
661
- url: (0, _utils.urlReplacer)('/api/v2/locality/search/'),
662
- method: 'GET'
663
- },
664
-
665
- /**
666
- * Media
667
- */
668
- GetMedia: {
669
- url: (0, _utils.urlReplacer)('/api/v2/media/$(id)/'),
670
- method: 'GET'
671
- },
672
- UpdateMedia: {
673
- url: (0, _utils.urlReplacer)('/api/v2/media/$(id)/'),
674
- method: 'PUT'
675
- },
676
- DeleteMedia: {
677
- url: (0, _utils.urlReplacer)('/api/v2/media/$(id)/'),
678
- method: 'DELETE'
679
- },
680
- MediaClickTracker: {
681
- url: (0, _utils.urlReplacer)('/api/v2/media/$(id)/click/'),
682
- method: 'POST'
683
- },
684
-
685
- /**
686
- * Locality
687
- */
688
- GetLocalities: {
689
- url: (0, _utils.urlReplacer)('/api/v2/locality/'),
690
- method: 'GET'
691
- },
692
-
693
- /**
694
- * Custom ADV
695
- */
696
- CustomAdvList: {
697
- url: (0, _utils.urlReplacer)('/api/v2/custom_adv/'),
698
- method: 'GET'
699
- },
700
- CustomAdv: {
701
- url: (0, _utils.urlReplacer)('/api/v2/custom_adv/$(id)/'),
702
- method: 'GET'
703
- },
704
- CustomAdvSearch: {
705
- url: (0, _utils.urlReplacer)('/api/v2/custom_adv/search/'),
706
- method: 'GET'
707
- },
708
-
709
- /**
710
- * Feed
711
- */
712
- MainFeed: {
713
- url: (0, _utils.urlReplacer)('/api/v2/feed/'),
714
- method: 'GET'
715
- },
716
- MainFeedUnseenCount: {
717
- url: (0, _utils.urlReplacer)('/api/v2/feed/unseen/count/'),
718
- method: 'GET'
719
- },
720
- FeedObjectMarkRead: {
721
- url: (0, _utils.urlReplacer)('/api/v2/feed/read/'),
722
- method: 'POST'
723
- },
724
- ExploreFeed: {
725
- url: (0, _utils.urlReplacer)('/api/v2/feed/explore/'),
726
- method: 'GET'
727
- },
728
- FeedLikeThese: {
729
- url: (0, _utils.urlReplacer)('/api/v2/feed/likethis/'),
730
- method: 'POST'
731
- },
732
- CategoryFeed: {
733
- url: (0, _utils.urlReplacer)('/api/v2/category/$(id)/feed/'),
734
- method: 'GET'
735
- },
736
- UserFeed: {
737
- url: (0, _utils.urlReplacer)('/api/v2/user/$(id)/feed/'),
738
- method: 'GET'
739
- },
740
- EmbedFeed: {
741
- url: (0, _utils.urlReplacer)('/api/v2/embed/feed/'),
742
- method: 'GET'
743
- },
744
-
745
- /**
746
- * Embed
747
- */
748
- EmbedList: {
749
- url: (0, _utils.urlReplacer)('/api/v2/embed/'),
750
- method: 'GET'
751
- },
752
- EmbedCreate: {
753
- url: (0, _utils.urlReplacer)('/api/v2/embed/'),
754
- method: 'POST'
755
- },
756
- EmbedSearch: {
757
- url: (0, _utils.urlReplacer)('/api/v2/embed/search/'),
758
- method: 'GET'
759
- },
760
- Embed: {
761
- url: (0, _utils.urlReplacer)('/api/v2/embed/$(id)/'),
762
- method: 'GET'
763
- },
764
- UpdateEmbed: {
765
- url: (0, _utils.urlReplacer)('/api/v2/embed/$(id)/'),
766
- method: 'PUT'
767
- },
768
- PatchEmbed: {
769
- url: (0, _utils.urlReplacer)('/api/v2/embed/$(id)/'),
770
- method: 'PATCH'
771
- },
772
- SpecificEmbedFeed: {
773
- url: (0, _utils.urlReplacer)('/api/v2/embed/$(id)/feed/'),
774
- method: 'GET'
775
- },
776
-
777
- /**
778
- * Private Messages Endpoints
779
- */
780
- GetSnippets: {
781
- url: (0, _utils.urlReplacer)('/api/v2/pm/'),
782
- method: 'GET'
783
- },
784
- GetASingleMessage: {
785
- url: (0, _utils.urlReplacer)('/api/v2/pm/$(id)/'),
786
- method: 'GET'
787
- },
788
- SendMessage: {
789
- url: (0, _utils.urlReplacer)('/api/v2/pm/'),
790
- method: 'POST'
791
- },
792
- GetAThread: {
793
- url: (0, _utils.urlReplacer)('/api/v2/pm/'),
794
- method: 'GET'
795
- },
796
- PrivateMessageUploadMedia: {
797
- url: (0, _utils.urlReplacer)('/api/v2/pm/upload/'),
798
- method: 'POST'
799
- },
800
- PrivateMessageUploadThumbnail: {
801
- url: (0, _utils.urlReplacer)('/api/v2/pm/upload/'),
802
- method: 'POST'
803
- },
804
- PrivateMessageUploadMediaInChunks: {
805
- url: (0, _utils.urlReplacer)('/api/v2/pm/upload/'),
806
- method: 'POST'
807
- },
808
- PrivateMessageChunkUploadDone: {
809
- url: (0, _utils.urlReplacer)('/api/v2/pm/upload/?done'),
810
- method: 'POST'
811
- },
812
- DeleteASingleMessage: {
813
- url: (0, _utils.urlReplacer)('/api/v2/pm/$(id)/'),
814
- method: 'DELETE'
815
- },
816
- DeleteAThread: {
817
- url: (0, _utils.urlReplacer)('/api/v2/pm/$(id)/?hide=1/'),
818
- method: 'DELETE'
819
- },
820
-
821
- /**
822
- * Device
823
- */
824
- Device: {
825
- url: (0, _utils.urlReplacer)('/api/v2/device/$(type)/$(id)/'),
826
- method: 'GET'
827
- },
828
- NewDevice: {
829
- url: (0, _utils.urlReplacer)('/api/v2/device/$(type)/'),
830
- method: 'POST'
831
- },
832
- DeleteDevice: {
833
- url: (0, _utils.urlReplacer)('/api/v2/device/$(type)/$(id)/'),
834
- method: 'DELETE'
835
- },
836
-
837
- /**
838
- * Moderation
839
- */
840
- UsersForModeration: {
841
- url: (0, _utils.urlReplacer)('/api/v2/moderation/user/'),
842
- method: 'GET'
843
- },
844
- ModerateUser: {
845
- url: (0, _utils.urlReplacer)('/api/v2/moderation/user/$(id)/'),
846
- method: 'PATCH'
847
- },
848
- FlaggedContributions: {
849
- url: (0, _utils.urlReplacer)('/api/v2/moderation/contribution/'),
850
- method: 'GET'
851
- },
852
- FlagsForSpecificContribution: {
853
- url: (0, _utils.urlReplacer)('/api/v2/moderation/contribution/$(id)/flag/?contribution_type=$(contribution_type)/'),
854
- method: 'GET'
855
- },
856
- ModerateContribution: {
857
- url: (0, _utils.urlReplacer)('/api/v2/moderation/contribution/$(id)/'),
858
- method: 'PATCH'
859
- },
860
- ModerateContributionStatus: {
861
- url: (0, _utils.urlReplacer)('/api/v2/moderation/contribution/$(id)/status/?contribution_type=$(contribution_type)/'),
862
- method: 'GET'
863
- },
864
-
865
- /**
866
- * Insights
867
- **/
868
- InsightBestContribution: {
869
- url: (0, _utils.urlReplacer)('/api/v2/insight/contribution/'),
870
- method: 'GET'
871
- },
872
- InsightBestEmbed: {
873
- url: (0, _utils.urlReplacer)('/api/v2/insight/embed/'),
874
- method: 'GET'
875
- },
876
- InsightBestUser: {
877
- url: (0, _utils.urlReplacer)('/api/v2/insight/user/'),
878
- method: 'GET'
879
- },
880
- InsightContributionCounter: {
881
- url: (0, _utils.urlReplacer)('/api/v2/insight/contribution/counters/?contribution_id=$(id)/'),
882
- method: 'GET'
883
- },
884
- InsightEmbedCounter: {
885
- url: (0, _utils.urlReplacer)('/api/v2/insight/embed/counters/?embed_type=$(type)&embed_id=$(id)/'),
886
- method: 'GET'
887
- },
888
- InsightUserCounter: {
889
- url: (0, _utils.urlReplacer)('/api/v2/insight/user/counters/?user_id=$(id)/'),
890
- method: 'GET'
891
- },
892
-
893
- /**
894
- * Incubators
895
- */
896
- GetAllIncubators: {
897
- url: (0, _utils.urlReplacer)('/api/v2/incubator/'),
898
- method: 'GET'
899
- },
900
- SearchIncubators: {
901
- url: (0, _utils.urlReplacer)('/api/v2/incubator/search/'),
902
- method: 'GET'
903
- },
904
- GetASpecificIncubator: {
905
- url: (0, _utils.urlReplacer)('/api/v2/incubator/$(id)/'),
906
- method: 'GET'
907
- },
908
- CheckIncubatorSubscription: {
909
- url: (0, _utils.urlReplacer)('/api/v2/incubator/$(id)/subscribed/'),
910
- method: 'GET'
911
- },
912
- SubscribeToIncubator: {
913
- url: (0, _utils.urlReplacer)('/api/v2/incubator/$(id)/subscribe/'),
914
- method: 'POST'
915
- },
916
- CreateAnIncubator: {
917
- url: (0, _utils.urlReplacer)('/api/v2/incubator/'),
918
- method: 'POST'
919
- },
920
- GetIncubatorSubscribers: {
921
- url: (0, _utils.urlReplacer)('/api/v2/incubator/$(id)/subscribers/'),
922
- method: 'GET'
923
- },
924
-
925
- /**
926
- * Custom Page
927
- */
928
- GetCustomPages: {
929
- url: (0, _utils.urlReplacer)('/api/v2/custom_page/'),
930
- method: 'GET'
931
- },
932
- CustomPage: {
933
- url: (0, _utils.urlReplacer)('/api/v2/custom_page/$(id)/'),
934
- method: 'GET'
935
- },
936
- CustomPageSearch: {
937
- url: (0, _utils.urlReplacer)('/api/v2/custom_page/search/'),
938
- method: 'GET'
939
- },
940
-
941
- /**
942
- * Legal Page
943
- */
944
- LegalPage: {
945
- url: (0, _utils.urlReplacer)('/api/v2/legal_page/$(id)/'),
946
- method: 'GET'
947
- },
948
- GetLegalPages: {
949
- url: (0, _utils.urlReplacer)('/api/v2/legal_page/'),
950
- method: 'GET'
951
- },
952
- SearchLegalPages: {
953
- url: (0, _utils.urlReplacer)('/api/v2/legal_page/search/'),
954
- method: 'GET'
955
- },
956
- AckLegalPage: {
957
- url: (0, _utils.urlReplacer)('/api/v2/legal_page/$(id)/ack/'),
958
- method: 'POST'
959
- },
960
- SpecificUserAck: {
961
- url: (0, _utils.urlReplacer)('/api/v2/legal_page/$(id)/user_ack/'),
962
- method: 'GET'
963
- },
964
- UserAckList: {
965
- url: (0, _utils.urlReplacer)('/api/v2/legal_page/user_acks/'),
966
- method: 'GET'
967
- },
968
-
969
- /**
970
- * Webhook
971
- */
972
- WebhookEndpointsList: {
973
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/'),
974
- method: 'GET'
975
- },
976
- WebhookEventsList: {
977
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/event/'),
978
- method: 'GET'
979
- },
980
- WebhookCreate: {
981
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/'),
982
- method: 'POST'
983
- },
984
- GetSpecificWebhook: {
985
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
986
- method: 'GET'
987
- },
988
- WebhookUpdate: {
989
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
990
- method: 'PUT'
991
- },
992
- WebhookPatch: {
993
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
994
- method: 'PATCH'
995
- },
996
- WebhookDelete: {
997
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
998
- method: 'DELETE'
999
- },
1000
- WebhookEndpointAttempts: {
1001
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/attempt/'),
1002
- method: 'GET'
1003
- },
1004
- WebhookExpireSigningSecret: {
1005
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/secret/expire/'),
1006
- method: 'POST'
1007
- },
1008
- WebhookRevealSigningSecret: {
1009
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/secret/reveal/'),
1010
- method: 'POST'
1011
- },
1012
- WebhookResendEndpointEvent: {
1013
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/event/resend/'),
1014
- method: 'POST'
1015
- },
1016
- WebhookResendMultipleEndpointEvent: {
1017
- url: (0, _utils.urlReplacer)('/api/v2/webhook/endpoint/$(id)/event/resend/bulk/'),
1018
- method: 'POST'
1019
- },
1020
-
1021
- /**
1022
- * Data Portability
1023
- */
1024
- GenerateDataPortability: {
1025
- url: (0, _utils.urlReplacer)('/api/v2/udp/'),
1026
- method: 'POST'
1027
- },
1028
- DataPortabilityStatus: {
1029
- url: (0, _utils.urlReplacer)('/api/v2/udp/'),
1030
- method: 'GET'
1031
- },
1032
- DataPortabilityDownload: {
1033
- url: (0, _utils.urlReplacer)('/api/v2/udp/'),
1034
- method: 'GET'
1035
- },
1036
-
1037
- /**
1038
- * Score
1039
- */
1040
- ScoresList: {
1041
- url: (0, _utils.urlReplacer)('/api/v2/score/'),
1042
- method: 'GET'
1043
- },
1044
- SearchScore: {
1045
- url: (0, _utils.urlReplacer)('/api/v2/score/search/'),
1046
- method: 'GET'
1047
- },
1048
- AddScore: {
1049
- url: (0, _utils.urlReplacer)('/api/v2/score/'),
1050
- method: 'POST'
1051
- }
5
+ /**
6
+ * OAuth2 Endpoints
7
+ */
8
+ OAuthToken: {
9
+ url: (0, utils_1.urlReplacer)('/oauth/token/'),
10
+ method: 'POST'
11
+ },
12
+ /**
13
+ * Dynamic Preference Endpoints
14
+ */
15
+ Preferences: {
16
+ url: (0, utils_1.urlReplacer)('/api/v2/dynamic_preference/'),
17
+ method: 'GET'
18
+ },
19
+ GetPreference: {
20
+ url: (0, utils_1.urlReplacer)('/api/v2/dynamic_preference/$(id)/'),
21
+ method: 'GET'
22
+ },
23
+ /**
24
+ * SSO Endpoints
25
+ */
26
+ SignIn: {
27
+ url: (0, utils_1.urlReplacer)('/api/v2/sso/signin/'),
28
+ method: 'POST'
29
+ },
30
+ SignUp: {
31
+ url: (0, utils_1.urlReplacer)('/api/v2/sso/signup/'),
32
+ method: 'POST'
33
+ },
34
+ /**
35
+ * Features Endpoints
36
+ * */
37
+ Feature: {
38
+ url: (0, utils_1.urlReplacer)('/api/v2/feature/'),
39
+ method: 'GET'
40
+ },
41
+ /**
42
+ * FeedObject Endpoints
43
+ */
44
+ FeedObjectList: {
45
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/'),
46
+ method: 'GET'
47
+ },
48
+ FeedObjectsUncommented: {
49
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/uncommented/'),
50
+ method: 'GET'
51
+ },
52
+ SearchFeedObject: {
53
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/search/'),
54
+ method: 'GET'
55
+ },
56
+ CreateFeedObject: {
57
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/'),
58
+ method: 'POST'
59
+ },
60
+ FeedObject: {
61
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/'),
62
+ method: 'GET'
63
+ },
64
+ UpdateFeedObject: {
65
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/'),
66
+ method: 'PUT'
67
+ },
68
+ DeleteFeedObject: {
69
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/'),
70
+ method: 'DELETE'
71
+ },
72
+ FeedObjectContributorsList: {
73
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/contributors/'),
74
+ method: 'GET'
75
+ },
76
+ FeedObjectSharesList: {
77
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/shares/'),
78
+ method: 'GET'
79
+ },
80
+ FeedObjectUserSharesList: {
81
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/shares_users/'),
82
+ method: 'GET'
83
+ },
84
+ RestoreFeedObject: {
85
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/restore/'),
86
+ method: 'POST'
87
+ },
88
+ RelatedFeedObjects: {
89
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/related/'),
90
+ method: 'GET'
91
+ },
92
+ HideFeedObject: {
93
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/hide/'),
94
+ method: 'POST'
95
+ },
96
+ FeedObjectHideStatus: {
97
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/hide/status/'),
98
+ method: 'GET'
99
+ },
100
+ CheckIfFollowingFeedObject: {
101
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/following/'),
102
+ method: 'GET'
103
+ },
104
+ FeedObjectFollowingList: {
105
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/following/'),
106
+ method: 'GET'
107
+ },
108
+ FeedObjectFlagList: {
109
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/flag/'),
110
+ method: 'POST'
111
+ },
112
+ /**
113
+ * Comments
114
+ */
115
+ Comment: {
116
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/'),
117
+ method: 'GET'
118
+ },
119
+ NewComment: {
120
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/'),
121
+ method: 'POST'
122
+ },
123
+ UpdateComment: {
124
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/'),
125
+ method: 'PUT'
126
+ },
127
+ DeleteComment: {
128
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/'),
129
+ method: 'DELETE'
130
+ },
131
+ RestoreComment: {
132
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/restore/'),
133
+ method: 'POST'
134
+ },
135
+ Comments: {
136
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/'),
137
+ method: 'GET'
138
+ },
139
+ CommentVote: {
140
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/vote/'),
141
+ method: 'POST'
142
+ },
143
+ CommentVotesList: {
144
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/vote/'),
145
+ method: 'GET'
146
+ },
147
+ CommentRestore: {
148
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/restore'),
149
+ method: 'POST'
150
+ },
151
+ CommentFlagList: {
152
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/flag/'),
153
+ method: 'GET'
154
+ },
155
+ FlagComment: {
156
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/flag/'),
157
+ method: 'POST'
158
+ },
159
+ CommentFlagStatus: {
160
+ url: (0, utils_1.urlReplacer)('/api/v2/comment/$(id)/flag/status/'),
161
+ method: 'GET'
162
+ },
163
+ /**
164
+ * Reporting Flag Endpoints
165
+ */
166
+ FlagStatus: {
167
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/flag/status/'),
168
+ method: 'GET'
169
+ },
170
+ Flag: {
171
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/flag/'),
172
+ method: 'POST'
173
+ },
174
+ /**
175
+ * Categories Endpoints
176
+ */
177
+ CategoryList: {
178
+ url: (0, utils_1.urlReplacer)('/api/v2/category/'),
179
+ method: 'GET'
180
+ },
181
+ SearchCategory: {
182
+ url: (0, utils_1.urlReplacer)('/api/v2/category/search/'),
183
+ method: 'GET'
184
+ },
185
+ CreateCategory: {
186
+ url: (0, utils_1.urlReplacer)('/api/v2/category/'),
187
+ method: 'POST'
188
+ },
189
+ UpdateCategory: {
190
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/'),
191
+ method: 'PUT'
192
+ },
193
+ PatchCategory: {
194
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/'),
195
+ method: 'PATCH'
196
+ },
197
+ DeleteCategory: {
198
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/'),
199
+ method: 'DELETE'
200
+ },
201
+ CategoryAudience: {
202
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/audience/'),
203
+ method: 'GET'
204
+ },
205
+ Category: {
206
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/'),
207
+ method: 'GET'
208
+ },
209
+ CategoriesFollowed: {
210
+ url: (0, utils_1.urlReplacer)('/api/v2/category/followed/'),
211
+ method: 'GET'
212
+ },
213
+ CategoryFollowers: {
214
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/followers/'),
215
+ method: 'GET'
216
+ },
217
+ CategoryTrendingFeed: {
218
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/feed/trending/'),
219
+ method: 'GET'
220
+ },
221
+ CategoryTrendingPeople: {
222
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/followers/trending/'),
223
+ method: 'GET'
224
+ },
225
+ FollowCategory: {
226
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/follow/'),
227
+ method: 'POST'
228
+ },
229
+ CheckCategoryIsFollowed: {
230
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/is_followed/'),
231
+ method: 'GET'
232
+ },
233
+ PopularCategories: {
234
+ url: (0, utils_1.urlReplacer)('/api/v2/category/popular/'),
235
+ method: 'GET'
236
+ },
237
+ /**
238
+ * Tag Endpoints
239
+ */
240
+ TagsList: {
241
+ url: (0, utils_1.urlReplacer)('/api/v2/tag/'),
242
+ method: 'GET'
243
+ },
244
+ CreateTag: {
245
+ url: (0, utils_1.urlReplacer)('/api/v2/tag/'),
246
+ method: 'POST'
247
+ },
248
+ SearchTag: {
249
+ url: (0, utils_1.urlReplacer)('/api/v2/tag/'),
250
+ method: 'GET'
251
+ },
252
+ Tag: {
253
+ url: (0, utils_1.urlReplacer)('/api/v2/tag/$(id)/'),
254
+ method: 'GET'
255
+ },
256
+ UpdateTag: {
257
+ url: (0, utils_1.urlReplacer)('/api/v2/tag/$(id)/'),
258
+ method: 'PUT'
259
+ },
260
+ PatchTag: {
261
+ url: (0, utils_1.urlReplacer)('/api/v2/tag/$(id)/'),
262
+ method: 'PATCH'
263
+ },
264
+ AssignTag: {
265
+ url: (0, utils_1.urlReplacer)('/api/v2/tag/$(id)/assign/'),
266
+ method: 'POST'
267
+ },
268
+ /**
269
+ * User Endpoints
270
+ */
271
+ UserList: {
272
+ url: (0, utils_1.urlReplacer)('/api/v2/user/'),
273
+ method: 'GET'
274
+ },
275
+ ListHiddenUsers: {
276
+ url: (0, utils_1.urlReplacer)('/api/v2/user/hidden_users/'),
277
+ method: 'GET'
278
+ },
279
+ UserAutocomplete: {
280
+ url: (0, utils_1.urlReplacer)('/api/v2/user/autocomplete/'),
281
+ method: 'GET'
282
+ },
283
+ UserSearch: {
284
+ url: (0, utils_1.urlReplacer)('/api/v2/user/search/'),
285
+ method: 'GET'
286
+ },
287
+ User: {
288
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/'),
289
+ method: 'GET'
290
+ },
291
+ UserCounters: {
292
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/counters/'),
293
+ method: 'GET'
294
+ },
295
+ UserUpdate: {
296
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/'),
297
+ method: 'PUT'
298
+ },
299
+ UserPatch: {
300
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/'),
301
+ method: 'PATCH'
302
+ },
303
+ UserDelete: {
304
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/'),
305
+ method: 'DELETE'
306
+ },
307
+ ChangeUserMail: {
308
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/change_email/'),
309
+ method: 'PATCH'
310
+ },
311
+ ConfirmUserChangeMail: {
312
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/change_email/'),
313
+ method: 'POST'
314
+ },
315
+ ChangeUserPassword: {
316
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/change_password/'),
317
+ method: 'PATCH'
318
+ },
319
+ UserSettings: {
320
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/settings/'),
321
+ method: 'GET'
322
+ },
323
+ UserSettingsPatch: {
324
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/settings/'),
325
+ method: 'PATCH'
326
+ },
327
+ Me: {
328
+ url: (0, utils_1.urlReplacer)('/api/v2/user/me/'),
329
+ method: 'GET'
330
+ },
331
+ MyAvatar: {
332
+ url: (0, utils_1.urlReplacer)('/api/v2/user/me/avatar/'),
333
+ method: 'GET'
334
+ },
335
+ Permission: {
336
+ url: (0, utils_1.urlReplacer)('/api/v2/user/me/permission/'),
337
+ method: 'GET'
338
+ },
339
+ Platform: {
340
+ url: (0, utils_1.urlReplacer)('/api/v2/user/me/platform_url/'),
341
+ method: 'GET'
342
+ },
343
+ FollowedCategories: {
344
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/categories/'),
345
+ method: 'GET'
346
+ },
347
+ UserFollowers: {
348
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/followers/'),
349
+ method: 'GET'
350
+ },
351
+ UsersFollowed: {
352
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/followings/'),
353
+ method: 'GET'
354
+ },
355
+ FollowUser: {
356
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/follow/'),
357
+ method: 'POST'
358
+ },
359
+ CheckUserFollowed: {
360
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/is_followed/'),
361
+ method: 'GET'
362
+ },
363
+ CheckUserFollower: {
364
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/is_follower/'),
365
+ method: 'GET'
366
+ },
367
+ UserConnections: {
368
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connections/'),
369
+ method: 'GET'
370
+ },
371
+ UserCheckConnection: {
372
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/is_connection/'),
373
+ method: 'GET'
374
+ },
375
+ UserConnectionRequests: {
376
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/requests/'),
377
+ method: 'GET'
378
+ },
379
+ UserRequestConnectionsSent: {
380
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/requests_sent/'),
381
+ method: 'GET'
382
+ },
383
+ UserAcceptRequestConnection: {
384
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/accept/'),
385
+ method: 'POST'
386
+ },
387
+ UserRequestConnection: {
388
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/request/'),
389
+ method: 'POST'
390
+ },
391
+ UserRemoveConnection: {
392
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/remove/'),
393
+ method: 'POST'
394
+ },
395
+ UserCancelRejectConnectionRequest: {
396
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/cancel_reject/'),
397
+ method: 'POST'
398
+ },
399
+ UserCancelRequestConnection: {
400
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/cancel_request/'),
401
+ method: 'POST'
402
+ },
403
+ UserRejectConnectionRequest: {
404
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection/reject/'),
405
+ method: 'POST'
406
+ },
407
+ UserMarkSeenConnectionRequest: {
408
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection_requests/mark_seen/'),
409
+ method: 'POST'
410
+ },
411
+ UserShowHide: {
412
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/hide/'),
413
+ method: 'POST'
414
+ },
415
+ CheckUserHidden: {
416
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/is_hidden/'),
417
+ method: 'GET'
418
+ },
419
+ CheckUserHiddenBy: {
420
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/is_hidden_by/'),
421
+ method: 'GET'
422
+ },
423
+ GetUserLoyaltyPoints: {
424
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/loyalty/points/'),
425
+ method: 'GET'
426
+ },
427
+ UserConnectionStatuses: {
428
+ url: (0, utils_1.urlReplacer)('/api/v2/user/connection/statuses/'),
429
+ method: 'POST'
430
+ },
431
+ UserTagToAddressContribution: {
432
+ url: (0, utils_1.urlReplacer)('/api/v2/user/tag/tags_to_address_a_contribution/'),
433
+ method: 'GET'
434
+ },
435
+ CheckEmailToken: {
436
+ url: (0, utils_1.urlReplacer)('/api/v2/user/check_email_token/'),
437
+ method: 'GET'
438
+ },
439
+ AddAvatar: {
440
+ url: (0, utils_1.urlReplacer)('/api/v2/user/avatar/'),
441
+ method: 'POST'
442
+ },
443
+ GetAvatars: {
444
+ url: (0, utils_1.urlReplacer)('/api/v2/user/avatar/'),
445
+ method: 'GET'
446
+ },
447
+ RemoveAvatar: {
448
+ url: (0, utils_1.urlReplacer)('/api/v2/user/avatar/'),
449
+ method: 'DELETE'
450
+ },
451
+ SetPrimaryAvatar: {
452
+ url: (0, utils_1.urlReplacer)('/api/v2/user/avatar/'),
453
+ method: 'PATCH'
454
+ },
455
+ /**
456
+ * Broadcast Messages
457
+ */
458
+ BroadcastMessagesList: {
459
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/banner/'),
460
+ method: 'GET'
461
+ },
462
+ BroadcastMessagesMarkRead: {
463
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/banner/read/'),
464
+ method: 'POST'
465
+ },
466
+ BroadcastMessagesDispose: {
467
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/banner/dispose/'),
468
+ method: 'POST'
469
+ },
470
+ BroadcastMessagesUnseenCount: {
471
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/banner/unseen/count/'),
472
+ method: 'GET'
473
+ },
474
+ BroadcastMessagesUndisposedCount: {
475
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/banner/undisposed/count/'),
476
+ method: 'GET'
477
+ },
478
+ /**
479
+ * Notifications
480
+ */
481
+ UserNotificationList: {
482
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/'),
483
+ method: 'GET'
484
+ },
485
+ UserMarkReadNotification: {
486
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/read/'),
487
+ method: 'POST'
488
+ },
489
+ UserUnseenNotificationCount: {
490
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/unseen/count/'),
491
+ method: 'GET'
492
+ },
493
+ CreateCustomNotification: {
494
+ url: (0, utils_1.urlReplacer)('/api/v2/notification/notify/'),
495
+ method: 'POST'
496
+ },
497
+ UserSuspendContributionNotification: {
498
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/suspend/'),
499
+ method: 'POST'
500
+ },
501
+ UserCheckContributionNotificationSuspended: {
502
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/suspended/'),
503
+ method: 'GET'
504
+ },
505
+ UserListContributionNotificationSuspended: {
506
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/suspended/'),
507
+ method: 'GET'
508
+ },
509
+ /**
510
+ * Suggestion Endpoints
511
+ */
512
+ CategoriesSuggestion: {
513
+ url: (0, utils_1.urlReplacer)('/api/v2/suggestion/category/'),
514
+ method: 'GET'
515
+ },
516
+ GetIncubatorSuggestion: {
517
+ url: (0, utils_1.urlReplacer)('/api/v2/suggestion/incubator/'),
518
+ method: 'GET'
519
+ },
520
+ PollSuggestion: {
521
+ url: (0, utils_1.urlReplacer)('/api/v2/suggestion/poll/'),
522
+ method: 'GET'
523
+ },
524
+ UserSuggestion: {
525
+ url: (0, utils_1.urlReplacer)('/api/v2/suggestion/user/'),
526
+ method: 'GET'
527
+ },
528
+ /**
529
+ * Follow
530
+ */
531
+ FollowContribution: {
532
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/follow/'),
533
+ method: 'POST'
534
+ },
535
+ /**
536
+ * Manage votes for post, discussion, status and comment
537
+ */
538
+ Vote: {
539
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/vote/'),
540
+ method: 'POST'
541
+ },
542
+ VotesList: {
543
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/vote/'),
544
+ method: 'GET'
545
+ },
546
+ /**
547
+ * Shares
548
+ */
549
+ ShareUsersList: {
550
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/shares_users/'),
551
+ method: 'GET'
552
+ },
553
+ /**
554
+ * Poll
555
+ */
556
+ PollVote: {
557
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/poll/vote/'),
558
+ method: 'POST'
559
+ },
560
+ PollVotesList: {
561
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/poll/vote/'),
562
+ method: 'GET'
563
+ },
564
+ /**
565
+ * Contributors
566
+ */
567
+ Contributors: {
568
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/contributors/'),
569
+ method: 'GET'
570
+ },
571
+ /**
572
+ * Loyalty Endpoints
573
+ */
574
+ GetPrizes: {
575
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/prize/'),
576
+ method: 'GET'
577
+ },
578
+ CreatePrize: {
579
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/prize/'),
580
+ method: 'POST'
581
+ },
582
+ GetSpecificPrize: {
583
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/prize/$(id)/'),
584
+ method: 'GET'
585
+ },
586
+ UpdatePrize: {
587
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/prize/$(id)/'),
588
+ method: 'PUT'
589
+ },
590
+ PatchPrize: {
591
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/prize/$(id)/'),
592
+ method: 'PATCH'
593
+ },
594
+ GetPrizeRequests: {
595
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/request/'),
596
+ method: 'GET'
597
+ },
598
+ CreatePrizeRequest: {
599
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/request/'),
600
+ method: 'POST'
601
+ },
602
+ GetSpecificPrizeRequest: {
603
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/request/$(id)/'),
604
+ method: 'GET'
605
+ },
606
+ PatchPrizeRequest: {
607
+ url: (0, utils_1.urlReplacer)('/api/v2/loyalty/request/$(id)/'),
608
+ method: 'PATCH'
609
+ },
610
+ /**
611
+ * Composer Endpoints
612
+ */
613
+ Composer: {
614
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/'),
615
+ method: 'POST'
616
+ },
617
+ ComposerEdit: {
618
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/'),
619
+ method: 'PUT'
620
+ },
621
+ ComposerChunkUploadMedia: {
622
+ url: (0, utils_1.urlReplacer)('/api/v2/media/upload/chunk/'),
623
+ method: 'POST'
624
+ },
625
+ ComposerChunkUploadMediaComplete: {
626
+ url: (0, utils_1.urlReplacer)('/api/v2/media/upload/complete/'),
627
+ method: 'POST'
628
+ },
629
+ ComposerMediaCreate: {
630
+ url: (0, utils_1.urlReplacer)('/api/v2/media/'),
631
+ method: 'POST'
632
+ },
633
+ ComposerCategoryList: {
634
+ url: (0, utils_1.urlReplacer)('/api/v2/category/'),
635
+ method: 'GET'
636
+ },
637
+ ComposerAddressingTagList: {
638
+ url: (0, utils_1.urlReplacer)('/api/v2/user/tag/tags_to_address_a_contribution/'),
639
+ method: 'GET'
640
+ },
641
+ ComposerLocalitySearch: {
642
+ url: (0, utils_1.urlReplacer)('/api/v2/locality/search/'),
643
+ method: 'GET'
644
+ },
645
+ /**
646
+ * Media
647
+ */
648
+ GetMedia: {
649
+ url: (0, utils_1.urlReplacer)('/api/v2/media/$(id)/'),
650
+ method: 'GET'
651
+ },
652
+ UpdateMedia: {
653
+ url: (0, utils_1.urlReplacer)('/api/v2/media/$(id)/'),
654
+ method: 'PUT'
655
+ },
656
+ DeleteMedia: {
657
+ url: (0, utils_1.urlReplacer)('/api/v2/media/$(id)/'),
658
+ method: 'DELETE'
659
+ },
660
+ MediaClickTracker: {
661
+ url: (0, utils_1.urlReplacer)('/api/v2/media/$(id)/click/'),
662
+ method: 'POST'
663
+ },
664
+ /**
665
+ * Locality
666
+ */
667
+ GetLocalities: {
668
+ url: (0, utils_1.urlReplacer)('/api/v2/locality/'),
669
+ method: 'GET'
670
+ },
671
+ /**
672
+ * Custom ADV
673
+ */
674
+ CustomAdvList: {
675
+ url: (0, utils_1.urlReplacer)('/api/v2/custom_adv/'),
676
+ method: 'GET'
677
+ },
678
+ CustomAdv: {
679
+ url: (0, utils_1.urlReplacer)('/api/v2/custom_adv/$(id)/'),
680
+ method: 'GET'
681
+ },
682
+ CustomAdvSearch: {
683
+ url: (0, utils_1.urlReplacer)('/api/v2/custom_adv/search/'),
684
+ method: 'GET'
685
+ },
686
+ /**
687
+ * Feed
688
+ */
689
+ MainFeed: {
690
+ url: (0, utils_1.urlReplacer)('/api/v2/feed/'),
691
+ method: 'GET'
692
+ },
693
+ MainFeedUnseenCount: {
694
+ url: (0, utils_1.urlReplacer)('/api/v2/feed/unseen/count/'),
695
+ method: 'GET'
696
+ },
697
+ FeedObjectMarkRead: {
698
+ url: (0, utils_1.urlReplacer)('/api/v2/feed/read/'),
699
+ method: 'POST'
700
+ },
701
+ ExploreFeed: {
702
+ url: (0, utils_1.urlReplacer)('/api/v2/feed/explore/'),
703
+ method: 'GET'
704
+ },
705
+ FeedLikeThese: {
706
+ url: (0, utils_1.urlReplacer)('/api/v2/feed/likethis/'),
707
+ method: 'POST'
708
+ },
709
+ CategoryFeed: {
710
+ url: (0, utils_1.urlReplacer)('/api/v2/category/$(id)/feed/'),
711
+ method: 'GET'
712
+ },
713
+ UserFeed: {
714
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/feed/'),
715
+ method: 'GET'
716
+ },
717
+ EmbedFeed: {
718
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/feed/'),
719
+ method: 'GET'
720
+ },
721
+ /**
722
+ * Embed
723
+ */
724
+ EmbedList: {
725
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/'),
726
+ method: 'GET'
727
+ },
728
+ EmbedCreate: {
729
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/'),
730
+ method: 'POST'
731
+ },
732
+ EmbedSearch: {
733
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/search/'),
734
+ method: 'GET'
735
+ },
736
+ Embed: {
737
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/$(id)/'),
738
+ method: 'GET'
739
+ },
740
+ UpdateEmbed: {
741
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/$(id)/'),
742
+ method: 'PUT'
743
+ },
744
+ PatchEmbed: {
745
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/$(id)/'),
746
+ method: 'PATCH'
747
+ },
748
+ SpecificEmbedFeed: {
749
+ url: (0, utils_1.urlReplacer)('/api/v2/embed/$(id)/feed/'),
750
+ method: 'GET'
751
+ },
752
+ /**
753
+ * Private Messages Endpoints
754
+ */
755
+ GetSnippets: {
756
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/'),
757
+ method: 'GET'
758
+ },
759
+ GetASingleMessage: {
760
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/$(id)/'),
761
+ method: 'GET'
762
+ },
763
+ SendMessage: {
764
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/'),
765
+ method: 'POST'
766
+ },
767
+ GetAThread: {
768
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/'),
769
+ method: 'GET'
770
+ },
771
+ PrivateMessageUploadMedia: {
772
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/upload/'),
773
+ method: 'POST'
774
+ },
775
+ PrivateMessageUploadThumbnail: {
776
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/upload/'),
777
+ method: 'POST'
778
+ },
779
+ PrivateMessageUploadMediaInChunks: {
780
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/upload/'),
781
+ method: 'POST'
782
+ },
783
+ PrivateMessageChunkUploadDone: {
784
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/upload/?done'),
785
+ method: 'POST'
786
+ },
787
+ DeleteASingleMessage: {
788
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/$(id)/'),
789
+ method: 'DELETE'
790
+ },
791
+ DeleteAThread: {
792
+ url: (0, utils_1.urlReplacer)('/api/v2/pm/$(id)/?hide=1/'),
793
+ method: 'DELETE'
794
+ },
795
+ /**
796
+ * Device
797
+ */
798
+ Device: {
799
+ url: (0, utils_1.urlReplacer)('/api/v2/device/$(type)/$(id)/'),
800
+ method: 'GET'
801
+ },
802
+ NewDevice: {
803
+ url: (0, utils_1.urlReplacer)('/api/v2/device/$(type)/'),
804
+ method: 'POST'
805
+ },
806
+ DeleteDevice: {
807
+ url: (0, utils_1.urlReplacer)('/api/v2/device/$(type)/$(id)/'),
808
+ method: 'DELETE'
809
+ },
810
+ /**
811
+ * Moderation
812
+ */
813
+ UsersForModeration: {
814
+ url: (0, utils_1.urlReplacer)('/api/v2/moderation/user/'),
815
+ method: 'GET'
816
+ },
817
+ ModerateUser: {
818
+ url: (0, utils_1.urlReplacer)('/api/v2/moderation/user/$(id)/'),
819
+ method: 'PATCH'
820
+ },
821
+ FlaggedContributions: {
822
+ url: (0, utils_1.urlReplacer)('/api/v2/moderation/contribution/'),
823
+ method: 'GET'
824
+ },
825
+ FlagsForSpecificContribution: {
826
+ url: (0, utils_1.urlReplacer)('/api/v2/moderation/contribution/$(id)/flag/?contribution_type=$(contribution_type)'),
827
+ method: 'GET'
828
+ },
829
+ ModerateContribution: {
830
+ url: (0, utils_1.urlReplacer)('/api/v2/moderation/contribution/$(id)/'),
831
+ method: 'PATCH'
832
+ },
833
+ ModerateContributionStatus: {
834
+ url: (0, utils_1.urlReplacer)('/api/v2/moderation/contribution/$(id)/status/?contribution_type=$(contribution_type)'),
835
+ method: 'GET'
836
+ },
837
+ /**
838
+ * Insights
839
+ **/
840
+ InsightBestContribution: {
841
+ url: (0, utils_1.urlReplacer)('/api/v2/insight/contribution/'),
842
+ method: 'GET'
843
+ },
844
+ InsightBestEmbed: {
845
+ url: (0, utils_1.urlReplacer)('/api/v2/insight/embed/'),
846
+ method: 'GET'
847
+ },
848
+ InsightBestUser: {
849
+ url: (0, utils_1.urlReplacer)('/api/v2/insight/user/'),
850
+ method: 'GET'
851
+ },
852
+ InsightContributionCounter: {
853
+ url: (0, utils_1.urlReplacer)('/api/v2/insight/contribution/counters/?contribution_id=$(id)'),
854
+ method: 'GET'
855
+ },
856
+ InsightEmbedCounter: {
857
+ url: (0, utils_1.urlReplacer)('/api/v2/insight/embed/counters/?embed_type=$(type)&embed_id=$(id)'),
858
+ method: 'GET'
859
+ },
860
+ InsightUserCounter: {
861
+ url: (0, utils_1.urlReplacer)('/api/v2/insight/user/counters/?user_id=$(id)'),
862
+ method: 'GET'
863
+ },
864
+ /**
865
+ * Incubators
866
+ */
867
+ GetAllIncubators: {
868
+ url: (0, utils_1.urlReplacer)('/api/v2/incubator/'),
869
+ method: 'GET'
870
+ },
871
+ SearchIncubators: {
872
+ url: (0, utils_1.urlReplacer)('/api/v2/incubator/search/'),
873
+ method: 'GET'
874
+ },
875
+ GetASpecificIncubator: {
876
+ url: (0, utils_1.urlReplacer)('/api/v2/incubator/$(id)/'),
877
+ method: 'GET'
878
+ },
879
+ CheckIncubatorSubscription: {
880
+ url: (0, utils_1.urlReplacer)('/api/v2/incubator/$(id)/subscribed/'),
881
+ method: 'GET'
882
+ },
883
+ SubscribeToIncubator: {
884
+ url: (0, utils_1.urlReplacer)('/api/v2/incubator/$(id)/subscribe/'),
885
+ method: 'POST'
886
+ },
887
+ CreateAnIncubator: {
888
+ url: (0, utils_1.urlReplacer)('/api/v2/incubator/'),
889
+ method: 'POST'
890
+ },
891
+ GetIncubatorSubscribers: {
892
+ url: (0, utils_1.urlReplacer)('/api/v2/incubator/$(id)/subscribers/'),
893
+ method: 'GET'
894
+ },
895
+ /**
896
+ * Custom Page
897
+ */
898
+ GetCustomPages: {
899
+ url: (0, utils_1.urlReplacer)('/api/v2/custom_page/'),
900
+ method: 'GET'
901
+ },
902
+ CustomPage: {
903
+ url: (0, utils_1.urlReplacer)('/api/v2/custom_page/$(id)/'),
904
+ method: 'GET'
905
+ },
906
+ CustomPageSearch: {
907
+ url: (0, utils_1.urlReplacer)('/api/v2/custom_page/search/'),
908
+ method: 'GET'
909
+ },
910
+ /**
911
+ * Legal Page
912
+ */
913
+ LegalPage: {
914
+ url: (0, utils_1.urlReplacer)('/api/v2/legal_page/$(id)/'),
915
+ method: 'GET'
916
+ },
917
+ GetLegalPages: {
918
+ url: (0, utils_1.urlReplacer)('/api/v2/legal_page/'),
919
+ method: 'GET'
920
+ },
921
+ SearchLegalPages: {
922
+ url: (0, utils_1.urlReplacer)('/api/v2/legal_page/search/'),
923
+ method: 'GET'
924
+ },
925
+ AckLegalPage: {
926
+ url: (0, utils_1.urlReplacer)('/api/v2/legal_page/$(id)/ack/'),
927
+ method: 'POST'
928
+ },
929
+ SpecificUserAck: {
930
+ url: (0, utils_1.urlReplacer)('/api/v2/legal_page/$(id)/user_ack/'),
931
+ method: 'GET'
932
+ },
933
+ UserAckList: {
934
+ url: (0, utils_1.urlReplacer)('/api/v2/legal_page/user_acks/'),
935
+ method: 'GET'
936
+ },
937
+ /**
938
+ * Webhook
939
+ */
940
+ WebhookEndpointsList: {
941
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/'),
942
+ method: 'GET'
943
+ },
944
+ WebhookEventsList: {
945
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/event/'),
946
+ method: 'GET'
947
+ },
948
+ WebhookCreate: {
949
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/'),
950
+ method: 'POST'
951
+ },
952
+ GetSpecificWebhook: {
953
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
954
+ method: 'GET'
955
+ },
956
+ WebhookUpdate: {
957
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
958
+ method: 'PUT'
959
+ },
960
+ WebhookPatch: {
961
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
962
+ method: 'PATCH'
963
+ },
964
+ WebhookDelete: {
965
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/'),
966
+ method: 'DELETE'
967
+ },
968
+ WebhookEndpointAttempts: {
969
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/attempt/'),
970
+ method: 'GET'
971
+ },
972
+ WebhookExpireSigningSecret: {
973
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/secret/expire/'),
974
+ method: 'POST'
975
+ },
976
+ WebhookRevealSigningSecret: {
977
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/secret/reveal/'),
978
+ method: 'POST'
979
+ },
980
+ WebhookResendEndpointEvent: {
981
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/event/resend/'),
982
+ method: 'POST'
983
+ },
984
+ WebhookResendMultipleEndpointEvent: {
985
+ url: (0, utils_1.urlReplacer)('/api/v2/webhook/endpoint/$(id)/event/resend/bulk/'),
986
+ method: 'POST'
987
+ },
988
+ /**
989
+ * Data Portability
990
+ */
991
+ GenerateDataPortability: {
992
+ url: (0, utils_1.urlReplacer)('/api/v2/udp/'),
993
+ method: 'POST'
994
+ },
995
+ DataPortabilityStatus: {
996
+ url: (0, utils_1.urlReplacer)('/api/v2/udp/'),
997
+ method: 'GET'
998
+ },
999
+ DataPortabilityDownload: {
1000
+ url: (0, utils_1.urlReplacer)('/api/v2/udp/'),
1001
+ method: 'GET'
1002
+ },
1003
+ /**
1004
+ * Score
1005
+ */
1006
+ ScoresList: {
1007
+ url: (0, utils_1.urlReplacer)('/api/v2/score/'),
1008
+ method: 'GET'
1009
+ },
1010
+ SearchScore: {
1011
+ url: (0, utils_1.urlReplacer)('/api/v2/score/search/'),
1012
+ method: 'GET'
1013
+ },
1014
+ AddScore: {
1015
+ url: (0, utils_1.urlReplacer)('/api/v2/score/'),
1016
+ method: 'POST'
1017
+ }
1052
1018
  };
1053
- var _default = Endpoints;
1054
- exports.default = _default;
1019
+ exports.default = Endpoints;
1020
+ //# sourceMappingURL=Endpoints.js.map