@selfcommunity/types 0.1.7 → 0.1.8

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 (260) hide show
  1. package/lib/{types → cjs}/index.d.ts +0 -0
  2. package/lib/{types → cjs}/index.d.ts.map +0 -0
  3. package/lib/cjs/index.js +27 -124
  4. package/lib/cjs/index.js.map +1 -0
  5. package/lib/{types → cjs}/types/auth.d.ts +0 -0
  6. package/lib/{types → cjs}/types/auth.d.ts.map +0 -0
  7. package/lib/cjs/types/auth.js +2 -2
  8. package/lib/cjs/types/auth.js.map +1 -0
  9. package/lib/{types → cjs}/types/avatar.d.ts +0 -0
  10. package/lib/{types → cjs}/types/avatar.d.ts.map +0 -0
  11. package/lib/cjs/types/avatar.js +5 -2
  12. package/lib/cjs/types/avatar.js.map +1 -0
  13. package/lib/{types → cjs}/types/broadcastMessage.d.ts +0 -0
  14. package/lib/{types → cjs}/types/broadcastMessage.d.ts.map +0 -0
  15. package/lib/cjs/types/broadcastMessage.js +6 -9
  16. package/lib/cjs/types/broadcastMessage.js.map +1 -0
  17. package/lib/{types → cjs}/types/category.d.ts +0 -0
  18. package/lib/{types → cjs}/types/category.d.ts.map +0 -0
  19. package/lib/cjs/types/category.js +2 -2
  20. package/lib/cjs/types/category.js.map +1 -0
  21. package/lib/{types → cjs}/types/comment.d.ts +0 -0
  22. package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
  23. package/lib/cjs/types/comment.js +9 -19
  24. package/lib/cjs/types/comment.js.map +1 -0
  25. package/lib/{types → cjs}/types/contribution.d.ts +0 -0
  26. package/lib/{types → cjs}/types/contribution.d.ts.map +0 -0
  27. package/lib/cjs/types/contribution.js +15 -29
  28. package/lib/cjs/types/contribution.js.map +1 -0
  29. package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
  30. package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
  31. package/lib/cjs/types/customAdv.js +12 -14
  32. package/lib/cjs/types/customAdv.js.map +1 -0
  33. package/lib/{types → cjs}/types/customNotification.d.ts +0 -0
  34. package/lib/{types → cjs}/types/customNotification.d.ts.map +0 -0
  35. package/lib/cjs/types/customNotification.js +2 -2
  36. package/lib/cjs/types/customNotification.js.map +1 -0
  37. package/lib/{types → cjs}/types/customPage.d.ts +0 -0
  38. package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
  39. package/lib/cjs/types/customPage.js +2 -2
  40. package/lib/cjs/types/customPage.js.map +1 -0
  41. package/lib/{types → cjs}/types/dataPortability.d.ts +0 -0
  42. package/lib/{types → cjs}/types/dataPortability.d.ts.map +0 -0
  43. package/lib/cjs/types/dataPortability.js +2 -2
  44. package/lib/cjs/types/dataPortability.js.map +1 -0
  45. package/lib/{types → cjs}/types/embed.d.ts +0 -0
  46. package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
  47. package/lib/cjs/types/embed.js +2 -2
  48. package/lib/cjs/types/embed.js.map +1 -0
  49. package/lib/{types → cjs}/types/feature.d.ts +0 -0
  50. package/lib/{types → cjs}/types/feature.d.ts.map +0 -0
  51. package/lib/cjs/types/feature.js +5 -2
  52. package/lib/cjs/types/feature.js.map +1 -0
  53. package/lib/{types → cjs}/types/feed.d.ts +0 -0
  54. package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
  55. package/lib/cjs/types/feed.js +19 -39
  56. package/lib/cjs/types/feed.js.map +1 -0
  57. package/lib/{types → cjs}/types/flag.d.ts +0 -0
  58. package/lib/{types → cjs}/types/flag.d.ts.map +0 -0
  59. package/lib/cjs/types/flag.js +15 -25
  60. package/lib/cjs/types/flag.js.map +1 -0
  61. package/lib/{types → cjs}/types/incubator.d.ts +0 -0
  62. package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
  63. package/lib/cjs/types/incubator.js +8 -20
  64. package/lib/cjs/types/incubator.js.map +1 -0
  65. package/lib/{types → cjs}/types/index.d.ts +0 -0
  66. package/lib/{types → cjs}/types/index.d.ts.map +0 -0
  67. package/lib/cjs/types/index.js +34 -212
  68. package/lib/cjs/types/index.js.map +1 -0
  69. package/lib/{types → cjs}/types/insight.d.ts +0 -0
  70. package/lib/{types → cjs}/types/insight.d.ts.map +0 -0
  71. package/lib/cjs/types/insight.js +2 -2
  72. package/lib/cjs/types/insight.js.map +1 -0
  73. package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
  74. package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
  75. package/lib/cjs/types/legalPage.js +5 -2
  76. package/lib/cjs/types/legalPage.js.map +1 -0
  77. package/lib/{types → cjs}/types/location.d.ts +0 -0
  78. package/lib/{types → cjs}/types/location.d.ts.map +0 -0
  79. package/lib/cjs/types/location.js +2 -2
  80. package/lib/cjs/types/location.js.map +1 -0
  81. package/lib/{types → cjs}/types/media.d.ts +0 -0
  82. package/lib/{types → cjs}/types/media.d.ts.map +0 -0
  83. package/lib/cjs/types/media.js +2 -2
  84. package/lib/cjs/types/media.js.map +1 -0
  85. package/lib/{types → cjs}/types/notification.d.ts +0 -0
  86. package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
  87. package/lib/cjs/types/notification.js +47 -59
  88. package/lib/cjs/types/notification.js.map +1 -0
  89. package/lib/{types → cjs}/types/platform.d.ts +0 -0
  90. package/lib/{types → cjs}/types/platform.d.ts.map +0 -0
  91. package/lib/cjs/types/platform.js +2 -2
  92. package/lib/cjs/types/platform.js.map +1 -0
  93. package/lib/{types → cjs}/types/poll.d.ts +0 -0
  94. package/lib/{types → cjs}/types/poll.d.ts.map +0 -0
  95. package/lib/cjs/types/poll.js +2 -2
  96. package/lib/cjs/types/poll.js.map +1 -0
  97. package/lib/{types → cjs}/types/preference.d.ts +0 -0
  98. package/lib/{types → cjs}/types/preference.d.ts.map +0 -0
  99. package/lib/cjs/types/preference.js +2 -2
  100. package/lib/cjs/types/preference.js.map +1 -0
  101. package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
  102. package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
  103. package/lib/cjs/types/privateMessage.js +14 -29
  104. package/lib/cjs/types/privateMessage.js.map +1 -0
  105. package/lib/{types → cjs}/types/prize.d.ts +0 -0
  106. package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
  107. package/lib/cjs/types/prize.js +7 -23
  108. package/lib/cjs/types/prize.js.map +1 -0
  109. package/lib/{types → cjs}/types/sso.d.ts +0 -0
  110. package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
  111. package/lib/cjs/types/sso.js +5 -2
  112. package/lib/cjs/types/sso.js.map +1 -0
  113. package/lib/{types → cjs}/types/tag.d.ts +0 -0
  114. package/lib/{types → cjs}/types/tag.d.ts.map +0 -0
  115. package/lib/cjs/types/tag.js +2 -2
  116. package/lib/cjs/types/tag.js.map +1 -0
  117. package/lib/{types → cjs}/types/user.d.ts +0 -0
  118. package/lib/{types → cjs}/types/user.d.ts.map +0 -0
  119. package/lib/cjs/types/user.js +42 -61
  120. package/lib/cjs/types/user.js.map +1 -0
  121. package/lib/{types → cjs}/types/vote.d.ts +0 -0
  122. package/lib/{types → cjs}/types/vote.d.ts.map +0 -0
  123. package/lib/cjs/types/vote.js +2 -2
  124. package/lib/cjs/types/vote.js.map +1 -0
  125. package/lib/{types → cjs}/types/webhook.d.ts +0 -0
  126. package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
  127. package/lib/cjs/types/webhook.js +6 -2
  128. package/lib/cjs/types/webhook.js.map +1 -0
  129. package/lib/esm/index.d.ts +9 -0
  130. package/lib/esm/index.d.ts.map +1 -0
  131. package/lib/esm/index.js +9 -125
  132. package/lib/esm/index.js.map +1 -0
  133. package/lib/esm/types/auth.d.ts +26 -0
  134. package/lib/esm/types/auth.d.ts.map +1 -0
  135. package/lib/esm/types/auth.js +2 -3
  136. package/lib/esm/types/auth.js.map +1 -0
  137. package/lib/esm/types/avatar.d.ts +26 -0
  138. package/lib/esm/types/avatar.d.ts.map +1 -0
  139. package/lib/esm/types/avatar.js +5 -3
  140. package/lib/esm/types/avatar.js.map +1 -0
  141. package/lib/esm/types/broadcastMessage.d.ts +73 -0
  142. package/lib/esm/types/broadcastMessage.d.ts.map +1 -0
  143. package/lib/esm/types/broadcastMessage.js +5 -11
  144. package/lib/esm/types/broadcastMessage.js.map +1 -0
  145. package/lib/esm/types/category.d.ts +107 -0
  146. package/lib/esm/types/category.d.ts.map +1 -0
  147. package/lib/esm/types/category.js +2 -3
  148. package/lib/esm/types/category.js.map +1 -0
  149. package/lib/esm/types/comment.d.ts +97 -0
  150. package/lib/esm/types/comment.d.ts.map +1 -0
  151. package/lib/esm/types/comment.js +8 -21
  152. package/lib/esm/types/comment.js.map +1 -0
  153. package/lib/esm/types/contribution.d.ts +64 -0
  154. package/lib/esm/types/contribution.d.ts.map +1 -0
  155. package/lib/esm/types/contribution.js +13 -30
  156. package/lib/esm/types/contribution.js.map +1 -0
  157. package/lib/esm/types/customAdv.d.ts +53 -0
  158. package/lib/esm/types/customAdv.d.ts.map +1 -0
  159. package/lib/esm/types/customAdv.js +11 -16
  160. package/lib/esm/types/customAdv.js.map +1 -0
  161. package/lib/esm/types/customNotification.d.ts +28 -0
  162. package/lib/esm/types/customNotification.d.ts.map +1 -0
  163. package/lib/esm/types/customNotification.js +2 -3
  164. package/lib/esm/types/customNotification.js.map +1 -0
  165. package/lib/esm/types/customPage.d.ts +18 -0
  166. package/lib/esm/types/customPage.d.ts.map +1 -0
  167. package/lib/esm/types/customPage.js +2 -3
  168. package/lib/esm/types/customPage.js.map +1 -0
  169. package/lib/esm/types/dataPortability.d.ts +30 -0
  170. package/lib/esm/types/dataPortability.d.ts.map +1 -0
  171. package/lib/esm/types/dataPortability.js +2 -3
  172. package/lib/esm/types/dataPortability.js.map +1 -0
  173. package/lib/esm/types/embed.d.ts +33 -0
  174. package/lib/esm/types/embed.d.ts.map +1 -0
  175. package/lib/esm/types/embed.js +2 -3
  176. package/lib/esm/types/embed.js.map +1 -0
  177. package/lib/esm/types/feature.d.ts +18 -0
  178. package/lib/esm/types/feature.d.ts.map +1 -0
  179. package/lib/esm/types/feature.js +5 -3
  180. package/lib/esm/types/feature.js.map +1 -0
  181. package/lib/esm/types/feed.d.ts +237 -0
  182. package/lib/esm/types/feed.d.ts.map +1 -0
  183. package/lib/esm/types/feed.js +17 -40
  184. package/lib/esm/types/feed.js.map +1 -0
  185. package/lib/esm/types/flag.d.ts +38 -0
  186. package/lib/esm/types/flag.d.ts.map +1 -0
  187. package/lib/esm/types/flag.js +13 -26
  188. package/lib/esm/types/flag.js.map +1 -0
  189. package/lib/esm/types/incubator.d.ts +68 -0
  190. package/lib/esm/types/incubator.d.ts.map +1 -0
  191. package/lib/esm/types/incubator.js +7 -22
  192. package/lib/esm/types/incubator.js.map +1 -0
  193. package/lib/esm/types/index.d.ts +35 -0
  194. package/lib/esm/types/index.d.ts.map +1 -0
  195. package/lib/esm/types/index.js +16 -213
  196. package/lib/esm/types/index.js.map +1 -0
  197. package/lib/esm/types/insight.d.ts +127 -0
  198. package/lib/esm/types/insight.d.ts.map +1 -0
  199. package/lib/esm/types/insight.js +2 -3
  200. package/lib/esm/types/insight.js.map +1 -0
  201. package/lib/esm/types/legalPage.d.ts +79 -0
  202. package/lib/esm/types/legalPage.d.ts.map +1 -0
  203. package/lib/esm/types/legalPage.js +5 -3
  204. package/lib/esm/types/legalPage.js.map +1 -0
  205. package/lib/esm/types/location.d.ts +61 -0
  206. package/lib/esm/types/location.d.ts.map +1 -0
  207. package/lib/esm/types/location.js +2 -3
  208. package/lib/esm/types/location.js.map +1 -0
  209. package/lib/esm/types/media.d.ts +69 -0
  210. package/lib/esm/types/media.d.ts.map +1 -0
  211. package/lib/esm/types/media.js +2 -3
  212. package/lib/esm/types/media.js.map +1 -0
  213. package/lib/esm/types/notification.d.ts +422 -0
  214. package/lib/esm/types/notification.d.ts.map +1 -0
  215. package/lib/esm/types/notification.js +45 -60
  216. package/lib/esm/types/notification.js.map +1 -0
  217. package/lib/esm/types/platform.d.ts +9 -0
  218. package/lib/esm/types/platform.d.ts.map +1 -0
  219. package/lib/esm/types/platform.js +2 -3
  220. package/lib/esm/types/platform.js.map +1 -0
  221. package/lib/esm/types/poll.d.ts +87 -0
  222. package/lib/esm/types/poll.d.ts.map +1 -0
  223. package/lib/esm/types/poll.js +2 -3
  224. package/lib/esm/types/poll.js.map +1 -0
  225. package/lib/esm/types/preference.d.ts +22 -0
  226. package/lib/esm/types/preference.d.ts.map +1 -0
  227. package/lib/esm/types/preference.js +2 -3
  228. package/lib/esm/types/preference.js.map +1 -0
  229. package/lib/esm/types/privateMessage.d.ts +130 -0
  230. package/lib/esm/types/privateMessage.d.ts.map +1 -0
  231. package/lib/esm/types/privateMessage.js +12 -30
  232. package/lib/esm/types/privateMessage.js.map +1 -0
  233. package/lib/esm/types/prize.d.ts +93 -0
  234. package/lib/esm/types/prize.d.ts.map +1 -0
  235. package/lib/esm/types/prize.js +6 -25
  236. package/lib/esm/types/prize.js.map +1 -0
  237. package/lib/esm/types/sso.d.ts +22 -0
  238. package/lib/esm/types/sso.d.ts.map +1 -0
  239. package/lib/esm/types/sso.js +5 -3
  240. package/lib/esm/types/sso.js.map +1 -0
  241. package/lib/esm/types/tag.d.ts +47 -0
  242. package/lib/esm/types/tag.d.ts.map +1 -0
  243. package/lib/esm/types/tag.js +2 -3
  244. package/lib/esm/types/tag.js.map +1 -0
  245. package/lib/esm/types/user.d.ts +537 -0
  246. package/lib/esm/types/user.d.ts.map +1 -0
  247. package/lib/esm/types/user.js +40 -62
  248. package/lib/esm/types/user.js.map +1 -0
  249. package/lib/esm/types/vote.d.ts +15 -0
  250. package/lib/esm/types/vote.d.ts.map +1 -0
  251. package/lib/esm/types/vote.js +2 -3
  252. package/lib/esm/types/vote.js.map +1 -0
  253. package/lib/esm/types/webhook.d.ts +91 -0
  254. package/lib/esm/types/webhook.d.ts.map +1 -0
  255. package/lib/esm/types/webhook.js +6 -3
  256. package/lib/esm/types/webhook.js.map +1 -0
  257. package/package.json +5 -7
  258. package/lib/cjs/index.d.js +0 -2
  259. package/lib/esm/index.d.js +0 -2
  260. package/lib/types/tsconfig.build.tsbuildinfo +0 -1
