@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,36 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.SCPrivateMessageStatusType = exports.SCMessageFileType = void 0;
5
+
6
+ /**
7
+ * Interface SCPrivateMessageType.
8
+ * Private Message Schema.
9
+ */
10
+
11
+ /**
12
+ * Private Message status:
13
+ * created, deleted or hidden message
14
+ */
15
+ let SCPrivateMessageStatusType;
16
+ exports.SCPrivateMessageStatusType = SCPrivateMessageStatusType;
17
+
18
+ (function (SCPrivateMessageStatusType) {
19
+ SCPrivateMessageStatusType["CREATED"] = "created";
20
+ SCPrivateMessageStatusType["DELETED"] = "deleted";
21
+ SCPrivateMessageStatusType["HIDDEN"] = "hidden";
22
+ SCPrivateMessageStatusType["NEW"] = "new";
23
+ })(SCPrivateMessageStatusType || (exports.SCPrivateMessageStatusType = SCPrivateMessageStatusType = {}));
24
+
25
+ /**
26
+ * Private Message status:
27
+ * created, deleted or hidden message
28
+ */
29
+ let SCMessageFileType;
30
+ exports.SCMessageFileType = SCMessageFileType;
31
+
32
+ (function (SCMessageFileType) {
33
+ SCMessageFileType["DOCUMENT"] = "application/";
34
+ SCMessageFileType["IMAGE"] = "image/";
35
+ SCMessageFileType["VIDEO"] = "video/";
36
+ })(SCMessageFileType || (exports.SCMessageFileType = SCMessageFileType = {}));
@@ -0,0 +1,48 @@
1
+ import { SCUserType } from './user';
2
+ /**
3
+ * Interface SCPrizeType.
4
+ * Prize Schema.
5
+ */
6
+ export interface SCPrizeType {
7
+ /**
8
+ * The ID of the prize.
9
+ */
10
+ id: number;
11
+ /**
12
+ * The active status of the prize.
13
+ */
14
+ active?: boolean;
15
+ /**
16
+ * The title of the prize.
17
+ */
18
+ title?: string;
19
+ /**
20
+ * The prize description.
21
+ */
22
+ description?: string;
23
+ /**
24
+ * Points to request the prize.
25
+ */
26
+ points?: number;
27
+ /**
28
+ * Date of prize creation.
29
+ */
30
+ created_at?: Date;
31
+ /**
32
+ * Date of last modify.
33
+ */
34
+ lastmod_datetime?: Date;
35
+ /**
36
+ * The prize creator.
37
+ */
38
+ created_by?: SCUserType;
39
+ /**
40
+ * The prize image.
41
+ */
42
+ image?: string;
43
+ /**
44
+ * Link to a web resource for the prize.
45
+ */
46
+ link?: string;
47
+ }
48
+ //# sourceMappingURL=prize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prize.d.ts","sourceRoot":"","sources":["../../../src/types/prize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Interface SCTagType.
3
+ * Tag Schema.
4
+ */
5
+ export interface SCTagType {
6
+ /**
7
+ * Unique integer value identifying this tag.
8
+ */
9
+ id: number;
10
+ /**
11
+ * The type of the tag (unique together name).
12
+ */
13
+ type?: string;
14
+ /**
15
+ * The name of the tag (unique together type).
16
+ */
17
+ name: string;
18
+ /**
19
+ * Short description of the tag.
20
+ */
21
+ description: string;
22
+ /**
23
+ * Hexadecimal format color code with prefix '#'.
24
+ */
25
+ color: string;
26
+ /**
27
+ * Tag publicly visible.
28
+ */
29
+ visible?: boolean;
30
+ /**
31
+ * The tag has a visibility boost.
32
+ */
33
+ visibility_boost?: boolean;
34
+ /**
35
+ * Creation date time.
36
+ */
37
+ created_at?: string;
38
+ /**
39
+ * Tag active or not
40
+ */
41
+ active?: boolean;
42
+ /**
43
+ * Tag deleted or not
44
+ */
45
+ deleted: boolean;
46
+ }
47
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
@@ -0,0 +1,227 @@
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
+ * User role
170
+ */
171
+ role: string;
172
+ /**
173
+ * interactions counter
174
+ */
175
+ unseen_interactions_counter?: number;
176
+ /**
177
+ * notification banner counter
178
+ */
179
+ unseen_notification_banners_counter?: number;
180
+ }
181
+ /**
182
+ * User Settings
183
+ */
184
+ export interface SCUserSettingsType {
185
+ /**
186
+ * Frequency of the email notifications for all interactions (except for private messages notifications)
187
+ */
188
+ qa_frequency: number;
189
+ /**
190
+ * Enable private messages notifications also via mail
191
+ */
192
+ email_notification_not_qa: number;
193
+ /**
194
+ * Enable mobile app/PWA notifications
195
+ */
196
+ mobile_notifications_scmty: number;
197
+ /**
198
+ * Shows a popup when the user receive a notification
199
+ */
200
+ show_toast_notifications: number;
201
+ /**
202
+ * Emit a sound when the notification popup is shown. See 'show_toast_notifications'
203
+ */
204
+ toast_notifications_emit_sound: number;
205
+ }
206
+ /**
207
+ * User Blocked Settings
208
+ */
209
+ export interface SCUserBlockedSettingsType {
210
+ /**
211
+ * N° days of block
212
+ */
213
+ days_blocked: number;
214
+ /**
215
+ * Reputation stolen
216
+ */
217
+ reputation_delta: number;
218
+ /**
219
+ * Start User Block datetime
220
+ */
221
+ blocked_at?: Date;
222
+ /**
223
+ * End User Block datetime
224
+ */
225
+ expire_at?: Date;
226
+ }
227
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.SCUserStatus = exports.SCUserFields = void 0;
5
+
6
+ /**
7
+ * Interface SCUserType.
8
+ * User Schema.
9
+ */
10
+
11
+ /**
12
+ * User Fields
13
+ */
14
+ let SCUserFields;
15
+ /**
16
+ * User status
17
+ */
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
+
36
+ (function (SCUserStatus) {
37
+ SCUserStatus["APPROVED"] = "a";
38
+ SCUserStatus["BLOCKED"] = "b";
39
+ SCUserStatus["DELETED"] = "d";
40
+ SCUserStatus["UNREGISTERED"] = "u";
41
+ })(SCUserStatus || (exports.SCUserStatus = SCUserStatus = {}));
@@ -0,0 +1,3 @@
1
+ /*! For license information please see types.js.LICENSE.txt */
2
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.SelfCommunityTypes=o():e.SelfCommunityTypes=o()}(self,(()=>(()=>{"use strict";var e={852:(e,o)=>{o.__esModule=!0},665:(e,o)=>{let t;o.__esModule=!0,o.SCBroadcastMessageBannerType=void 0,o.SCBroadcastMessageBannerType=t,function(e){e.HTML="html_banner",e.NOTIFICATION="notification_banner"}(t||(o.SCBroadcastMessageBannerType=t={}))},511:(e,o)=>{o.__esModule=!0},444:(e,o)=>{let t;o.__esModule=!0,o.SCCommentsOrderBy=o.SCCommentTypologyType=void 0,o.SCCommentTypologyType="comment",o.SCCommentsOrderBy=t,function(e){e.ADDED_AT_DESC="-added_at",e.ADDED_AT_ASC="added_at",e.CONNECTION_DESC="-connection",e.CONNECTION_ASC="connection"}(t||(o.SCCommentsOrderBy=t={}))},386:(e,o)=>{let t;o.__esModule=!0,o.SCCustomAdvPosition=void 0,o.SCCustomAdvPosition=t,function(e){e.POSITION_BELOW_TOPBAR="BELOW_TOPBAR",e.POSITION_BELOW_FEED_OBJECT="BELOW_THE_POST",e.POSITION_ABOVE_FOOTER_BAR="ABOVE_FOOTER_BAR",e.POSITION_FOOTER_STICKY="FOOTER_STICKY",e.POSITION_IN_COMMENTS="IN_POST_COMMENTS",e.POSITION_RELATED_POSTS_COLUMN="RELATED_POSTS_COLUMN",e.POSITION_FEED_SIDEBAR="TOOLS_COLUMN",e.POSITION_FEED="IN_STREAM"}(t||(o.SCCustomAdvPosition=t={}))},82:(e,o)=>{o.__esModule=!0},797:(e,o)=>{o.__esModule=!0},505:(e,o)=>{let t,i,C;o.__esModule=!0,o.SCFeedUnitActivityTypologyType=o.SCFeedTypologyType=o.SCFeedObjectTypologyType=void 0,o.SCFeedTypologyType=t,function(e){e.HOME="home",e.EXPLORE="explore"}(t||(o.SCFeedTypologyType=t={})),o.SCFeedObjectTypologyType=i,function(e){e.DISCUSSION="discussion",e.POST="post",e.STATUS="status"}(i||(o.SCFeedObjectTypologyType=i={})),o.SCFeedUnitActivityTypologyType=C,function(e){e.COMMENT="comment",e.VOTE="vote",e.POLLVOTE="pollvote",e.FOLLOW="follow"}(C||(o.SCFeedUnitActivityTypologyType=C={}))},947:(e,o)=>{o.__esModule=!0},994:(e,o,t)=>{o.__esModule=!0;var i=t(852);o.SCAuthTokenType=i.SCAuthTokenType;var C=t(665);o.SCBannerType=C.SCBannerType,o.SCBroadcastMessageBannerType=C.SCBroadcastMessageBannerType,o.SCBroadcastMessageType=C.SCBroadcastMessageType;var T=t(386);o.SCCustomAdvPosition=T.SCCustomAdvPosition,o.SCCustomAdvType=T.SCCustomAdvType;var S=t(967);o.SCUserType=S.SCUserType,o.SCUserBlockedSettingsType=S.SCUserBlockedSettingsType,o.SCUserFields=S.SCUserFields,o.SCUserSettingsType=S.SCUserSettingsType,o.SCUserStatus=S.SCUserStatus;var n=t(549);o.SCTagType=n.SCTagType;var y=t(511);o.SCCategoryType=y.SCCategoryType;var p=t(797);o.SCEmbedType=p.SCEmbedType;var a=t(398);o.SCMediaType=a.SCMediaType;var s=t(714);o.SCContributionLocation=s.SCContributionLocation,o.SCLocalityType=s.SCLocalityType;var c=t(3);o.SCPollChoiceType=c.SCPollChoiceType,o.SCPollType=c.SCPollType;var r=t(444);o.SCCommentType=r.SCCommentType,o.SCCommentTypologyType=r.SCCommentTypologyType,o.SCCommentsOrderBy=r.SCCommentsOrderBy;var d=t(461);o.SCPrivateMessageType=d.SCPrivateMessageType,o.SCPrivateMessageStatusType=d.SCPrivateMessageStatusType,o.SCPrivateMessageFileType=d.SCPrivateMessageFileType,o.SCMessageFileType=d.SCMessageFileType;var l=t(947);o.SCIncubatorType=l.SCIncubatorType;var _=t(82);o.SCCustomNotificationType=_.SCCustomNotificationType;var N=t(303);o.SCPrizeType=N.SCPrizeType;var O=t(505);o.SCFeedUnitType=O.SCFeedUnitType,o.SCFeedUnitActivityType=O.SCFeedUnitActivityType,o.SCFeedObjectType=O.SCFeedObjectType,o.SCFeedPostType=O.SCFeedPostType,o.SCFeedDiscussionType=O.SCFeedDiscussionType,o.SCFeedStatusType=O.SCFeedStatusType,o.SCFeedObjectTypologyType=O.SCFeedObjectTypologyType,o.SCFeedUnitActivityTypologyType=O.SCFeedUnitActivityTypologyType,o.SCFeedTypologyType=O.SCFeedTypologyType;var E=t(768);o.SCNotificationTypologyType=E.SCNotificationTypologyType,o.SCNotificationAggregatedType=E.SCNotificationAggregatedType,o.SCNotificationCommentType=E.SCNotificationCommentType,o.SCNotificationConnectionAcceptType=E.SCNotificationConnectionAcceptType,o.SCNotificationConnectionRequestType=E.SCNotificationConnectionRequestType,o.SCNotificationPrivateMessageType=E.SCNotificationPrivateMessageType,o.SCNotificationMentionType=E.SCNotificationMentionType,o.SCNotificationType=E.SCNotificationType,o.SCNotificationBlockedUserType=E.SCNotificationBlockedUserType,o.SCNotificationCollapsedForType=E.SCNotificationCollapsedForType,o.SCNotificationCustomNotificationType=E.SCNotificationCustomNotificationType,o.SCNotificationDeletedForType=E.SCNotificationDeletedForType,o.SCNotificationFollowType=E.SCNotificationFollowType,o.SCNotificationKindlyNoticeType=E.SCNotificationKindlyNoticeType,o.SCNotificationUnBlockedUserType=E.SCNotificationUnBlockedUserType,o.SCNotificationUnDeletedForType=E.SCNotificationUnDeletedForType,o.SCNotificationUserFollowType=E.SCNotificationUserFollowType,o.SCNotificationVoteUpType=E.SCNotificationVoteUpType,o.SCNotificationIncubatorType=E.SCNotificationIncubatorType,o.SCNotificationTopicType=E.SCNotificationTopicType},714:(e,o)=>{o.__esModule=!0},398:(e,o)=>{o.__esModule=!0},768:(e,o)=>{let t,i;o.__esModule=!0,o.SCNotificationTypologyType=o.SCNotificationTopicType=void 0,o.SCNotificationTypologyType=t,function(e){e.COMMENT="comment",e.NESTED_COMMENT="nested_comment",e.CONNECTION_REQUEST="connection_request",e.CONNECTION_ACCEPT="connection_accept",e.CONNECTION_REMOVE="connection_remove",e.CONNECTION_REJECT="connection_reject",e.CONNECTION_CANCEL_REJECT="connection_cancel_reject",e.CONNECTION_CANCEL_REQUEST="connection_cancel_reject",e.MENTION="mention",e.VOTE_UP="vote_up",e.FOLLOW="follow",e.PRIVATE_MESSAGE="private_message",e.DELETE_PRIVATE_MESSAGE="delete_private_message",e.DELETED_FOR_ADVERTISING="deleted_for_advertising",e.DELETED_FOR_AGGRESSIVE="deleted_for_aggressive",e.DELETED_FOR_VULGAR="deleted_for_vulgar",e.DELETED_FOR_POOR="deleted_for_poor",e.DELETED_FOR_OFFTOPIC="deleted_for_offtopic",e.UNDELETED_FOR="undeleted_for",e.COLLAPSED_FOR_ADVERTISING="collapsed_for_advertising",e.COLLAPSED_FOR_AGGRESSIVE="collapsed_for_aggressive",e.COLLAPSED_FOR_VULGAR="collapsed_for_vulgar",e.COLLAPSED_FOR_POOR="collapsed_for_poor",e.COLLAPSED_FOR_OFFTOPIC="collapsed_for_offtopic",e.USER_FOLLOW="user_follow",e.USER_UNFOLLOW="user_unfollow",e.KINDLY_NOTICE_ADVERTISING="kindly_notice_advertising",e.KINDLY_NOTICE_AGGRESSIVE="kindly_notice_aggressive",e.KINDLY_NOTICE_VULGAR="kindly_notice_vulgar",e.KINDLY_NOTICE_POOR="kindly_notice_poor",e.KINDLY_NOTICE_OFFTOPIC="kindly_notice_offtopic",e.KINDLY_NOTICE_FLAG="kindly_notice_flag",e.BLOCKED_USER="blocked_user",e.UNBLOCKED_USER="unblocked_user",e.INCUBATOR_APPROVED="incubator_approved",e.CUSTOM_NOTIFICATION="custom_notification",e.NOTIFICATION_BANNER="notification_banner"}(t||(o.SCNotificationTypologyType=t={})),o.SCNotificationTopicType=i,function(e){e.INTERACTION="interaction",e.NEWS="news"}(i||(o.SCNotificationTopicType=i={}))},3:(e,o)=>{o.__esModule=!0},461:(e,o)=>{let t,i;o.__esModule=!0,o.SCPrivateMessageStatusType=o.SCMessageFileType=void 0,o.SCPrivateMessageStatusType=t,function(e){e.CREATED="created",e.DELETED="deleted",e.HIDDEN="hidden",e.NEW="new"}(t||(o.SCPrivateMessageStatusType=t={})),o.SCMessageFileType=i,function(e){e.DOCUMENT="application/",e.IMAGE="image/",e.VIDEO="video/"}(i||(o.SCMessageFileType=i={}))},303:(e,o)=>{o.__esModule=!0},549:(e,o)=>{o.__esModule=!0},967:(e,o)=>{let t,i;o.__esModule=!0,o.SCUserStatus=o.SCUserFields=void 0,o.SCUserFields=t,function(e){e.USERNAME="username",e.REAL_NAME="real_name",e.DATE_JOINED="date_joined",e.BIO="bio",e.LOCATION="location",e.DATE_OF_BIRTH="date_of_birth",e.DESCRIPTION="description",e.GENDER="gender",e.WEBSITE="website"}(t||(o.SCUserFields=t={})),o.SCUserStatus=i,function(e){e.APPROVED="a",e.BLOCKED="b",e.DELETED="d",e.UNREGISTERED="u"}(i||(o.SCUserStatus=i={}))}},o={};function t(i){var C=o[i];if(void 0!==C)return C.exports;var T=o[i]={exports:{}};return e[i](T,T.exports,t),T.exports}var i={};return(()=>{var e=i;e.__esModule=!0;var o=t(994);e.SCBroadcastMessageBannerType=o.SCBroadcastMessageBannerType,e.SCBannerType=o.SCBannerType,e.SCBroadcastMessageType=o.SCBroadcastMessageType,e.SCAuthTokenType=o.SCAuthTokenType,e.SCCustomAdvPosition=o.SCCustomAdvPosition,e.SCCustomAdvType=o.SCCustomAdvType,e.SCUserFields=o.SCUserFields,e.SCUserType=o.SCUserType,e.SCUserSettingsType=o.SCUserSettingsType,e.SCUserStatus=o.SCUserStatus,e.SCUserBlockedSettingsType=o.SCUserBlockedSettingsType,e.SCTagType=o.SCTagType,e.SCCategoryType=o.SCCategoryType,e.SCEmbedType=o.SCEmbedType,e.SCMediaType=o.SCMediaType,e.SCContributionLocation=o.SCContributionLocation,e.SCLocalityType=o.SCLocalityType,e.SCPollChoiceType=o.SCPollChoiceType,e.SCPollType=o.SCPollType,e.SCFeedUnitType=o.SCFeedUnitType,e.SCFeedUnitActivityType=o.SCFeedUnitActivityType,e.SCFeedObjectType=o.SCFeedObjectType,e.SCFeedPostType=o.SCFeedPostType,e.SCFeedDiscussionType=o.SCFeedDiscussionType,e.SCFeedStatusType=o.SCFeedStatusType,e.SCFeedObjectTypologyType=o.SCFeedObjectTypologyType,e.SCFeedUnitActivityTypologyType=o.SCFeedUnitActivityTypologyType,e.SCFeedTypologyType=o.SCFeedTypologyType,e.SCCommentTypologyType=o.SCCommentTypologyType,e.SCCommentsOrderBy=o.SCCommentsOrderBy,e.SCCommentType=o.SCCommentType,e.SCPrivateMessageType=o.SCPrivateMessageType,e.SCPrivateMessageStatusType=o.SCPrivateMessageStatusType,e.SCPrivateMessageFileType=o.SCPrivateMessageFileType,e.SCMessageFileType=o.SCMessageFileType,e.SCNotificationTypologyType=o.SCNotificationTypologyType,e.SCNotificationAggregatedType=o.SCNotificationAggregatedType,e.SCNotificationCommentType=o.SCNotificationCommentType,e.SCNotificationConnectionAcceptType=o.SCNotificationConnectionAcceptType,e.SCNotificationConnectionRequestType=o.SCNotificationConnectionRequestType,e.SCNotificationPrivateMessageType=o.SCNotificationPrivateMessageType,e.SCNotificationMentionType=o.SCNotificationMentionType,e.SCNotificationType=o.SCNotificationType,e.SCNotificationBlockedUserType=o.SCNotificationBlockedUserType,e.SCNotificationCollapsedForType=o.SCNotificationCollapsedForType,e.SCNotificationCustomNotificationType=o.SCNotificationCustomNotificationType,e.SCNotificationDeletedForType=o.SCNotificationDeletedForType,e.SCNotificationFollowType=o.SCNotificationFollowType,e.SCNotificationKindlyNoticeType=o.SCNotificationKindlyNoticeType,e.SCNotificationUnBlockedUserType=o.SCNotificationUnBlockedUserType,e.SCNotificationUnDeletedForType=o.SCNotificationUnDeletedForType,e.SCNotificationUserFollowType=o.SCNotificationUserFollowType,e.SCNotificationVoteUpType=o.SCNotificationVoteUpType,e.SCCustomNotificationType=o.SCCustomNotificationType,e.SCIncubatorType=o.SCIncubatorType,e.SCNotificationIncubatorType=o.SCNotificationIncubatorType,e.SCNotificationTopicType=o.SCNotificationTopicType,e.SCPrizeType=o.SCPrizeType})(),i})()));
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ /*! (c) 2022 - present: Quentral Srl | https://github.com/selfcommunity/community-js/blob/master/LICENSE.md */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAA4B,mBAAID,IAEhCD,EAAyB,mBAAIC,IAR/B,CASGK,MAAM,IACT,uECPYC,kGAAAA,GAAAA,EAAAA,KAAAA,cAAAA,EAAAA,aAAAA,uBAAAA,IAAAA,EAAAA,6BAAAA,EAAAA,mDC4GAC,6FA1GyB,yCA0GzBA,GAAAA,EAAAA,cAAAA,YAAAA,EAAAA,aAAAA,WAAAA,EAAAA,gBAAAA,cAAAA,EAAAA,eAAAA,cAAAA,IAAAA,EAAAA,kBAAAA,EAAAA,sBC/GAC,gFAAAA,GAAAA,EAAAA,sBAAAA,eAAAA,EAAAA,2BAAAA,iBAAAA,EAAAA,0BAAAA,mBAAAA,EAAAA,uBAAAA,gBAAAA,EAAAA,qBAAAA,mBAAAA,EAAAA,8BAAAA,uBAAAA,EAAAA,sBAAAA,eAAAA,EAAAA,cAAAA,aAAAA,IAAAA,EAAAA,oBAAAA,EAAAA,+ECUAC,EAQAC,EA+CAC,0IAvDAF,GAAAA,EAAAA,KAAAA,OAAAA,EAAAA,QAAAA,WAAAA,IAAAA,EAAAA,mBAAAA,EAAAA,2CAQAC,GAAAA,EAAAA,WAAAA,aAAAA,EAAAA,KAAAA,OAAAA,EAAAA,OAAAA,UAAAA,IAAAA,EAAAA,yBAAAA,EAAAA,iDA+CAC,GAAAA,EAAAA,QAAAA,UAAAA,EAAAA,KAAAA,OAAAA,EAAAA,SAAAA,WAAAA,EAAAA,OAAAA,UAAAA,IAAAA,EAAAA,+BAAAA,EAAAA,iECjEZ,iDACA,2JACA,6FACA,qMACA,qCACA,+CACA,yCACA,yCACA,iGACA,2EACA,qIACA,mNACA,iDACA,kEACA,yCACA,+ZAWA,szCCjBYC,EA4CAC,wHA5CAD,GAAAA,EAAAA,QAAAA,UAAAA,EAAAA,eAAAA,iBAAAA,EAAAA,mBAAAA,qBAAAA,EAAAA,kBAAAA,oBAAAA,EAAAA,kBAAAA,oBAAAA,EAAAA,kBAAAA,oBAAAA,EAAAA,yBAAAA,2BAAAA,EAAAA,0BAAAA,2BAAAA,EAAAA,QAAAA,UAAAA,EAAAA,QAAAA,UAAAA,EAAAA,OAAAA,SAAAA,EAAAA,gBAAAA,kBAAAA,EAAAA,uBAAAA,yBAAAA,EAAAA,wBAAAA,0BAAAA,EAAAA,uBAAAA,yBAAAA,EAAAA,mBAAAA,qBAAAA,EAAAA,iBAAAA,mBAAAA,EAAAA,qBAAAA,uBAAAA,EAAAA,cAAAA,gBAAAA,EAAAA,0BAAAA,4BAAAA,EAAAA,yBAAAA,2BAAAA,EAAAA,qBAAAA,uBAAAA,EAAAA,mBAAAA,qBAAAA,EAAAA,uBAAAA,yBAAAA,EAAAA,YAAAA,cAAAA,EAAAA,cAAAA,gBAAAA,EAAAA,0BAAAA,4BAAAA,EAAAA,yBAAAA,2BAAAA,EAAAA,qBAAAA,uBAAAA,EAAAA,mBAAAA,qBAAAA,EAAAA,uBAAAA,yBAAAA,EAAAA,mBAAAA,qBAAAA,EAAAA,aAAAA,eAAAA,EAAAA,eAAAA,iBAAAA,EAAAA,mBAAAA,qBAAAA,EAAAA,oBAAAA,sBAAAA,EAAAA,oBAAAA,uBAAAA,IAAAA,EAAAA,2BAAAA,EAAAA,0CA4CAC,GAAAA,EAAAA,YAAAA,cAAAA,EAAAA,KAAAA,QAAAA,IAAAA,EAAAA,wBAAAA,EAAAA,iDCSAC,EAuDAC,kHAvDAD,GAAAA,EAAAA,QAAAA,UAAAA,EAAAA,QAAAA,UAAAA,EAAAA,OAAAA,SAAAA,EAAAA,IAAAA,OAAAA,IAAAA,EAAAA,2BAAAA,EAAAA,oCAuDAC,GAAAA,EAAAA,SAAAA,eAAAA,EAAAA,MAAAA,SAAAA,EAAAA,MAAAA,UAAAA,IAAAA,EAAAA,kBAAAA,EAAAA,gFC5GAC,EAeAC,iFAfAD,GAAAA,EAAAA,SAAAA,WAAAA,EAAAA,UAAAA,YAAAA,EAAAA,YAAAA,cAAAA,EAAAA,IAAAA,MAAAA,EAAAA,SAAAA,WAAAA,EAAAA,cAAAA,gBAAAA,EAAAA,YAAAA,cAAAA,EAAAA,OAAAA,SAAAA,EAAAA,QAAAA,WAAAA,IAAAA,EAAAA,aAAAA,EAAAA,+BAeAC,GAAAA,EAAAA,SAAAA,IAAAA,EAAAA,QAAAA,IAAAA,EAAAA,QAAAA,IAAAA,EAAAA,aAAAA,KAAAA,IAAAA,EAAAA,aAAAA,EAAAA,OCvBRC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAapB,QAGrB,IAAIC,EAASgB,EAAyBE,GAAY,CAGjDnB,QAAS,IAOV,OAHAsB,EAAoBH,GAAUlB,EAAQA,EAAOD,QAASkB,GAG/CjB,EAAOD,qDClBf,wvFVOA","sources":["webpack://SelfCommunityTypes/webpack/universalModuleDefinition","webpack://SelfCommunityTypes/./src/types/broadcastMessage.ts","webpack://SelfCommunityTypes/./src/types/comment.ts","webpack://SelfCommunityTypes/./src/types/customAdv.ts","webpack://SelfCommunityTypes/./src/types/feed.ts","webpack://SelfCommunityTypes/./src/types/index.ts","webpack://SelfCommunityTypes/./src/types/notification.ts","webpack://SelfCommunityTypes/./src/types/privateMessage.ts","webpack://SelfCommunityTypes/./src/types/user.ts","webpack://SelfCommunityTypes/webpack/bootstrap","webpack://SelfCommunityTypes/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"SelfCommunityTypes\"] = factory();\n\telse\n\t\troot[\"SelfCommunityTypes\"] = factory();\n})(self, () => {\nreturn ","/**\n * Define the various types of banners\n */\nexport enum SCBroadcastMessageBannerType {\n HTML = 'html_banner',\n NOTIFICATION = 'notification_banner',\n}\n\nexport interface SCBannerType {\n /**\n * The type of the banner, based on it the behaviour of the render component must be different\n */\n type_banner: SCBroadcastMessageBannerType;\n\n /**\n * The html to insert into the DOM\n * This field is used when type_banner is html_banner\n */\n html?: string;\n\n /**\n * The title of the banner\n */\n title?: string;\n\n /**\n * The text of the banner\n */\n body_text?: string;\n\n /**\n * The text of the link associated to the banner\n */\n link_text?: string;\n /**\n * The action link of the banner\n */\n link?: string;\n /**\n * The image url to insert into the banner\n */\n image?: string;\n /**\n * The date the Banner was created\n */\n added_at: Date;\n /**\n * If true tell to open the banner in new tab\n */\n open_in_new_tab: boolean;\n}\n\n/**\n * Interface SCBroadcastMessageType.\n * Broadcast Message object\n */\nexport interface SCBroadcastMessageType {\n /**\n * The ID of the category.\n */\n id: number;\n\n /**\n * The Banner associated to the Broadcast messages\n */\n banner: SCBannerType;\n\n /**\n * The date the BroadcastMessage was added\n */\n added_at: Date;\n\n /**\n * The date the BroadcastMessage was disposed\n */\n disposed_at: Date | null;\n\n /**\n * The date the BroadcastMessage was viewed the first time\n */\n viewed_at: Date | null;\n}\n","import {SCUserType } from './index';\n\n/**\n * Typology Comment\n */\nexport const SCCommentTypologyType = 'comment';\n\n/**\n * Interface SCCommentType.\n * Comment Schema.\n */\nexport interface SCCommentType {\n /**\n * Id of the comment\n */\n id: number;\n\n /**\n * Id of the Discussion object\n */\n discussion?: number;\n\n /**\n * Id of the Post object\n */\n post?: number;\n\n /**\n * Id of the Status object\n */\n status?: number;\n\n /**\n * User who commented\n */\n author?: SCUserType;\n\n /**\n * Added at\n */\n added_at: Date;\n\n /**\n * Html of the comment\n */\n html: string;\n\n /**\n * Summary\n */\n summary: string;\n\n /**\n * If the comments is deleted\n */\n deleted: boolean;\n\n /**\n * If the comments is hidden\n */\n collapsed: boolean;\n\n /**\n * Id of the parent\n */\n parent: number;\n\n /**\n * Id of the reply Comment, it must have the same parent\n */\n in_reply_to?: number;\n\n /**\n * Number of votes\n */\n vote_count: number;\n\n /**\n * True if the logged user has already voted the comment\n */\n voted: boolean;\n\n /**\n * Number of flags\n */\n flag_count: number;\n\n /**\n * Number of comments\n */\n comment_count: number;\n\n /**\n * Text of the comment\n */\n text: string;\n\n /**\n * Comments childs\n */\n latest_comments?: SCCommentType[];\n\n /**\n * Type: comment\n */\n type: string;\n}\n\n/**\n * Type of comments ordering\n */\nexport enum SCCommentsOrderBy {\n ADDED_AT_DESC = '-added_at',\n ADDED_AT_ASC = 'added_at',\n CONNECTION_DESC = '-connection',\n CONNECTION_ASC = 'connection',\n}\n","export enum SCCustomAdvPosition {\n POSITION_BELOW_TOPBAR = 'BELOW_TOPBAR',\n POSITION_BELOW_FEED_OBJECT = 'BELOW_THE_POST',\n POSITION_ABOVE_FOOTER_BAR = 'ABOVE_FOOTER_BAR',\n POSITION_FOOTER_STICKY = 'FOOTER_STICKY',\n POSITION_IN_COMMENTS = 'IN_POST_COMMENTS',\n POSITION_RELATED_POSTS_COLUMN = 'RELATED_POSTS_COLUMN',\n POSITION_FEED_SIDEBAR = 'TOOLS_COLUMN',\n POSITION_FEED = 'IN_STREAM',\n}\n\nexport interface SCCustomAdvType {\n /**\n * Unique integer value identifying this adv\n */\n id: number;\n\n /**\n * A string code representing the display position of the adv\n */\n position: SCCustomAdvPosition;\n\n /**\n * The title of the adv\n */\n title: string | null;\n\n /**\n * The link/url of the adv\n */\n link: string | null;\n\n /**\n * An image banner for the adv\n */\n image: string | null;\n\n /**\n * Html/js embeddable code\n */\n embed_code: string | null;\n\n /**\n * A flag to activate or deactivate this adv\n */\n active: boolean;\n\n /**\n * datetime of creation\n */\n created_at: string;\n\n /**\n * last modify datetime\n */\n lastmod_datetime: string;\n\n /**\n * The id of the category connected to this adv\n */\n category: number | null;\n}\n","import {SCUserType} from './user';\nimport {SCCategoryType} from './category';\nimport {SCContributionLocation} from './location';\nimport {SCPollType} from './poll';\nimport {SCMediaType} from './media';\nimport {SCTagType} from './tag';\n\n/**\n * Typology of feed\n */\nexport enum SCFeedTypologyType {\n HOME = 'home',\n EXPLORE = 'explore',\n}\n\n/**\n * Typology of feedObject\n */\nexport enum SCFeedObjectTypologyType {\n DISCUSSION = 'discussion',\n POST = 'post',\n STATUS = 'status',\n}\n\n/**\n * Interface SCFeedUnitType.\n * FeedUnit Schema.\n */\nexport interface SCFeedUnitType {\n /**\n * The type of the object, can be discussion, post or status\n */\n type: SCFeedObjectTypologyType;\n\n /**\n * Discussion object\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * Post object\n */\n post?: SCFeedPostType;\n\n /**\n * Status object\n */\n status?: SCFeedStatusType;\n\n /**\n * Id of User that have seen this object\n */\n seen_by_id?: number[];\n\n /**\n * True if this object has the visibility boost\n */\n has_boost?: boolean;\n\n /**\n * List of feed activities. This field is returned only for relevance feed\n */\n activities?: SCFeedUnitActivityType[];\n}\n\nexport enum SCFeedUnitActivityTypologyType {\n COMMENT = 'comment',\n VOTE = 'vote',\n POLLVOTE = 'pollvote',\n FOLLOW = 'follow',\n}\n\n/**\n * Interface SCFeedUnitActivityType.\n * FeedUnit Activity Schema.\n */\nexport interface SCFeedUnitActivityType {\n /**\n * The type of the activity.\n */\n type: SCFeedUnitActivityTypologyType;\n\n /**\n * The comment if type == SCFeedUnitActivityTypologyType.COMMENT.\n */\n comment?: any;\n\n /**\n * The user involved.\n */\n author: SCUserType;\n\n /**\n * Time of activity\n */\n active_at: Date;\n\n /**\n * Id of Users that have seen this activity\n */\n seen_by_id?: number[];\n}\n\n/**\n * Interface SCFeedObjectType.\n * FeedObject Schema.\n * General object.\n */\nexport interface SCFeedObjectType {\n /**\n * The ID of the post.\n */\n id: number;\n\n /**\n * List of categories.\n */\n categories?: SCCategoryType[];\n\n /**\n * List of medias\n */\n medias?: SCMediaType[];\n\n /**\n * Location (contribution geolocation)\n */\n location?: SCContributionLocation;\n\n /**\n * Author of the contribute\n */\n author?: SCUserType;\n\n /**\n * Last activity at\n */\n last_activity_at: Date;\n\n /**\n * Added at\n */\n added_at: Date;\n\n /**\n * Slug\n */\n slug: string;\n\n /**\n * Html\n */\n html: string;\n\n /**\n * Summary\n */\n summary: string;\n\n /**\n * True if the object is deleted\n */\n deleted: boolean;\n\n /**\n * True if the object is hidden\n */\n collapsed: boolean;\n\n /**\n * Number of comment\n */\n comment_count: number;\n\n /**\n * Number of internal share\n */\n share_count: number;\n\n /**\n * True if the logged user follow this object\n */\n followed?: boolean;\n\n /**\n * Number of votes\n */\n vote_count: number;\n\n /**\n * True if the logged user has already voted this object\n */\n voted?: boolean;\n\n /**\n * Number of flags\n */\n flag_count: number;\n\n /**\n * Tags adderssing\n */\n addressing: SCTagType[];\n\n /**\n * Type: discussion, post, status\n */\n type: SCFeedObjectTypologyType;\n\n /**\n * Suspended notification\n */\n suspended?: boolean;\n}\n\n/**\n * Interface SCFeedDiscussionType.\n * FeedDiscussion Schema.\n */\nexport interface SCFeedDiscussionType extends SCFeedObjectType {\n /**\n * Title of the discussion\n */\n title: string;\n\n /**\n * Poll\n */\n poll?: SCPollType;\n}\n\n/**\n * Interface SCFeedPostType.\n * Post Schema.\n */\nexport interface SCFeedPostType extends SCFeedObjectType {\n /**\n * Poll\n */\n poll?: SCPollType;\n}\n\n/**\n * Interface SCFeedStatusType.\n * Status Schema.\n */\nexport type SCFeedStatusType = SCFeedObjectType;\n","import {SCAuthTokenType} from './auth';\nimport {SCBannerType, SCBroadcastMessageBannerType, SCBroadcastMessageType} from './broadcastMessage';\nimport {SCCustomAdvPosition, SCCustomAdvType} from './customAdv';\nimport {SCUserType, SCUserBlockedSettingsType, SCUserFields, SCUserSettingsType, SCUserStatus} from './user';\nimport {SCTagType} from './tag';\nimport {SCCategoryType} from './category';\nimport {SCEmbedType} from './embed';\nimport {SCMediaType} from './media';\nimport {SCContributionLocation, SCLocalityType} from './location';\nimport {SCPollChoiceType, SCPollType} from './poll';\nimport {SCCommentType, SCCommentTypologyType, SCCommentsOrderBy} from './comment';\nimport {SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType} from './privateMessage';\nimport {SCIncubatorType} from './incubator';\nimport {SCCustomNotificationType} from './customNotification';\nimport {SCPrizeType} from './prize';\nimport {\n SCFeedUnitType,\n SCFeedUnitActivityType,\n SCFeedObjectType,\n SCFeedPostType,\n SCFeedDiscussionType,\n SCFeedStatusType,\n SCFeedObjectTypologyType,\n SCFeedUnitActivityTypologyType,\n SCFeedTypologyType\n} from './feed';\nimport {\n SCNotificationTypologyType,\n SCNotificationAggregatedType,\n SCNotificationCommentType,\n SCNotificationConnectionAcceptType,\n SCNotificationConnectionRequestType,\n SCNotificationPrivateMessageType,\n SCNotificationMentionType,\n SCNotificationType,\n SCNotificationBlockedUserType,\n SCNotificationCollapsedForType,\n SCNotificationCustomNotificationType,\n SCNotificationDeletedForType,\n SCNotificationFollowType,\n SCNotificationKindlyNoticeType,\n SCNotificationUnBlockedUserType,\n SCNotificationUnDeletedForType,\n SCNotificationUserFollowType,\n SCNotificationVoteUpType,\n SCNotificationIncubatorType,\n SCNotificationTopicType\n} from './notification';\n\n/**\n * Exports all types\n */\nexport {\n SCBannerType,\n SCBroadcastMessageBannerType,\n SCBroadcastMessageType,\n SCAuthTokenType,\n SCUserFields,\n SCUserType,\n SCUserSettingsType,\n SCUserStatus,\n SCUserBlockedSettingsType,\n SCTagType,\n SCCategoryType,\n SCCustomAdvPosition,\n SCCustomAdvType,\n SCEmbedType,\n SCMediaType,\n SCContributionLocation,\n SCLocalityType,\n SCPollChoiceType,\n SCPollType,\n SCFeedUnitType,\n SCFeedUnitActivityType,\n SCFeedObjectType,\n SCFeedPostType,\n SCFeedDiscussionType,\n SCFeedStatusType,\n SCFeedObjectTypologyType,\n SCFeedUnitActivityTypologyType,\n SCFeedTypologyType,\n SCCommentTypologyType,\n SCCommentsOrderBy,\n SCCommentType,\n SCPrivateMessageType,\n SCPrivateMessageStatusType,\n SCPrivateMessageFileType,\n SCMessageFileType,\n SCNotificationTypologyType,\n SCNotificationAggregatedType,\n SCNotificationCommentType,\n SCNotificationConnectionAcceptType,\n SCNotificationConnectionRequestType,\n SCNotificationPrivateMessageType,\n SCNotificationMentionType,\n SCNotificationType,\n SCNotificationBlockedUserType,\n SCNotificationCollapsedForType,\n SCNotificationCustomNotificationType,\n SCNotificationDeletedForType,\n SCNotificationFollowType,\n SCNotificationKindlyNoticeType,\n SCNotificationUnBlockedUserType,\n SCNotificationUnDeletedForType,\n SCNotificationUserFollowType,\n SCNotificationVoteUpType,\n SCCustomNotificationType,\n SCNotificationTopicType,\n SCIncubatorType,\n SCNotificationIncubatorType,\n SCPrizeType\n};\n","import {SCCategoryType, SCCommentType, SCFeedDiscussionType, SCFeedPostType, SCFeedStatusType, SCUserType} from '../index';\nimport {SCPrivateMessageType} from './privateMessage';\nimport {SCUserBlockedSettingsType} from './user';\nimport {SCCustomNotificationType} from './customNotification';\nimport {SCIncubatorType} from './incubator';\n\n/**\n * Notification types\n */\nexport enum SCNotificationTypologyType {\n COMMENT = 'comment',\n NESTED_COMMENT = 'nested_comment',\n CONNECTION_REQUEST = 'connection_request',\n CONNECTION_ACCEPT = 'connection_accept',\n CONNECTION_REMOVE = 'connection_remove',\n CONNECTION_REJECT = 'connection_reject',\n CONNECTION_CANCEL_REJECT = 'connection_cancel_reject',\n CONNECTION_CANCEL_REQUEST = 'connection_cancel_reject',\n MENTION = 'mention',\n VOTE_UP = 'vote_up',\n FOLLOW = 'follow',\n PRIVATE_MESSAGE = 'private_message',\n DELETE_PRIVATE_MESSAGE = 'delete_private_message',\n DELETED_FOR_ADVERTISING = 'deleted_for_advertising',\n DELETED_FOR_AGGRESSIVE = 'deleted_for_aggressive',\n DELETED_FOR_VULGAR = 'deleted_for_vulgar',\n DELETED_FOR_POOR = 'deleted_for_poor',\n DELETED_FOR_OFFTOPIC = 'deleted_for_offtopic',\n UNDELETED_FOR = 'undeleted_for',\n COLLAPSED_FOR_ADVERTISING = 'collapsed_for_advertising',\n COLLAPSED_FOR_AGGRESSIVE = 'collapsed_for_aggressive',\n COLLAPSED_FOR_VULGAR = 'collapsed_for_vulgar',\n COLLAPSED_FOR_POOR = 'collapsed_for_poor',\n COLLAPSED_FOR_OFFTOPIC = 'collapsed_for_offtopic',\n USER_FOLLOW = 'user_follow',\n USER_UNFOLLOW = 'user_unfollow',\n KINDLY_NOTICE_ADVERTISING = 'kindly_notice_advertising',\n KINDLY_NOTICE_AGGRESSIVE = 'kindly_notice_aggressive',\n KINDLY_NOTICE_VULGAR = 'kindly_notice_vulgar',\n KINDLY_NOTICE_POOR = 'kindly_notice_poor',\n KINDLY_NOTICE_OFFTOPIC = 'kindly_notice_offtopic',\n KINDLY_NOTICE_FLAG = 'kindly_notice_flag',\n BLOCKED_USER = 'blocked_user',\n UNBLOCKED_USER = 'unblocked_user',\n INCUBATOR_APPROVED = 'incubator_approved',\n CUSTOM_NOTIFICATION = 'custom_notification',\n NOTIFICATION_BANNER = 'notification_banner',\n}\n\n/**\n * Define topic for notifications\n * Usefull for websocket\n */\nexport enum SCNotificationTopicType {\n INTERACTION = 'interaction',\n NEWS = 'news',\n}\n\n/**\n * Interface SCNotificationAggregatedType.\n * Notification aggregated Schema.\n */\nexport interface SCNotificationAggregatedType {\n /**\n * Serialization id of the macro notification aggregate block\n */\n sid: string;\n\n /**\n * It's true if in the aggregated group there is at least one\n * notification not yet seen by the user making the request\n */\n is_new: boolean;\n\n /**\n * Primary object involved (object that is common to notifications group)\n * if it is a discusssion. For some types of notifications it will not be present.\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * Primary object involved (object that is common to notifications group)\n * if it is a post. For some types of notifications it will not be present.\n */\n post?: SCFeedPostType;\n\n /**\n * Primary object involved (object that is common to notifications group)\n * if it is a status. For some types of notifications it will not be present.\n */\n status?: SCFeedStatusType;\n\n /**\n * List of aggregated notifications by type.\n * Types Object: NotificationTypeComment, NotificationTypeMention,\n * NotificationTypeConnectionAccept, NotificationTypeConnectionRequest,\n * NotificationTypePrivateMessage, NotificationTypeFollow, NotificationTypeVoteUp,\n * NotificationTypeBlockedUser, NotificationTypeUnBlockedUser,\n * NotificationTypeKindlyNotice, NotificationTypeCollapsedFor,\n * NotificationTypeDeletedFor, NotificationTypeCustomNotification\n */\n aggregated: SCNotificationType[];\n}\n\n/**\n * Interface SCNotificationType.\n * Notification Schema.\n */\nexport interface SCNotificationType {\n /**\n * True if the notification has been read, otherwise false\n */\n is_new: boolean;\n\n /**\n * Serialization id of the single notification\n */\n sid: string;\n\n /**\n * Type of the notification\n */\n type: SCNotificationTypologyType;\n\n /**\n * Time when the notification was generated\n */\n active_at: Date;\n}\n\n/**\n * Interface SCNotificationCommentType.\n * Comment Notification Schema.\n */\nexport interface SCNotificationCommentType extends SCNotificationType {\n /**\n * Comment of first/second level\n */\n comment: SCCommentType;\n\n /**\n * Type Comment or Nested_comment\n */\n type: SCNotificationTypologyType.COMMENT | SCNotificationTypologyType.NESTED_COMMENT;\n}\n\n/**\n * Interface SCNotificationMentionType.\n * Mention Notification Schema.\n */\nexport interface SCNotificationMentionType extends SCNotificationType {\n /**\n * Type Mention\n */\n type: SCNotificationTypologyType.MENTION;\n\n /**\n * If user is mentioned in a discussion\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * If the user is mentioned in a post\n */\n post?: SCFeedPostType;\n\n /**\n * If user is mentioned in a status\n */\n status?: SCFeedStatusType;\n\n /**\n * If user is mentioned in a comment\n */\n comment?: SCCommentType;\n}\n\n/**\n * Interface SCNotificationConnectionRequestType.\n * Connection Request Notification Schema.\n */\nexport interface SCNotificationConnectionRequestType extends SCNotificationType {\n /**\n * Type Connection request\n */\n type: SCNotificationTypologyType.CONNECTION_REQUEST;\n\n /**\n * User request the connection\n */\n request_user: SCUserType;\n}\n\n/**\n * Interface SCNotificationConnectionAcceptType.\n * Connection Accept Notification Schema.\n */\nexport interface SCNotificationConnectionAcceptType extends SCNotificationType {\n /**\n * Type Connection accept\n */\n type: SCNotificationTypologyType.CONNECTION_ACCEPT;\n\n /**\n * User accepted the connection request\n */\n accept_user: SCUserType;\n}\n\n/**\n * Interface SCNotificationPrivateMessageType.\n * Private Message Notification Schema.\n */\nexport interface SCNotificationPrivateMessageType extends SCNotificationType {\n /**\n * Type Private message\n */\n type: SCNotificationTypologyType.PRIVATE_MESSAGE;\n\n /**\n * Private message\n */\n message: SCPrivateMessageType;\n}\n\n/**\n * Interface SCNotificationFollowType.\n * Follow Notification Schema.\n * (discussion, post, status)\n */\nexport interface SCNotificationFollowType extends SCNotificationType {\n /**\n * Type Follow\n */\n type: SCNotificationTypologyType.FOLLOW;\n\n /**\n * If user is mentioned in a discussion\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * If the user is mentioned in a post\n */\n post?: SCFeedPostType;\n\n /**\n * If user is mentioned in a status\n */\n status?: SCFeedStatusType;\n}\n\n/**\n * Interface SCNotificationVoteUpType.\n * VoteUp Notification Schema.\n */\nexport interface SCNotificationVoteUpType extends SCNotificationType {\n /**\n * Type VoteUp\n */\n type: SCNotificationTypologyType.VOTE_UP;\n\n /**\n * If user is mentioned in a discussion\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * If the user is mentioned in a post\n */\n post?: SCFeedPostType;\n\n /**\n * If user is mentioned in a status\n */\n status?: SCFeedStatusType;\n\n /**\n * If user is mentioned in a comment\n */\n comment?: SCCommentType;\n\n /**\n * User voted up\n */\n user?: SCUserType;\n}\n\n/**\n * Interface SCNotificationBlockedUserType.\n * Blocked User Notification Schema.\n */\nexport interface SCNotificationBlockedUserType extends SCNotificationType {\n /**\n * Type Blocked User\n */\n type: SCNotificationTypologyType.BLOCKED_USER;\n\n /**\n * Data of user block\n */\n blocked_settings: SCUserBlockedSettingsType;\n}\n\n/**\n * Interface SCNotificationUnBlockedUserType.\n * UnBlocked User Notification Schema.\n */\nexport interface SCNotificationUnBlockedUserType extends SCNotificationType {\n /**\n * Type UnBlocked User\n */\n type: SCNotificationTypologyType.UNBLOCKED_USER;\n}\n\n/**\n * Interface SCNotificationKindlyNoticeType.\n * Kindly notice User Notification Schema.\n */\nexport interface SCNotificationKindlyNoticeType extends SCNotificationType {\n /**\n * Type Kindly Notice User\n */\n type:\n | SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING\n | SCNotificationTypologyType.KINDLY_NOTICE_FLAG\n | SCNotificationTypologyType.KINDLY_NOTICE_VULGAR\n | SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE\n | SCNotificationTypologyType.KINDLY_NOTICE_POOR\n | SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC;\n\n /**\n * If the contribute is a discussion\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * If the contribute is a post\n */\n post?: SCFeedPostType;\n\n /**\n * If the contribute is a status\n */\n status?: SCFeedStatusType;\n\n /**\n * If the contribute is a comment\n */\n comment?: SCCommentType;\n}\n\n/**\n * Interface SCNotificationCollapsedForType.\n * Collapsed for Notification Schema.\n * Only for comments.\n */\nexport interface SCNotificationCollapsedForType extends SCNotificationType {\n /**\n * Type Kindly Notice User\n */\n type:\n | SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING\n | SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE\n | SCNotificationTypologyType.COLLAPSED_FOR_POOR\n | SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC\n | SCNotificationTypologyType.COLLAPSED_FOR_VULGAR;\n\n /**\n * comment collapsed\n */\n comment: SCCommentType;\n}\n\n/**\n * Interface SCNotificationDeletedForType.\n * Deleted for Notification Schema.\n */\nexport interface SCNotificationDeletedForType extends SCNotificationType {\n /**\n * Type Deleted for\n */\n type:\n | SCNotificationTypologyType.DELETED_FOR_ADVERTISING\n | SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE\n | SCNotificationTypologyType.DELETED_FOR_VULGAR\n | SCNotificationTypologyType.DELETED_FOR_POOR\n | SCNotificationTypologyType.DELETED_FOR_OFFTOPIC;\n\n /**\n * If a discussion is deleted\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * If a post is deleted\n */\n post?: SCFeedPostType;\n\n /**\n * If a comment is deleted\n */\n status?: SCFeedStatusType;\n\n /**\n * If a status is deleted\n */\n comment?: SCCommentType;\n}\n\n/**\n * Interface SCNotificationUnDeletedForType.\n * Undeleted for Notification Schema.\n */\nexport interface SCNotificationUnDeletedForType extends SCNotificationType {\n /**\n * Type Undeleted for\n */\n type: SCNotificationTypologyType.UNDELETED_FOR;\n\n /**\n * If a discussion is undeleted\n */\n discussion?: SCFeedDiscussionType;\n\n /**\n * If a post is undeleted\n */\n post?: SCFeedPostType;\n\n /**\n * If a comment is undeleted\n */\n status?: SCFeedStatusType;\n\n /**\n * If a status is undeleted\n */\n comment?: SCCommentType;\n}\n\n/**\n * Interface SCNotificationUserFollowType.\n * User Follow Notification Schema.\n */\nexport interface SCNotificationUserFollowType extends SCNotificationType {\n /**\n * Type User Follow\n */\n type: SCNotificationTypologyType.USER_FOLLOW;\n\n /**\n * Follower\n */\n follower: SCUserType;\n}\n\n/**\n * Interface SCNotificationIncubatorType.\n * The incubator proposed by the user has been approved\n */\nexport interface SCNotificationIncubatorType extends SCNotificationType {\n /**\n * Type Incubator Approved\n */\n type: SCNotificationTypologyType.INCUBATOR_APPROVED;\n\n /**\n * Incubator\n */\n incubator: SCIncubatorType;\n}\n\n/**\n * Interface SCNotificationCustomNotificationType.\n * CustomNotification Notification Schema.\n */\nexport interface SCNotificationCustomNotificationType extends SCNotificationType {\n /**\n * Type User Follow\n */\n type: SCNotificationTypologyType.CUSTOM_NOTIFICATION;\n\n /**\n * User generate the custom notification\n */\n user: SCUserType;\n\n /**\n * Custom notification data\n */\n custom_notification: SCCustomNotificationType;\n}\n","/**\n * Interface SCPrivateMessageType.\n * Private Message Schema.\n */\nimport {SCUserType} from './user';\n\nexport interface SCPrivateMessageType {\n /**\n * Message status: created, deleted or hidden message\n */\n status: string;\n /**\n * Id of the message\n */\n id: number;\n\n /**\n * Sender User\n */\n sender: SCUserType;\n /**\n *Receiver User\n */\n receiver: SCUserType;\n\n /**\n * Message\n */\n html: string;\n\n /**\n * Send date time\n */\n created_at: Date | string;\n /**\n * Last interaction date time\n */\n last_message_at: Date;\n\n /**\n * Message status: created, deleted or hidden message\n */\n thread_status: SCPrivateMessageStatusType;\n\n /**\n * file\n */\n file?: SCPrivateMessageFileType;\n /**\n * Headline\n */\n headline: string;\n /**\n * Message content\n */\n message: string;\n}\n\n/**\n * Private Message status:\n * created, deleted or hidden message\n */\nexport enum SCPrivateMessageStatusType {\n CREATED = 'created',\n DELETED = 'deleted',\n HIDDEN = 'hidden',\n NEW = 'new',\n}\n\nexport interface SCPrivateMessageFileType {\n /**\n * The file id\n */\n uuid?: string;\n\n /**\n * File name\n */\n filename?: string;\n\n /**\n * File size\n */\n filesize?: number;\n\n /**\n * The type of the file\n */\n mimetype?: SCMessageFileType;\n\n /**\n * The duration (in seconds) of the file\n */\n duration?: number;\n\n /**\n * File Url\n */\n url?: string;\n /**\n * File thumbnail\n */\n thumbnail?: string;\n /**\n * File Url(response)\n */\n file_url?: string;\n /**\n * The file id(response)\n */\n file_uuid?: string;\n}\n\n/**\n * Private Message status:\n * created, deleted or hidden message\n */\nexport enum SCMessageFileType {\n DOCUMENT = 'application/',\n IMAGE = 'image/',\n VIDEO = 'video/',\n}\n","/**\n * Interface SCUserType.\n * User Schema.\n */\nimport {SCTagType} from './tag';\n\n/**\n * User Fields\n */\nexport enum SCUserFields {\n USERNAME = 'username',\n REAL_NAME = 'real_name',\n DATE_JOINED = 'date_joined',\n BIO = 'bio',\n LOCATION = 'location',\n DATE_OF_BIRTH = 'date_of_birth',\n DESCRIPTION = 'description',\n GENDER = 'gender',\n WEBSITE = 'website'\n}\n\n/**\n * User status\n */\nexport enum SCUserStatus {\n APPROVED = 'a',\n BLOCKED = 'b',\n DELETED = 'd',\n UNREGISTERED = 'u',\n}\n\nexport interface SCUserType {\n /**\n * The ID of the user.\n */\n id: number;\n\n /**\n * The username of the user.\n */\n username: string;\n\n /**\n * Real name of the user.\n */\n real_name: string;\n\n /**\n * Email of the user.\n */\n email?: string;\n\n /**\n * Email is valid. Default: False.\n */\n email_isvalid?: boolean;\n\n /**\n * Date joined to the community.\n */\n date_joined: Date;\n\n /**\n * User biography.\n */\n bio: string;\n\n /**\n * Location\n */\n location: string;\n\n /**\n * Location in coordinates. Format: lat,lng.\n */\n location_lat_lng?: string;\n\n /**\n * User current position. Format: lat,lng.\n */\n position_lat_lng?: string;\n\n /**\n * Date of birth. Format: YYYY-MM-DD (ISO 8601).\n */\n date_of_birth?: Date;\n\n /**\n * User description.\n */\n description: string;\n\n /**\n * Gender of the user. Values: Male, Female, Unspecified. Default: Unspecified.\n */\n gender: string;\n\n /**\n * User status. Values: a (approved), b (blocked), d (deleted; soft deleted), u (unregistered). Default: a.\n * A blocked user can't:\n * - create contribution (post/discussion/status)\n * - create comment\n * - vote/unvote contribution\n * - follow/connect user\n * - edit contribution\n * - suggest an incubator\n * - flag a contribution\n * - send a private message\n * - edit info profile\n * but he can't:\n * - follow/unfollow a post/discussion/status\n * - follow/unfollow a category\n * - unfollow user\n */\n status: string;\n\n /**\n * User website.\n */\n website: string;\n\n /**\n * Avatar of the user.\n */\n avatar: string;\n\n /**\n * Image Cover of the user.\n */\n cover?: string;\n\n /**\n * The external ID of the user. It is assigned only during signup if necessary.\n */\n ext_id?: number;\n\n /**\n * User's tag list. List of Tag.\n */\n tags: Array<SCTagType>;\n\n /**\n * User reputation.\n */\n reputation: number;\n\n /**\n * List of user permission. Only for the resource /user/me/.\n */\n permission?: Array<string>;\n\n /**\n * The connection status between the request user and this user.\n */\n connection_status?: string;\n\n /**\n * Number of connection requests sent by the user.\n */\n connection_requests_sent_counter?: number;\n\n /**\n * Number of connection requests received by the user.\n */\n connection_requests_received_counter?: number;\n\n /**\n * Number of connections of the user.\n */\n connections_counter?: number;\n\n /**\n * Number of followings of the user\n */\n followings_counter?: number;\n\n /**\n * Number of followers of the user\n */\n followers_counter?: number;\n\n /**\n * Number of posts created by the user.\n */\n posts_counter?: number;\n\n /**\n * Number of discussions created by the user.\n */\n discussions_counter?: number;\n\n /**\n * Number of statuses created by the user.\n */\n statuses_counter?: number;\n\n /**\n * Number of polls created by the user.\n */\n polls_counter?: number;\n\n /**\n * User role\n */\n role: string;\n\n /**\n * interactions counter\n */\n unseen_interactions_counter?: number;\n\n /**\n * notification banner counter\n */\n unseen_notification_banners_counter?: number;\n}\n\n/**\n * User Settings\n */\nexport interface SCUserSettingsType {\n /**\n * Frequency of the email notifications for all interactions (except for private messages notifications)\n */\n qa_frequency: number;\n\n /**\n * Enable private messages notifications also via mail\n */\n email_notification_not_qa: number;\n\n /**\n * Enable mobile app/PWA notifications\n */\n mobile_notifications_scmty: number;\n\n /**\n * Shows a popup when the user receive a notification\n */\n show_toast_notifications: number;\n\n /**\n * Emit a sound when the notification popup is shown. See 'show_toast_notifications'\n */\n toast_notifications_emit_sound: number;\n}\n\n/**\n * User Blocked Settings\n */\nexport interface SCUserBlockedSettingsType {\n /**\n * N° days of block\n */\n days_blocked: number;\n\n /**\n * Reputation stolen\n */\n reputation_delta: number;\n\n /**\n * Start User Block datetime\n */\n blocked_at?: Date;\n\n /**\n * End User Block datetime\n */\n expire_at?: Date;\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/**\n * Types\n */\nimport {\n SCBroadcastMessageBannerType,\n SCBannerType,\n SCBroadcastMessageType,\n SCAuthTokenType,\n SCCustomAdvPosition,\n SCCustomAdvType,\n SCUserFields,\n SCUserType,\n SCUserSettingsType,\n SCUserStatus,\n SCUserBlockedSettingsType,\n SCTagType,\n SCCategoryType,\n SCEmbedType,\n SCMediaType,\n SCContributionLocation,\n SCLocalityType,\n SCPollChoiceType,\n SCPollType,\n SCFeedUnitType,\n SCFeedUnitActivityType,\n SCFeedObjectType,\n SCFeedPostType,\n SCFeedDiscussionType,\n SCFeedStatusType,\n SCFeedObjectTypologyType,\n SCFeedUnitActivityTypologyType,\n SCFeedTypologyType,\n SCCommentTypologyType,\n SCCommentsOrderBy,\n SCCommentType,\n SCPrivateMessageType,\n SCPrivateMessageStatusType,\n SCPrivateMessageFileType,\n SCMessageFileType,\n SCNotificationTypologyType,\n SCNotificationAggregatedType,\n SCNotificationCommentType,\n SCNotificationConnectionAcceptType,\n SCNotificationConnectionRequestType,\n SCNotificationPrivateMessageType,\n SCNotificationMentionType,\n SCNotificationType,\n SCNotificationBlockedUserType,\n SCNotificationCollapsedForType,\n SCNotificationCustomNotificationType,\n SCNotificationDeletedForType,\n SCNotificationFollowType,\n SCNotificationKindlyNoticeType,\n SCNotificationUnBlockedUserType,\n SCNotificationUnDeletedForType,\n SCNotificationUserFollowType,\n SCNotificationVoteUpType,\n SCCustomNotificationType,\n SCIncubatorType,\n SCNotificationIncubatorType,\n SCNotificationTopicType,\n SCPrizeType\n} from './types';\n\n/**\n * List all exports\n */\nexport {\n SCBroadcastMessageBannerType,\n SCBannerType,\n SCBroadcastMessageType,\n SCCustomAdvPosition,\n SCCustomAdvType,\n SCAuthTokenType,\n SCUserFields,\n SCUserType,\n SCUserSettingsType,\n SCUserStatus,\n SCUserBlockedSettingsType,\n SCTagType,\n SCCategoryType,\n SCEmbedType,\n SCMediaType,\n SCContributionLocation,\n SCLocalityType,\n SCPollChoiceType,\n SCPollType,\n SCFeedUnitType,\n SCFeedUnitActivityType,\n SCFeedObjectType,\n SCFeedPostType,\n SCFeedDiscussionType,\n SCFeedStatusType,\n SCFeedObjectTypologyType,\n SCFeedUnitActivityTypologyType,\n SCFeedTypologyType,\n SCCommentTypologyType,\n SCCommentsOrderBy,\n SCCommentType,\n SCPrivateMessageType,\n SCPrivateMessageStatusType,\n SCPrivateMessageFileType,\n SCMessageFileType,\n SCNotificationTypologyType,\n SCNotificationAggregatedType,\n SCNotificationCommentType,\n SCNotificationConnectionAcceptType,\n SCNotificationConnectionRequestType,\n SCNotificationPrivateMessageType,\n SCNotificationMentionType,\n SCNotificationType,\n SCNotificationBlockedUserType,\n SCNotificationCollapsedForType,\n SCNotificationCustomNotificationType,\n SCNotificationDeletedForType,\n SCNotificationFollowType,\n SCNotificationKindlyNoticeType,\n SCNotificationUnBlockedUserType,\n SCNotificationUnDeletedForType,\n SCNotificationUserFollowType,\n SCNotificationVoteUpType,\n SCCustomNotificationType,\n SCNotificationTopicType,\n SCIncubatorType,\n SCNotificationIncubatorType,\n SCPrizeType\n};\n"],"names":["root","factory","exports","module","define","amd","self","SCBroadcastMessageBannerType","SCCommentsOrderBy","SCCustomAdvPosition","SCFeedTypologyType","SCFeedObjectTypologyType","SCFeedUnitActivityTypologyType","SCNotificationTypologyType","SCNotificationTopicType","SCPrivateMessageStatusType","SCMessageFileType","SCUserFields","SCUserStatus","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__"],"sourceRoot":""}
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@selfcommunity/types",
3
+ "version": "0.1.2-alpha.0",
4
+ "license": "MIT",
5
+ "private": false,
6
+ "main": "./lib/cjs/index.js",
7
+ "module": "./lib/esm/index.js",
8
+ "description": "Types to integrate a community created with SelfCommunity.",
9
+ "author": "SelfCommunity <https://www.selfcommunity.com>",
10
+ "keywords": [
11
+ "react",
12
+ "community",
13
+ "selfcommunity",
14
+ "community-types",
15
+ "selfcommunity types"
16
+ ],
17
+ "scripts": {
18
+ "prepare": "install-peers -f",
19
+ "install-peers": "install-peers -f",
20
+ "test": "npm run lint && npm run test-only",
21
+ "test-only": "jest --runInBand",
22
+ "tdd": "jest --watch --runInBand",
23
+ "lint": "eslint ./src test --ext .ts,.tsx,.js",
24
+ "prettier": "prettier './**/*.js' './**/*.css' './**/*.md' --write",
25
+ "prettier-list-different": "prettier './**/*.js' './**/*.css' './**/*.md' --list-different",
26
+ "clean:lib": "rimraf lib",
27
+ "clean:node_modules": "rimraf node_modules",
28
+ "build:commonjs": "cross-env BABEL_ENV=commonjs babel --root-mode upward --extensions .js,.jsx,.ts,.tsx ./src --out-dir lib/cjs --ignore **/*.stories.js,**/*.spec.js --copy-files",
29
+ "build:es": "cross-env BABEL_ENV=es babel --root-mode upward --extensions .js,.jsx,.ts,.tsx ./src --out-dir lib/esm --ignore **/*.stories.js,**/*.spec.js --copy-files",
30
+ "build:umd": "webpack --mode production",
31
+ "build:types": "tsc -d --declarationDir lib/esm --declarationMap --resolveJsonModule --emitDeclarationOnly",
32
+ "build": "yarn clean:lib && yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types",
33
+ "prerelease": "yarn run clean:lib && yarn run build"
34
+ },
35
+ "homepage": "https://www.selfcommunity.com",
36
+ "files": [
37
+ "lib"
38
+ ],
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/selfcommunity/community-js/tree/main/packages/types"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/cli": "^7.12.13",
48
+ "@babel/core": "^7.12.13",
49
+ "@babel/plugin-proposal-class-properties": "^7.12.13",
50
+ "@babel/plugin-proposal-export-default-from": "^7.12.13",
51
+ "@babel/plugin-proposal-export-namespace-from": "^7.12.13",
52
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13",
53
+ "@babel/plugin-proposal-object-rest-spread": "^7.12.13",
54
+ "@babel/plugin-transform-modules-commonjs": "^7.12.13",
55
+ "@babel/preset-modules": "^0.1.4",
56
+ "@babel/preset-react": "^7.12.13",
57
+ "@babel/preset-typescript": "^7.12.13",
58
+ "@types/chai": "^4.2.14",
59
+ "@types/enzyme": "^3.10.8",
60
+ "@types/jest": "^26.0.20",
61
+ "@types/react": "17 || 18",
62
+ "@types/react-dom": "17 || 18",
63
+ "@types/sinon": "^9.0.10",
64
+ "@typescript-eslint/eslint-plugin": "^4.14.2",
65
+ "@typescript-eslint/parser": "^4.14.2",
66
+ "babel-jest": "^26.6.3",
67
+ "babel-loader": "^8.2.2",
68
+ "babel-preset-jason": "^6.3.0",
69
+ "chai": "^4.2.0",
70
+ "cherry-pick": "^0.5.0",
71
+ "enzyme": "^3.10.0",
72
+ "enzyme-adapter-react-16": "^1.15.6",
73
+ "eslint": "^7.19.0",
74
+ "eslint-config-prettier": "^7.2.0",
75
+ "eslint-plugin-import": "^2.22.1",
76
+ "eslint-plugin-mocha": "^8.0.0",
77
+ "eslint-plugin-prettier": "^4.0.0",
78
+ "eslint-plugin-react": "^7.22.0",
79
+ "eslint-plugin-react-hooks": "^4.2.0",
80
+ "faker": "^5.3.1",
81
+ "install-peers-cli": "^2.2.0",
82
+ "jest": "^26.6.3",
83
+ "lodash": "^4.17.15",
84
+ "postcss": "^8.2.4",
85
+ "prettier": "^2.2.1",
86
+ "rimraf": "^3.0.2",
87
+ "sass": "^1.32.6",
88
+ "sinon": "^9.2.4",
89
+ "typescript": "^4.1.3",
90
+ "webpack": "^5.20.1",
91
+ "webpack-atoms": "^17.1.0",
92
+ "webpack-cli": "^4.5.0"
93
+ },
94
+ "prettier": {
95
+ "printWidth": 150,
96
+ "bracketSpacing": false,
97
+ "trailingComma": "none",
98
+ "singleQuote": true,
99
+ "bracketSameLine": true
100
+ },
101
+ "bugs": {
102
+ "url": "https://github.com/selfcommunity/community-js/issues"
103
+ },
104
+ "gitHead": "4bf7598a9381b1b5281340402b8b3849a7a563fa"
105
+ }