strapi-plugin-comments 3.0.0-beta.0 → 3.0.0
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/README.md +83 -123
- package/dist/_chunks/{index-fAgatqD0.js → index-B-ygLKrb.js} +6080 -5662
- package/dist/_chunks/{index-fSb-gYwg.mjs → index-BgN4aUMA.mjs} +5 -5
- package/dist/_chunks/{index-h-TB6Qu2.mjs → index-Bx2boY6h.mjs} +6072 -5654
- package/dist/_chunks/{index-BQERo8pN.mjs → index-CIqMAf50.mjs} +1261 -1141
- package/dist/_chunks/{index-B6Q4U8YQ.js → index-CWfr5ejx.js} +27 -29
- package/dist/_chunks/{index-CTjupB9v.js → index-D8uskGzQ.js} +5 -5
- package/dist/_chunks/{index-BVj8EXjI.js → index-DFAPx7Bl.js} +1293 -1152
- package/dist/_chunks/{index-Bpbf7RON.mjs → index-Db2zwbpe.mjs} +27 -29
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +33 -52
- package/dist/admin/src/api/schemas.d.ts +454 -764
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/contexts/UserContext.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +34 -53
- package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
- package/dist/admin/src/hooks/useCommentsAll.d.ts +7 -10
- package/dist/admin/src/hooks/useReports.d.ts +6 -10
- package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
- package/dist/server/index.js +9307 -2467
- package/dist/server/index.mjs +9307 -2467
- package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/config/index.d.ts +52 -0
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/controllers/admin.controller.d.ts +110 -29
- package/dist/server/src/controllers/client.controller.d.ts +151 -23
- package/dist/server/src/controllers/index.d.ts +504 -197
- package/dist/server/src/controllers/settings.controller.d.ts +58 -2
- package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
- package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
- package/dist/server/src/graphql/index.d.ts +2 -0
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +95 -0
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/index.d.ts +3 -0
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +177 -0
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +87 -0
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +176 -0
- package/dist/server/src/graphql/queries/index.d.ts +3 -0
- package/dist/server/src/graphql/types/getComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getId.d.ts +2 -0
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/index.d.ts +3 -0
- package/dist/server/src/index.d.ts +1686 -779
- package/dist/server/src/register/custom-fields/index.d.ts +1 -1
- package/dist/server/src/register/index.d.ts +1 -1
- package/dist/server/src/repositories/comment.repository.d.ts +10 -1
- package/dist/server/src/repositories/index.d.ts +0 -2
- package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
- package/dist/server/src/repositories/store.repository.d.ts +175 -4
- package/dist/server/src/repositories/utils.d.ts +1 -3
- package/dist/server/src/routes/admin.routes.d.ts +1 -1
- package/dist/server/src/routes/client.routes.d.ts +1 -1
- package/dist/server/src/routes/index.d.ts +2 -2
- package/dist/server/src/services/admin/admin.service.d.ts +399 -188
- package/dist/server/src/services/admin/utils.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +343 -177
- package/dist/server/src/services/common.service.d.ts +66 -22
- package/dist/server/src/services/gql.service.d.ts +7 -0
- package/dist/server/src/services/index.d.ts +1131 -552
- package/dist/server/src/services/settings.service.d.ts +44 -2
- package/dist/server/src/services/utils/functions.d.ts +10 -6
- package/dist/server/src/test/utils.d.ts +1 -0
- package/dist/server/src/utils/constants.d.ts +1 -1
- package/dist/server/src/utils/getConfig.d.ts +2 -2
- package/dist/server/src/utils/getPluginService.d.ts +2 -2
- package/dist/server/src/utils/throwError.d.ts +1 -1
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +116 -80
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +7 -3
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +400 -72
- package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +18 -11
- /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RequestContext, StrapiContext } from '../@types
|
|
1
|
+
import { RequestContext, StrapiContext } from '../@types';
|
|
2
2
|
import { PluginServices } from '../services';
|
|
3
3
|
import { client as clientValidator } from '../validators/api';
|
|
4
4
|
declare const controllers: ({ strapi }: StrapiContext) => {
|
|
5
|
-
getService<T extends "
|
|
5
|
+
getService<T extends "gql" | "client" | "admin" | "common" | "settings">(name: T): PluginServices[T];
|
|
6
6
|
getStoreRepository(): {
|
|
7
|
-
getLocalConfig<P extends
|
|
7
|
+
getLocalConfig<P extends string>(prop?: P, defaultValue?: import("../@types").PathValue<{
|
|
8
8
|
enabledCollections?: string[];
|
|
9
9
|
approvalFlow?: string[];
|
|
10
10
|
entryLabel?: Record<string, string[]>;
|
|
@@ -18,7 +18,14 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
18
18
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
19
19
|
};
|
|
20
20
|
isGQLPluginEnabled?: boolean;
|
|
21
|
-
|
|
21
|
+
gql?: {
|
|
22
|
+
auth?: boolean;
|
|
23
|
+
};
|
|
24
|
+
client?: {
|
|
25
|
+
url?: string;
|
|
26
|
+
contactEmail?: string;
|
|
27
|
+
};
|
|
28
|
+
}, P>): import("../@types").PathValue<{
|
|
22
29
|
enabledCollections?: string[];
|
|
23
30
|
approvalFlow?: string[];
|
|
24
31
|
entryLabel?: Record<string, string[]>;
|
|
@@ -32,7 +39,14 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
32
39
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
33
40
|
};
|
|
34
41
|
isGQLPluginEnabled?: boolean;
|
|
35
|
-
|
|
42
|
+
gql?: {
|
|
43
|
+
auth?: boolean;
|
|
44
|
+
};
|
|
45
|
+
client?: {
|
|
46
|
+
url?: string;
|
|
47
|
+
contactEmail?: string;
|
|
48
|
+
};
|
|
49
|
+
}, P>;
|
|
36
50
|
getStore(): Promise<{
|
|
37
51
|
get(params?: Partial<{
|
|
38
52
|
key: string;
|
|
@@ -71,6 +85,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
71
85
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
72
86
|
};
|
|
73
87
|
isGQLPluginEnabled?: boolean;
|
|
88
|
+
gql?: {
|
|
89
|
+
auth?: boolean;
|
|
90
|
+
};
|
|
91
|
+
client?: {
|
|
92
|
+
url?: string;
|
|
93
|
+
contactEmail?: string;
|
|
94
|
+
};
|
|
74
95
|
}>>;
|
|
75
96
|
get<T_1 extends boolean>(viaSettingsPage?: T_1): Promise<import("../utils/Either").Either<unknown, T_1 extends true ? {
|
|
76
97
|
enabledCollections?: string[];
|
|
@@ -86,6 +107,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
86
107
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
87
108
|
};
|
|
88
109
|
isGQLPluginEnabled?: boolean;
|
|
110
|
+
gql?: {
|
|
111
|
+
auth?: boolean;
|
|
112
|
+
};
|
|
113
|
+
client?: {
|
|
114
|
+
url?: string;
|
|
115
|
+
contactEmail?: string;
|
|
116
|
+
};
|
|
89
117
|
} : Omit<{
|
|
90
118
|
enabledCollections?: string[];
|
|
91
119
|
approvalFlow?: string[];
|
|
@@ -100,6 +128,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
100
128
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
101
129
|
};
|
|
102
130
|
isGQLPluginEnabled?: boolean;
|
|
131
|
+
gql?: {
|
|
132
|
+
auth?: boolean;
|
|
133
|
+
};
|
|
134
|
+
client?: {
|
|
135
|
+
url?: string;
|
|
136
|
+
contactEmail?: string;
|
|
137
|
+
};
|
|
103
138
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
104
139
|
update(config: {
|
|
105
140
|
enabledCollections?: string[];
|
|
@@ -115,6 +150,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
115
150
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
116
151
|
};
|
|
117
152
|
isGQLPluginEnabled?: boolean;
|
|
153
|
+
gql?: {
|
|
154
|
+
auth?: boolean;
|
|
155
|
+
};
|
|
156
|
+
client?: {
|
|
157
|
+
url?: string;
|
|
158
|
+
contactEmail?: string;
|
|
159
|
+
};
|
|
118
160
|
}): Promise<import("../utils/Either").Either<unknown, {
|
|
119
161
|
enabledCollections?: string[];
|
|
120
162
|
approvalFlow?: string[];
|
|
@@ -129,6 +171,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
129
171
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
130
172
|
};
|
|
131
173
|
isGQLPluginEnabled?: boolean;
|
|
174
|
+
gql?: {
|
|
175
|
+
auth?: boolean;
|
|
176
|
+
};
|
|
177
|
+
client?: {
|
|
178
|
+
url?: string;
|
|
179
|
+
contactEmail?: string;
|
|
180
|
+
};
|
|
132
181
|
} | Omit<{
|
|
133
182
|
enabledCollections?: string[];
|
|
134
183
|
approvalFlow?: string[];
|
|
@@ -143,6 +192,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
143
192
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
144
193
|
};
|
|
145
194
|
isGQLPluginEnabled?: boolean;
|
|
195
|
+
gql?: {
|
|
196
|
+
auth?: boolean;
|
|
197
|
+
};
|
|
198
|
+
client?: {
|
|
199
|
+
url?: string;
|
|
200
|
+
contactEmail?: string;
|
|
201
|
+
};
|
|
146
202
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
147
203
|
restore(): Promise<import("../utils/Either").Either<unknown, {
|
|
148
204
|
enabledCollections?: string[];
|
|
@@ -158,6 +214,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
158
214
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
159
215
|
};
|
|
160
216
|
isGQLPluginEnabled?: boolean;
|
|
217
|
+
gql?: {
|
|
218
|
+
auth?: boolean;
|
|
219
|
+
};
|
|
220
|
+
client?: {
|
|
221
|
+
url?: string;
|
|
222
|
+
contactEmail?: string;
|
|
223
|
+
};
|
|
161
224
|
} | Omit<{
|
|
162
225
|
enabledCollections?: string[];
|
|
163
226
|
approvalFlow?: string[];
|
|
@@ -172,6 +235,13 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
172
235
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
173
236
|
};
|
|
174
237
|
isGQLPluginEnabled?: boolean;
|
|
238
|
+
gql?: {
|
|
239
|
+
auth?: boolean;
|
|
240
|
+
};
|
|
241
|
+
client?: {
|
|
242
|
+
url?: string;
|
|
243
|
+
contactEmail?: string;
|
|
244
|
+
};
|
|
175
245
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
176
246
|
};
|
|
177
247
|
post(ctx: RequestContext<object, Pick<clientValidator.NewCommentValidatorSchema, 'relation'>>): Promise<{
|
|
@@ -192,7 +262,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
192
262
|
authorName?: string;
|
|
193
263
|
authorEmail?: string;
|
|
194
264
|
authorAvatar?: string;
|
|
195
|
-
authorUser?: string
|
|
265
|
+
authorUser?: string | {
|
|
266
|
+
id?: number;
|
|
267
|
+
email?: string;
|
|
268
|
+
};
|
|
196
269
|
locale?: string;
|
|
197
270
|
gotThread?: boolean;
|
|
198
271
|
threadFirstItemId?: number;
|
|
@@ -226,7 +299,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
226
299
|
authorName?: string;
|
|
227
300
|
authorEmail?: string;
|
|
228
301
|
authorAvatar?: string;
|
|
229
|
-
authorUser?: string
|
|
302
|
+
authorUser?: string | {
|
|
303
|
+
id?: number;
|
|
304
|
+
email?: string;
|
|
305
|
+
};
|
|
230
306
|
locale?: string;
|
|
231
307
|
gotThread?: boolean;
|
|
232
308
|
threadFirstItemId?: number;
|
|
@@ -263,7 +339,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
263
339
|
authorName?: string;
|
|
264
340
|
authorEmail?: string;
|
|
265
341
|
authorAvatar?: string;
|
|
266
|
-
authorUser?: string
|
|
342
|
+
authorUser?: string | {
|
|
343
|
+
id?: number;
|
|
344
|
+
email?: string;
|
|
345
|
+
};
|
|
267
346
|
locale?: string;
|
|
268
347
|
gotThread?: boolean;
|
|
269
348
|
threadFirstItemId?: number;
|
|
@@ -297,7 +376,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
297
376
|
authorName?: string;
|
|
298
377
|
authorEmail?: string;
|
|
299
378
|
authorAvatar?: string;
|
|
300
|
-
authorUser?: string
|
|
379
|
+
authorUser?: string | {
|
|
380
|
+
id?: number;
|
|
381
|
+
email?: string;
|
|
382
|
+
};
|
|
301
383
|
locale?: string;
|
|
302
384
|
gotThread?: boolean;
|
|
303
385
|
threadFirstItemId?: number;
|
|
@@ -326,6 +408,8 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
326
408
|
approvalStatus?: string;
|
|
327
409
|
related?: {
|
|
328
410
|
id?: number;
|
|
411
|
+
documentId?: string;
|
|
412
|
+
locale?: string;
|
|
329
413
|
uid?: string;
|
|
330
414
|
requireCommentsApproval?: boolean;
|
|
331
415
|
};
|
|
@@ -336,7 +420,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
336
420
|
authorName?: string;
|
|
337
421
|
authorEmail?: string;
|
|
338
422
|
authorAvatar?: string;
|
|
339
|
-
authorUser?: string
|
|
423
|
+
authorUser?: string | {
|
|
424
|
+
id?: number;
|
|
425
|
+
email?: string;
|
|
426
|
+
};
|
|
340
427
|
locale?: string;
|
|
341
428
|
gotThread?: boolean;
|
|
342
429
|
threadFirstItemId?: number;
|
|
@@ -370,7 +457,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
370
457
|
authorName?: string;
|
|
371
458
|
authorEmail?: string;
|
|
372
459
|
authorAvatar?: string;
|
|
373
|
-
authorUser?: string
|
|
460
|
+
authorUser?: string | {
|
|
461
|
+
id?: number;
|
|
462
|
+
email?: string;
|
|
463
|
+
};
|
|
374
464
|
locale?: string;
|
|
375
465
|
gotThread?: boolean;
|
|
376
466
|
threadFirstItemId?: number;
|
|
@@ -413,7 +503,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
413
503
|
authorName?: string;
|
|
414
504
|
authorEmail?: string;
|
|
415
505
|
authorAvatar?: string;
|
|
416
|
-
authorUser?: string
|
|
506
|
+
authorUser?: string | {
|
|
507
|
+
id?: number;
|
|
508
|
+
email?: string;
|
|
509
|
+
};
|
|
417
510
|
locale?: string;
|
|
418
511
|
gotThread?: boolean;
|
|
419
512
|
threadFirstItemId?: number;
|
|
@@ -447,7 +540,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
447
540
|
authorName?: string;
|
|
448
541
|
authorEmail?: string;
|
|
449
542
|
authorAvatar?: string;
|
|
450
|
-
authorUser?: string
|
|
543
|
+
authorUser?: string | {
|
|
544
|
+
id?: number;
|
|
545
|
+
email?: string;
|
|
546
|
+
};
|
|
451
547
|
locale?: string;
|
|
452
548
|
gotThread?: boolean;
|
|
453
549
|
threadFirstItemId?: number;
|
|
@@ -484,7 +580,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
484
580
|
authorName?: string;
|
|
485
581
|
authorEmail?: string;
|
|
486
582
|
authorAvatar?: string;
|
|
487
|
-
authorUser?: string
|
|
583
|
+
authorUser?: string | {
|
|
584
|
+
id?: number;
|
|
585
|
+
email?: string;
|
|
586
|
+
};
|
|
488
587
|
locale?: string;
|
|
489
588
|
gotThread?: boolean;
|
|
490
589
|
threadFirstItemId?: number;
|
|
@@ -517,7 +616,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
517
616
|
authorName?: string;
|
|
518
617
|
authorEmail?: string;
|
|
519
618
|
authorAvatar?: string;
|
|
520
|
-
authorUser?: string
|
|
619
|
+
authorUser?: string | {
|
|
620
|
+
id?: number;
|
|
621
|
+
email?: string;
|
|
622
|
+
};
|
|
521
623
|
locale?: string;
|
|
522
624
|
gotThread?: boolean;
|
|
523
625
|
threadFirstItemId?: number;
|
|
@@ -546,6 +648,8 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
546
648
|
approvalStatus?: string;
|
|
547
649
|
related?: {
|
|
548
650
|
id?: number;
|
|
651
|
+
documentId?: string;
|
|
652
|
+
locale?: string;
|
|
549
653
|
uid?: string;
|
|
550
654
|
requireCommentsApproval?: boolean;
|
|
551
655
|
};
|
|
@@ -556,7 +660,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
556
660
|
authorName?: string;
|
|
557
661
|
authorEmail?: string;
|
|
558
662
|
authorAvatar?: string;
|
|
559
|
-
authorUser?: string
|
|
663
|
+
authorUser?: string | {
|
|
664
|
+
id?: number;
|
|
665
|
+
email?: string;
|
|
666
|
+
};
|
|
560
667
|
locale?: string;
|
|
561
668
|
gotThread?: boolean;
|
|
562
669
|
threadFirstItemId?: number;
|
|
@@ -589,7 +696,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
589
696
|
authorName?: string;
|
|
590
697
|
authorEmail?: string;
|
|
591
698
|
authorAvatar?: string;
|
|
592
|
-
authorUser?: string
|
|
699
|
+
authorUser?: string | {
|
|
700
|
+
id?: number;
|
|
701
|
+
email?: string;
|
|
702
|
+
};
|
|
593
703
|
locale?: string;
|
|
594
704
|
gotThread?: boolean;
|
|
595
705
|
threadFirstItemId?: number;
|
|
@@ -632,7 +742,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
632
742
|
authorName?: string;
|
|
633
743
|
authorEmail?: string;
|
|
634
744
|
authorAvatar?: string;
|
|
635
|
-
authorUser?: string
|
|
745
|
+
authorUser?: string | {
|
|
746
|
+
id?: number;
|
|
747
|
+
email?: string;
|
|
748
|
+
};
|
|
636
749
|
locale?: string;
|
|
637
750
|
gotThread?: boolean;
|
|
638
751
|
threadFirstItemId?: number;
|
|
@@ -666,7 +779,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
666
779
|
authorName?: string;
|
|
667
780
|
authorEmail?: string;
|
|
668
781
|
authorAvatar?: string;
|
|
669
|
-
authorUser?: string
|
|
782
|
+
authorUser?: string | {
|
|
783
|
+
id?: number;
|
|
784
|
+
email?: string;
|
|
785
|
+
};
|
|
670
786
|
locale?: string;
|
|
671
787
|
gotThread?: boolean;
|
|
672
788
|
threadFirstItemId?: number;
|
|
@@ -703,7 +819,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
703
819
|
authorName?: string;
|
|
704
820
|
authorEmail?: string;
|
|
705
821
|
authorAvatar?: string;
|
|
706
|
-
authorUser?: string
|
|
822
|
+
authorUser?: string | {
|
|
823
|
+
id?: number;
|
|
824
|
+
email?: string;
|
|
825
|
+
};
|
|
707
826
|
locale?: string;
|
|
708
827
|
gotThread?: boolean;
|
|
709
828
|
threadFirstItemId?: number;
|
|
@@ -737,7 +856,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
737
856
|
authorName?: string;
|
|
738
857
|
authorEmail?: string;
|
|
739
858
|
authorAvatar?: string;
|
|
740
|
-
authorUser?: string
|
|
859
|
+
authorUser?: string | {
|
|
860
|
+
id?: number;
|
|
861
|
+
email?: string;
|
|
862
|
+
};
|
|
741
863
|
locale?: string;
|
|
742
864
|
gotThread?: boolean;
|
|
743
865
|
threadFirstItemId?: number;
|
|
@@ -783,7 +905,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
783
905
|
authorName?: string;
|
|
784
906
|
authorEmail?: string;
|
|
785
907
|
authorAvatar?: string;
|
|
786
|
-
authorUser?: string
|
|
908
|
+
authorUser?: string | {
|
|
909
|
+
id?: number;
|
|
910
|
+
email?: string;
|
|
911
|
+
};
|
|
787
912
|
locale?: string;
|
|
788
913
|
gotThread?: boolean;
|
|
789
914
|
threadFirstItemId?: number;
|
|
@@ -817,7 +942,10 @@ declare const controllers: ({ strapi }: StrapiContext) => {
|
|
|
817
942
|
authorName?: string;
|
|
818
943
|
authorEmail?: string;
|
|
819
944
|
authorAvatar?: string;
|
|
820
|
-
authorUser?: string
|
|
945
|
+
authorUser?: string | {
|
|
946
|
+
id?: number;
|
|
947
|
+
email?: string;
|
|
948
|
+
};
|
|
821
949
|
locale?: string;
|
|
822
950
|
gotThread?: boolean;
|
|
823
951
|
threadFirstItemId?: number;
|