@@ -53,12 +53,13 @@ export const comments = {
53
53
*
54
54
* @see [post-a-comment]{@link https://trakt.docs.apiary.io/#reference/comments/comments/post-a-comment}
55
55
*/
56
- add : new TraktClientEndpoint < TraktCommentRequest , TraktComment > ( {
56
+ add : new TraktClientEndpoint < TraktCommentRequest , TraktComment , false > ( {
57
57
method : HttpMethod . POST ,
58
58
url : '/comments' ,
59
59
opts : {
60
60
auth : true ,
61
61
emoji : true ,
62
+ cache : false ,
62
63
} ,
63
64
body : {
64
65
comment : true ,
@@ -110,13 +111,15 @@ export const comments = {
110
111
/** A specific comment ID. */
111
112
id : number ;
112
113
} ,
113
- TraktComment
114
+ TraktComment ,
115
+ false
114
116
> ( {
115
117
method : HttpMethod . PUT ,
116
118
url : '/comments/:id' ,
117
119
opts : {
118
120
auth : true ,
119
121
emoji : true ,
122
+ cache : false ,
120
123
parameters : {
121
124
path : {
122
125
id : true ,
@@ -138,14 +141,19 @@ export const comments = {
138
141
*
139
142
* @see [delete-a-comment-or-reply]{@link https://trakt.docs.apiary.io/#reference/comments/comment/delete-a-comment-or-reply}
140
143
*/
141
- remove : new TraktClientEndpoint < {
142
- /** A specific comment ID. */
143
- id : number ;
144
- } > ( {
144
+ remove : new TraktClientEndpoint <
145
+ {
146
+ /** A specific comment ID. */
147
+ id : number ;
148
+ } ,
149
+ unknown ,
150
+ false
151
+ > ( {
145
152
method : HttpMethod . DELETE ,
146
153
url : '/comments/:id' ,
147
154
opts : {
148
155
auth : true ,
156
+ cache : false ,
149
157
parameters : {
150
158
path : {
151
159
id : true ,
@@ -196,13 +204,15 @@ export const comments = {
196
204
/** Is this a spoiler? Defaults to false */
197
205
spoiler ?: boolean ;
198
206
} ,
199
- TraktComment
207
+ TraktComment ,
208
+ false
200
209
> ( {
201
210
method : HttpMethod . POST ,
202
211
url : '/comments/:id/replies' ,
203
212
opts : {
204
213
auth : true ,
205
214
emoji : true ,
215
+ cache : false ,
206
216
parameters : {
207
217
path : {
208
218
id : true ,
@@ -273,14 +283,19 @@ export const comments = {
273
283
* @see [like-a-comment]{@link https://trakt.docs.apiary.io/#reference/comments/replies/like-a-comment}
274
284
*/
275
285
like : {
276
- add : new TraktClientEndpoint < {
277
- /** A specific comment ID. */
278
- id : number ;
279
- } > ( {
286
+ add : new TraktClientEndpoint <
287
+ {
288
+ /** A specific comment ID. */
289
+ id : number ;
290
+ } ,
291
+ unknown ,
292
+ false
293
+ > ( {
280
294
method : HttpMethod . POST ,
281
295
url : '/comments/:id/like' ,
282
296
opts : {
283
297
auth : true ,
298
+ cache : false ,
284
299
parameters : {
285
300
path : {
286
301
id : true ,
@@ -295,14 +310,19 @@ export const comments = {
295
310
*
296
311
* @see [remove-like-on-a-comment]{@link https://trakt.docs.apiary.io/#reference/comments/like/remove-like-on-a-comment}
297
312
*/
298
- remove : new TraktClientEndpoint < {
299
- /** A specific comment ID. */
300
- id : number ;
301
- } > ( {
313
+ remove : new TraktClientEndpoint <
314
+ {
315
+ /** A specific comment ID. */
316
+ id : number ;
317
+ } ,
318
+ unknown ,
319
+ false
320
+ > ( {
302
321
method : HttpMethod . DELETE ,
303
322
url : '/comments/:id/like' ,
304
323
opts : {
305
324
auth : true ,
325
+ cache : false ,
306
326
parameters : {
307
327
path : {
308
328
id : true ,
0 commit comments