@@ -0,0 +1,537 @@
1
+ /**
2
+ * Interface SCUserType.
3
+ * User Schema.
4
+ */
5
+ import { SCTagType } from './tag';
6
+ /**
7
+ * User Fields
8
+ */
9
+ export declare enum SCUserFields {
10
+ USERNAME = "username",
11
+ REAL_NAME = "real_name",
12
+ DATE_JOINED = "date_joined",
13
+ BIO = "bio",
14
+ LOCATION = "location",
15
+ DATE_OF_BIRTH = "date_of_birth",
16
+ DESCRIPTION = "description",
17
+ GENDER = "gender",
18
+ WEBSITE = "website"
19
+ }
20
+ /**
21
+ * User status
22
+ */
23
+ export declare enum SCUserStatus {
24
+ APPROVED = "a",
25
+ BLOCKED = "b",
26
+ DELETED = "d",
27
+ UNREGISTERED = "u"
28
+ }
29
+ export interface SCUserType {
30
+ /**
31
+ * The ID of the user.
32
+ */
33
+ id: number;
34
+ /**
35
+ * The username of the user.
36
+ */
37
+ username: string;
38
+ /**
39
+ * Real name of the user.
40
+ */
41
+ real_name: string;
42
+ /**
43
+ * Email of the user.
44
+ */
45
+ email?: string;
46
+ /**
47
+ * Email is valid. Default: False.
48
+ */
49
+ email_isvalid?: boolean;
50
+ /**
51
+ * Date joined to the community.
52
+ */
53
+ date_joined: Date;
54
+ /**
55
+ * User biography.
56
+ */
57
+ bio: string;
58
+ /**
59
+ * Location
60
+ */
61
+ location: string;
62
+ /**
63
+ * Location in coordinates. Format: lat,lng.
64
+ */
65
+ location_lat_lng?: string;
66
+ /**
67
+ * User current position. Format: lat,lng.
68
+ */
69
+ position_lat_lng?: string;
70
+ /**
71
+ * Date of birth. Format: YYYY-MM-DD (ISO 8601).
72
+ */
73
+ date_of_birth?: Date;
74
+ /**
75
+ * User description.
76
+ */
77
+ description: string;
78
+ /**
79
+ * Gender of the user. Values: Male, Female, Unspecified. Default: Unspecified.
80
+ */
81
+ gender: string;
82
+ /**
83
+ * User status. Values: a (approved), b (blocked), d (deleted; soft deleted), u (unregistered). Default: a.
84
+ * A blocked user can't:
85
+ * - create contribution (post/discussion/status)
86
+ * - create comment
87
+ * - vote/unvote contribution
88
+ * - follow/connect user
89
+ * - edit contribution
90
+ * - suggest an incubator
91
+ * - flag a contribution
92
+ * - send a private message
93
+ * - edit info profile
94
+ * but he can't:
95
+ * - follow/unfollow a post/discussion/status
96
+ * - follow/unfollow a category
97
+ * - unfollow user
98
+ */
99
+ status: string;
100
+ /**
101
+ * User website.
102
+ */
103
+ website: string;
104
+ /**
105
+ * Avatar of the user.
106
+ */
107
+ avatar: string;
108
+ /**
109
+ * Image Cover of the user.
110
+ */
111
+ cover?: string;
112
+ /**
113
+ * The external ID of the user. It is assigned only during signup if necessary.
114
+ */
115
+ ext_id?: number;
116
+ /**
117
+ * User's tag list. List of Tag.
118
+ */
119
+ tags: Array<SCTagType>;
120
+ /**
121
+ * User reputation.
122
+ */
123
+ reputation: number;
124
+ /**
125
+ * List of user permission. Only for the resource /user/me/.
126
+ */
127
+ permission?: Array<string>;
128
+ /**
129
+ * The connection status between the request user and this user.
130
+ */
131
+ connection_status?: string;
132
+ /**
133
+ * Number of connection requests sent by the user.
134
+ */
135
+ connection_requests_sent_counter?: number;
136
+ /**
137
+ * Number of connection requests received by the user.
138
+ */
139
+ connection_requests_received_counter?: number;
140
+ /**
141
+ * Number of connections of the user.
142
+ */
143
+ connections_counter?: number;
144
+ /**
145
+ * Number of followings of the user
146
+ */
147
+ followings_counter?: number;
148
+ /**
149
+ * Number of followers of the user
150
+ */
151
+ followers_counter?: number;
152
+ /**
153
+ * Number of posts created by the user.
154
+ */
155
+ posts_counter?: number;
156
+ /**
157
+ * Number of discussions created by the user.
158
+ */
159
+ discussions_counter?: number;
160
+ /**
161
+ * Number of statuses created by the user.
162
+ */
163
+ statuses_counter?: number;
164
+ /**
165
+ * Number of polls created by the user.
166
+ */
167
+ polls_counter?: number;
168
+ /**
169
+ * Number of categories followed by the user.
170
+ */
171
+ categories_counter?: number;
172
+ /**
173
+ * User role
174
+ */
175
+ role: string;
176
+ /**
177
+ * interactions counter
178
+ */
179
+ unseen_interactions_counter?: number;
180
+ /**
181
+ * notification banner counter
182
+ */
183
+ unseen_notification_banners_counter?: number;
184
+ }
185
+ /**
186
+ * User Settings
187
+ */
188
+ export interface SCUserSettingsType {
189
+ /**
190
+ * Frequency of the email notifications for all interactions (except for private messages notifications)
191
+ */
192
+ qa_frequency: number;
193
+ /**
194
+ * Enable private messages notifications also via mail
195
+ */
196
+ email_notification_not_qa: number;
197
+ /**
198
+ * Enable mobile app/PWA notifications
199
+ */
200
+ mobile_notifications_scmty: number;
201
+ /**
202
+ * Shows a popup when the user receive a notification
203
+ */
204
+ show_toast_notifications: number;
205
+ /**
206
+ * Emit a sound when the notification popup is shown. See 'show_toast_notifications'
207
+ */
208
+ toast_notifications_emit_sound: number;
209
+ }
210
+ /**
211
+ * User Blocked Settings
212
+ */
213
+ export interface SCUserBlockedSettingsType {
214
+ /**
215
+ * N° days of block
216
+ */
217
+ days_blocked: number;
218
+ /**
219
+ * Reputation stolen
220
+ */
221
+ reputation_delta: number;
222
+ /**
223
+ * Start User Block datetime
224
+ */
225
+ blocked_at?: Date;
226
+ /**
227
+ * End User Block datetime
228
+ */
229
+ expire_at?: Date;
230
+ }
231
+ /**
232
+ * SCUserModerationType interface
233
+ */
234
+ export interface SCUserModerationType extends SCUserType {
235
+ /**
236
+ * Block start date
237
+ */
238
+ blocked_at: Date | string;
239
+ /**
240
+ * Number of days of block duration (if none and block date set, it means forever)
241
+ */
242
+ days_blocked?: number;
243
+ /**
244
+ * Date on which the auto unblock will take place
245
+ */
246
+ expire_at: Date | string;
247
+ /**
248
+ * Date on which the user has been seen in the community
249
+ */
250
+ last_seen?: Date | string;
251
+ /**
252
+ *Number of flags given by the user
253
+ */
254
+ flags_given?: number;
255
+ /**
256
+ * Number of flags received by the user (in its contents)
257
+ */
258
+ flags_received?: number;
259
+ /**
260
+ * Full description of the last score variation made by a moderator.
261
+ */
262
+ last_score_variation?: SCUserScoreVariation[];
263
+ }
264
+ /**
265
+ * SCUserScoreType interface
266
+ */
267
+ export interface SCUserScoreType {
268
+ /**
269
+ * The id
270
+ */
271
+ id: number;
272
+ /**
273
+ * The user obj
274
+ */
275
+ user: SCUserType;
276
+ /**
277
+ * Positive or negative integer value
278
+ */
279
+ score: string;
280
+ /**
281
+ * Reputation types
282
+ */
283
+ reputation_type: SCUserReputationType;
284
+ /**
285
+ * Reputation types description
286
+ */
287
+ reputation_type_description: string;
288
+ /**
289
+ * comment
290
+ */
291
+ comment: string;
292
+ }
293
+ export declare enum SCUserReputationType {
294
+ GAIN_BY_UPVOTED = 1,
295
+ ASSIGNED_BY_MODERATOR = 10,
296
+ GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION = 11,
297
+ GAIN_BY_MAKE_POST = 12,
298
+ GAIN_BY_MAKE_FIRST_LEVEL_COMMENT = 13,
299
+ GAIN_BY_MAKE_SECOND_LEVEL_COMMENT = 14,
300
+ GAIN_BY_CONNECTION = 15,
301
+ GAIN_BY_APP_USED = 17,
302
+ GAIN_BY_DAILY_VISIT = 18,
303
+ GAIN_BY_FOLLOWER = 19,
304
+ GAIN_BY_UNBLOCK_ACCOUNT = 20,
305
+ LOSE_BY_UPVOTE_CANCELED = -1,
306
+ LOSE_BY_CONTRIBUTE_MODERATION = -11,
307
+ LOSE_BY_DELETE_POST = -12,
308
+ LOSE_BY_DELETE_FIRST_LEVEL_COMMENT = -13,
309
+ LOSE_BY_DELETE_SECOND_LEVEL_COMMENT = -14,
310
+ LOSE_BY_CONNECTION = -15,
311
+ LOSE_BY_FOLLOWER = -19,
312
+ LOSE_BY_BLOCK_ACCOUNT = -20
313
+ }
314
+ /**
315
+ * SCUserScoreVariation interface
316
+ */
317
+ export interface SCUserScoreVariation {
318
+ /**
319
+ * comment
320
+ */
321
+ comment: string;
322
+ /**
323
+ * Reputed date-time
324
+ */
325
+ reputed_at: Date | string;
326
+ }
327
+ /**
328
+ * SSCUserAutocompleteType Interface
329
+ */
330
+ export interface SCUserAutocompleteType {
331
+ /**
332
+ * The ID of the user.
333
+ */
334
+ id: number;
335
+ /**
336
+ * The username of the user.
337
+ */
338
+ username: string;
339
+ /**
340
+ * The real name of the user.
341
+ */
342
+ real_name: string;
343
+ /**
344
+ * The user avatar.
345
+ */
346
+ avatar: string;
347
+ /**
348
+ * The external ID of the user. It is assigned only during signup.
349
+ */
350
+ ext_id: number;
351
+ }
352
+ /**
353
+ * SCUserCountersType interface
354
+ */
355
+ export interface SCUserCounterType {
356
+ /**
357
+ * Number of discussions created by the user.
358
+ * Only if dynamic preference configurations.discussion_type_enabled is true
359
+ */
360
+ discussions: number;
361
+ /**
362
+ * Number of polls created by the user. Only if dynamic preference addons.polls_enabled is true or if the user has a staff role.
363
+ */
364
+ polls: number;
365
+ /**
366
+ * Number of posts created by the user.Only if dynamic preference configurations.post_type_enabled is true.
367
+ */
368
+ posts: number;
369
+ /**
370
+ * Number of statuses created by the user. Only if dynamic preference configurations.status_type_enabled is true.
371
+ */
372
+ statuses: number;
373
+ /**
374
+ * Number of followings of the user. Only if dynamic preference configurations.follow_enabled is true.
375
+ */
376
+ followings: number;
377
+ /**
378
+ * Number of followers of the user. Only if dynamic preference configurations.follow_enabled is true.
379
+ */
380
+ followers: number;
381
+ /**
382
+ * Number of connection requests sent by the user.
383
+ * Only if dynamic preference configurations.follow_enabled is false.
384
+ */
385
+ connection_requests_sent_counter: number;
386
+ /**
387
+ * Number of connection requests received by the user. Only if dynamic preference configurations.follow_enabled is false.
388
+ */
389
+ connection_requests_received_counter: number;
390
+ /**
391
+ * Number of connections of the user. Only if dynamic preference configurations.follow_enabled is false.
392
+ */
393
+ connections_counter: number;
394
+ }
395
+ /**
396
+ * SCUserChangeEmailType interface
397
+ */
398
+ export interface SCUserChangeEmailType {
399
+ /**
400
+ * String returned when user changes its email with confirm.
401
+ */
402
+ validation_code: string;
403
+ }
404
+ /**
405
+ * SCUserEmailTokenType interface
406
+ */
407
+ export interface SCUserEmailTokenType {
408
+ /**
409
+ * String returned when user changes its email with confirm.
410
+ */
411
+ is_valid: boolean;
412
+ }
413
+ /**
414
+ * SCUserAvatarType interface
415
+ */
416
+ export interface SCUserAvatarType {
417
+ /**
418
+ * String returned when user checks its current avatar.
419
+ */
420
+ avatar: string;
421
+ }
422
+ /**
423
+ * SCUserPermissionType interface
424
+ */
425
+ export interface SCUserPermissionType {
426
+ /**
427
+ * If user can upload video when creating a post.
428
+ */
429
+ upload_video: boolean;
430
+ /**
431
+ * If user can create a contribute
432
+ */
433
+ create_contribute: boolean;
434
+ /**
435
+ * If user can add a poll when creating a contribute
436
+ */
437
+ create_poll: boolean;
438
+ /**
439
+ * If user can locate a contribute
440
+ */
441
+ locate_post: boolean;
442
+ /**
443
+ * If user can create a post
444
+ */
445
+ create_post: boolean;
446
+ /**
447
+ * If user can add categories when creating a post
448
+ */
449
+ create_post_with_category: boolean;
450
+ /**
451
+ * If user can follow users
452
+ */
453
+ follow_user: boolean;
454
+ /**
455
+ * If user can request a connection
456
+ */
457
+ request_connection: boolean;
458
+ /**
459
+ * If user can accept a connection
460
+ */
461
+ accept_connection: boolean;
462
+ }
463
+ /**
464
+ * Interface SCUserFollowedStatusType
465
+ */
466
+ export interface SCUserFollowedStatusType {
467
+ /**
468
+ * If the user il followed by the user specified by Id.
469
+ */
470
+ is_followed: boolean;
471
+ }
472
+ /**
473
+ * Interface SCUserFollowerStatusType
474
+ */
475
+ export interface SCUserFollowerStatusType {
476
+ /**
477
+ * If the user specified by Id is a follower.
478
+ */
479
+ is_follower: boolean;
480
+ }
481
+ /**
482
+ * Interface SCUserConnectionStatusType
483
+ */
484
+ export interface SCUserConnectionStatusType {
485
+ /**
486
+ * If the user specified by Id is a connection.
487
+ */
488
+ is_connection: boolean;
489
+ }
490
+ /**
491
+ * Interface SCUserHiddenStatusType
492
+ */
493
+ export interface SCUserHiddenStatusType {
494
+ /**
495
+ * If the user specified by Id is hidden.
496
+ */
497
+ is_hidden: boolean;
498
+ }
499
+ /**
500
+ * Interface SCUserHiddenByStatusType
501
+ */
502
+ export interface SCUserHiddenByStatusType {
503
+ /**
504
+ * If the user has been hidden by the user specified by Id.
505
+ */
506
+ is_hidden_by: boolean;
507
+ }
508
+ /**
509
+ * Interface SCUserConnectionRequestType
510
+ */
511
+ export interface SCUserConnectionRequestType {
512
+ /**
513
+ * The request id.
514
+ */
515
+ id: number;
516
+ /**
517
+ * The user who made the request.
518
+ */
519
+ from_user: SCUserType;
520
+ /**
521
+ * The user who received the request.
522
+ */
523
+ to_user: SCUserType;
524
+ /**
525
+ * Date-time of request creation.
526
+ */
527
+ created: Date | string;
528
+ /**
529
+ * Date-time of request rejection.
530
+ */
531
+ rejected: Date | string;
532
+ /**
533
+ * Date-time of request seen.
534
+ */
535
+ viewed: Date | string;
536
+ }
537
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC;;GAEG;AACH,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,QAAQ,MAAM;IACd,OAAO,MAAM;IACb,OAAO,MAAM;IACb,YAAY,MAAM;CACnB;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,O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;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AAEH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;CACvB"}
@@ -1,70 +1,48 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.SCUserStatus = exports.SCUserReputationType = exports.SCUserFields = void 0;
5
-
6
- /**
7
- * Interface SCUserType.
8
- * User Schema.
9
- */
10
-
11
1
  /**
12
2
  * User Fields
13
3
  */
