@selfcommunity/types 0.1.2-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 (84) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +12 -0
  3. package/lib/cjs/index.d.js +2 -0
  4. package/lib/cjs/index.js +64 -0
  5. package/lib/cjs/types/auth.js +3 -0
  6. package/lib/cjs/types/broadcastMessage.js +15 -0
  7. package/lib/cjs/types/category.js +3 -0
  8. package/lib/cjs/types/comment.js +28 -0
  9. package/lib/cjs/types/customAdv.js +17 -0
  10. package/lib/cjs/types/customNotification.js +3 -0
  11. package/lib/cjs/types/embed.js +3 -0
  12. package/lib/cjs/types/feed.js +48 -0
  13. package/lib/cjs/types/incubator.js +3 -0
  14. package/lib/cjs/types/index.js +112 -0
  15. package/lib/cjs/types/location.js +3 -0
  16. package/lib/cjs/types/media.js +3 -0
  17. package/lib/cjs/types/notification.js +68 -0
  18. package/lib/cjs/types/poll.js +3 -0
  19. package/lib/cjs/types/privateMessage.js +36 -0
  20. package/lib/cjs/types/prize.js +3 -0
  21. package/lib/cjs/types/tag.js +3 -0
  22. package/lib/cjs/types/user.js +41 -0
  23. package/lib/esm/index.d.js +2 -0
  24. package/lib/esm/index.d.ts +9 -0
  25. package/lib/esm/index.d.ts.map +1 -0
  26. package/lib/esm/index.js +64 -0
  27. package/lib/esm/types/auth.d.ts +26 -0
  28. package/lib/esm/types/auth.d.ts.map +1 -0
  29. package/lib/esm/types/auth.js +3 -0
  30. package/lib/esm/types/broadcastMessage.d.ts +73 -0
  31. package/lib/esm/types/broadcastMessage.d.ts.map +1 -0
  32. package/lib/esm/types/broadcastMessage.js +15 -0
  33. package/lib/esm/types/category.d.ts +100 -0
  34. package/lib/esm/types/category.d.ts.map +1 -0
  35. package/lib/esm/types/category.js +3 -0
  36. package/lib/esm/types/comment.d.ts +97 -0
  37. package/lib/esm/types/comment.d.ts.map +1 -0
  38. package/lib/esm/types/comment.js +28 -0
  39. package/lib/esm/types/customAdv.d.ts +53 -0
  40. package/lib/esm/types/customAdv.d.ts.map +1 -0
  41. package/lib/esm/types/customAdv.js +17 -0
  42. package/lib/esm/types/customNotification.d.ts +28 -0
  43. package/lib/esm/types/customNotification.d.ts.map +1 -0
  44. package/lib/esm/types/customNotification.js +3 -0
  45. package/lib/esm/types/embed.d.ts +33 -0
  46. package/lib/esm/types/embed.d.ts.map +1 -0
  47. package/lib/esm/types/embed.js +3 -0
  48. package/lib/esm/types/feed.d.ts +208 -0
  49. package/lib/esm/types/feed.d.ts.map +1 -0
  50. package/lib/esm/types/feed.js +48 -0
  51. package/lib/esm/types/incubator.d.ts +53 -0
  52. package/lib/esm/types/incubator.d.ts.map +1 -0
  53. package/lib/esm/types/incubator.js +3 -0
  54. package/lib/esm/types/index.d.ts +22 -0
  55. package/lib/esm/types/index.d.ts.map +1 -0
  56. package/lib/esm/types/index.js +112 -0
  57. package/lib/esm/types/location.d.ts +61 -0
  58. package/lib/esm/types/location.d.ts.map +1 -0
  59. package/lib/esm/types/location.js +3 -0
  60. package/lib/esm/types/media.d.ts +52 -0
  61. package/lib/esm/types/media.d.ts.map +1 -0
  62. package/lib/esm/types/media.js +3 -0
  63. package/lib/esm/types/notification.d.ts +416 -0
  64. package/lib/esm/types/notification.d.ts.map +1 -0
  65. package/lib/esm/types/notification.js +68 -0
  66. package/lib/esm/types/poll.d.ts +77 -0
  67. package/lib/esm/types/poll.d.ts.map +1 -0
  68. package/lib/esm/types/poll.js +3 -0
  69. package/lib/esm/types/privateMessage.d.ts +109 -0
  70. package/lib/esm/types/privateMessage.d.ts.map +1 -0
  71. package/lib/esm/types/privateMessage.js +36 -0
  72. package/lib/esm/types/prize.d.ts +48 -0
  73. package/lib/esm/types/prize.d.ts.map +1 -0
  74. package/lib/esm/types/prize.js +3 -0
  75. package/lib/esm/types/tag.d.ts +47 -0
  76. package/lib/esm/types/tag.d.ts.map +1 -0
  77. package/lib/esm/types/tag.js +3 -0
  78. package/lib/esm/types/user.d.ts +227 -0
  79. package/lib/esm/types/user.d.ts.map +1 -0
  80. package/lib/esm/types/user.js +41 -0
  81. package/lib/umd/types.js +3 -0
  82. package/lib/umd/types.js.LICENSE.txt +1 -0
  83. package/lib/umd/types.js.map +1 -0
  84. package/package.json +105 -0
