@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,422 @@
1
+ import { SCCommentType, SCFeedDiscussionType, SCFeedPostType, SCFeedStatusType, SCUserType } from '../index';
2
+ import { SCPrivateMessageType } from './privateMessage';
3
+ import { SCUserBlockedSettingsType } from './user';
4
+ import { SCCustomNotificationType } from './customNotification';
5
+ import { SCIncubatorType } from './incubator';
6
+ /**
7
+ * Notification types
8
+ */
9
+ export declare enum SCNotificationTypologyType {
10
+ COMMENT = "comment",
11
+ NESTED_COMMENT = "nested_comment",
12
+ CONNECTION_REQUEST = "connection_request",
13
+ CONNECTION_ACCEPT = "connection_accept",
14
+ CONNECTION_REMOVE = "connection_remove",
15
+ CONNECTION_REJECT = "connection_reject",
16
+ CONNECTION_CANCEL_REJECT = "connection_cancel_reject",
17
+ CONNECTION_CANCEL_REQUEST = "connection_cancel_reject",
18
+ MENTION = "mention",
19
+ VOTE_UP = "vote_up",
20
+ FOLLOW = "follow",
21
+ PRIVATE_MESSAGE = "private_message",
22
+ DELETE_PRIVATE_MESSAGE = "delete_private_message",
23
+ DELETED_FOR_ADVERTISING = "deleted_for_advertising",
24
+ DELETED_FOR_AGGRESSIVE = "deleted_for_aggressive",
25
+ DELETED_FOR_VULGAR = "deleted_for_vulgar",
26
+ DELETED_FOR_POOR = "deleted_for_poor",
27
+ DELETED_FOR_OFFTOPIC = "deleted_for_offtopic",
28
+ UNDELETED_FOR = "undeleted_for",
29
+ COLLAPSED_FOR_ADVERTISING = "collapsed_for_advertising",
30
+ COLLAPSED_FOR_AGGRESSIVE = "collapsed_for_aggressive",
31
+ COLLAPSED_FOR_VULGAR = "collapsed_for_vulgar",
32
+ COLLAPSED_FOR_POOR = "collapsed_for_poor",
33
+ COLLAPSED_FOR_OFFTOPIC = "collapsed_for_offtopic",
34
+ USER_FOLLOW = "user_follow",
35
+ USER_UNFOLLOW = "user_unfollow",
36
+ KINDLY_NOTICE_ADVERTISING = "kindly_notice_advertising",
37
+ KINDLY_NOTICE_AGGRESSIVE = "kindly_notice_aggressive",
38
+ KINDLY_NOTICE_VULGAR = "kindly_notice_vulgar",
39
+ KINDLY_NOTICE_POOR = "kindly_notice_poor",
40
+ KINDLY_NOTICE_OFFTOPIC = "kindly_notice_offtopic",
41
+ KINDLY_NOTICE_FLAG = "kindly_notice_flag",
42
+ BLOCKED_USER = "blocked_user",
43
+ UNBLOCKED_USER = "unblocked_user",
44
+ INCUBATOR_APPROVED = "incubator_approved",
45
+ CUSTOM_NOTIFICATION = "custom_notification",
46
+ NOTIFICATION_BANNER = "notification_banner"
47
+ }
48
+ /**
49
+ * Define topic for notifications
50
+ * Usefull for websocket
51
+ */
52
+ export declare enum SCNotificationTopicType {
53
+ INTERACTION = "interaction",
54
+ NEWS = "news"
55
+ }
56
+ /**
57
+ * Interface SCNotificationAggregatedType.
58
+ * Notification aggregated Schema.
59
+ */
60
+ export interface SCNotificationAggregatedType {
61
+ /**
62
+ * Serialization id of the macro notification aggregate block
63
+ */
64
+ sid: string;
65
+ /**
66
+ * It's true if in the aggregated group there is at least one
67
+ * notification not yet seen by the user making the request
68
+ */
69
+ is_new: boolean;
70
+ /**
71
+ * Primary object involved (object that is common to notifications group)
72
+ * if it is a discusssion. For some types of notifications it will not be present.
73
+ */
74
+ discussion?: SCFeedDiscussionType;
75
+ /**
76
+ * Primary object involved (object that is common to notifications group)
77
+ * if it is a post. For some types of notifications it will not be present.
78
+ */
79
+ post?: SCFeedPostType;
80
+ /**
81
+ * Primary object involved (object that is common to notifications group)
82
+ * if it is a status. For some types of notifications it will not be present.
83
+ */
84
+ status?: SCFeedStatusType;
85
+ /**
86
+ * List of aggregated notifications by type.
87
+ * Types Object: NotificationTypeComment, NotificationTypeMention,
88
+ * NotificationTypeConnectionAccept, NotificationTypeConnectionRequest,
89
+ * NotificationTypePrivateMessage, NotificationTypeFollow, NotificationTypeVoteUp,
90
+ * NotificationTypeBlockedUser, NotificationTypeUnBlockedUser,
91
+ * NotificationTypeKindlyNotice, NotificationTypeCollapsedFor,
92
+ * NotificationTypeDeletedFor, NotificationTypeCustomNotification
93
+ */
94
+ aggregated: SCNotificationType[];
95
+ }
96
+ /**
97
+ * Interface SCNotificationType.
98
+ * Notification Schema.
99
+ */
100
+ export interface SCNotificationType {
101
+ /**
102
+ * True if the notification has been read, otherwise false
103
+ */
104
+ is_new: boolean;
105
+ /**
106
+ * Serialization id of the single notification
107
+ */
108
+ sid: string;
109
+ /**
110
+ * Type of the notification
111
+ */
112
+ type: SCNotificationTypologyType;
113
+ /**
114
+ * Time when the notification was generated
115
+ */
116
+ active_at: Date;
117
+ }
118
+ /**
119
+ * Interface SCNotificationCommentType.
120
+ * Comment Notification Schema.
121
+ */
122
+ export interface SCNotificationCommentType extends SCNotificationType {
123
+ /**
124
+ * Comment of first/second level
125
+ */
126
+ comment: SCCommentType;
127
+ /**
128
+ * Type Comment or Nested_comment
129
+ */
130
+ type: SCNotificationTypologyType.COMMENT | SCNotificationTypologyType.NESTED_COMMENT;
131
+ }
132
+ /**
133
+ * Interface SCNotificationMentionType.
134
+ * Mention Notification Schema.
135
+ */
136
+ export interface SCNotificationMentionType extends SCNotificationType {
137
+ /**
138
+ * Type Mention
139
+ */
140
+ type: SCNotificationTypologyType.MENTION;
141
+ /**
142
+ * If user is mentioned in a discussion
143
+ */
144
+ discussion?: SCFeedDiscussionType;
145
+ /**
146
+ * If the user is mentioned in a post
147
+ */
148
+ post?: SCFeedPostType;
149
+ /**
150
+ * If user is mentioned in a status
151
+ */
152
+ status?: SCFeedStatusType;
153
+ /**
154
+ * If user is mentioned in a comment
155
+ */
156
+ comment?: SCCommentType;
157
+ }
158
+ /**
159
+ * Interface SCNotificationConnectionRequestType.
160
+ * Connection Request Notification Schema.
161
+ */
162
+ export interface SCNotificationConnectionRequestType extends SCNotificationType {
163
+ /**
164
+ * Type Connection request
165
+ */
166
+ type: SCNotificationTypologyType.CONNECTION_REQUEST;
167
+ /**
168
+ * User request the connection
169
+ */
170
+ request_user: SCUserType;
171
+ }
172
+ /**
173
+ * Interface SCNotificationConnectionAcceptType.
174
+ * Connection Accept Notification Schema.
175
+ */
176
+ export interface SCNotificationConnectionAcceptType extends SCNotificationType {
177
+ /**
178
+ * Type Connection accept
179
+ */
180
+ type: SCNotificationTypologyType.CONNECTION_ACCEPT;
181
+ /**
182
+ * User accepted the connection request
183
+ */
184
+ accept_user: SCUserType;
185
+ }
186
+ /**
187
+ * Interface SCNotificationPrivateMessageType.
188
+ * Private Message Notification Schema.
189
+ */
190
+ export interface SCNotificationPrivateMessageType extends SCNotificationType {
191
+ /**
192
+ * Type Private message
193
+ */
194
+ type: SCNotificationTypologyType.PRIVATE_MESSAGE;
195
+ /**
196
+ * Private message
197
+ */
198
+ message: SCPrivateMessageType;
199
+ }
200
+ /**
201
+ * Interface SCNotificationFollowType.
202
+ * Follow Notification Schema.
203
+ * (discussion, post, status)
204
+ */
205
+ export interface SCNotificationFollowType extends SCNotificationType {
206
+ /**
207
+ * Type Follow
208
+ */
209
+ type: SCNotificationTypologyType.FOLLOW;
210
+ /**
211
+ * If user is mentioned in a discussion
212
+ */
213
+ discussion?: SCFeedDiscussionType;
214
+ /**
215
+ * If the user is mentioned in a post
216
+ */
217
+ post?: SCFeedPostType;
218
+ /**
219
+ * If user is mentioned in a status
220
+ */
221
+ status?: SCFeedStatusType;
222
+ }
223
+ /**
224
+ * Interface SCNotificationVoteUpType.
225
+ * VoteUp Notification Schema.
226
+ */
227
+ export interface SCNotificationVoteUpType extends SCNotificationType {
228
+ /**
229
+ * Type VoteUp
230
+ */
231
+ type: SCNotificationTypologyType.VOTE_UP;
232
+ /**
233
+ * If user is mentioned in a discussion
234
+ */
235
+ discussion?: SCFeedDiscussionType;
236
+ /**
237
+ * If the user is mentioned in a post
238
+ */
239
+ post?: SCFeedPostType;
240
+ /**
241
+ * If user is mentioned in a status
242
+ */
243
+ status?: SCFeedStatusType;
244
+ /**
245
+ * If user is mentioned in a comment
246
+ */
247
+ comment?: SCCommentType;
248
+ /**
249
+ * User voted up
250
+ */
251
+ user?: SCUserType;
252
+ }
253
+ /**
254
+ * Interface SCNotificationBlockedUserType.
255
+ * Blocked User Notification Schema.
256
+ */
257
+ export interface SCNotificationBlockedUserType extends SCNotificationType {
258
+ /**
259
+ * Type Blocked User
260
+ */
261
+ type: SCNotificationTypologyType.BLOCKED_USER;
262
+ /**
263
+ * Data of user block
264
+ */
265
+ blocked_settings: SCUserBlockedSettingsType;
266
+ }
267
+ /**
268
+ * Interface SCNotificationUnBlockedUserType.
269
+ * UnBlocked User Notification Schema.
270
+ */
271
+ export interface SCNotificationUnBlockedUserType extends SCNotificationType {
272
+ /**
273
+ * Type UnBlocked User
274
+ */
275
+ type: SCNotificationTypologyType.UNBLOCKED_USER;
276
+ }
277
+ /**
278
+ * Interface SCNotificationKindlyNoticeType.
279
+ * Kindly notice User Notification Schema.
280
+ */
281
+ export interface SCNotificationKindlyNoticeType extends SCNotificationType {
282
+ /**
283
+ * Type Kindly Notice User
284
+ */
285
+ type: SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING | SCNotificationTypologyType.KINDLY_NOTICE_FLAG | SCNotificationTypologyType.KINDLY_NOTICE_VULGAR | SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE | SCNotificationTypologyType.KINDLY_NOTICE_POOR | SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC;
286
+ /**
287
+ * If the contribute is a discussion
288
+ */
289
+ discussion?: SCFeedDiscussionType;
290
+ /**
291
+ * If the contribute is a post
292
+ */
293
+ post?: SCFeedPostType;
294
+ /**
295
+ * If the contribute is a status
296
+ */
297
+ status?: SCFeedStatusType;
298
+ /**
299
+ * If the contribute is a comment
300
+ */
301
+ comment?: SCCommentType;
302
+ }
303
+ /**
304
+ * Interface SCNotificationCollapsedForType.
305
+ * Collapsed for Notification Schema.
306
+ * Only for comments.
307
+ */
308
+ export interface SCNotificationCollapsedForType extends SCNotificationType {
309
+ /**
310
+ * Type Kindly Notice User
311
+ */
312
+ type: SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING | SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE | SCNotificationTypologyType.COLLAPSED_FOR_POOR | SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC | SCNotificationTypologyType.COLLAPSED_FOR_VULGAR;
313
+ /**
314
+ * comment collapsed
315
+ */
316
+ comment: SCCommentType;
317
+ }
318
+ /**
319
+ * Interface SCNotificationDeletedForType.
320
+ * Deleted for Notification Schema.
321
+ */
322
+ export interface SCNotificationDeletedForType extends SCNotificationType {
323
+ /**
324
+ * Type Deleted for
325
+ */
326
+ type: SCNotificationTypologyType.DELETED_FOR_ADVERTISING | SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE | SCNotificationTypologyType.DELETED_FOR_VULGAR | SCNotificationTypologyType.DELETED_FOR_POOR | SCNotificationTypologyType.DELETED_FOR_OFFTOPIC;
327
+ /**
328
+ * If a discussion is deleted
329
+ */
330
+ discussion?: SCFeedDiscussionType;
331
+ /**
332
+ * If a post is deleted
333
+ */
334
+ post?: SCFeedPostType;
335
+ /**
336
+ * If a comment is deleted
337
+ */
338
+ status?: SCFeedStatusType;
339
+ /**
340
+ * If a status is deleted
341
+ */
342
+ comment?: SCCommentType;
343
+ }
344
+ /**
345
+ * Interface SCNotificationUnDeletedForType.
346
+ * Undeleted for Notification Schema.
347
+ */
348
+ export interface SCNotificationUnDeletedForType extends SCNotificationType {
349
+ /**
350
+ * Type Undeleted for
351
+ */
352
+ type: SCNotificationTypologyType.UNDELETED_FOR;
353
+ /**
354
+ * If a discussion is undeleted
355
+ */
356
+ discussion?: SCFeedDiscussionType;
357
+ /**
358
+ * If a post is undeleted
359
+ */
360
+ post?: SCFeedPostType;
361
+ /**
362
+ * If a comment is undeleted
363
+ */
364
+ status?: SCFeedStatusType;
365
+ /**
366
+ * If a status is undeleted
367
+ */
368
+ comment?: SCCommentType;
369
+ }
370
+ /**
371
+ * Interface SCNotificationUserFollowType.
372
+ * User Follow Notification Schema.
373
+ */
374
+ export interface SCNotificationUserFollowType extends SCNotificationType {
375
+ /**
376
+ * Type User Follow
377
+ */
378
+ type: SCNotificationTypologyType.USER_FOLLOW;
379
+ /**
380
+ * Follower
381
+ */
382
+ follower: SCUserType;
383
+ }
384
+ /**
385
+ * Interface SCNotificationIncubatorType.
386
+ * The incubator proposed by the user has been approved
387
+ */
388
+ export interface SCNotificationIncubatorType extends SCNotificationType {
389
+ /**
390
+ * Type Incubator Approved
391
+ */
392
+ type: SCNotificationTypologyType.INCUBATOR_APPROVED;
393
+ /**
394
+ * Incubator
395
+ */
396
+ incubator: SCIncubatorType;
397
+ }
398
+ /**
399
+ * Interface SCNotificationCustomNotificationType.
400
+ * CustomNotification Notification Schema.
401
+ */
402
+ export interface SCNotificationCustomNotificationType extends SCNotificationType {
403
+ /**
404
+ * Type User Follow
405
+ */
406
+ type: SCNotificationTypologyType.CUSTOM_NOTIFICATION;
407
+ /**
408
+ * User generate the custom notification
409
+ */
410
+ user: SCUserType;
411
+ /**
412
+ * Custom notification data
413
+ */
414
+ custom_notification: SCCustomNotificationType;
415
+ }
416
+ /**
417
+ * Interface SCNotificationUnseenCountType
418
+ */
419
+ export interface SCNotificationUnseenCountType {
420
+ count: number;
421
+ }
422
+ //# sourceMappingURL=notification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/types/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAC3G,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAC,yBAAyB,EAAC,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C;;G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,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB;IACtE;;OAEG;IACH,IAAI,EAAE,0BAA0B,CAAC,WAAW,CAAC;IAE7C;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,kBAAkB;IACrE;;OAEG;IACH,IAAI,EAAE,0BAA0B,CAAC,kBAAkB,CAAC;IAEpD;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,oCAAqC,SAAQ,kBAAkB;IAC9E;;OAEG;IACH,IAAI,EAAE,0BAA0B,CAAC,mBAAmB,CAAC;IAErD;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,mBAAmB,EAAE,wBAAwB,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,68 +1,53 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.SCNotificationTypologyType = exports.SCNotificationTopicType = void 0;
5
-
6
1
  /**
7
2
  * Notification types
8
3
  */
