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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (464) hide show
  1. package/lib/{types → cjs}/client/index.d.ts +0 -0
  2. package/lib/{types → cjs}/client/index.d.ts.map +0 -0
  3. package/lib/cjs/client/index.js +112 -157
  4. package/lib/cjs/client/index.js.map +1 -0
  5. package/lib/{types → cjs}/constants/Endpoints.d.ts +0 -0
  6. package/lib/{types → cjs}/constants/Endpoints.d.ts.map +1 -1
  7. package/lib/cjs/constants/Endpoints.js +1017 -1051
  8. package/lib/cjs/constants/Endpoints.js.map +1 -0
  9. package/lib/{types → cjs}/index.d.ts +2 -2
  10. package/lib/{types → cjs}/index.d.ts.map +1 -1
  11. package/lib/cjs/index.js +134 -222
  12. package/lib/cjs/index.js.map +1 -0
  13. package/lib/{types → cjs}/services/category/index.d.ts +0 -0
  14. package/lib/{types → cjs}/services/category/index.d.ts.map +0 -0
  15. package/lib/cjs/services/category/index.js +218 -251
  16. package/lib/cjs/services/category/index.js.map +1 -0
  17. package/lib/{types → cjs}/services/comment/index.d.ts +5 -4
  18. package/lib/cjs/services/comment/index.d.ts.map +1 -0
  19. package/lib/cjs/services/comment/index.js +154 -181
  20. package/lib/cjs/services/comment/index.js.map +1 -0
  21. package/lib/{types → cjs}/services/custom_adv/index.d.ts +3 -3
  22. package/lib/cjs/services/custom_adv/index.d.ts.map +1 -0
  23. package/lib/cjs/services/custom_adv/index.js +56 -56
  24. package/lib/cjs/services/custom_adv/index.js.map +1 -0
  25. package/lib/{types → cjs}/services/custom_page/index.d.ts +0 -0
  26. package/lib/{types → cjs}/services/custom_page/index.d.ts.map +0 -0
  27. package/lib/cjs/services/custom_page/index.js +56 -56
  28. package/lib/cjs/services/custom_page/index.js.map +1 -0
  29. package/lib/{types → cjs}/services/data_portability/index.d.ts +0 -0
  30. package/lib/{types → cjs}/services/data_portability/index.d.ts.map +0 -0
  31. package/lib/cjs/services/data_portability/index.js +51 -49
  32. package/lib/cjs/services/data_portability/index.js.map +1 -0
  33. package/lib/{types → cjs}/services/embed/index.d.ts +8 -6
  34. package/lib/cjs/services/embed/index.d.ts.map +1 -0
  35. package/lib/cjs/services/embed/index.js +120 -128
  36. package/lib/cjs/services/embed/index.js.map +1 -0
  37. package/lib/cjs/services/feature/index.d.ts +19 -0
  38. package/lib/cjs/services/feature/index.d.ts.map +1 -0
  39. package/lib/cjs/services/feature/index.js +31 -25
  40. package/lib/cjs/services/feature/index.js.map +1 -0
  41. package/lib/{types → cjs}/services/feed/index.d.ts +2 -0
  42. package/lib/{types → cjs}/services/feed/index.d.ts.map +1 -1
  43. package/lib/cjs/services/feed/index.js +79 -81
  44. package/lib/cjs/services/feed/index.js.map +1 -0
  45. package/lib/{types → cjs}/services/feed_object/index.d.ts +9 -9
  46. package/lib/cjs/services/feed_object/index.d.ts.map +1 -0
  47. package/lib/cjs/services/feed_object/index.js +387 -485
  48. package/lib/cjs/services/feed_object/index.js.map +1 -0
  49. package/lib/{types → cjs}/services/incubator/index.d.ts +0 -0
  50. package/lib/{types → cjs}/services/incubator/index.d.ts.map +0 -0
  51. package/lib/cjs/services/incubator/index.js +104 -114
  52. package/lib/cjs/services/incubator/index.js.map +1 -0
  53. package/lib/{types → cjs}/services/insight/index.d.ts +13 -10
  54. package/lib/cjs/services/insight/index.d.ts.map +1 -0
  55. package/lib/cjs/services/insight/index.js +93 -94
  56. package/lib/cjs/services/insight/index.js.map +1 -0
  57. package/lib/{types → cjs}/services/legal_page/index.d.ts +0 -0
  58. package/lib/{types → cjs}/services/legal_page/index.d.ts.map +0 -0
  59. package/lib/cjs/services/legal_page/index.js +92 -102
  60. package/lib/cjs/services/legal_page/index.js.map +1 -0
  61. package/lib/cjs/services/locality/index.d.ts +26 -0
  62. package/lib/cjs/services/locality/index.d.ts.map +1 -0
  63. package/lib/cjs/services/locality/index.js +44 -37
  64. package/lib/cjs/services/locality/index.js.map +1 -0
  65. package/lib/{types → cjs}/services/loyalty/index.d.ts +3 -3
  66. package/lib/cjs/services/loyalty/index.d.ts.map +1 -0
  67. package/lib/cjs/services/loyalty/index.js +128 -148
  68. package/lib/cjs/services/loyalty/index.js.map +1 -0
  69. package/lib/{types → cjs}/services/media/index.d.ts +0 -0
  70. package/lib/{types → cjs}/services/media/index.d.ts.map +1 -1
  71. package/lib/cjs/services/media/index.js +107 -124
  72. package/lib/cjs/services/media/index.js.map +1 -0
  73. package/lib/{types → cjs}/services/moderation/index.d.ts +0 -0
  74. package/lib/{types → cjs}/services/moderation/index.d.ts.map +1 -1
  75. package/lib/cjs/services/moderation/index.js +95 -109
  76. package/lib/cjs/services/moderation/index.js.map +1 -0
  77. package/lib/{types → cjs}/services/notification/index.d.ts +3 -3
  78. package/lib/cjs/services/notification/index.d.ts.map +1 -0
  79. package/lib/cjs/services/notification/index.js +121 -131
  80. package/lib/cjs/services/notification/index.js.map +1 -0
  81. package/lib/{types → cjs}/services/preference/index.d.ts +0 -0
  82. package/lib/{types → cjs}/services/preference/index.d.ts.map +0 -0
  83. package/lib/cjs/services/preference/index.js +57 -65
  84. package/lib/cjs/services/preference/index.js.map +1 -0
  85. package/lib/{types → cjs}/services/private_message/index.d.ts +0 -0
  86. package/lib/{types → cjs}/services/private_message/index.d.ts.map +0 -0
  87. package/lib/cjs/services/private_message/index.js +137 -148
  88. package/lib/cjs/services/private_message/index.js.map +1 -0
  89. package/lib/cjs/services/score/index.d.ts +33 -0
  90. package/lib/cjs/services/score/index.d.ts.map +1 -0
  91. package/lib/cjs/services/score/index.js +56 -50
  92. package/lib/cjs/services/score/index.js.map +1 -0
  93. package/lib/{types → cjs}/services/sso/index.d.ts +2 -1
  94. package/lib/{types → cjs}/services/sso/index.d.ts.map +1 -1
  95. package/lib/cjs/services/sso/index.js +42 -38
  96. package/lib/cjs/services/sso/index.js.map +1 -0
  97. package/lib/{types → cjs}/services/suggestion/index.d.ts +0 -0
  98. package/lib/{types → cjs}/services/suggestion/index.d.ts.map +0 -0
  99. package/lib/cjs/services/suggestion/index.js +62 -61
  100. package/lib/cjs/services/suggestion/index.js.map +1 -0
  101. package/lib/{types → cjs}/services/tag/index.d.ts +10 -7
  102. package/lib/cjs/services/tag/index.d.ts.map +1 -0
  103. package/lib/cjs/services/tag/index.js +110 -119
  104. package/lib/cjs/services/tag/index.js.map +1 -0
  105. package/lib/{types → cjs}/services/user/index.d.ts +16 -12
  106. package/lib/cjs/services/user/index.d.ts.map +1 -0
  107. package/lib/cjs/services/user/index.js +606 -715
  108. package/lib/cjs/services/user/index.js.map +1 -0
  109. package/lib/{types → cjs}/services/webhook/index.d.ts +0 -0
  110. package/lib/{types → cjs}/services/webhook/index.d.ts.map +0 -0
  111. package/lib/cjs/services/webhook/index.js +164 -193
  112. package/lib/cjs/services/webhook/index.js.map +1 -0
  113. package/lib/{types → cjs}/types/baseParams.d.ts +0 -0
  114. package/lib/{types → cjs}/types/baseParams.d.ts.map +0 -0
  115. package/lib/cjs/types/baseParams.js +5 -2
  116. package/lib/cjs/types/baseParams.js.map +1 -0
  117. package/lib/{types → cjs}/types/category.d.ts +0 -0
  118. package/lib/{types → cjs}/types/category.d.ts.map +0 -0
  119. package/lib/cjs/types/category.js +2 -2
  120. package/lib/cjs/types/category.js.map +1 -0
  121. package/lib/{types → cjs}/types/comment.d.ts +0 -0
  122. package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
  123. package/lib/cjs/types/comment.js +2 -2
  124. package/lib/cjs/types/comment.js.map +1 -0
  125. package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
  126. package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
  127. package/lib/cjs/types/customAdv.js +2 -2
  128. package/lib/cjs/types/customAdv.js.map +1 -0
  129. package/lib/{types → cjs}/types/customPage.d.ts +0 -0
  130. package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
  131. package/lib/cjs/types/customPage.js +2 -2
  132. package/lib/cjs/types/customPage.js.map +1 -0
  133. package/lib/{types → cjs}/types/embed.d.ts +0 -0
  134. package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
  135. package/lib/cjs/types/embed.js +2 -2
  136. package/lib/cjs/types/embed.js.map +1 -0
  137. package/lib/cjs/types/feature.d.ts +11 -0
  138. package/lib/cjs/types/feature.d.ts.map +1 -0
  139. package/lib/cjs/types/feature.js +3 -0
  140. package/lib/cjs/types/feature.js.map +1 -0
  141. package/lib/{types → cjs}/types/feed.d.ts +0 -0
  142. package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
  143. package/lib/cjs/types/feed.js +2 -2
  144. package/lib/cjs/types/feed.js.map +1 -0
  145. package/lib/{types → cjs}/types/feedObject.d.ts +0 -0
  146. package/lib/{types → cjs}/types/feedObject.d.ts.map +0 -0
  147. package/lib/cjs/types/feedObject.js +2 -2
  148. package/lib/cjs/types/feedObject.js.map +1 -0
  149. package/lib/{types → cjs}/types/incubator.d.ts +0 -0
  150. package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
  151. package/lib/cjs/types/incubator.js +2 -2
  152. package/lib/cjs/types/incubator.js.map +1 -0
  153. package/lib/{types → cjs}/types/index.d.ts +5 -2
  154. package/lib/cjs/types/index.d.ts.map +1 -0
  155. package/lib/cjs/types/index.js +6 -101
  156. package/lib/cjs/types/index.js.map +1 -0
  157. package/lib/cjs/types/insight.d.ts +67 -0
  158. package/lib/cjs/types/insight.d.ts.map +1 -0
  159. package/lib/cjs/types/insight.js +3 -0
  160. package/lib/cjs/types/insight.js.map +1 -0
  161. package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
  162. package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
  163. package/lib/cjs/types/legalPage.js +2 -2
  164. package/lib/cjs/types/legalPage.js.map +1 -0
  165. package/lib/{types → cjs}/types/media.d.ts +0 -0
  166. package/lib/{types → cjs}/types/media.d.ts.map +0 -0
  167. package/lib/cjs/types/media.js +22 -26
  168. package/lib/cjs/types/media.js.map +1 -0
  169. package/lib/{types → cjs}/types/moderation.d.ts +1 -1
  170. package/lib/{types → cjs}/types/moderation.d.ts.map +1 -1
  171. package/lib/cjs/types/moderation.js +2 -2
  172. package/lib/cjs/types/moderation.js.map +1 -0
  173. package/lib/{types → cjs}/types/notification.d.ts +0 -0
  174. package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
  175. package/lib/cjs/types/notification.js +2 -2
  176. package/lib/cjs/types/notification.js.map +1 -0
  177. package/lib/{types → cjs}/types/paginatedResponse.d.ts +0 -0
  178. package/lib/{types → cjs}/types/paginatedResponse.d.ts.map +0 -0
  179. package/lib/cjs/types/paginatedResponse.js +5 -2
  180. package/lib/cjs/types/paginatedResponse.js.map +1 -0
  181. package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
  182. package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
  183. package/lib/cjs/types/privateMessage.js +2 -2
  184. package/lib/cjs/types/privateMessage.js.map +1 -0
  185. package/lib/{types → cjs}/types/prize.d.ts +0 -0
  186. package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
  187. package/lib/cjs/types/prize.js +2 -2
  188. package/lib/cjs/types/prize.js.map +1 -0
  189. package/lib/cjs/types/score.d.ts +19 -0
  190. package/lib/cjs/types/score.d.ts.map +1 -0
  191. package/lib/cjs/types/score.js +3 -0
  192. package/lib/cjs/types/score.js.map +1 -0
  193. package/lib/{types → cjs}/types/sso.d.ts +0 -0
  194. package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
  195. package/lib/cjs/types/sso.js +5 -2
  196. package/lib/cjs/types/sso.js.map +1 -0
  197. package/lib/{types → cjs}/types/tag.d.ts +22 -0
  198. package/lib/cjs/types/tag.d.ts.map +1 -0
  199. package/lib/cjs/types/tag.js +2 -2
  200. package/lib/cjs/types/tag.js.map +1 -0
  201. package/lib/{types → cjs}/types/user.d.ts +0 -0
  202. package/lib/{types → cjs}/types/user.d.ts.map +0 -0
  203. package/lib/cjs/types/user.js +2 -2
  204. package/lib/cjs/types/user.js.map +1 -0
  205. package/lib/{types → cjs}/types/webhook.d.ts +0 -0
  206. package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
  207. package/lib/cjs/types/webhook.js +2 -2
  208. package/lib/cjs/types/webhook.js.map +1 -0
  209. package/lib/cjs/utils/apiRequest.d.ts +2 -0
  210. package/lib/{types → cjs}/utils/apiRequest.d.ts.map +1 -1
  211. package/lib/cjs/utils/apiRequest.js +26 -25
  212. package/lib/cjs/utils/apiRequest.js.map +1 -0
  213. package/lib/{types → cjs}/utils/http.d.ts +0 -0
  214. package/lib/{types → cjs}/utils/http.d.ts.map +0 -0
  215. package/lib/cjs/utils/http.js +41 -45
  216. package/lib/cjs/utils/http.js.map +1 -0
  217. package/lib/{types → cjs}/utils/token.d.ts +0 -0
  218. package/lib/{types → cjs}/utils/token.d.ts.map +0 -0
  219. package/lib/cjs/utils/token.js +62 -31
  220. package/lib/cjs/utils/token.js.map +1 -0
  221. package/lib/esm/client/index.d.ts +115 -0
  222. package/lib/esm/client/index.d.ts.map +1 -0
  223. package/lib/esm/client/index.js +108 -160
  224. package/lib/esm/client/index.js.map +1 -0
  225. package/lib/esm/constants/Endpoints.d.ts +10 -0
  226. package/lib/esm/constants/Endpoints.d.ts.map +1 -0
  227. package/lib/esm/constants/Endpoints.js +1016 -1052
  228. package/lib/esm/constants/Endpoints.js.map +1 -0
  229. package/lib/esm/index.d.ts +51 -0
  230. package/lib/esm/index.d.ts.map +1 -0
  231. package/lib/esm/index.js +51 -223
  232. package/lib/esm/index.js.map +1 -0
  233. package/lib/esm/services/category/index.d.ts +127 -0
  234. package/lib/esm/services/category/index.d.ts.map +1 -0
  235. package/lib/esm/services/category/index.js +214 -255
  236. package/lib/esm/services/category/index.js.map +1 -0
  237. package/lib/esm/services/comment/index.d.ts +92 -0
  238. package/lib/esm/services/comment/index.d.ts.map +1 -0
  239. package/lib/esm/services/comment/index.js +150 -185
  240. package/lib/esm/services/comment/index.js.map +1 -0
  241. package/lib/esm/services/custom_adv/index.d.ts +33 -0
  242. package/lib/esm/services/custom_adv/index.d.ts.map +1 -0
  243. package/lib/esm/services/custom_adv/index.js +52 -60
  244. package/lib/esm/services/custom_adv/index.js.map +1 -0
  245. package/lib/esm/services/custom_page/index.d.ts +33 -0
  246. package/lib/esm/services/custom_page/index.d.ts.map +1 -0
  247. package/lib/esm/services/custom_page/index.js +52 -60
  248. package/lib/esm/services/custom_page/index.js.map +1 -0
  249. package/lib/esm/services/data_portability/index.d.ts +29 -0
  250. package/lib/esm/services/data_portability/index.d.ts.map +1 -0
  251. package/lib/esm/services/data_portability/index.js +47 -53
  252. package/lib/esm/services/data_portability/index.js.map +1 -0
  253. package/lib/esm/services/embed/index.d.ts +71 -0
  254. package/lib/esm/services/embed/index.d.ts.map +1 -0
  255. package/lib/esm/services/embed/index.js +116 -132
  256. package/lib/esm/services/embed/index.js.map +1 -0
  257. package/lib/esm/services/feature/index.d.ts +19 -0
  258. package/lib/esm/services/feature/index.d.ts.map +1 -0
  259. package/lib/esm/services/feature/index.js +27 -29
  260. package/lib/esm/services/feature/index.js.map +1 -0
  261. package/lib/esm/services/feed/index.d.ts +46 -0
  262. package/lib/esm/services/feed/index.d.ts.map +1 -0
  263. package/lib/esm/services/feed/index.js +75 -85
  264. package/lib/esm/services/feed/index.js.map +1 -0
  265. package/lib/esm/services/feed_object/index.d.ts +236 -0
  266. package/lib/esm/services/feed_object/index.d.ts.map +1 -0
  267. package/lib/esm/services/feed_object/index.js +383 -489
  268. package/lib/esm/services/feed_object/index.js.map +1 -0
  269. package/lib/esm/services/incubator/index.d.ts +61 -0
  270. package/lib/esm/services/incubator/index.d.ts.map +1 -0
  271. package/lib/esm/services/incubator/index.js +100 -118
  272. package/lib/esm/services/incubator/index.js.map +1 -0
  273. package/lib/esm/services/insight/index.d.ts +54 -0
  274. package/lib/esm/services/insight/index.d.ts.map +1 -0
  275. package/lib/esm/services/insight/index.js +89 -98
  276. package/lib/esm/services/insight/index.js.map +1 -0
  277. package/lib/esm/services/legal_page/index.d.ts +53 -0
  278. package/lib/esm/services/legal_page/index.d.ts.map +1 -0
  279. package/lib/esm/services/legal_page/index.js +88 -106
  280. package/lib/esm/services/legal_page/index.js.map +1 -0
  281. package/lib/esm/services/locality/index.d.ts +26 -0
  282. package/lib/esm/services/locality/index.d.ts.map +1 -0
  283. package/lib/esm/services/locality/index.js +40 -41
  284. package/lib/esm/services/locality/index.js.map +1 -0
  285. package/lib/esm/services/loyalty/index.d.ts +77 -0
  286. package/lib/esm/services/loyalty/index.d.ts.map +1 -0
  287. package/lib/esm/services/loyalty/index.js +124 -152
  288. package/lib/esm/services/loyalty/index.js.map +1 -0
  289. package/lib/esm/services/media/index.d.ts +65 -0
  290. package/lib/esm/services/media/index.d.ts.map +1 -0
  291. package/lib/esm/services/media/index.js +103 -128
  292. package/lib/esm/services/media/index.js.map +1 -0
  293. package/lib/esm/services/moderation/index.d.ts +58 -0
  294. package/lib/esm/services/moderation/index.d.ts.map +1 -0
  295. package/lib/esm/services/moderation/index.js +91 -113
  296. package/lib/esm/services/moderation/index.js.map +1 -0
  297. package/lib/esm/services/notification/index.d.ts +70 -0
  298. package/lib/esm/services/notification/index.d.ts.map +1 -0
  299. package/lib/esm/services/notification/index.js +117 -135
  300. package/lib/esm/services/notification/index.js.map +1 -0
  301. package/lib/esm/services/preference/index.d.ts +35 -0
  302. package/lib/esm/services/preference/index.d.ts.map +1 -0
  303. package/lib/esm/services/preference/index.js +53 -69
  304. package/lib/esm/services/preference/index.js.map +1 -0
  305. package/lib/esm/services/private_message/index.d.ts +81 -0
  306. package/lib/esm/services/private_message/index.d.ts.map +1 -0
  307. package/lib/esm/services/private_message/index.js +133 -152
  308. package/lib/esm/services/private_message/index.js.map +1 -0
  309. package/lib/esm/services/score/index.d.ts +33 -0
  310. package/lib/esm/services/score/index.d.ts.map +1 -0
  311. package/lib/esm/services/score/index.js +52 -54
  312. package/lib/esm/services/score/index.js.map +1 -0
  313. package/lib/esm/services/sso/index.d.ts +26 -0
  314. package/lib/esm/services/sso/index.d.ts.map +1 -0
  315. package/lib/esm/services/sso/index.js +38 -42
  316. package/lib/esm/services/sso/index.js.map +1 -0
  317. package/lib/esm/services/suggestion/index.d.ts +36 -0
  318. package/lib/esm/services/suggestion/index.d.ts.map +1 -0
  319. package/lib/esm/services/suggestion/index.js +58 -65
  320. package/lib/esm/services/suggestion/index.js.map +1 -0
  321. package/lib/esm/services/tag/index.d.ts +67 -0
  322. package/lib/esm/services/tag/index.d.ts.map +1 -0
  323. package/lib/esm/services/tag/index.js +106 -123
  324. package/lib/esm/services/tag/index.js.map +1 -0
  325. package/lib/esm/services/user/index.d.ts +351 -0
  326. package/lib/esm/services/user/index.d.ts.map +1 -0
  327. package/lib/esm/services/user/index.js +602 -719
  328. package/lib/esm/services/user/index.js.map +1 -0
  329. package/lib/esm/services/webhook/index.d.ts +99 -0
  330. package/lib/esm/services/webhook/index.d.ts.map +1 -0
  331. package/lib/esm/services/webhook/index.js +160 -197
  332. package/lib/esm/services/webhook/index.js.map +1 -0
  333. package/lib/esm/types/baseParams.d.ts +23 -0
  334. package/lib/esm/types/baseParams.d.ts.map +1 -0
  335. package/lib/esm/types/baseParams.js +5 -3
  336. package/lib/esm/types/baseParams.js.map +1 -0
  337. package/lib/esm/types/category.d.ts +15 -0
  338. package/lib/esm/types/category.d.ts.map +1 -0
  339. package/lib/esm/types/category.js +2 -3
  340. package/lib/esm/types/category.js.map +1 -0
  341. package/lib/esm/types/comment.d.ts +51 -0
  342. package/lib/esm/types/comment.d.ts.map +1 -0
  343. package/lib/esm/types/comment.js +2 -3
  344. package/lib/esm/types/comment.js.map +1 -0
  345. package/lib/esm/types/customAdv.d.ts +19 -0
  346. package/lib/esm/types/customAdv.d.ts.map +1 -0
  347. package/lib/esm/types/customAdv.js +2 -3
  348. package/lib/esm/types/customAdv.js.map +1 -0
  349. package/lib/esm/types/customPage.d.ts +24 -0
  350. package/lib/esm/types/customPage.d.ts.map +1 -0
  351. package/lib/esm/types/customPage.js +2 -3
  352. package/lib/esm/types/customPage.js.map +1 -0
  353. package/lib/esm/types/embed.d.ts +26 -0
  354. package/lib/esm/types/embed.d.ts.map +1 -0
  355. package/lib/esm/types/embed.js +2 -3
  356. package/lib/esm/types/embed.js.map +1 -0
  357. package/lib/esm/types/feature.d.ts +11 -0
  358. package/lib/esm/types/feature.d.ts.map +1 -0
  359. package/lib/esm/types/feature.js +2 -0
  360. package/lib/esm/types/feature.js.map +1 -0
  361. package/lib/esm/types/feed.d.ts +11 -0
  362. package/lib/esm/types/feed.d.ts.map +1 -0
  363. package/lib/esm/types/feed.js +2 -3
  364. package/lib/esm/types/feed.js.map +1 -0
  365. package/lib/esm/types/feedObject.d.ts +56 -0
  366. package/lib/esm/types/feedObject.d.ts.map +1 -0
  367. package/lib/esm/types/feedObject.js +2 -3
  368. package/lib/esm/types/feedObject.js.map +1 -0
  369. package/lib/esm/types/incubator.d.ts +33 -0
  370. package/lib/esm/types/incubator.d.ts.map +1 -0
  371. package/lib/esm/types/incubator.js +2 -3
  372. package/lib/esm/types/incubator.js.map +1 -0
  373. package/lib/esm/types/index.d.ts +25 -0
  374. package/lib/esm/types/index.d.ts.map +1 -0
  375. package/lib/esm/types/index.js +3 -102
  376. package/lib/esm/types/index.js.map +1 -0
  377. package/lib/esm/types/insight.d.ts +67 -0
  378. package/lib/esm/types/insight.d.ts.map +1 -0
  379. package/lib/esm/types/insight.js +2 -0
  380. package/lib/esm/types/insight.js.map +1 -0
  381. package/lib/esm/types/legalPage.d.ts +19 -0
  382. package/lib/esm/types/legalPage.d.ts.map +1 -0
  383. package/lib/esm/types/legalPage.js +2 -3
  384. package/lib/esm/types/legalPage.js.map +1 -0
  385. package/lib/esm/types/media.d.ts +80 -0
  386. package/lib/esm/types/media.d.ts.map +1 -0
  387. package/lib/esm/types/media.js +20 -27
  388. package/lib/esm/types/media.js.map +1 -0
  389. package/lib/esm/types/moderation.d.ts +23 -0
  390. package/lib/esm/types/moderation.d.ts.map +1 -0
  391. package/lib/esm/types/moderation.js +2 -3
  392. package/lib/esm/types/moderation.js.map +1 -0
  393. package/lib/esm/types/notification.d.ts +31 -0
  394. package/lib/esm/types/notification.d.ts.map +1 -0
  395. package/lib/esm/types/notification.js +2 -3
  396. package/lib/esm/types/notification.js.map +1 -0
  397. package/lib/esm/types/paginatedResponse.d.ts +10 -0
  398. package/lib/esm/types/paginatedResponse.d.ts.map +1 -0
  399. package/lib/esm/types/paginatedResponse.js +5 -3
  400. package/lib/esm/types/paginatedResponse.js.map +1 -0
  401. package/lib/esm/types/privateMessage.d.ts +176 -0
  402. package/lib/esm/types/privateMessage.d.ts.map +1 -0
  403. package/lib/esm/types/privateMessage.js +2 -3
  404. package/lib/esm/types/privateMessage.js.map +1 -0
  405. package/lib/esm/types/prize.d.ts +47 -0
  406. package/lib/esm/types/prize.d.ts.map +1 -0
  407. package/lib/esm/types/prize.js +2 -3
  408. package/lib/esm/types/prize.js.map +1 -0
  409. package/lib/esm/types/score.d.ts +19 -0
  410. package/lib/esm/types/score.d.ts.map +1 -0
  411. package/lib/esm/types/score.js +2 -0
  412. package/lib/esm/types/score.js.map +1 -0
  413. package/lib/esm/types/sso.d.ts +12 -0
  414. package/lib/esm/types/sso.d.ts.map +1 -0
  415. package/lib/esm/types/sso.js +5 -3
  416. package/lib/esm/types/sso.js.map +1 -0
  417. package/lib/esm/types/tag.d.ts +61 -0
  418. package/lib/esm/types/tag.d.ts.map +1 -0
  419. package/lib/esm/types/tag.js +2 -3
  420. package/lib/esm/types/tag.js.map +1 -0
  421. package/lib/esm/types/user.d.ts +105 -0
  422. package/lib/esm/types/user.d.ts.map +1 -0
  423. package/lib/esm/types/user.js +2 -3
  424. package/lib/esm/types/user.js.map +1 -0
  425. package/lib/esm/types/webhook.d.ts +32 -0
  426. package/lib/esm/types/webhook.d.ts.map +1 -0
  427. package/lib/esm/types/webhook.js +2 -3
  428. package/lib/esm/types/webhook.js.map +1 -0
  429. package/lib/esm/utils/apiRequest.d.ts +2 -0
  430. package/lib/esm/utils/apiRequest.d.ts.map +1 -0
  431. package/lib/esm/utils/apiRequest.js +21 -27
  432. package/lib/esm/utils/apiRequest.js.map +1 -0
  433. package/lib/esm/utils/http.d.ts +6 -0
  434. package/lib/esm/utils/http.d.ts.map +1 -0
  435. package/lib/esm/utils/http.js +39 -48
  436. package/lib/esm/utils/http.js.map +1 -0
  437. package/lib/esm/utils/token.d.ts +21 -0
  438. package/lib/esm/utils/token.d.ts.map +1 -0
  439. package/lib/esm/utils/token.js +36 -33
  440. package/lib/esm/utils/token.js.map +1 -0
  441. package/lib/umd/api-services.js +1 -1
  442. package/lib/umd/api-services.js.map +1 -1
  443. package/package.json +7 -9
  444. package/lib/cjs/index.d.js +0 -2
  445. package/lib/esm/index.d.js +0 -2
  446. package/lib/types/services/comment/index.d.ts.map +0 -1
  447. package/lib/types/services/custom_adv/index.d.ts.map +0 -1
  448. package/lib/types/services/embed/index.d.ts.map +0 -1
  449. package/lib/types/services/feature/index.d.ts +0 -18
  450. package/lib/types/services/feature/index.d.ts.map +0 -1
  451. package/lib/types/services/feed_object/index.d.ts.map +0 -1
  452. package/lib/types/services/insight/index.d.ts.map +0 -1
  453. package/lib/types/services/locality/index.d.ts +0 -24
  454. package/lib/types/services/locality/index.d.ts.map +0 -1
  455. package/lib/types/services/loyalty/index.d.ts.map +0 -1
  456. package/lib/types/services/notification/index.d.ts.map +0 -1
  457. package/lib/types/services/score/index.d.ts +0 -31
  458. package/lib/types/services/score/index.d.ts.map +0 -1
  459. package/lib/types/services/tag/index.d.ts.map +0 -1
  460. package/lib/types/services/user/index.d.ts.map +0 -1
  461. package/lib/types/tsconfig.build.tsbuildinfo +0 -1
  462. package/lib/types/types/index.d.ts.map +0 -1
  463. package/lib/types/types/tag.d.ts.map +0 -1
  464. package/lib/types/utils/apiRequest.d.ts +0 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/user/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAA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';
