@@ -33,6 +33,18 @@ export interface ReplyComment {
33
33
* @memberof ReplyComment
34
34
*/
35
35
id : string ;
36
+ /**
37
+ *
38
+ * @type {string }
39
+ * @memberof ReplyComment
40
+ */
41
+ entityId : string ;
42
+ /**
43
+ *
44
+ * @type {string }
45
+ * @memberof ReplyComment
46
+ */
47
+ entityType : string ;
36
48
/**
37
49
*
38
50
* @type {string }
@@ -101,6 +113,8 @@ export interface ReplyComment {
101
113
export function instanceOfReplyComment ( value : object ) : value is ReplyComment {
102
114
let isInstance = true ;
103
115
isInstance = isInstance && "id" in value && value [ "id" ] !== undefined ;
116
+ isInstance = isInstance && "entityId" in value && value [ "entityId" ] !== undefined ;
117
+ isInstance = isInstance && "entityType" in value && value [ "entityType" ] !== undefined ;
104
118
isInstance = isInstance && "userId" in value && value [ "userId" ] !== undefined ;
105
119
isInstance = isInstance && "message" in value && value [ "message" ] !== undefined ;
106
120
isInstance = isInstance && "reactCount" in value && value [ "reactCount" ] !== undefined ;
@@ -121,6 +135,8 @@ export function ReplyCommentFromJSONTyped(json: any, ignoreDiscriminator: boolea
121
135
return {
122
136
123
137
'id' : json [ 'id' ] ,
138
+ 'entityId' : json [ 'entity_id' ] ,
139
+ 'entityType' : json [ 'entity_type' ] ,
124
140
'userId' : json [ 'user_id' ] ,
125
141
'message' : json [ 'message' ] ,
126
142
'mentions' : ! exists ( json , 'mentions' ) ? undefined : ( ( json [ 'mentions' ] as Array < any > ) . map ( CommentMentionFromJSON ) ) ,
@@ -144,6 +160,8 @@ export function ReplyCommentToJSON(value?: ReplyComment | null): any {
144
160
return {
145
161
146
162
'id' : value . id ,
163
+ 'entity_id' : value . entityId ,
164
+ 'entity_type' : value . entityType ,
147
165
'user_id' : value . userId ,
148
166
'message' : value . message ,
149
167
'mentions' : value . mentions === undefined ? undefined : ( ( value . mentions as Array < any > ) . map ( CommentMentionToJSON ) ) ,
0 commit comments