9
- let SCNotificationTypologyType;
4
+ export var SCNotificationTypologyType;
5
+ (function (SCNotificationTypologyType) {
6
+ SCNotificationTypologyType["COMMENT"] = "comment";
7
+ SCNotificationTypologyType["NESTED_COMMENT"] = "nested_comment";
8
+ SCNotificationTypologyType["CONNECTION_REQUEST"] = "connection_request";
9
+ SCNotificationTypologyType["CONNECTION_ACCEPT"] = "connection_accept";
10
+ SCNotificationTypologyType["CONNECTION_REMOVE"] = "connection_remove";
11
+ SCNotificationTypologyType["CONNECTION_REJECT"] = "connection_reject";
12
+ SCNotificationTypologyType["CONNECTION_CANCEL_REJECT"] = "connection_cancel_reject";
13
+ SCNotificationTypologyType["CONNECTION_CANCEL_REQUEST"] = "connection_cancel_reject";
14
+ SCNotificationTypologyType["MENTION"] = "mention";
15
+ SCNotificationTypologyType["VOTE_UP"] = "vote_up";
16
+ SCNotificationTypologyType["FOLLOW"] = "follow";
17
+ SCNotificationTypologyType["PRIVATE_MESSAGE"] = "private_message";
18
+ SCNotificationTypologyType["DELETE_PRIVATE_MESSAGE"] = "delete_private_message";
19
+ SCNotificationTypologyType["DELETED_FOR_ADVERTISING"] = "deleted_for_advertising";
20
+ SCNotificationTypologyType["DELETED_FOR_AGGRESSIVE"] = "deleted_for_aggressive";
21
+ SCNotificationTypologyType["DELETED_FOR_VULGAR"] = "deleted_for_vulgar";
22
+ SCNotificationTypologyType["DELETED_FOR_POOR"] = "deleted_for_poor";
23
+ SCNotificationTypologyType["DELETED_FOR_OFFTOPIC"] = "deleted_for_offtopic";
24
+ SCNotificationTypologyType["UNDELETED_FOR"] = "undeleted_for";
25
+ SCNotificationTypologyType["COLLAPSED_FOR_ADVERTISING"] = "collapsed_for_advertising";
26
+ SCNotificationTypologyType["COLLAPSED_FOR_AGGRESSIVE"] = "collapsed_for_aggressive";
27
+ SCNotificationTypologyType["COLLAPSED_FOR_VULGAR"] = "collapsed_for_vulgar";
28
+ SCNotificationTypologyType["COLLAPSED_FOR_POOR"] = "collapsed_for_poor";
29
+ SCNotificationTypologyType["COLLAPSED_FOR_OFFTOPIC"] = "collapsed_for_offtopic";
30
+ SCNotificationTypologyType["USER_FOLLOW"] = "user_follow";
31
+ SCNotificationTypologyType["USER_UNFOLLOW"] = "user_unfollow";
32
+ SCNotificationTypologyType["KINDLY_NOTICE_ADVERTISING"] = "kindly_notice_advertising";
33
+ SCNotificationTypologyType["KINDLY_NOTICE_AGGRESSIVE"] = "kindly_notice_aggressive";
34
+ SCNotificationTypologyType["KINDLY_NOTICE_VULGAR"] = "kindly_notice_vulgar";
35
+ SCNotificationTypologyType["KINDLY_NOTICE_POOR"] = "kindly_notice_poor";
36
+ SCNotificationTypologyType["KINDLY_NOTICE_OFFTOPIC"] = "kindly_notice_offtopic";
37
+ SCNotificationTypologyType["KINDLY_NOTICE_FLAG"] = "kindly_notice_flag";
38
+ SCNotificationTypologyType["BLOCKED_USER"] = "blocked_user";
39
+ SCNotificationTypologyType["UNBLOCKED_USER"] = "unblocked_user";
40
+ SCNotificationTypologyType["INCUBATOR_APPROVED"] = "incubator_approved";
41
+ SCNotificationTypologyType["CUSTOM_NOTIFICATION"] = "custom_notification";
42
+ SCNotificationTypologyType["NOTIFICATION_BANNER"] = "notification_banner";
43
+ })(SCNotificationTypologyType || (SCNotificationTypologyType = {}));
10
44
  /**
11
45
  * Define topic for notifications
12
46
  * Usefull for websocket
13
47
  */