14
- let SCUserFields;
4
+ export var SCUserFields;
5
+ (function (SCUserFields) {
6
+ SCUserFields["USERNAME"] = "username";
7
+ SCUserFields["REAL_NAME"] = "real_name";
8
+ SCUserFields["DATE_JOINED"] = "date_joined";
9
+ SCUserFields["BIO"] = "bio";
10
+ SCUserFields["LOCATION"] = "location";
11
+ SCUserFields["DATE_OF_BIRTH"] = "date_of_birth";
12
+ SCUserFields["DESCRIPTION"] = "description";
13
+ SCUserFields["GENDER"] = "gender";
14
+ SCUserFields["WEBSITE"] = "website";
15
+ })(SCUserFields || (SCUserFields = {}));
15
16
  /**
16
17
  * User status
17
18
  */
18
-
19
- exports.SCUserFields = SCUserFields;
20
-
21
- (function (SCUserFields) {
22
- SCUserFields["USERNAME"] = "username";
23
- SCUserFields["REAL_NAME"] = "real_name";
24
- SCUserFields["DATE_JOINED"] = "date_joined";
25
- SCUserFields["BIO"] = "bio";
26
- SCUserFields["LOCATION"] = "location";
27
- SCUserFields["DATE_OF_BIRTH"] = "date_of_birth";
28
- SCUserFields["DESCRIPTION"] = "description";
29
- SCUserFields["GENDER"] = "gender";
30
- SCUserFields["WEBSITE"] = "website";
31
- })(SCUserFields || (exports.SCUserFields = SCUserFields = {}));
32
-
33
- let SCUserStatus;
34
- exports.SCUserStatus = SCUserStatus;
35
-
19
+ export var SCUserStatus;
36
20
  (function (SCUserStatus) {
37
- SCUserStatus["APPROVED"] = "a";
38
- SCUserStatus["BLOCKED"] = "b";
39
- SCUserStatus["DELETED"] = "d";
40
- SCUserStatus["UNREGISTERED"] = "u";
41
- })(SCUserStatus || (exports.SCUserStatus = SCUserStatus = {}));
42
-
43
- let SCUserReputationType;
44
- /**
45
- * SCUserScoreVariation interface
46
- */
47
-
48
- exports.SCUserReputationType = SCUserReputationType;
49
-
21
+ SCUserStatus["APPROVED"] = "a";
22
+ SCUserStatus["BLOCKED"] = "b";
23
+ SCUserStatus["DELETED"] = "d";
24
+ SCUserStatus["UNREGISTERED"] = "u";
25
+ })(SCUserStatus || (SCUserStatus = {}));
26
+ export var SCUserReputationType;
50
27
  (function (SCUserReputationType) {
51
- SCUserReputationType[SCUserReputationType["GAIN_BY_UPVOTED"] = 1] = "GAIN_BY_UPVOTED";
52
- SCUserReputationType[SCUserReputationType["ASSIGNED_BY_MODERATOR"] = 10] = "ASSIGNED_BY_MODERATOR";
53
- SCUserReputationType[SCUserReputationType["GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION"] = 11] = "GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION";
54
- SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_POST"] = 12] = "GAIN_BY_MAKE_POST";
55
- SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_FIRST_LEVEL_COMMENT"] = 13] = "GAIN_BY_MAKE_FIRST_LEVEL_COMMENT";
56
- SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_SECOND_LEVEL_COMMENT"] = 14] = "GAIN_BY_MAKE_SECOND_LEVEL_COMMENT";
57
- SCUserReputationType[SCUserReputationType["GAIN_BY_CONNECTION"] = 15] = "GAIN_BY_CONNECTION";
58
- SCUserReputationType[SCUserReputationType["GAIN_BY_APP_USED"] = 17] = "GAIN_BY_APP_USED";
59
- SCUserReputationType[SCUserReputationType["GAIN_BY_DAILY_VISIT"] = 18] = "GAIN_BY_DAILY_VISIT";
60
- SCUserReputationType[SCUserReputationType["GAIN_BY_FOLLOWER"] = 19] = "GAIN_BY_FOLLOWER";
61
- SCUserReputationType[SCUserReputationType["GAIN_BY_UNBLOCK_ACCOUNT"] = 20] = "GAIN_BY_UNBLOCK_ACCOUNT";
62
- SCUserReputationType[SCUserReputationType["LOSE_BY_UPVOTE_CANCELED"] = -1] = "LOSE_BY_UPVOTE_CANCELED";
63
- SCUserReputationType[SCUserReputationType["LOSE_BY_CONTRIBUTE_MODERATION"] = -11] = "LOSE_BY_CONTRIBUTE_MODERATION";
64
- SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_POST"] = -12] = "LOSE_BY_DELETE_POST";
65
- SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_FIRST_LEVEL_COMMENT"] = -13] = "LOSE_BY_DELETE_FIRST_LEVEL_COMMENT";
66
- SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_SECOND_LEVEL_COMMENT"] = -14] = "LOSE_BY_DELETE_SECOND_LEVEL_COMMENT";
67
- SCUserReputationType[SCUserReputationType["LOSE_BY_CONNECTION"] = -15] = "LOSE_BY_CONNECTION";
68
- SCUserReputationType[SCUserReputationType["LOSE_BY_FOLLOWER"] = -19] = "LOSE_BY_FOLLOWER";
69
- SCUserReputationType[SCUserReputationType["LOSE_BY_BLOCK_ACCOUNT"] = -20] = "LOSE_BY_BLOCK_ACCOUNT";
70
- })(SCUserReputationType || (exports.SCUserReputationType = SCUserReputationType = {}));
28
+ SCUserReputationType[SCUserReputationType["GAIN_BY_UPVOTED"] = 1] = "GAIN_BY_UPVOTED";
29
+ SCUserReputationType[SCUserReputationType["ASSIGNED_BY_MODERATOR"] = 10] = "ASSIGNED_BY_MODERATOR";
30
+ SCUserReputationType[SCUserReputationType["GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION"] = 11] = "GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION";
31
+ SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_POST"] = 12] = "GAIN_BY_MAKE_POST";
32
+ SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_FIRST_LEVEL_COMMENT"] = 13] = "GAIN_BY_MAKE_FIRST_LEVEL_COMMENT";
33
+ SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_SECOND_LEVEL_COMMENT"] = 14] = "GAIN_BY_MAKE_SECOND_LEVEL_COMMENT";
34
+ SCUserReputationType[SCUserReputationType["GAIN_BY_CONNECTION"] = 15] = "GAIN_BY_CONNECTION";
35
+ SCUserReputationType[SCUserReputationType["GAIN_BY_APP_USED"] = 17] = "GAIN_BY_APP_USED";
36
+ SCUserReputationType[SCUserReputationType["GAIN_BY_DAILY_VISIT"] = 18] = "GAIN_BY_DAILY_VISIT";
37
+ SCUserReputationType[SCUserReputationType["GAIN_BY_FOLLOWER"] = 19] = "GAIN_BY_FOLLOWER";
38
+ SCUserReputationType[SCUserReputationType["GAIN_BY_UNBLOCK_ACCOUNT"] = 20] = "GAIN_BY_UNBLOCK_ACCOUNT";
39
+ SCUserReputationType[SCUserReputationType["LOSE_BY_UPVOTE_CANCELED"] = -1] = "LOSE_BY_UPVOTE_CANCELED";
40
+ SCUserReputationType[SCUserReputationType["LOSE_BY_CONTRIBUTE_MODERATION"] = -11] = "LOSE_BY_CONTRIBUTE_MODERATION";
41
+ SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_POST"] = -12] = "LOSE_BY_DELETE_POST";
42
+ SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_FIRST_LEVEL_COMMENT"] = -13] = "LOSE_BY_DELETE_FIRST_LEVEL_COMMENT";
43
+ SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_SECOND_LEVEL_COMMENT"] = -14] = "LOSE_BY_DELETE_SECOND_LEVEL_COMMENT";
44
+ SCUserReputationType[SCUserReputationType["LOSE_BY_CONNECTION"] = -15] = "LOSE_BY_CONNECTION";
45
+ SCUserReputationType[SCUserReputationType["LOSE_BY_FOLLOWER"] = -19] = "LOSE_BY_FOLLOWER";
46
+ SCUserReputationType[SCUserReputationType["LOSE_BY_BLOCK_ACCOUNT"] = -20] = "LOSE_BY_BLOCK_ACCOUNT";
47
+ })(SCUserReputationType || (SCUserReputationType = {}));
48
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,CAAN,IAAY,YAUX;AAVD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,2BAAW,CAAA;IACX,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EAVW,YAAY,KAAZ,YAAY,QAUvB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,8BAAc,CAAA;IACd,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,kCAAkB,CAAA;AACpB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAuTD,MAAM,CAAN,IAAY,oBAoBX;AApBD,WAAY,oBAAoB;IAC9B,qFAAmB,CAAA;IACnB,kGAA0B,CAAA;IAC1B,wIAA6C,CAAA;IAC7C,0FAAsB,CAAA;IACtB,wHAAqC,CAAA;IACrC,0HAAsC,CAAA;IACtC,4FAAuB,CAAA;IACvB,wFAAqB,CAAA;IACrB,8FAAwB,CAAA;IACxB,wFAAqB,CAAA;IACrB,sGAA4B,CAAA;IAC5B,sGAA4B,CAAA;IAC5B,mHAAmC,CAAA;IACnC,+FAAyB,CAAA;IACzB,6HAAwC,CAAA;IACxC,+HAAyC,CAAA;IACzC,6FAAwB,CAAA;IACxB,yFAAsB,CAAA;IACtB,mGAA2B,CAAA;AAC7B,CAAC,EApBW,oBAAoB,KAApB,oBAAoB,QAoB/B"}
@@ -0,0 +1,15 @@
1
+ import { SCUserType } from './user';
2
+ /**
3
+ * SCVoteType interface
4
+ */
5
+ export interface SCVoteType {
6
+ /**
7
+ * The user who voted.
8
+ */
9
+ user?: SCUserType;
10
+ /**
11
+ * Date time of vote.
12
+ */
13
+ voted_at?: Date | string;
14
+ }
15
+ //# sourceMappingURL=vote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vote.d.ts","sourceRoot":"","sources":["../../../src/types/vote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;CAC1B"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=vote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vote.js","sourceRoot":"","sources":["../../../src/types/vote.ts"],"names":[],"mappings":""}