2
+ import { WebhookParamType } from '../../types';
3
+ import { SCPaginatedResponse } from '../../types';
4
+ export interface WebhookApiClientInterface {
5
+ getAllWebhookEndpoints(): Promise<SCPaginatedResponse<SCWebhookEndpointType>>;
6
+ getAllWebhookEvents(): Promise<string[]>;
7
+ createWebhookEndpoint(params: WebhookParamType): Promise<SCWebhookEndpointType>;
8
+ getASpecificWebhookEndpoint(id: number): Promise<SCWebhookEndpointType>;
9
+ updateASpecificWebhookEndpoint(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
10
+ updateASingleWebhookEndpointField(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
11
+ deleteWebhookEndpoint(id: number): Promise<any>;
12
+ getAllWebhookEndpointAttempts(id: number): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>>;
13
+ expireWebhookSigningSecret(id: number): Promise<SCWebhookEndpointType>;
14
+ revealWebhookSigningSecret(id: number): Promise<SCWebhookEndpointSecretType>;
15
+ resendWebhookEndpointEvent(id: number, event: number): Promise<any>;
16
+ resendMultipleWebhookEndpointEvent(id: number, event: number[]): Promise<any>;
17
+ }
18
+ /**
19
+ * Contains all the endpoints needed to manage webhooks.
20
+ */
21
+ export declare class WebhookApiClient {
22
+ /**
23
+ * This endpoint retrieves all webhook endpoints
24
+ */
25
+ static getAllWebhookEndpoints(): Promise<SCPaginatedResponse<SCWebhookEndpointType>>;
26
+ /**
27
+ * This endpoint retrieves webhook events that can be enabled in the endpoint.
28
+ */
29
+ static getAllWebhookEvents(): Promise<string[]>;
30
+ /**
31
+ * This endpoint creates a webhook endpoint and connects it to the given webhook events.
32
+ * @param data
33
+ */
34
+ static createWebhookEndpoint(data: WebhookParamType): Promise<SCWebhookEndpointType>;
35
+ /**
36
+ * This endpoint retrieves a specific webhook endpoint using ID.
37
+ * @param id
38
+ */
39
+ static getASpecificWebhookEndpoint(id: number): Promise<SCWebhookEndpointType>;
40
+ /**
41
+ * This endpoint updates a specific webhook endpoint.
42
+ * @param id
43
+ * @param params
44
+ */
45
+ static updateASpecificWebhookEndpoint(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
46
+ /**
47
+ * This endpoint updates a specific field for a specific webhook endpoint.
48
+ * @param id
49
+ * @param params
50
+ */
51
+ static updateASingleWebhookEndpointField(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
52
+ /**
53
+ * This endpoint deletes a Webhook Endpoint.
54
+ * @param id
55
+ */
56
+ static deleteWebhookEndpoint(id: number): Promise<any>;
57
+ /**
58
+ * This endpoint retrieves the attempts related to this endpoint.
59
+ * @param id
60
+ */
61
+ static getAllWebhookEndpointAttempts(id: number): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>>;
62
+ /**
63
+ * This endpoint expires the secret associated with this endpoint.
64
+ * @param id
65
+ */
66
+ static expireWebhookSigningSecret(id: number): Promise<SCWebhookEndpointType>;
67
+ /**
68
+ * This endpoint reveals the secret associated with this endpoint.
69
+ * @param id
70
+ */
71
+ static revealWebhookSigningSecret(id: number): Promise<SCWebhookEndpointSecretType>;
72
+ /**
73
+ * This endpoint resends the event specified as parameter to the endpoint specified by the id parameter.
74
+ * @param id
75
+ * @param event
76
+ */
77
+ static resendWebhookEndpointEvent(id: number, event: number): Promise<any>;
78
+ /**
79
+ * This endpoint resends the events specified as parameters to the endpoint specified by the id parameter.
80
+ * @param id
81
+ * @param event
82
+ */
83
+ static resendMultipleWebhookEndpointEvent(id: number, event: number[]): Promise<any>;
84
+ }
85
+ export default class WebhookService {
86
+ static getAllWebhookEndpoints(): Promise<SCPaginatedResponse<SCWebhookEndpointType>>;
87
+ static getAllWebhookEvents(): Promise<any>;
88
+ static createWebhookEndpoint(params: WebhookParamType): Promise<SCWebhookEndpointType>;
89
+ static getASpecificWebhookEndpoint(id: number): Promise<SCWebhookEndpointType>;
90
+ static updateASpecificWebhookEndpoint(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
91
+ static updateASingleWebhookEndpointField(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
92
+ static deleteWebhookEndpoint(id: number): Promise<any>;
93
+ static getAllWebhookEndpointAttempts(id: number): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>>;
94
+ static expireWebhookSigningSecret(id: number): Promise<SCWebhookEndpointType>;
95
+ static revealWebhookSigningSecret(id: number): Promise<SCWebhookEndpointSecretType>;
96
+ static resendWebhookEndpointEvent(id: number, event: number): Promise<any>;
97
+ static resendMultipleWebhookEndpointEvent(id: number, event: number[]): Promise<any>;
98
+ }
99
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/webhook/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAE,4BAA4B,EAAE,2BAA2B,EAAC,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAGhD,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,IAAI,OAAO,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC9E,mBAAmB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,qBAAqB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChF,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxE,8BAA8B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACrG,iCAAiC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxG,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAChD,6BAA6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,CAAC,qBAAqB,CAAC;WAGtE,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;WAG5E,0BAA0B,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGnE,kCAAkC,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAG3F"}
@@ -1,202 +1,165 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = exports.WebhookApiClient = void 0;
5
-
6
- var _Endpoints = _interopRequireDefault(require("../../constants/Endpoints"));
7
-
8
- var _apiRequest = require("../../utils/apiRequest");
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import Endpoints from '../../constants/Endpoints';
11
+ import { apiRequest } from '../../utils/apiRequest';
12
12
  /**
13
13
  * Contains all the endpoints needed to manage webhooks.
14
14
  */
15
- class WebhookApiClient {
16
- /**
17
- * This endpoint retrieves all webhook endpoints
18
- */
19
- static getAllWebhookEndpoints() {
20
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookEndpointsList.url({}), _Endpoints.default.WebhookEndpointsList.method);
21
- }
22
- /**
23
- * This endpoint retrieves webhook events that can be enabled in the endpoint.
24
- */
25
-
26
-
27
- static getAllWebhookEvents() {
28
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookEventsList.url({}), _Endpoints.default.WebhookEventsList.method);
29
- }
30
- /**
31
- * This endpoint creates a webhook endpoint and connects it to the given webhook events.
32
- * @param data
33
- */
34
-
35
-
36
- static createWebhookEndpoint(data) {
37
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookCreate.url({}), _Endpoints.default.WebhookCreate.method, data);
38
- }
39
- /**
40
- * This endpoint retrieves a specific webhook endpoint using ID.
41
- * @param id
42
- */
43
-
44
-
45
- static getASpecificWebhookEndpoint(id) {
46
- return (0, _apiRequest.apiRequest)(_Endpoints.default.GetSpecificWebhook.url({
47
- id
48
- }), _Endpoints.default.GetSpecificWebhook.method);
49
- }
50
- /**
51
- * This endpoint updates a specific webhook endpoint.
52
- * @param id
53
- * @param params
54
- */
55
-
56
-
57
- static updateASpecificWebhookEndpoint(id, params) {
58
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookUpdate.url({
59
- id
60
- }), _Endpoints.default.WebhookUpdate.method, params);
61
- }
62
- /**
63
- * This endpoint updates a specific field for a specific webhook endpoint.
64
- * @param id
65
- * @param params
66
- */
67
-
68
-
69
- static updateASingleWebhookEndpointField(id, params) {
70
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookPatch.url({
71
- id
72
- }), _Endpoints.default.WebhookPatch.method, params);
73
- }
74
- /**
75
- * This endpoint deletes a Webhook Endpoint.
76
- * @param id
77
- */
78
-
79
-
80
- static deleteWebhookEndpoint(id) {
81
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookDelete.url({
82
- id
83
- }), _Endpoints.default.WebhookDelete.method);
84
- }
85
- /**
86
- * This endpoint retrieves the attempts related to this endpoint.
87
- * @param id
88
- */
89
-
90
-
91
- static getAllWebhookEndpointAttempts(id) {
92
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookEndpointAttempts.url({
93
- id
94
- }), _Endpoints.default.WebhookEndpointAttempts.method);
95
- }
96
- /**
97
- * This endpoint expires the secret associated with this endpoint.
98
- * @param id
99
- */
100
-
101
-
102
- static expireWebhookSigningSecret(id) {
103
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookExpireSigningSecret.url({
104
- id
105
- }), _Endpoints.default.WebhookExpireSigningSecret.method);
106
- }
107
- /**
108
- * This endpoint reveals the secret associated with this endpoint.
109
- * @param id
110
- */
111
-
112
-
113
- static revealWebhookSigningSecret(id) {
114
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookRevealSigningSecret.url({
115
- id
116
- }), _Endpoints.default.WebhookRevealSigningSecret.method);
117
- }
118
- /**
119
- * This endpoint resends the event specified as parameter to the endpoint specified by the id parameter.
120
- * @param id
121
- * @param event
122
- */
123
-
124
-
125
- static resendWebhookEndpointEvent(id, event) {
126
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookResendEndpointEvent.url({
127
- id
128
- }), _Endpoints.default.WebhookResendEndpointEvent.method, {
129
- event: event
130
- });
131
- }
132
- /**
133
- * This endpoint resends the events specified as parameters to the endpoint specified by the id parameter.
134
- * @param id
135
- * @param event
136
- */
137
-
138
-
139
- static resendMultipleWebhookEndpointEvent(id, event) {
140
- return (0, _apiRequest.apiRequest)(_Endpoints.default.WebhookResendMultipleEndpointEvent.url({
141
- id
142
- }), _Endpoints.default.WebhookResendMultipleEndpointEvent.method, {
143
- event: event
144
- });
145
- }
146
-
15
+ export class WebhookApiClient {
16
+ /**
17
+ * This endpoint retrieves all webhook endpoints
18
+ */
19
+ static getAllWebhookEndpoints() {
20
+ return apiRequest(Endpoints.WebhookEndpointsList.url({}), Endpoints.WebhookEndpointsList.method);
21
+ }
22
+ /**
23
+ * This endpoint retrieves webhook events that can be enabled in the endpoint.
24
+ */
25
+ static getAllWebhookEvents() {
26
+ return apiRequest(Endpoints.WebhookEventsList.url({}), Endpoints.WebhookEventsList.method);
27
+ }
28
+ /**
29
+ * This endpoint creates a webhook endpoint and connects it to the given webhook events.
30
+ * @param data
31
+ */
32
+ static createWebhookEndpoint(data) {
33
+ return apiRequest(Endpoints.WebhookCreate.url({}), Endpoints.WebhookCreate.method, data);
34
+ }
35
+ /**
36
+ * This endpoint retrieves a specific webhook endpoint using ID.
37
+ * @param id
38
+ */
39
+ static getASpecificWebhookEndpoint(id) {
40
+ return apiRequest(Endpoints.GetSpecificWebhook.url({ id }), Endpoints.GetSpecificWebhook.method);
41
+ }
42
+ /**
43
+ * This endpoint updates a specific webhook endpoint.
44
+ * @param id
45
+ * @param params
46
+ */
47
+ static updateASpecificWebhookEndpoint(id, params) {
48
+ return apiRequest(Endpoints.WebhookUpdate.url({ id }), Endpoints.WebhookUpdate.method, params);
49
+ }
50
+ /**
51
+ * This endpoint updates a specific field for a specific webhook endpoint.
52
+ * @param id
53
+ * @param params
54
+ */
55
+ static updateASingleWebhookEndpointField(id, params) {
56
+ return apiRequest(Endpoints.WebhookPatch.url({ id }), Endpoints.WebhookPatch.method, params);
57
+ }
58
+ /**
59
+ * This endpoint deletes a Webhook Endpoint.
60
+ * @param id
61
+ */
62
+ static deleteWebhookEndpoint(id) {
63
+ return apiRequest(Endpoints.WebhookDelete.url({ id }), Endpoints.WebhookDelete.method);
64
+ }
65
+ /**
66
+ * This endpoint retrieves the attempts related to this endpoint.
67
+ * @param id
68
+ */
69
+ static getAllWebhookEndpointAttempts(id) {
70
+ return apiRequest(Endpoints.WebhookEndpointAttempts.url({ id }), Endpoints.WebhookEndpointAttempts.method);
71
+ }
72
+ /**
73
+ * This endpoint expires the secret associated with this endpoint.
74
+ * @param id
75
+ */
76
+ static expireWebhookSigningSecret(id) {
77
+ return apiRequest(Endpoints.WebhookExpireSigningSecret.url({ id }), Endpoints.WebhookExpireSigningSecret.method);
78
+ }
79
+ /**
80
+ * This endpoint reveals the secret associated with this endpoint.
81
+ * @param id
82
+ */
83
+ static revealWebhookSigningSecret(id) {
84
+ return apiRequest(Endpoints.WebhookRevealSigningSecret.url({ id }), Endpoints.WebhookRevealSigningSecret.method);
85
+ }
86
+ /**
87
+ * This endpoint resends the event specified as parameter to the endpoint specified by the id parameter.
88
+ * @param id
89
+ * @param event
90
+ */
91
+ static resendWebhookEndpointEvent(id, event) {
92
+ return apiRequest(Endpoints.WebhookResendEndpointEvent.url({ id }), Endpoints.WebhookResendEndpointEvent.method, { event: event });
93
+ }
94
+ /**
95
+ * This endpoint resends the events specified as parameters to the endpoint specified by the id parameter.
96
+ * @param id
97
+ * @param event
98
+ */
99
+ static resendMultipleWebhookEndpointEvent(id, event) {
100
+ return apiRequest(Endpoints.WebhookResendMultipleEndpointEvent.url({ id }), Endpoints.WebhookResendMultipleEndpointEvent.method, { event: event });
101
+ }
147
102
  }
