@selfcommunity/types 0.5.0-alpha.14 → 0.5.0-alpha.16

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.
@@ -37,6 +37,14 @@ export interface SCCommentType {
37
37
  * Summary
38
38
  */
39
39
  summary: string;
40
+ /**
41
+ * Summary html
42
+ */
43
+ summary_html?: string;
44
+ /**
45
+ * True if summary_html is truncated
46
+ */
47
+ summary_truncated?: boolean;
40
48
  /**
41
49
  * If the comments is deleted
42
50
  */
@@ -16,7 +16,7 @@ export interface SCEmbedType {
16
16
  /**
17
17
  * External id for the embed object
18
18
  */
19
- embed_id: number;
19
+ embed_id: number | string;
20
20
  /**
21
21
  * Url for the resource, if any
22
22
  */
@@ -125,6 +125,14 @@ export interface SCFeedObjectType {
125
125
  * Summary
126
126
  */
127
127
  summary: string;
128
+ /**
129
+ * Summary html
130
+ */
131
+ summary_html?: string;
132
+ /**
133
+ * True if summary_html is truncated
134
+ */
135
+ summary_truncated?: boolean;
128
136
  /**
129
137
  * True if the object is deleted
130
138
  */
@@ -145,10 +153,18 @@ export interface SCFeedObjectType {
145
153
  * True if the logged user follow this object
146
154
  */
147
155
  followed?: boolean;
156
+ /**
157
+ * Number of views
158
+ */
159
+ view_count: number;
148
160
  /**
149
161
  * Number of votes
150
162
  */
151
163
  vote_count: number;
164
+ /**
165
+ * Number of followers
166
+ */
167
+ follower_count: number;
152
168
  /**
153
169
  * Reaction obj
154
170
  */
@@ -156,7 +172,7 @@ export interface SCFeedObjectType {
156
172
  /**
157
173
  * Reactions number and objs
158
174
  */
159
- reactions_count: [];
175
+ reactions_count: any[];
160
176
  /**
161
177
  * True if the logged user has already voted this object
162
178
  */
@@ -91,7 +91,7 @@ export interface SCUserType {
91
91
  * - follow/unfollow a category
92
92
  * - unfollow user
93
93
  */
94
- status: string;
94
+ status?: string;
95
95
  /**
96
96
  * User website.
97
97
  */
@@ -171,7 +171,7 @@ export interface SCUserType {
171
171
  /**
172
172
  * User role
173
173
  */
174
- role: string;
174
+ role?: string;
175
175
  /**
176
176
  * interactions counter
177
177
  */
@@ -188,6 +188,10 @@ export interface SCUserType {
188
188
  * Datetime of the account deletion
189
189
  */
190
190
  deleted_at?: Date;
191
+ /**
192
+ * Custom user metadata fields
193
+ */
194
+ [p: string]: any;
191
195
  }
192
196
  /**
193
197
  * User Settings
@@ -37,6 +37,14 @@ export interface SCCommentType {
37
37
  * Summary
38
38
  */
39
39
  summary: string;
40
+ /**
41
+ * Summary html
42
+ */
43
+ summary_html?: string;
44
+ /**
45
+ * True if summary_html is truncated
46
+ */
47
+ summary_truncated?: boolean;
40
48
  /**
41
49
  * If the comments is deleted
42
50
  */
@@ -16,7 +16,7 @@ export interface SCEmbedType {
16
16
  /**
17
17
  * External id for the embed object
18
18
  */
19
- embed_id: number;
19
+ embed_id: number | string;
20
20
  /**
21
21
  * Url for the resource, if any
22
22
  */
@@ -125,6 +125,14 @@ export interface SCFeedObjectType {
125
125
  * Summary
126
126
  */
127
127
  summary: string;
128
+ /**
129
+ * Summary html
130
+ */
131
+ summary_html?: string;
132
+ /**
133
+ * True if summary_html is truncated
134
+ */
135
+ summary_truncated?: boolean;
128
136
  /**
129
137
  * True if the object is deleted
130
138
  */
@@ -145,10 +153,18 @@ export interface SCFeedObjectType {
145
153
  * True if the logged user follow this object
146
154
  */
147
155
  followed?: boolean;
156
+ /**
157
+ * Number of views
158
+ */
159
+ view_count: number;
148
160
  /**
149
161
  * Number of votes
150
162
  */
151
163
  vote_count: number;
164
+ /**
165
+ * Number of followers
166
+ */
167
+ follower_count: number;
152
168
  /**
153
169
  * Reaction obj
154
170
  */
@@ -156,7 +172,7 @@ export interface SCFeedObjectType {
156
172
  /**
157
173
  * Reactions number and objs
158
174
  */
159
- reactions_count: [];
175
+ reactions_count: any[];
160
176
  /**
161
177
  * True if the logged user has already voted this object
162
178
  */
@@ -91,7 +91,7 @@ export interface SCUserType {
91
91
  * - follow/unfollow a category
92
92
  * - unfollow user
93
93
  */
94
- status: string;
94
+ status?: string;
95
95
  /**
96
96
  * User website.
97
97
  */
@@ -171,7 +171,7 @@ export interface SCUserType {
171
171
  /**
172
172
  * User role
173
173
  */
174
- role: string;
174
+ role?: string;
175
175
  /**
176
176
  * interactions counter
177
177
  */
@@ -188,6 +188,10 @@ export interface SCUserType {
188
188
  * Datetime of the account deletion
189
189
  */
190
190
  deleted_at?: Date;
191
+ /**
192
+ * Custom user metadata fields
193
+ */
194
+ [p: string]: any;
191
195
  }
192
196
  /**
193
197
  * User Settings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfcommunity/types",
3
- "version": "0.5.0-alpha.14",
3
+ "version": "0.5.0-alpha.16",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "./lib/cjs/index.js",
@@ -101,5 +101,5 @@
101
101
  "bugs": {
102
102
  "url": "https://github.com/selfcommunity/community-js/issues"
103
103
  },
104
- "gitHead": "69ae3e727d277477fae8508b950d4baf891fed8a"
104
+ "gitHead": "b7d110e4cd0c5566f484c3d9d43df9ff394aa52e"
105
105
  }