@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.
- package/lib/cjs/types/comment.d.ts +8 -0
- package/lib/cjs/types/embed.d.ts +1 -1
- package/lib/cjs/types/feed.d.ts +17 -1
- package/lib/cjs/types/user.d.ts +6 -2
- package/lib/esm/types/comment.d.ts +8 -0
- package/lib/esm/types/embed.d.ts +1 -1
- package/lib/esm/types/feed.d.ts +17 -1
- package/lib/esm/types/user.d.ts +6 -2
- package/package.json +2 -2
|
@@ -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
|
*/
|
package/lib/cjs/types/embed.d.ts
CHANGED
package/lib/cjs/types/feed.d.ts
CHANGED
|
@@ -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
|
*/
|
package/lib/cjs/types/user.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export interface SCUserType {
|
|
|
91
91
|
* - follow/unfollow a category
|
|
92
92
|
* - unfollow user
|
|
93
93
|
*/
|
|
94
|
-
status
|
|
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
|
|
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
|
*/
|
package/lib/esm/types/embed.d.ts
CHANGED
package/lib/esm/types/feed.d.ts
CHANGED
|
@@ -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
|
*/
|
package/lib/esm/types/user.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export interface SCUserType {
|
|
|
91
91
|
* - follow/unfollow a category
|
|
92
92
|
* - unfollow user
|
|
93
93
|
*/
|
|
94
|
-
status
|
|
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
|
|
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.
|
|
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": "
|
|
104
|
+
"gitHead": "b7d110e4cd0c5566f484c3d9d43df9ff394aa52e"
|
|
105
105
|
}
|