@@ -0,0 +1,416 @@
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
+ //# 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,EAAiB,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAC3H,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,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AAE,aAAa,CAAC;CACzB;AAED;;;GAGG;AACH,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"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.SCNotificationTypologyType = exports.SCNotificationTopicType = void 0;
5
+
6
+ /**
7
+ * Notification types
8
+ */
9
+ let SCNotificationTypologyType;
10
+ /**
11
+ * Define topic for notifications
12
+ * Usefull for websocket
13
+ */
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
+
65
+ (function (SCNotificationTopicType) {
66
+ SCNotificationTopicType["INTERACTION"] = "interaction";
67
+ SCNotificationTopicType["NEWS"] = "news";
68
+ })(SCNotificationTopicType || (exports.SCNotificationTopicType = SCNotificationTopicType = {}));
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Interface SCPoll.
3
+ * Poll Schema.
4
+ */
5
+ export interface SCPollType {
6
+ /**
7
+ * Id of the poll
8
+ */
9
+ id?: number;
10
+ /**
11
+ * Title of the poll
12
+ */
13
+ title?: string;
14
+ /**
15
+ * Poll is multiple choices or not
16
+ */
17
+ multiple_choices: boolean;
18
+ /**
19
+ * Added at
20
+ */
21
+ added_at?: Date;
22
+ /**
23
+ * Modified at
24
+ */
25
+ modified_at?: Date;
26
+ /**
27
+ * Poll is closed or not
28
+ */
29
+ closed?: boolean;
30
+ /**
31
+ * Expiration at
32
+ */
33
+ expiration_at: string | Date;
34
+ /**
35
+ * Expiration at
36
+ */
37
+ hidden?: boolean;
38
+ /**
39
+ * Choice
40
+ */
41
+ choices: SCPollChoiceType[];
42
+ }
43
+ /**
44
+ * Interface SCPollChoice.
45
+ * Poll Choice Schema.
46
+ */
47
+ export interface SCPollChoiceType {
48
+ /**
49
+ * Id of the poll choice
50
+ */
51
+ id?: number;
52
+ /**
53
+ * Title of the poll
54
+ */
55
+ choice: string;
56
+ /**
57
+ * Order in the list of choices
58
+ */
59
+ order?: number;
60
+ /**
61
+ * Added at
62
+ */
63
+ added_at?: Date;
64
+ /**
65
+ * True if the poll is deleted
66
+ */
67
+ deleted?: boolean;
68
+ /**
69
+ * Number of votes
70
+ */
71
+ vote_count?: number;
72
+ /**
73
+ * True if the logged user has already voted the choice
74
+ */
75
+ voted?: boolean;
76
+ }
77
+ //# 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,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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Interface SCPrivateMessageType.
3
+ * Private Message Schema.
4
+ */
5
+ import { SCUserType } from './user';
6
+ export interface SCPrivateMessageType {
7
+ /**
8
+ * Message status: created, deleted or hidden message
9
+ */
10
+ status: string;
11
+ /**
12
+ * Id of the message
13
+ */
14
+ id: number;
15
+ /**
16
+ * Sender User
17
+ */
18
+ sender: SCUserType;
19
+ /**
20
+ *Receiver User
21
+ */
22
+ receiver: SCUserType;
23
+ /**
24
+ * Message
25
+ */
26
+ html: string;
27
+ /**
28
+ * Send date time
29
+ */
30
+ created_at: Date | string;
31
+ /**
32
+ * Last interaction date time
33
+ */
34
+ last_message_at: Date;
35
+ /**
36
+ * Message status: created, deleted or hidden message
37
+ */
38
+ thread_status: SCPrivateMessageStatusType;
39
+ /**
40
+ * file
41
+ */
42
+ file?: SCPrivateMessageFileType;
43
+ /**
44
+ * Headline
45
+ */
46
+ headline: string;
47
+ /**
48
+ * Message content
49
+ */
50
+ message: string;
51
+ }
52
+ /**
53
+ * Private Message status:
54
+ * created, deleted or hidden message
55
+ */
56
+ export declare enum SCPrivateMessageStatusType {
57
+ CREATED = "created",
58
+ DELETED = "deleted",
59
+ HIDDEN = "hidden",
60
+ NEW = "new"
61
+ }
62
+ export interface SCPrivateMessageFileType {
63
+ /**
64
+ * The file id
65
+ */
66
+ uuid?: string;
67
+ /**
68
+ * File name
69
+ */
70
+ filename?: string;
71
+ /**
72
+ * File size
73
+ */
74
+ filesize?: number;
75
+ /**
76
+ * The type of the file
77
+ */
78
+ mimetype?: SCMessageFileType;
79
+ /**
80
+ * The duration (in seconds) of the file
81
+ */
82
+ duration?: number;
83
+ /**
84
+ * File Url
85
+ */
86
+ url?: string;
87
+ /**
88
+ * File thumbnail
89
+ */
90
+ thumbnail?: string;
91
+ /**
92
+ * File Url(response)
93
+ */
94
+ file_url?: string;
95
+ /**
96
+ * The file id(response)
97
+ */
98
+ file_uuid?: string;
99
+ }
100
+ /**
101
+ * Private Message status:
102
+ * created, deleted or hidden message
103
+ */
104
+ export declare enum SCMessageFileType {
105
+ DOCUMENT = "application/",
106
+ IMAGE = "image/",
107
+ VIDEO = "video/"
108
+ }
109
+ //# sourceMappingURL=privateMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateMessage.d.ts","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,0BAA0B,CAAC;IAE1C;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,C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