@selfcommunity/types 0.5.0-alpha.15 → 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.
@@ -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
  */
@@ -153,10 +153,18 @@ export interface SCFeedObjectType {
153
153
  * True if the logged user follow this object
154
154
  */
155
155
  followed?: boolean;
156
+ /**
157
+ * Number of views
158
+ */
159
+ view_count: number;
156
160
  /**
157
161
  * Number of votes
158
162
  */
159
163
  vote_count: number;
164
+ /**
165
+ * Number of followers
166
+ */
167
+ follower_count: number;
160
168
  /**
161
169
  * Reaction obj
162
170
  */
@@ -164,7 +172,7 @@ export interface SCFeedObjectType {
164
172
  /**
165
173
  * Reactions number and objs
166
174
  */
167
- reactions_count: [];
175
+ reactions_count: any[];
168
176
  /**
169
177
  * True if the logged user has already voted this object
170
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
@@ -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
  */
@@ -153,10 +153,18 @@ export interface SCFeedObjectType {
153
153
  * True if the logged user follow this object
154
154
  */
155
155
  followed?: boolean;
156
+ /**
157
+ * Number of views
158
+ */
159
+ view_count: number;
156
160
  /**
157
161
  * Number of votes
158
162
  */
159
163
  vote_count: number;
164
+ /**
165
+ * Number of followers
166
+ */
167
+ follower_count: number;
160
168
  /**
161
169
  * Reaction obj
162
170
  */
@@ -164,7 +172,7 @@ export interface SCFeedObjectType {
164
172
  /**
165
173
  * Reactions number and objs
166
174
  */
167
- reactions_count: [];
175
+ reactions_count: any[];
168
176
  /**
169
177
  * True if the logged user has already voted this object
170
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.15",
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": "e49e6e646b8c5e49936248ac1c3cd26a52697b49"
104
+ "gitHead": "b7d110e4cd0c5566f484c3d9d43df9ff394aa52e"
105
105
  }