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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (464) hide show
  1. package/lib/{types → cjs}/client/index.d.ts +0 -0
  2. package/lib/{types → cjs}/client/index.d.ts.map +0 -0
  3. package/lib/cjs/client/index.js +112 -157
  4. package/lib/cjs/client/index.js.map +1 -0
  5. package/lib/{types → cjs}/constants/Endpoints.d.ts +0 -0
  6. package/lib/{types → cjs}/constants/Endpoints.d.ts.map +1 -1
  7. package/lib/cjs/constants/Endpoints.js +1017 -1051
  8. package/lib/cjs/constants/Endpoints.js.map +1 -0
  9. package/lib/{types → cjs}/index.d.ts +2 -2
  10. package/lib/{types → cjs}/index.d.ts.map +1 -1
  11. package/lib/cjs/index.js +134 -222
  12. package/lib/cjs/index.js.map +1 -0
  13. package/lib/{types → cjs}/services/category/index.d.ts +0 -0
  14. package/lib/{types → cjs}/services/category/index.d.ts.map +0 -0
  15. package/lib/cjs/services/category/index.js +218 -251
  16. package/lib/cjs/services/category/index.js.map +1 -0
  17. package/lib/{types → cjs}/services/comment/index.d.ts +5 -4
  18. package/lib/cjs/services/comment/index.d.ts.map +1 -0
  19. package/lib/cjs/services/comment/index.js +154 -181
  20. package/lib/cjs/services/comment/index.js.map +1 -0
  21. package/lib/{types → cjs}/services/custom_adv/index.d.ts +3 -3
  22. package/lib/cjs/services/custom_adv/index.d.ts.map +1 -0
  23. package/lib/cjs/services/custom_adv/index.js +56 -56
  24. package/lib/cjs/services/custom_adv/index.js.map +1 -0
  25. package/lib/{types → cjs}/services/custom_page/index.d.ts +0 -0
  26. package/lib/{types → cjs}/services/custom_page/index.d.ts.map +0 -0
  27. package/lib/cjs/services/custom_page/index.js +56 -56
  28. package/lib/cjs/services/custom_page/index.js.map +1 -0
  29. package/lib/{types → cjs}/services/data_portability/index.d.ts +0 -0
  30. package/lib/{types → cjs}/services/data_portability/index.d.ts.map +0 -0
  31. package/lib/cjs/services/data_portability/index.js +51 -49
  32. package/lib/cjs/services/data_portability/index.js.map +1 -0
  33. package/lib/{types → cjs}/services/embed/index.d.ts +8 -6
  34. package/lib/cjs/services/embed/index.d.ts.map +1 -0
  35. package/lib/cjs/services/embed/index.js +120 -128
  36. package/lib/cjs/services/embed/index.js.map +1 -0
  37. package/lib/cjs/services/feature/index.d.ts +19 -0
  38. package/lib/cjs/services/feature/index.d.ts.map +1 -0
  39. package/lib/cjs/services/feature/index.js +31 -25
  40. package/lib/cjs/services/feature/index.js.map +1 -0
  41. package/lib/{types → cjs}/services/feed/index.d.ts +2 -0
  42. package/lib/{types → cjs}/services/feed/index.d.ts.map +1 -1
  43. package/lib/cjs/services/feed/index.js +79 -81
  44. package/lib/cjs/services/feed/index.js.map +1 -0
  45. package/lib/{types → cjs}/services/feed_object/index.d.ts +9 -9
  46. package/lib/cjs/services/feed_object/index.d.ts.map +1 -0
  47. package/lib/cjs/services/feed_object/index.js +387 -485
  48. package/lib/cjs/services/feed_object/index.js.map +1 -0
  49. package/lib/{types → cjs}/services/incubator/index.d.ts +0 -0
  50. package/lib/{types → cjs}/services/incubator/index.d.ts.map +0 -0
  51. package/lib/cjs/services/incubator/index.js +104 -114
  52. package/lib/cjs/services/incubator/index.js.map +1 -0
  53. package/lib/{types → cjs}/services/insight/index.d.ts +13 -10
  54. package/lib/cjs/services/insight/index.d.ts.map +1 -0
  55. package/lib/cjs/services/insight/index.js +93 -94
  56. package/lib/cjs/services/insight/index.js.map +1 -0
  57. package/lib/{types → cjs}/services/legal_page/index.d.ts +0 -0
  58. package/lib/{types → cjs}/services/legal_page/index.d.ts.map +0 -0
  59. package/lib/cjs/services/legal_page/index.js +92 -102
  60. package/lib/cjs/services/legal_page/index.js.map +1 -0
  61. package/lib/cjs/services/locality/index.d.ts +26 -0
  62. package/lib/cjs/services/locality/index.d.ts.map +1 -0
  63. package/lib/cjs/services/locality/index.js +44 -37
  64. package/lib/cjs/services/locality/index.js.map +1 -0
  65. package/lib/{types → cjs}/services/loyalty/index.d.ts +3 -3
  66. package/lib/cjs/services/loyalty/index.d.ts.map +1 -0
  67. package/lib/cjs/services/loyalty/index.js +128 -148
  68. package/lib/cjs/services/loyalty/index.js.map +1 -0
  69. package/lib/{types → cjs}/services/media/index.d.ts +0 -0
  70. package/lib/{types → cjs}/services/media/index.d.ts.map +1 -1
  71. package/lib/cjs/services/media/index.js +107 -124
  72. package/lib/cjs/services/media/index.js.map +1 -0
  73. package/lib/{types → cjs}/services/moderation/index.d.ts +0 -0
  74. package/lib/{types → cjs}/services/moderation/index.d.ts.map +1 -1
  75. package/lib/cjs/services/moderation/index.js +95 -109
  76. package/lib/cjs/services/moderation/index.js.map +1 -0
  77. package/lib/{types → cjs}/services/notification/index.d.ts +3 -3
  78. package/lib/cjs/services/notification/index.d.ts.map +1 -0
  79. package/lib/cjs/services/notification/index.js +121 -131
  80. package/lib/cjs/services/notification/index.js.map +1 -0
  81. package/lib/{types → cjs}/services/preference/index.d.ts +0 -0
  82. package/lib/{types → cjs}/services/preference/index.d.ts.map +0 -0
  83. package/lib/cjs/services/preference/index.js +57 -65
  84. package/lib/cjs/services/preference/index.js.map +1 -0
  85. package/lib/{types → cjs}/services/private_message/index.d.ts +0 -0
  86. package/lib/{types → cjs}/services/private_message/index.d.ts.map +0 -0
  87. package/lib/cjs/services/private_message/index.js +137 -148
  88. package/lib/cjs/services/private_message/index.js.map +1 -0
  89. package/lib/cjs/services/score/index.d.ts +33 -0
  90. package/lib/cjs/services/score/index.d.ts.map +1 -0
  91. package/lib/cjs/services/score/index.js +56 -50
  92. package/lib/cjs/services/score/index.js.map +1 -0
  93. package/lib/{types → cjs}/services/sso/index.d.ts +2 -1
  94. package/lib/{types → cjs}/services/sso/index.d.ts.map +1 -1
  95. package/lib/cjs/services/sso/index.js +42 -38
  96. package/lib/cjs/services/sso/index.js.map +1 -0
  97. package/lib/{types → cjs}/services/suggestion/index.d.ts +0 -0
  98. package/lib/{types → cjs}/services/suggestion/index.d.ts.map +0 -0
  99. package/lib/cjs/services/suggestion/index.js +62 -61
  100. package/lib/cjs/services/suggestion/index.js.map +1 -0
  101. package/lib/{types → cjs}/services/tag/index.d.ts +10 -7
  102. package/lib/cjs/services/tag/index.d.ts.map +1 -0
  103. package/lib/cjs/services/tag/index.js +110 -119
  104. package/lib/cjs/services/tag/index.js.map +1 -0
  105. package/lib/{types → cjs}/services/user/index.d.ts +16 -12
  106. package/lib/cjs/services/user/index.d.ts.map +1 -0
  107. package/lib/cjs/services/user/index.js +606 -715
  108. package/lib/cjs/services/user/index.js.map +1 -0
  109. package/lib/{types → cjs}/services/webhook/index.d.ts +0 -0
  110. package/lib/{types → cjs}/services/webhook/index.d.ts.map +0 -0
  111. package/lib/cjs/services/webhook/index.js +164 -193
  112. package/lib/cjs/services/webhook/index.js.map +1 -0
  113. package/lib/{types → cjs}/types/baseParams.d.ts +0 -0
  114. package/lib/{types → cjs}/types/baseParams.d.ts.map +0 -0
  115. package/lib/cjs/types/baseParams.js +5 -2
  116. package/lib/cjs/types/baseParams.js.map +1 -0
  117. package/lib/{types → cjs}/types/category.d.ts +0 -0
  118. package/lib/{types → cjs}/types/category.d.ts.map +0 -0
  119. package/lib/cjs/types/category.js +2 -2
  120. package/lib/cjs/types/category.js.map +1 -0
  121. package/lib/{types → cjs}/types/comment.d.ts +0 -0
  122. package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
  123. package/lib/cjs/types/comment.js +2 -2
  124. package/lib/cjs/types/comment.js.map +1 -0
  125. package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
  126. package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
  127. package/lib/cjs/types/customAdv.js +2 -2
  128. package/lib/cjs/types/customAdv.js.map +1 -0
  129. package/lib/{types → cjs}/types/customPage.d.ts +0 -0
  130. package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
  131. package/lib/cjs/types/customPage.js +2 -2
  132. package/lib/cjs/types/customPage.js.map +1 -0
  133. package/lib/{types → cjs}/types/embed.d.ts +0 -0
  134. package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
  135. package/lib/cjs/types/embed.js +2 -2
  136. package/lib/cjs/types/embed.js.map +1 -0
  137. package/lib/cjs/types/feature.d.ts +11 -0
  138. package/lib/cjs/types/feature.d.ts.map +1 -0
  139. package/lib/cjs/types/feature.js +3 -0
  140. package/lib/cjs/types/feature.js.map +1 -0
  141. package/lib/{types → cjs}/types/feed.d.ts +0 -0
  142. package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
  143. package/lib/cjs/types/feed.js +2 -2
  144. package/lib/cjs/types/feed.js.map +1 -0
  145. package/lib/{types → cjs}/types/feedObject.d.ts +0 -0
  146. package/lib/{types → cjs}/types/feedObject.d.ts.map +0 -0
  147. package/lib/cjs/types/feedObject.js +2 -2
  148. package/lib/cjs/types/feedObject.js.map +1 -0
  149. package/lib/{types → cjs}/types/incubator.d.ts +0 -0
  150. package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
  151. package/lib/cjs/types/incubator.js +2 -2
  152. package/lib/cjs/types/incubator.js.map +1 -0
  153. package/lib/{types → cjs}/types/index.d.ts +5 -2
  154. package/lib/cjs/types/index.d.ts.map +1 -0
  155. package/lib/cjs/types/index.js +6 -101
  156. package/lib/cjs/types/index.js.map +1 -0
  157. package/lib/cjs/types/insight.d.ts +67 -0
  158. package/lib/cjs/types/insight.d.ts.map +1 -0
  159. package/lib/cjs/types/insight.js +3 -0
  160. package/lib/cjs/types/insight.js.map +1 -0
  161. package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
  162. package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
  163. package/lib/cjs/types/legalPage.js +2 -2
  164. package/lib/cjs/types/legalPage.js.map +1 -0
  165. package/lib/{types → cjs}/types/media.d.ts +0 -0
  166. package/lib/{types → cjs}/types/media.d.ts.map +0 -0
  167. package/lib/cjs/types/media.js +22 -26
  168. package/lib/cjs/types/media.js.map +1 -0
  169. package/lib/{types → cjs}/types/moderation.d.ts +1 -1
  170. package/lib/{types → cjs}/types/moderation.d.ts.map +1 -1
  171. package/lib/cjs/types/moderation.js +2 -2
  172. package/lib/cjs/types/moderation.js.map +1 -0
  173. package/lib/{types → cjs}/types/notification.d.ts +0 -0
  174. package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
  175. package/lib/cjs/types/notification.js +2 -2
  176. package/lib/cjs/types/notification.js.map +1 -0
  177. package/lib/{types → cjs}/types/paginatedResponse.d.ts +0 -0
  178. package/lib/{types → cjs}/types/paginatedResponse.d.ts.map +0 -0
  179. package/lib/cjs/types/paginatedResponse.js +5 -2
  180. package/lib/cjs/types/paginatedResponse.js.map +1 -0
  181. package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
  182. package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
  183. package/lib/cjs/types/privateMessage.js +2 -2
  184. package/lib/cjs/types/privateMessage.js.map +1 -0
  185. package/lib/{types → cjs}/types/prize.d.ts +0 -0
  186. package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
  187. package/lib/cjs/types/prize.js +2 -2
  188. package/lib/cjs/types/prize.js.map +1 -0
  189. package/lib/cjs/types/score.d.ts +19 -0
  190. package/lib/cjs/types/score.d.ts.map +1 -0
  191. package/lib/cjs/types/score.js +3 -0
  192. package/lib/cjs/types/score.js.map +1 -0
  193. package/lib/{types → cjs}/types/sso.d.ts +0 -0
  194. package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
  195. package/lib/cjs/types/sso.js +5 -2
  196. package/lib/cjs/types/sso.js.map +1 -0
  197. package/lib/{types → cjs}/types/tag.d.ts +22 -0
  198. package/lib/cjs/types/tag.d.ts.map +1 -0
  199. package/lib/cjs/types/tag.js +2 -2
  200. package/lib/cjs/types/tag.js.map +1 -0
  201. package/lib/{types → cjs}/types/user.d.ts +0 -0
  202. package/lib/{types → cjs}/types/user.d.ts.map +0 -0
  203. package/lib/cjs/types/user.js +2 -2
  204. package/lib/cjs/types/user.js.map +1 -0
  205. package/lib/{types → cjs}/types/webhook.d.ts +0 -0
  206. package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
  207. package/lib/cjs/types/webhook.js +2 -2
  208. package/lib/cjs/types/webhook.js.map +1 -0
  209. package/lib/cjs/utils/apiRequest.d.ts +2 -0
  210. package/lib/{types → cjs}/utils/apiRequest.d.ts.map +1 -1
  211. package/lib/cjs/utils/apiRequest.js +26 -25
  212. package/lib/cjs/utils/apiRequest.js.map +1 -0
  213. package/lib/{types → cjs}/utils/http.d.ts +0 -0
  214. package/lib/{types → cjs}/utils/http.d.ts.map +0 -0
  215. package/lib/cjs/utils/http.js +41 -45
  216. package/lib/cjs/utils/http.js.map +1 -0
  217. package/lib/{types → cjs}/utils/token.d.ts +0 -0
  218. package/lib/{types → cjs}/utils/token.d.ts.map +0 -0
  219. package/lib/cjs/utils/token.js +62 -31
  220. package/lib/cjs/utils/token.js.map +1 -0
  221. package/lib/esm/client/index.d.ts +115 -0
  222. package/lib/esm/client/index.d.ts.map +1 -0
  223. package/lib/esm/client/index.js +108 -160
  224. package/lib/esm/client/index.js.map +1 -0
  225. package/lib/esm/constants/Endpoints.d.ts +10 -0
  226. package/lib/esm/constants/Endpoints.d.ts.map +1 -0
  227. package/lib/esm/constants/Endpoints.js +1016 -1052
  228. package/lib/esm/constants/Endpoints.js.map +1 -0
  229. package/lib/esm/index.d.ts +51 -0
  230. package/lib/esm/index.d.ts.map +1 -0
  231. package/lib/esm/index.js +51 -223
  232. package/lib/esm/index.js.map +1 -0
  233. package/lib/esm/services/category/index.d.ts +127 -0
  234. package/lib/esm/services/category/index.d.ts.map +1 -0
  235. package/lib/esm/services/category/index.js +214 -255
  236. package/lib/esm/services/category/index.js.map +1 -0
  237. package/lib/esm/services/comment/index.d.ts +92 -0
  238. package/lib/esm/services/comment/index.d.ts.map +1 -0
  239. package/lib/esm/services/comment/index.js +150 -185
  240. package/lib/esm/services/comment/index.js.map +1 -0
  241. package/lib/esm/services/custom_adv/index.d.ts +33 -0
  242. package/lib/esm/services/custom_adv/index.d.ts.map +1 -0
  243. package/lib/esm/services/custom_adv/index.js +52 -60
  244. package/lib/esm/services/custom_adv/index.js.map +1 -0
  245. package/lib/esm/services/custom_page/index.d.ts +33 -0
  246. package/lib/esm/services/custom_page/index.d.ts.map +1 -0
  247. package/lib/esm/services/custom_page/index.js +52 -60
  248. package/lib/esm/services/custom_page/index.js.map +1 -0
  249. package/lib/esm/services/data_portability/index.d.ts +29 -0
  250. package/lib/esm/services/data_portability/index.d.ts.map +1 -0
  251. package/lib/esm/services/data_portability/index.js +47 -53
  252. package/lib/esm/services/data_portability/index.js.map +1 -0
  253. package/lib/esm/services/embed/index.d.ts +71 -0
  254. package/lib/esm/services/embed/index.d.ts.map +1 -0
  255. package/lib/esm/services/embed/index.js +116 -132
  256. package/lib/esm/services/embed/index.js.map +1 -0
  257. package/lib/esm/services/feature/index.d.ts +19 -0
  258. package/lib/esm/services/feature/index.d.ts.map +1 -0
  259. package/lib/esm/services/feature/index.js +27 -29
  260. package/lib/esm/services/feature/index.js.map +1 -0
  261. package/lib/esm/services/feed/index.d.ts +46 -0
  262. package/lib/esm/services/feed/index.d.ts.map +1 -0
  263. package/lib/esm/services/feed/index.js +75 -85
  264. package/lib/esm/services/feed/index.js.map +1 -0
  265. package/lib/esm/services/feed_object/index.d.ts +236 -0
  266. package/lib/esm/services/feed_object/index.d.ts.map +1 -0
  267. package/lib/esm/services/feed_object/index.js +383 -489
  268. package/lib/esm/services/feed_object/index.js.map +1 -0
  269. package/lib/esm/services/incubator/index.d.ts +61 -0
  270. package/lib/esm/services/incubator/index.d.ts.map +1 -0
  271. package/lib/esm/services/incubator/index.js +100 -118
  272. package/lib/esm/services/incubator/index.js.map +1 -0
  273. package/lib/esm/services/insight/index.d.ts +54 -0
  274. package/lib/esm/services/insight/index.d.ts.map +1 -0
  275. package/lib/esm/services/insight/index.js +89 -98
  276. package/lib/esm/services/insight/index.js.map +1 -0
  277. package/lib/esm/services/legal_page/index.d.ts +53 -0
  278. package/lib/esm/services/legal_page/index.d.ts.map +1 -0
  279. package/lib/esm/services/legal_page/index.js +88 -106
  280. package/lib/esm/services/legal_page/index.js.map +1 -0
  281. package/lib/esm/services/locality/index.d.ts +26 -0
  282. package/lib/esm/services/locality/index.d.ts.map +1 -0
  283. package/lib/esm/services/locality/index.js +40 -41
  284. package/lib/esm/services/locality/index.js.map +1 -0
  285. package/lib/esm/services/loyalty/index.d.ts +77 -0
  286. package/lib/esm/services/loyalty/index.d.ts.map +1 -0
  287. package/lib/esm/services/loyalty/index.js +124 -152
  288. package/lib/esm/services/loyalty/index.js.map +1 -0
  289. package/lib/esm/services/media/index.d.ts +65 -0
  290. package/lib/esm/services/media/index.d.ts.map +1 -0
  291. package/lib/esm/services/media/index.js +103 -128
  292. package/lib/esm/services/media/index.js.map +1 -0
  293. package/lib/esm/services/moderation/index.d.ts +58 -0
  294. package/lib/esm/services/moderation/index.d.ts.map +1 -0
  295. package/lib/esm/services/moderation/index.js +91 -113
  296. package/lib/esm/services/moderation/index.js.map +1 -0
  297. package/lib/esm/services/notification/index.d.ts +70 -0
  298. package/lib/esm/services/notification/index.d.ts.map +1 -0
  299. package/lib/esm/services/notification/index.js +117 -135
  300. package/lib/esm/services/notification/index.js.map +1 -0
  301. package/lib/esm/services/preference/index.d.ts +35 -0
  302. package/lib/esm/services/preference/index.d.ts.map +1 -0
  303. package/lib/esm/services/preference/index.js +53 -69
  304. package/lib/esm/services/preference/index.js.map +1 -0
  305. package/lib/esm/services/private_message/index.d.ts +81 -0
  306. package/lib/esm/services/private_message/index.d.ts.map +1 -0
  307. package/lib/esm/services/private_message/index.js +133 -152
  308. package/lib/esm/services/private_message/index.js.map +1 -0
  309. package/lib/esm/services/score/index.d.ts +33 -0
  310. package/lib/esm/services/score/index.d.ts.map +1 -0
  311. package/lib/esm/services/score/index.js +52 -54
  312. package/lib/esm/services/score/index.js.map +1 -0
  313. package/lib/esm/services/sso/index.d.ts +26 -0
  314. package/lib/esm/services/sso/index.d.ts.map +1 -0
  315. package/lib/esm/services/sso/index.js +38 -42
  316. package/lib/esm/services/sso/index.js.map +1 -0
  317. package/lib/esm/services/suggestion/index.d.ts +36 -0
  318. package/lib/esm/services/suggestion/index.d.ts.map +1 -0
  319. package/lib/esm/services/suggestion/index.js +58 -65
  320. package/lib/esm/services/suggestion/index.js.map +1 -0
  321. package/lib/esm/services/tag/index.d.ts +67 -0
  322. package/lib/esm/services/tag/index.d.ts.map +1 -0
  323. package/lib/esm/services/tag/index.js +106 -123
  324. package/lib/esm/services/tag/index.js.map +1 -0
  325. package/lib/esm/services/user/index.d.ts +351 -0
  326. package/lib/esm/services/user/index.d.ts.map +1 -0
  327. package/lib/esm/services/user/index.js +602 -719
  328. package/lib/esm/services/user/index.js.map +1 -0
  329. package/lib/esm/services/webhook/index.d.ts +99 -0
  330. package/lib/esm/services/webhook/index.d.ts.map +1 -0
  331. package/lib/esm/services/webhook/index.js +160 -197
  332. package/lib/esm/services/webhook/index.js.map +1 -0
  333. package/lib/esm/types/baseParams.d.ts +23 -0
  334. package/lib/esm/types/baseParams.d.ts.map +1 -0
  335. package/lib/esm/types/baseParams.js +5 -3
  336. package/lib/esm/types/baseParams.js.map +1 -0
  337. package/lib/esm/types/category.d.ts +15 -0
  338. package/lib/esm/types/category.d.ts.map +1 -0
  339. package/lib/esm/types/category.js +2 -3
  340. package/lib/esm/types/category.js.map +1 -0
  341. package/lib/esm/types/comment.d.ts +51 -0
  342. package/lib/esm/types/comment.d.ts.map +1 -0
  343. package/lib/esm/types/comment.js +2 -3
  344. package/lib/esm/types/comment.js.map +1 -0
  345. package/lib/esm/types/customAdv.d.ts +19 -0
  346. package/lib/esm/types/customAdv.d.ts.map +1 -0
  347. package/lib/esm/types/customAdv.js +2 -3
  348. package/lib/esm/types/customAdv.js.map +1 -0
  349. package/lib/esm/types/customPage.d.ts +24 -0
  350. package/lib/esm/types/customPage.d.ts.map +1 -0
  351. package/lib/esm/types/customPage.js +2 -3
  352. package/lib/esm/types/customPage.js.map +1 -0
  353. package/lib/esm/types/embed.d.ts +26 -0
  354. package/lib/esm/types/embed.d.ts.map +1 -0
  355. package/lib/esm/types/embed.js +2 -3
  356. package/lib/esm/types/embed.js.map +1 -0
  357. package/lib/esm/types/feature.d.ts +11 -0
  358. package/lib/esm/types/feature.d.ts.map +1 -0
  359. package/lib/esm/types/feature.js +2 -0
  360. package/lib/esm/types/feature.js.map +1 -0
  361. package/lib/esm/types/feed.d.ts +11 -0
  362. package/lib/esm/types/feed.d.ts.map +1 -0
  363. package/lib/esm/types/feed.js +2 -3
  364. package/lib/esm/types/feed.js.map +1 -0
  365. package/lib/esm/types/feedObject.d.ts +56 -0
  366. package/lib/esm/types/feedObject.d.ts.map +1 -0
  367. package/lib/esm/types/feedObject.js +2 -3
  368. package/lib/esm/types/feedObject.js.map +1 -0
  369. package/lib/esm/types/incubator.d.ts +33 -0
  370. package/lib/esm/types/incubator.d.ts.map +1 -0
  371. package/lib/esm/types/incubator.js +2 -3
  372. package/lib/esm/types/incubator.js.map +1 -0
  373. package/lib/esm/types/index.d.ts +25 -0
  374. package/lib/esm/types/index.d.ts.map +1 -0
  375. package/lib/esm/types/index.js +3 -102
  376. package/lib/esm/types/index.js.map +1 -0
  377. package/lib/esm/types/insight.d.ts +67 -0
  378. package/lib/esm/types/insight.d.ts.map +1 -0
  379. package/lib/esm/types/insight.js +2 -0
  380. package/lib/esm/types/insight.js.map +1 -0
  381. package/lib/esm/types/legalPage.d.ts +19 -0
  382. package/lib/esm/types/legalPage.d.ts.map +1 -0
  383. package/lib/esm/types/legalPage.js +2 -3
  384. package/lib/esm/types/legalPage.js.map +1 -0
  385. package/lib/esm/types/media.d.ts +80 -0
  386. package/lib/esm/types/media.d.ts.map +1 -0
  387. package/lib/esm/types/media.js +20 -27
  388. package/lib/esm/types/media.js.map +1 -0
  389. package/lib/esm/types/moderation.d.ts +23 -0
  390. package/lib/esm/types/moderation.d.ts.map +1 -0
  391. package/lib/esm/types/moderation.js +2 -3
  392. package/lib/esm/types/moderation.js.map +1 -0
  393. package/lib/esm/types/notification.d.ts +31 -0
  394. package/lib/esm/types/notification.d.ts.map +1 -0
  395. package/lib/esm/types/notification.js +2 -3
  396. package/lib/esm/types/notification.js.map +1 -0
  397. package/lib/esm/types/paginatedResponse.d.ts +10 -0
  398. package/lib/esm/types/paginatedResponse.d.ts.map +1 -0
  399. package/lib/esm/types/paginatedResponse.js +5 -3
  400. package/lib/esm/types/paginatedResponse.js.map +1 -0
  401. package/lib/esm/types/privateMessage.d.ts +176 -0
  402. package/lib/esm/types/privateMessage.d.ts.map +1 -0
  403. package/lib/esm/types/privateMessage.js +2 -3
  404. package/lib/esm/types/privateMessage.js.map +1 -0
  405. package/lib/esm/types/prize.d.ts +47 -0
  406. package/lib/esm/types/prize.d.ts.map +1 -0
  407. package/lib/esm/types/prize.js +2 -3
  408. package/lib/esm/types/prize.js.map +1 -0
  409. package/lib/esm/types/score.d.ts +19 -0
  410. package/lib/esm/types/score.d.ts.map +1 -0
  411. package/lib/esm/types/score.js +2 -0
  412. package/lib/esm/types/score.js.map +1 -0
  413. package/lib/esm/types/sso.d.ts +12 -0
  414. package/lib/esm/types/sso.d.ts.map +1 -0
  415. package/lib/esm/types/sso.js +5 -3
  416. package/lib/esm/types/sso.js.map +1 -0
  417. package/lib/esm/types/tag.d.ts +61 -0
  418. package/lib/esm/types/tag.d.ts.map +1 -0
  419. package/lib/esm/types/tag.js +2 -3
  420. package/lib/esm/types/tag.js.map +1 -0
  421. package/lib/esm/types/user.d.ts +105 -0
  422. package/lib/esm/types/user.d.ts.map +1 -0
  423. package/lib/esm/types/user.js +2 -3
  424. package/lib/esm/types/user.js.map +1 -0
  425. package/lib/esm/types/webhook.d.ts +32 -0
  426. package/lib/esm/types/webhook.d.ts.map +1 -0
  427. package/lib/esm/types/webhook.js +2 -3
  428. package/lib/esm/types/webhook.js.map +1 -0
  429. package/lib/esm/utils/apiRequest.d.ts +2 -0
  430. package/lib/esm/utils/apiRequest.d.ts.map +1 -0
  431. package/lib/esm/utils/apiRequest.js +21 -27
  432. package/lib/esm/utils/apiRequest.js.map +1 -0
  433. package/lib/esm/utils/http.d.ts +6 -0
  434. package/lib/esm/utils/http.d.ts.map +1 -0
  435. package/lib/esm/utils/http.js +39 -48
  436. package/lib/esm/utils/http.js.map +1 -0
  437. package/lib/esm/utils/token.d.ts +21 -0
  438. package/lib/esm/utils/token.d.ts.map +1 -0
  439. package/lib/esm/utils/token.js +36 -33
  440. package/lib/esm/utils/token.js.map +1 -0
  441. package/lib/umd/api-services.js +1 -1
  442. package/lib/umd/api-services.js.map +1 -1
  443. package/package.json +7 -9
  444. package/lib/cjs/index.d.js +0 -2
  445. package/lib/esm/index.d.js +0 -2
  446. package/lib/types/services/comment/index.d.ts.map +0 -1
  447. package/lib/types/services/custom_adv/index.d.ts.map +0 -1
  448. package/lib/types/services/embed/index.d.ts.map +0 -1
  449. package/lib/types/services/feature/index.d.ts +0 -18
  450. package/lib/types/services/feature/index.d.ts.map +0 -1
  451. package/lib/types/services/feed_object/index.d.ts.map +0 -1
  452. package/lib/types/services/insight/index.d.ts.map +0 -1
  453. package/lib/types/services/locality/index.d.ts +0 -24
  454. package/lib/types/services/locality/index.d.ts.map +0 -1
  455. package/lib/types/services/loyalty/index.d.ts.map +0 -1
  456. package/lib/types/services/notification/index.d.ts.map +0 -1
  457. package/lib/types/services/score/index.d.ts +0 -31
  458. package/lib/types/services/score/index.d.ts.map +0 -1
  459. package/lib/types/services/tag/index.d.ts.map +0 -1
  460. package/lib/types/services/user/index.d.ts.map +0 -1
  461. package/lib/types/tsconfig.build.tsbuildinfo +0 -1
  462. package/lib/types/types/index.d.ts.map +0 -1
  463. package/lib/types/types/tag.d.ts.map +0 -1
  464. package/lib/types/utils/apiRequest.d.ts +0 -2
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../src/types/comment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { BaseSearchParams } from './baseParams';
2
+ /**
3
+ * CustomAdvParams interface
4
+ */
5
+ export interface CustomAdvParams extends BaseSearchParams {
6
+ /**
7
+ * Filter using field position.
8
+ */
9
+ position?: string;
10
+ /**
11
+ * Filter using field category.
12
+ */
13
+ category?: string;
14
+ /**
15
+ * Filter using field active (only if user is administrator or editor).
16
+ */
17
+ active?: boolean;
18
+ }
19
+ //# sourceMappingURL=customAdv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customAdv.d.ts","sourceRoot":"","sources":["../../../src/types/customAdv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C;;GAEG;AAEH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=customAdv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customAdv.js","sourceRoot":"","sources":["../../../src/types/customAdv.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { BaseGetParams } from './baseParams';
2
+ /**
3
+ * CustomPageParams interface
4
+ */
5
+ export interface CustomPageParams extends BaseGetParams {
6
+ /**
7
+ * Filter using field active (only if user is administrator or editor).
8
+ */
9
+ active?: boolean;
10
+ /**
11
+ * Filter using field visible_in_menu.
12
+ */
13
+ visible_in_menu?: string;
14
+ }
15
+ /**
16
+ * CustomPageSearchParams interface
17
+ */
18
+ export interface CustomPageSearchParams extends CustomPageParams {
19
+ /**
20
+ * A search term.
21
+ */
22
+ search?: string;
23
+ }
24
+ //# sourceMappingURL=customPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customPage.d.ts","sourceRoot":"","sources":["../../../src/types/customPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=customPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customPage.js","sourceRoot":"","sources":["../../../src/types/customPage.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { BaseGetParams } from './baseParams';
2
+ /**
3
+ * EmbedUpdateParams interface
4
+ */
5
+ export interface EmbedUpdateParams {
6
+ /**
7
+ * Url for the resource, if any
8
+ */
9
+ url?: string | null;
10
+ /**
11
+ * Metadata associated to this embed. It mus be a valid json object.
12
+ * For embed_type sc_vimeo or sc_link it contains metadata associated
13
+ * with the external resource. For embed_type sc_shared_object it contains a field
14
+ * type that is the type of the object (Discussion or Post) and a field id
15
+ * that contains the id of the object shared
16
+ */
17
+ metadata: Record<string, any>;
18
+ }
19
+ /**
20
+ * EmbedSearchParams interface
21
+ */
22
+ export interface EmbedSearchParams extends BaseGetParams {
23
+ embed_type: string;
24
+ embed_id: string;
25
+ }
26
+ //# sourceMappingURL=embed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../src/types/embed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAE3C;;GAEG;AAEH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=embed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embed.js","sourceRoot":"","sources":["../../../src/types/embed.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { BaseSearchParams } from './baseParams';
2
+ /**
3
+ * FeatureParams interface
4
+ */
5
+ export interface FeatureParams extends BaseSearchParams {
6
+ /**
7
+ * Filter using field name.
8
+ */
9
+ name?: string;
10
+ }
11
+ //# sourceMappingURL=feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../src/types/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../src/types/feature.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { BaseGetParams } from './baseParams';
2
+ export interface FeedParams extends BaseGetParams {
3
+ /**
4
+ * The ordering of the feed. Default to home_stream_order_by community option.
5
+ * Other values:
6
+ * 'recent'
7
+ * 'last_activity'
8
+ */
9
+ ordering?: string;
10
+ }
11
+ //# sourceMappingURL=feed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../src/types/feed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=feed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed.js","sourceRoot":"","sources":["../../../src/types/feed.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
1
+ import { BaseGetParams } from './baseParams';
2
+ import { SCContributionLocation, SCPollType } from '@selfcommunity/types/src/types';
3
+ /**
4
+ * FeedObjGetParams interface
5
+ */
6
+ export interface FeedObjGetParams extends BaseGetParams {
7
+ /**
8
+ * Which field to use when ordering the results. For sorting desc use - in front of the field name. Default to -added_at. Available values are added_at, last_activity_at
9
+ */
10
+ ordering?: string;
11
+ }
12
+ export interface FeedObjCreateParams {
13
+ /**
14
+ * The title of the feed obj (type discussion or post).
15
+ */
16
+ title: string;
17
+ /**
18
+ * This field replaces title field for feed objs of type 'status'.
19
+ */
20
+ action?: string;
21
+ /**
22
+ * The content of the feed obj in html format, it can contain some mentions.
23
+ */
24
+ text?: string;
25
+ /**
26
+ * List of category ids
27
+ */
28
+ categories: number[];
29
+ /**
30
+ * List o media ids
31
+ */
32
+ medias?: number[];
33
+ /**
34
+ * The Locality object to associate to the feed obj.
35
+ */
36
+ location: SCContributionLocation;
37
+ /**
38
+ * The poll to associate to the feed obj.
39
+ * IMPORTANT: it can be used only for feed obj types: 'discussion' or 'post'.
40
+ */
41
+ poll?: SCPollType | null;
42
+ /**
43
+ * The list of tag ids.
44
+ */
45
+ addressing?: number[];
46
+ }
47
+ /**
48
+ * FeedObjectPollVotesSearch interface
49
+ */
50
+ export interface FeedObjectPollVotesSearch extends BaseGetParams {
51
+ /**
52
+ * The choice id of the poll. If is specified the endpoint retrieves the votes of only that choice
53
+ */
54
+ choice?: number;
55
+ }
56
+ //# sourceMappingURL=feedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedObject.d.ts","sourceRoot":"","sources":["../../../src/types/feedObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAE,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAClF;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=feedObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedObject.js","sourceRoot":"","sources":["../../../src/types/feedObject.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * IncubatorCreateParams interface
3
+ */
4
+ import { BaseSearchParams } from './baseParams';
5
+ import { SCIncubatorStatusType } from '@selfcommunity/types/src/types';
6
+ export interface IncubatorCreateParams {
7
+ /**
8
+ * A unique name for the incubator
9
+ */
10
+ name: string;
11
+ /**
12
+ * A unique slug (url valid string) for the incubator
13
+ */
14
+ slug?: string;
15
+ /**
16
+ * A short text for the incubator
17
+ */
18
+ slogan?: string;
19
+ }
20
+ /**
21
+ * IncubatorSearchParams interface.
22
+ */
23
+ export interface IncubatorSearchParams extends BaseSearchParams {
24
+ /**
25
+ * Valid values are from 0 to 3
26
+ */
27
+ status?: SCIncubatorStatusType;
28
+ /**
29
+ * Which field to use when ordering the results.
30
+ */
31
+ ordering?: string;
32
+ }
33
+ //# sourceMappingURL=incubator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incubator.d.ts","sourceRoot":"","sources":["../../../src/types/incubator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=incubator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incubator.js","sourceRoot":"","sources":["../../../src/types/incubator.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { SCPaginatedResponse } from './paginatedResponse';
2
+ import { WebhookParamType, WebhookEventsType } from './webhook';
3
+ import { SSOSignUpParams } from './sso';
4
+ import { CommentListParams, CommentCreateParams } from './comment';
5
+ import { IncubatorCreateParams, IncubatorSearchParams } from './incubator';
6
+ import { LoyaltyPrizeParams } from './prize';
7
+ import { ModerateContributionParams } from './moderation';
8
+ import { CustomNotificationParams } from './notification';
9
+ import { UserAutocompleteParams, UserScoreParams, UserSearchParams } from './user';
10
+ import { TagParams, TagGetParams } from './tag';
11
+ import { MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ChunkType } from './media';
12
+ import { ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams } from './privateMessage';
13
+ import { CategoryParams } from './category';
14
+ import { CustomAdvParams } from './customAdv';
15
+ import { CustomPageParams, CustomPageSearchParams } from './customPage';
16
+ import { EmbedUpdateParams, EmbedSearchParams } from './embed';
17
+ import { BaseGetParams, BaseSearchParams } from './baseParams';
18
+ import { FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch } from './feedObject';
19
+ import { FeedParams } from './feed';
20
+ import { LegalPageFilterParams } from './legalPage';
21
+ import { FeatureParams } from './feature';
22
+ import { ScoreParams } from './score';
23
+ import { InsightCommonParams, InsightEmbedParams, InsightUserParams, InsightContributionParams } from './insight';
24
+ export { SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadCompleteParams, ChunkType, ChunkUploadParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams };
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,WAAW,CAAC;AACjE,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAC;AACzE,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAC,0BAA0B,EAAC,MAAM,cAAc,CAAC;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAC/G,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,gBAAgB,EAAE,sBAAsB,EAAC,MAAM,cAAc,CAAC;AACtE,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAC,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAC,MAAM,cAAc,CAAC;AAC9F,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,qBAAqB,EAAC,MAAM,aAAa,CAAC;AAClD,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AACpC,OAAO,EAAC,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,yBAAyB,EAAC,MAAM,WAAW,CAAC;AAEhH,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,yBAAyB,EACzB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACxB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,UAAU,EACV,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,CAAC"}
@@ -1,102 +1,3 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
-
5
- var _paginatedResponse = require("./paginatedResponse");
6
-
7
- exports.SCPaginatedResponse = _paginatedResponse.SCPaginatedResponse;
8
-
9
- var _webhook = require("./webhook");
10
-
11
- exports.WebhookParamType = _webhook.WebhookParamType;
12
- exports.WebhookEventsType = _webhook.WebhookEventsType;
13
-
14
- var _sso = require("./sso");
15
-
16
- exports.SSOSignUpParams = _sso.SSOSignUpParams;
17
-
18
- var _comment = require("./comment");
19
-
20
- exports.CommentListParams = _comment.CommentListParams;
21
- exports.CommentCreateParams = _comment.CommentCreateParams;
22
-
23
- var _incubator = require("./incubator");
24
-
25
- exports.IncubatorCreateParams = _incubator.IncubatorCreateParams;
26
- exports.IncubatorSearchParams = _incubator.IncubatorSearchParams;
27
-
28
- var _prize = require("./prize");
29
-
30
- exports.LoyaltyPrizeParams = _prize.LoyaltyPrizeParams;
31
-
32
- var _moderation = require("./moderation");
33
-
34
- exports.ModerateContributionParams = _moderation.ModerateContributionParams;
35
-
36
- var _notification = require("./notification");
37
-
38
- exports.CustomNotificationParams = _notification.CustomNotificationParams;
39
-
40
- var _user = require("./user");
41
-
42
- exports.UserAutocompleteParams = _user.UserAutocompleteParams;
43
- exports.UserScoreParams = _user.UserScoreParams;
44
- exports.UserSearchParams = _user.UserSearchParams;
45
-
46
- var _tag = require("./tag");
47
-
48
- exports.TagParams = _tag.TagParams;
49
-
50
- var _media = require("./media");
51
-
52
- exports.MediaCreateParams = _media.MediaCreateParams;
53
- exports.MediaTypes = _media.MediaTypes;
54
- exports.ChunkUploadParams = _media.ChunkUploadParams;
55
- exports.ChunkUploadCompleteParams = _media.ChunkUploadCompleteParams;
56
- exports.ChunkType = _media.ChunkType;
57
-
58
- var _privateMessage = require("./privateMessage");
59
-
60
- exports.ThreadParams = _privateMessage.ThreadParams;
61
- exports.MessageCreateParams = _privateMessage.MessageCreateParams;
62
- exports.MessageMediaUploadParams = _privateMessage.MessageMediaUploadParams;
63
- exports.MessageThumbnailUploadParams = _privateMessage.MessageThumbnailUploadParams;
64
- exports.MessageChunkUploadDoneParams = _privateMessage.MessageChunkUploadDoneParams;
65
- exports.MessageMediaChunksParams = _privateMessage.MessageMediaChunksParams;
66
-
67
- var _category = require("./category");
68
-
69
- exports.CategoryParams = _category.CategoryParams;
70
-
71
- var _customAdv = require("./customAdv");
72
-
73
- exports.CustomAdvParams = _customAdv.CustomAdvParams;
74
-
75
- var _customPage = require("./customPage");
76
-
77
- exports.CustomPageParams = _customPage.CustomPageParams;
78
- exports.CustomPageSearchParams = _customPage.CustomPageSearchParams;
79
-
80
- var _embed = require("./embed");
81
-
82
- exports.EmbedUpdateParams = _embed.EmbedUpdateParams;
83
- exports.EmbedSearchParams = _embed.EmbedSearchParams;
84
-
85
- var _baseParams = require("./baseParams");
86
-
87
- exports.BaseGetParams = _baseParams.BaseGetParams;
88
- exports.BaseSearchParams = _baseParams.BaseSearchParams;
89
-
90
- var _feedObject = require("./feedObject");
91
-
92
- exports.FeedObjGetParams = _feedObject.FeedObjGetParams;
93
- exports.FeedObjCreateParams = _feedObject.FeedObjCreateParams;
94
- exports.FeedObjectPollVotesSearch = _feedObject.FeedObjectPollVotesSearch;
95
-
96
- var _feed = require("./feed");
97
-
98
- exports.FeedParams = _feed.FeedParams;
99
-
100
- var _legalPage = require("./legalPage");
101
-
102
- exports.LegalPageFilterParams = _legalPage.LegalPageFilterParams;
1
+ import { MediaTypes, ChunkType } from './media';
2
+ export { MediaTypes, ChunkType };
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAoB,UAAU,EAAgD,SAAS,EAAC,MAAM,SAAS,CAAC;AAqB/G,OAAO,EAkBL,UAAU,EAEV,SAAS,EA2BV,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { BaseGetParams } from './baseParams';
2
+ import { SCFeedObjectTypologyType } from '@selfcommunity/types';
3
+ /**
4
+ * Interface InsightParams
5
+ */
6
+ export interface InsightCommonParams extends BaseGetParams {
7
+ /**
8
+ * Can be a single category id or list (comma separated) of categories ids. 0 means empty (no category). If you use a list of category ids then any contribution that matches at least one category_id will be returned (the filter is in OR and not in AND).
9
+ */
10
+ category_id?: string;
11
+ /**
12
+ * Datetime of creation(greater than or equal to the given value).
13
+ */
14
+ created_at__gte?: string;
15
+ /**
16
+ * Datetime of creation(less than or equal to the given value).
17
+ */
18
+ created_at__lte?: string;
19
+ /**
20
+ * The rank value to use: num_votes, num_comments, num_shares, num_views (default: rank function). If a list (eg: num_comments, num_answers_received) the final rank will be the sum of the list components.
21
+ */
22
+ ranked_by?: number;
23
+ /**
24
+ * The embed id (required in combo with embed_type).
25
+ */
26
+ embed_id?: number;
27
+ /**
28
+ * The embed type (required in combo with embed_id).
29
+ */
30
+ embed_type?: string;
31
+ }
32
+ /**
33
+ * Interface InsightContributionParam
34
+ */
35
+ export interface InsightContributionParams extends InsightCommonParams {
36
+ /**
37
+ * The user id.
38
+ */
39
+ user_id?: number;
40
+ /**
41
+ * The contribution type (discussion, post, status).
42
+ */
43
+ contribution_type?: SCFeedObjectTypologyType;
44
+ }
45
+ /**
46
+ * Interface InsightEmbedParams
47
+ */
48
+ export interface InsightEmbedParams extends InsightCommonParams {
49
+ /**
50
+ * embed_id, embed_type or metadata TERM_KEY.
51
+ */
52
+ grouped_by?: string;
53
+ /**
54
+ * A json dict containing some TERM_KEYs (eg: {"authors": ["Umberto Eco", "Neil Gaiman"], "type": "book"}). Usable only if group_by is set.
55
+ */
56
+ metadata?: {};
57
+ }
58
+ /**
59
+ * Interface InsightUserParams
60
+ */
61
+ export interface InsightUserParams extends InsightCommonParams {
62
+ /**
63
+ * Can be a single user tag id or list (comma separated) of user tag ids. If you use a list of ids then any user who matches at least one id will be returned (the filter is in OR and not in AND).
64
+ */
65
+ user_tag_id?: number;
66
+ }
67
+ //# sourceMappingURL=insight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insight.d.ts","sourceRoot":"","sources":["../../../src/types/insight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insight.js","sourceRoot":"","sources":["../../../src/types/insight.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { BaseSearchParams } from './baseParams';
2
+ /**
3
+ * LegalPageFilterParams interface.
4
+ */
5
+ export interface LegalPageFilterParams extends BaseSearchParams {
6
+ /**
7
+ * Valid from date
8
+ */
9
+ valid_from: string;
10
+ /**
11
+ * Valid to date
12
+ */
13
+ valid_to: string;
14
+ /**
15
+ * Which field to use when ordering the results
16
+ */
17
+ ordering: string;
18
+ }
19
+ //# sourceMappingURL=legalPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legalPage.d.ts","sourceRoot":"","sources":["../../../src/types/legalPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=legalPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legalPage.js","sourceRoot":"","sources":["../../../src/types/legalPage.ts"],"names":[],"mappings":""}
@@ -0,0 +1,80 @@
1
+ import { SCEmbedType } from '@selfcommunity/types/src/types';
2
+ /**
3
+ * Interface MediaCreateParams
4
+ */
5
+ export interface MediaCreateParams {
6
+ /**
7
+ * The media type.
8
+ */
9
+ type: MediaTypes;
10
+ /**
11
+ * Required if media type is url
12
+ */
13
+ url?: string;
14
+ /**
15
+ * Required if media type is share
16
+ */
17
+ share_object?: number;
18
+ /**
19
+ * Required if media type is embed
20
+ */
21
+ embed?: SCEmbedType;
22
+ }
23
+ export declare enum MediaTypes {
24
+ URL = "url",
25
+ SHARE = "share",
26
+ EMBED = "embed"
27
+ }
28
+ /**
29
+ * Interface ChunkUploadParams
30
+ */
31
+ export interface ChunkUploadParams {
32
+ /**
33
+ * String returned by the first call and required from the second
34
+ */
35
+ upload_id: string;
36
+ /**
37
+ * The expiration time.
38
+ */
39
+ expires?: string;
40
+ /**
41
+ * The image chunk to be uploaded
42
+ */
43
+ image?: Blob;
44
+ /**
45
+ * The document chunk to be uploaded
46
+ */
47
+ document?: Blob;
48
+ }
49
+ /**
50
+ * Interface ChunkUploadCompleteParams
51
+ */
52
+ export interface ChunkUploadCompleteParams {
53
+ /**
54
+ * Default to image or document based on file extension
55
+ */
56
+ type?: ChunkType;
57
+ /**
58
+ * Id of the chunk uploaded file.
59
+ */
60
+ upload_id: string;
61
+ /**
62
+ * MD5 hash of the original file for checksum proposal
63
+ */
64
+ md5: string;
65
+ }
66
+ export declare enum ChunkType {
67
+ /**
68
+ * Image media type
69
+ */
70
+ IMAGE = "image",
71
+ /**
72
+ * Document media type (only pdf documents are supported)
73
+ */
74
+ DOC = "doc",
75
+ /**
76
+ * Other images related to contributes. eg. Images uploaded and inserted as <img> into the contribute text
77
+ */
78
+ EIMAGE = "eimage"
79
+ }
80
+ //# sourceMappingURL=media.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/types/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAC3D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED;;GAEG;AAEH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AAEH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,oBAAY,SAAS;IACnB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,GAAG,QAAQ;IACX;;OAEG;IACH,MAAM,WAAW;CAClB"}