148
-
149
- exports.WebhookApiClient = WebhookApiClient;
150
-
151
- class WebhookService {
152
- static async getAllWebhookEndpoints() {
153
- return WebhookApiClient.getAllWebhookEndpoints();
154
- }
155
-
156
- static async getAllWebhookEvents() {
157
- return WebhookApiClient.getAllWebhookEvents();
158
- }
159
-
160
- static async createWebhookEndpoint(params) {
161
- return WebhookApiClient.createWebhookEndpoint(params);
162
- }
163
-
164
- static async getASpecificWebhookEndpoint(id) {
165
- return WebhookApiClient.getASpecificWebhookEndpoint(id);
166
- }
167
-
168
- static async updateASpecificWebhookEndpoint(id, params) {
169
- return WebhookApiClient.updateASpecificWebhookEndpoint(id, params);
170
- }
171
-
172
- static async updateASingleWebhookEndpointField(id, params) {
173
- return WebhookApiClient.updateASingleWebhookEndpointField(id, params);
174
- }
175
-
176
- static async deleteWebhookEndpoint(id) {
177
- return WebhookApiClient.deleteWebhookEndpoint(id);
178
- }
179
-
180
- static async getAllWebhookEndpointAttempts(id) {
181
- return WebhookApiClient.getAllWebhookEndpointAttempts(id);
182
- }
183
-
184
- static async expireWebhookSigningSecret(id) {
185
- return WebhookApiClient.expireWebhookSigningSecret(id);
186
- }
187
-
188
- static async revealWebhookSigningSecret(id) {
189
- return WebhookApiClient.revealWebhookSigningSecret(id);
190
- }
191
-
192
- static async resendWebhookEndpointEvent(id, event) {
193
- return WebhookApiClient.resendWebhookEndpointEvent(id, event);
194
- }
195
-
196
- static async resendMultipleWebhookEndpointEvent(id, event) {
197
- return WebhookApiClient.resendMultipleWebhookEndpointEvent(id, event);
198
- }
199
-
103
+ export default class WebhookService {
104
+ static getAllWebhookEndpoints() {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ return WebhookApiClient.getAllWebhookEndpoints();
107
+ });
108
+ }
109
+ static getAllWebhookEvents() {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ return WebhookApiClient.getAllWebhookEvents();
112
+ });
113
+ }
114
+ static createWebhookEndpoint(params) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ return WebhookApiClient.createWebhookEndpoint(params);
117
+ });
118
+ }
119
+ static getASpecificWebhookEndpoint(id) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ return WebhookApiClient.getASpecificWebhookEndpoint(id);
122
+ });
123
+ }
124
+ static updateASpecificWebhookEndpoint(id, params) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ return WebhookApiClient.updateASpecificWebhookEndpoint(id, params);
127
+ });
128
+ }
129
+ static updateASingleWebhookEndpointField(id, params) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ return WebhookApiClient.updateASingleWebhookEndpointField(id, params);
132
+ });
133
+ }
134
+ static deleteWebhookEndpoint(id) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ return WebhookApiClient.deleteWebhookEndpoint(id);
137
+ });
138
+ }
139
+ static getAllWebhookEndpointAttempts(id) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ return WebhookApiClient.getAllWebhookEndpointAttempts(id);
142
+ });
143
+ }
144
+ static expireWebhookSigningSecret(id) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ return WebhookApiClient.expireWebhookSigningSecret(id);
147
+ });
148
+ }
149
+ static revealWebhookSigningSecret(id) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ return WebhookApiClient.revealWebhookSigningSecret(id);
152
+ });
153
+ }
154
+ static resendWebhookEndpointEvent(id, event) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ return WebhookApiClient.resendWebhookEndpointEvent(id, event);
157
+ });
158
+ }
159
+ static resendMultipleWebhookEndpointEvent(id, event) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ return WebhookApiClient.resendMultipleWebhookEndpointEvent(id, event);
162
+ });
163
+ }
200
164
  }