14
-
15
- exports.SCNotificationTypologyType = SCNotificationTypologyType;
16
-
17
- (function (SCNotificationTypologyType) {
18
- SCNotificationTypologyType["COMMENT"] = "comment";
19
- SCNotificationTypologyType["NESTED_COMMENT"] = "nested_comment";
20
- SCNotificationTypologyType["CONNECTION_REQUEST"] = "connection_request";
21
- SCNotificationTypologyType["CONNECTION_ACCEPT"] = "connection_accept";
22
- SCNotificationTypologyType["CONNECTION_REMOVE"] = "connection_remove";
23
- SCNotificationTypologyType["CONNECTION_REJECT"] = "connection_reject";
24
- SCNotificationTypologyType["CONNECTION_CANCEL_REJECT"] = "connection_cancel_reject";
25
- SCNotificationTypologyType["CONNECTION_CANCEL_REQUEST"] = "connection_cancel_reject";
26
- SCNotificationTypologyType["MENTION"] = "mention";
27
- SCNotificationTypologyType["VOTE_UP"] = "vote_up";
28
- SCNotificationTypologyType["FOLLOW"] = "follow";
29
- SCNotificationTypologyType["PRIVATE_MESSAGE"] = "private_message";
30
- SCNotificationTypologyType["DELETE_PRIVATE_MESSAGE"] = "delete_private_message";
31
- SCNotificationTypologyType["DELETED_FOR_ADVERTISING"] = "deleted_for_advertising";
32
- SCNotificationTypologyType["DELETED_FOR_AGGRESSIVE"] = "deleted_for_aggressive";
33
- SCNotificationTypologyType["DELETED_FOR_VULGAR"] = "deleted_for_vulgar";
34
- SCNotificationTypologyType["DELETED_FOR_POOR"] = "deleted_for_poor";
35
- SCNotificationTypologyType["DELETED_FOR_OFFTOPIC"] = "deleted_for_offtopic";
36
- SCNotificationTypologyType["UNDELETED_FOR"] = "undeleted_for";
37
- SCNotificationTypologyType["COLLAPSED_FOR_ADVERTISING"] = "collapsed_for_advertising";
38
- SCNotificationTypologyType["COLLAPSED_FOR_AGGRESSIVE"] = "collapsed_for_aggressive";
39
- SCNotificationTypologyType["COLLAPSED_FOR_VULGAR"] = "collapsed_for_vulgar";
40
- SCNotificationTypologyType["COLLAPSED_FOR_POOR"] = "collapsed_for_poor";
41
- SCNotificationTypologyType["COLLAPSED_FOR_OFFTOPIC"] = "collapsed_for_offtopic";
42
- SCNotificationTypologyType["USER_FOLLOW"] = "user_follow";
43
- SCNotificationTypologyType["USER_UNFOLLOW"] = "user_unfollow";
44
- SCNotificationTypologyType["KINDLY_NOTICE_ADVERTISING"] = "kindly_notice_advertising";
45
- SCNotificationTypologyType["KINDLY_NOTICE_AGGRESSIVE"] = "kindly_notice_aggressive";
46
- SCNotificationTypologyType["KINDLY_NOTICE_VULGAR"] = "kindly_notice_vulgar";
47
- SCNotificationTypologyType["KINDLY_NOTICE_POOR"] = "kindly_notice_poor";
48
- SCNotificationTypologyType["KINDLY_NOTICE_OFFTOPIC"] = "kindly_notice_offtopic";
49
- SCNotificationTypologyType["KINDLY_NOTICE_FLAG"] = "kindly_notice_flag";
50
- SCNotificationTypologyType["BLOCKED_USER"] = "blocked_user";
51
- SCNotificationTypologyType["UNBLOCKED_USER"] = "unblocked_user";
52
- SCNotificationTypologyType["INCUBATOR_APPROVED"] = "incubator_approved";
53
- SCNotificationTypologyType["CUSTOM_NOTIFICATION"] = "custom_notification";
54
- SCNotificationTypologyType["NOTIFICATION_BANNER"] = "notification_banner";
55
- })(SCNotificationTypologyType || (exports.SCNotificationTypologyType = SCNotificationTypologyType = {}));
56
-
57
- let SCNotificationTopicType;
58
- /**
59
- * Interface SCNotificationAggregatedType.
60
- * Notification aggregated Schema.
61
- */
62
-
63
- exports.SCNotificationTopicType = SCNotificationTopicType;
64
-
48
+ export var SCNotificationTopicType;
65
49
  (function (SCNotificationTopicType) {
66
- SCNotificationTopicType["INTERACTION"] = "interaction";
67
- SCNotificationTopicType["NEWS"] = "news";
68
- })(SCNotificationTopicType || (exports.SCNotificationTopicType = SCNotificationTopicType = {}));
50
+ SCNotificationTopicType["INTERACTION"] = "interaction";
51
+ SCNotificationTopicType["NEWS"] = "news";
52
+ })(SCNotificationTopicType || (SCNotificationTopicType = {}));
53
+ //# sourceMappingURL=notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../src/types/notification.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,CAAN,IAAY,0BAsCX;AAtCD,WAAY,0BAA0B;IACpC,iDAAmB,CAAA;IACnB,+DAAiC,CAAA;IACjC,uEAAyC,CAAA;IACzC,qEAAuC,CAAA;IACvC,qEAAuC,CAAA;IACvC,qEAAuC,CAAA;IACvC,mFAAqD,CAAA;IACrD,oFAAsD,CAAA;IACtD,iDAAmB,CAAA;IACnB,iDAAmB,CAAA;IACnB,+CAAiB,CAAA;IACjB,iEAAmC,CAAA;IACnC,+EAAiD,CAAA;IACjD,iFAAmD,CAAA;IACnD,+EAAiD,CAAA;IACjD,uEAAyC,CAAA;IACzC,mEAAqC,CAAA;IACrC,2EAA6C,CAAA;IAC7C,6DAA+B,CAAA;IAC/B,qFAAuD,CAAA;IACvD,mFAAqD,CAAA;IACrD,2EAA6C,CAAA;IAC7C,uEAAyC,CAAA;IACzC,+EAAiD,CAAA;IACjD,yDAA2B,CAAA;IAC3B,6DAA+B,CAAA;IAC/B,qFAAuD,CAAA;IACvD,mFAAqD,CAAA;IACrD,2EAA6C,CAAA;IAC7C,uEAAyC,CAAA;IACzC,+EAAiD,CAAA;IACjD,uEAAyC,CAAA;IACzC,2DAA6B,CAAA;IAC7B,+DAAiC,CAAA;IACjC,uEAAyC,CAAA;IACzC,yEAA2C,CAAA;IAC3C,yEAA2C,CAAA;AAC7C,CAAC,EAtCW,0BAA0B,KAA1B,0BAA0B,QAsCrC;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,sDAA2B,CAAA;IAC3B,wCAAa,CAAA;AACf,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC"}
@@ -0,0 +1,9 @@
1
+ import { SCAuthTokenType } from './auth';
2
+ /**
3
+ * SCPlatformType interface
4
+ */
5
+ export interface SCPlatformType {
6
+ platform_url: string;
7
+ token_details: SCAuthTokenType;
8
+ }
9
+ //# sourceMappingURL=platform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../src/types/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AACvC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,eAAe,CAAC;CAChC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=platform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../../src/types/platform.ts"],"names":[],"mappings":""}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Interface SCPoll.
3
+ * Poll Schema.
4
+ */
5
+ import { SCUserType } from './user';
6
+ export interface SCPollType {
7
+ /**
8
+ * Id of the poll
9
+ */
10
+ id?: number;
11
+ /**
12
+ * Title of the poll
13
+ */
14
+ title?: string;
15
+ /**
16
+ * Poll is multiple choices or not
17
+ */
18
+ multiple_choices: boolean;
19
+ /**
20
+ * Added at
21
+ */
22
+ added_at?: Date;
23
+ /**
24
+ * Modified at
25
+ */
26
+ modified_at?: Date;
27
+ /**
28
+ * Poll is closed or not
29
+ */
30
+ closed?: boolean;
31
+ /**
32
+ * Expiration at
33
+ */
34
+ expiration_at: string | Date;
35
+ /**
36
+ * Expiration at
37
+ */
38
+ hidden?: boolean;
39
+ /**
40
+ * Choice
41
+ */
42
+ choices: SCPollChoiceType[];
43
+ }
44
+ /**
45
+ * Interface SCPollChoice.
46
+ * Poll Choice Schema.
47
+ */
48
+ export interface SCPollChoiceType {
49
+ /**
50
+ * Id of the poll choice
51
+ */
52
+ id?: number;
53
+ /**
54
+ * Title of the poll
55
+ */
56
+ choice: string;
57
+ /**
58
+ * Order in the list of choices
59
+ */
60
+ order?: number;
61
+ /**
62
+ * Added at
63
+ */
64
+ added_at?: Date;
65
+ /**
66
+ * True if the poll is deleted
67
+ */
68
+ deleted?: boolean;
69
+ /**
70
+ * Number of votes
71
+ */
72
+ vote_count?: number;
73
+ /**
74
+ * True if the logged user has already voted the choice
75
+ */
76
+ voted?: boolean;
77
+ }
78
+ /**
79
+ * SCPollVoteType interface
80
+ * Poll Vote Schema
81
+ */
82
+ export interface SCPollVoteType {
83
+ id?: number;
84
+ choice?: number;
85
+ user?: SCUserType;
86
+ }
87
+ //# sourceMappingURL=poll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../../src/types/poll.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AAEH,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
1
+ export {};
2
+ //# sourceMappingURL=poll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll.js","sourceRoot":"","sources":["../../../src/types/poll.ts"],"names":[],"mappings":""}