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

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