201
-
202
- exports.default = WebhookService;
165
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAIlD,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAiBlD;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC3B;;OAEG;IACH,MAAM,CAAC,sBAAsB;QAC3B,OAAO,UAAU,CAAC,SAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,mBAAmB;QACxB,OAAO,UAAU,CAAC,SAAS,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,IAAsB;QACjD,OAAO,UAAU,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAAC,EAAU;QAC3C,OAAO,UAAU,CAAC,SAAS,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAC,EAAE,EAAC,CAAC,EAAE,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,gBAAgB,CAAC,iCAAiC,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QACxE,CAAC;KAAA;IACD,MAAM,CAAO,qBAAqB,CAAC,EAAU;;YAC3C,OAAO,gBAAgB,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;QACpD,CAAC;KAAA;IACD,MAAM,CAAO,6BAA6B,CAAC,EAAU;;YACnD,OAAO,gBAAgB,CAAC,6BAA6B,CAAC,EAAE,CAAC,CAAC;QAC5D,CAAC;KAAA;IACD,MAAM,CAAO,0BAA0B,CAAC,EAAU;;YAChD,OAAO,gBAAgB,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC;QACzD,CAAC;KAAA;IACD,MAAM,CAAO,0BAA0B,CAAC,EAAU;;YAChD,OAAO,gBAAgB,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC;QACzD,CAAC;KAAA;IACD,MAAM,CAAO,0BAA0B,CAAC,EAAU,EAAE,KAAa;;YAC/D,OAAO,gBAAgB,CAAC,0BAA0B,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAChE,CAAC;KAAA;IACD,MAAM,CAAO,kCAAkC,CAAC,EAAU,EAAE,KAAe;;YACzE,OAAO,gBAAgB,CAAC,kCAAkC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QACxE,CAAC;KAAA;CACF"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * BaseGetParams interface
3
+ */
4
+ export interface BaseGetParams extends URLSearchParams {
5
+ /**
6
+ * Number of results to return per page.
7
+ */
8
+ limit?: number;
9
+ /**
10
+ * The initial index from which to return the results.
11
+ */
12
+ offset?: number;
13
+ }
14
+ /**
15
+ * BaseSearchParams interface
16
+ */
17
+ export interface BaseSearchParams extends BaseGetParams {
18
+ /**
19
+ * A search term.
20
+ */
21
+ search?: string;
22
+ }
23
+ //# sourceMappingURL=baseParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseParams.d.ts","sourceRoot":"","sources":["../../../src/types/baseParams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AAEH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,3 +1,5 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ /**
2
+ * BaseGetParams interface
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=baseParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseParams.js","sourceRoot":"","sources":["../../../src/types/baseParams.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,15 @@
1
+ import { BaseSearchParams } from './baseParams';
2
+ /**
3
+ * CategoryParams interface
4
+ */
5
+ export interface CategoryParams extends BaseSearchParams {
6
+ /**
7
+ * Filter using field active (only if user is administrator).
8
+ */
9
+ active?: boolean;
10
+ /**
11
+ * Filter using field deleted (only if user is administrator).
12
+ */
13
+ deleted?: boolean;
14
+ }
15
+ //# sourceMappingURL=category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C;;GAEG;AAEH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/types/category.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ import { SCUserType } from '@selfcommunity/types/';
2
+ import { BaseGetParams } from './baseParams';
3
+ /**
4
+ * Interface Comment
5
+ */
6
+ export interface CommentListParams extends BaseGetParams {
7
+ /**
8
+ * Id of the Discussion, required if both post, status and user parameters are not set
9
+ */
10
+ discussion: number;
11
+ /**
12
+ * Id of the Post, required if both discussion, status and user parameters are not set
13
+ */
14
+ post?: number;
15
+ /**
16
+ * Id of the Status, required if both discussion, post and user parameters are not set
17
+ */
18
+ status?: number;
19
+ /**
20
+ * Id of the User, required if both discussion, post and status parameters are not set
21
+ */
22
+ user?: SCUserType;
23
+ /**
24
+ * Id of the parent Comment, used for retrieve nested comments
25
+ */
26
+ parent?: string;
27
+ /**
28
+ * The field for sorting use - for order desc. Default to added_at
29
+ */
30
+ ordering: string;
31
+ }
32
+ export interface CommentCreateParams {
33
+ discussion: number;
34
+ /**
35
+ * Id of the Post, required if both discussion, status and user parameters are not set
36
+ */
37
+ post?: number;
38
+ /**
39
+ * Id of the Status, required if both discussion, post and user parameters are not set
40
+ */
41
+ status?: number;
42
+ /**
43
+ * Id of the parent Comment, used for retrieve nested comments
44
+ */
45
+ parent?: string;
46
+ /**
47
+ * text for the Comment, html format, it can contain some mentions
48
+ */
49
+ text: string;
50
+ }
51
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/types/comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAC3C;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}