strapi-plugin-comments 3.0.0-beta.1 → 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 +81 -122
- package/dist/_chunks/{index-CY_AVWS-.js → index-B-ygLKrb.js} +417 -242
- package/dist/_chunks/{index-D3iNqWZT.mjs → index-BgN4aUMA.mjs} +5 -5
- package/dist/_chunks/{index-BBcsmSTs.mjs → index-Bx2boY6h.mjs} +420 -245
- package/dist/_chunks/{index-DJ32APz-.mjs → index-CIqMAf50.mjs} +1277 -1152
- package/dist/_chunks/{index-BXEk5PWx.js → index-CWfr5ejx.js} +20 -26
- package/dist/_chunks/{index-BFPteXuP.js → index-D8uskGzQ.js} +5 -5
- package/dist/_chunks/{index-Bcck91A8.js → index-DFAPx7Bl.js} +1290 -1144
- package/dist/_chunks/{index-D9MOkoQ2.mjs → index-Db2zwbpe.mjs} +20 -26
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +30 -50
- package/dist/admin/src/api/schemas.d.ts +432 -756
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +30 -50
- package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
- package/dist/admin/src/hooks/useReports.d.ts +6 -10
- package/dist/server/index.js +198 -144
- package/dist/server/index.mjs +198 -144
- 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 +30 -0
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/controllers/admin.controller.d.ts +108 -29
- package/dist/server/src/controllers/client.controller.d.ts +117 -23
- package/dist/server/src/controllers/index.d.ts +297 -88
- package/dist/server/src/controllers/settings.controller.d.ts +33 -1
- package/dist/server/src/graphql/index.d.ts +1 -1
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/index.d.ts +2 -2
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
- package/dist/server/src/graphql/queries/index.d.ts +2 -2
- package/dist/server/src/graphql/types/getComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getId.d.ts +1 -1
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +921 -314
- 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 +159 -3
- 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 +232 -78
- package/dist/server/src/services/admin/utils.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +177 -66
- package/dist/server/src/services/common.service.d.ts +60 -19
- package/dist/server/src/services/gql.service.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +608 -222
- package/dist/server/src/services/settings.service.d.ts +25 -1
- package/dist/server/src/services/utils/functions.d.ts +1 -3
- 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 +10 -9
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -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 -12
- /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,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="koa" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
register: (context: import("./@types
|
|
4
|
-
bootstrap: ({ strapi }: import("./@types
|
|
3
|
+
register: (context: import("./@types").StrapiContext) => void;
|
|
4
|
+
bootstrap: ({ strapi }: import("./@types").StrapiContext) => Promise<void>;
|
|
5
5
|
config: {
|
|
6
6
|
readonly default: {
|
|
7
7
|
enabledCollections?: string[];
|
|
@@ -20,6 +20,10 @@ declare const _default: {
|
|
|
20
20
|
gql?: {
|
|
21
21
|
auth?: boolean;
|
|
22
22
|
};
|
|
23
|
+
client?: {
|
|
24
|
+
url?: string;
|
|
25
|
+
contactEmail?: string;
|
|
26
|
+
};
|
|
23
27
|
};
|
|
24
28
|
readonly validate: (config: unknown) => import("zod").SafeParseReturnType<{
|
|
25
29
|
enabledCollections?: string[];
|
|
@@ -38,6 +42,10 @@ declare const _default: {
|
|
|
38
42
|
gql?: {
|
|
39
43
|
auth?: boolean;
|
|
40
44
|
};
|
|
45
|
+
client?: {
|
|
46
|
+
url?: string;
|
|
47
|
+
contactEmail?: string;
|
|
48
|
+
};
|
|
41
49
|
}, {
|
|
42
50
|
enabledCollections?: string[];
|
|
43
51
|
approvalFlow?: string[];
|
|
@@ -55,12 +63,16 @@ declare const _default: {
|
|
|
55
63
|
gql?: {
|
|
56
64
|
auth?: boolean;
|
|
57
65
|
};
|
|
66
|
+
client?: {
|
|
67
|
+
url?: string;
|
|
68
|
+
contactEmail?: string;
|
|
69
|
+
};
|
|
58
70
|
}>;
|
|
59
71
|
};
|
|
60
72
|
controllers: {
|
|
61
|
-
admin: ({ strapi }: import("./@types
|
|
62
|
-
getService<T extends "gql" | "
|
|
63
|
-
findAll(ctx: import("./@types
|
|
73
|
+
admin: ({ strapi }: import("./@types").StrapiContext) => {
|
|
74
|
+
getService<T extends "gql" | "client" | "admin" | "common" | "settings">(name: T): import("./services").PluginServices[T];
|
|
75
|
+
findAll(ctx: import("./@types").RequestContext): Promise<{
|
|
64
76
|
pagination: {
|
|
65
77
|
page?: number;
|
|
66
78
|
pageSize?: number;
|
|
@@ -91,7 +103,10 @@ declare const _default: {
|
|
|
91
103
|
authorName?: string;
|
|
92
104
|
authorEmail?: string;
|
|
93
105
|
authorAvatar?: string;
|
|
94
|
-
authorUser?: string
|
|
106
|
+
authorUser?: string | {
|
|
107
|
+
id?: number;
|
|
108
|
+
email?: string;
|
|
109
|
+
};
|
|
95
110
|
locale?: string;
|
|
96
111
|
gotThread?: boolean;
|
|
97
112
|
threadFirstItemId?: number;
|
|
@@ -125,7 +140,10 @@ declare const _default: {
|
|
|
125
140
|
authorName?: string;
|
|
126
141
|
authorEmail?: string;
|
|
127
142
|
authorAvatar?: string;
|
|
128
|
-
authorUser?: string
|
|
143
|
+
authorUser?: string | {
|
|
144
|
+
id?: number;
|
|
145
|
+
email?: string;
|
|
146
|
+
};
|
|
129
147
|
locale?: string;
|
|
130
148
|
gotThread?: boolean;
|
|
131
149
|
threadFirstItemId?: number;
|
|
@@ -144,7 +162,7 @@ declare const _default: {
|
|
|
144
162
|
};
|
|
145
163
|
}[];
|
|
146
164
|
}>;
|
|
147
|
-
findReports(ctx: import("./@types
|
|
165
|
+
findReports(ctx: import("./@types").RequestContext): Promise<{
|
|
148
166
|
result: {
|
|
149
167
|
id?: number;
|
|
150
168
|
documentId?: string;
|
|
@@ -163,7 +181,10 @@ declare const _default: {
|
|
|
163
181
|
authorName?: string;
|
|
164
182
|
authorEmail?: string;
|
|
165
183
|
authorAvatar?: string;
|
|
166
|
-
authorUser?: string
|
|
184
|
+
authorUser?: string | {
|
|
185
|
+
id?: number;
|
|
186
|
+
email?: string;
|
|
187
|
+
};
|
|
167
188
|
locale?: string;
|
|
168
189
|
gotThread?: boolean;
|
|
169
190
|
threadFirstItemId?: number;
|
|
@@ -197,7 +218,10 @@ declare const _default: {
|
|
|
197
218
|
authorName?: string;
|
|
198
219
|
authorEmail?: string;
|
|
199
220
|
authorAvatar?: string;
|
|
200
|
-
authorUser?: string
|
|
221
|
+
authorUser?: string | {
|
|
222
|
+
id?: number;
|
|
223
|
+
email?: string;
|
|
224
|
+
};
|
|
201
225
|
locale?: string;
|
|
202
226
|
gotThread?: boolean;
|
|
203
227
|
threadFirstItemId?: number;
|
|
@@ -232,12 +256,13 @@ declare const _default: {
|
|
|
232
256
|
body: object;
|
|
233
257
|
};
|
|
234
258
|
state: {
|
|
235
|
-
user?: import("./@types
|
|
259
|
+
user?: import("./@types").AdminUser;
|
|
236
260
|
};
|
|
237
261
|
}): Promise<{
|
|
238
262
|
entity: {
|
|
239
263
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
240
|
-
|
|
264
|
+
documentId: string;
|
|
265
|
+
id: number;
|
|
241
266
|
};
|
|
242
267
|
selected: {
|
|
243
268
|
id?: number;
|
|
@@ -257,7 +282,10 @@ declare const _default: {
|
|
|
257
282
|
authorName?: string;
|
|
258
283
|
authorEmail?: string;
|
|
259
284
|
authorAvatar?: string;
|
|
260
|
-
authorUser?: string
|
|
285
|
+
authorUser?: string | {
|
|
286
|
+
id?: number;
|
|
287
|
+
email?: string;
|
|
288
|
+
};
|
|
261
289
|
locale?: string;
|
|
262
290
|
gotThread?: boolean;
|
|
263
291
|
threadFirstItemId?: number;
|
|
@@ -291,7 +319,10 @@ declare const _default: {
|
|
|
291
319
|
authorName?: string;
|
|
292
320
|
authorEmail?: string;
|
|
293
321
|
authorAvatar?: string;
|
|
294
|
-
authorUser?: string
|
|
322
|
+
authorUser?: string | {
|
|
323
|
+
id?: number;
|
|
324
|
+
email?: string;
|
|
325
|
+
};
|
|
295
326
|
locale?: string;
|
|
296
327
|
gotThread?: boolean;
|
|
297
328
|
threadFirstItemId?: number;
|
|
@@ -327,7 +358,10 @@ declare const _default: {
|
|
|
327
358
|
authorName?: string;
|
|
328
359
|
authorEmail?: string;
|
|
329
360
|
authorAvatar?: string;
|
|
330
|
-
authorUser?: string
|
|
361
|
+
authorUser?: string | {
|
|
362
|
+
id?: number;
|
|
363
|
+
email?: string;
|
|
364
|
+
};
|
|
331
365
|
locale?: string;
|
|
332
366
|
gotThread?: boolean;
|
|
333
367
|
threadFirstItemId?: number;
|
|
@@ -361,7 +395,10 @@ declare const _default: {
|
|
|
361
395
|
authorName?: string;
|
|
362
396
|
authorEmail?: string;
|
|
363
397
|
authorAvatar?: string;
|
|
364
|
-
authorUser?: string
|
|
398
|
+
authorUser?: string | {
|
|
399
|
+
id?: number;
|
|
400
|
+
email?: string;
|
|
401
|
+
};
|
|
365
402
|
locale?: string;
|
|
366
403
|
gotThread?: boolean;
|
|
367
404
|
threadFirstItemId?: number;
|
|
@@ -390,7 +427,7 @@ declare const _default: {
|
|
|
390
427
|
body: object;
|
|
391
428
|
};
|
|
392
429
|
state: {
|
|
393
|
-
user?: import("./@types
|
|
430
|
+
user?: import("./@types").AdminUser;
|
|
394
431
|
};
|
|
395
432
|
}): Promise<{
|
|
396
433
|
id?: number;
|
|
@@ -410,7 +447,10 @@ declare const _default: {
|
|
|
410
447
|
authorName?: string;
|
|
411
448
|
authorEmail?: string;
|
|
412
449
|
authorAvatar?: string;
|
|
413
|
-
authorUser?: string
|
|
450
|
+
authorUser?: string | {
|
|
451
|
+
id?: number;
|
|
452
|
+
email?: string;
|
|
453
|
+
};
|
|
414
454
|
locale?: string;
|
|
415
455
|
gotThread?: boolean;
|
|
416
456
|
threadFirstItemId?: number;
|
|
@@ -444,7 +484,10 @@ declare const _default: {
|
|
|
444
484
|
authorName?: string;
|
|
445
485
|
authorEmail?: string;
|
|
446
486
|
authorAvatar?: string;
|
|
447
|
-
authorUser?: string
|
|
487
|
+
authorUser?: string | {
|
|
488
|
+
id?: number;
|
|
489
|
+
email?: string;
|
|
490
|
+
};
|
|
448
491
|
locale?: string;
|
|
449
492
|
gotThread?: boolean;
|
|
450
493
|
threadFirstItemId?: number;
|
|
@@ -472,7 +515,7 @@ declare const _default: {
|
|
|
472
515
|
body: object;
|
|
473
516
|
};
|
|
474
517
|
state: {
|
|
475
|
-
user?: import("./@types
|
|
518
|
+
user?: import("./@types").AdminUser;
|
|
476
519
|
};
|
|
477
520
|
}): Promise<{
|
|
478
521
|
id?: number;
|
|
@@ -492,7 +535,10 @@ declare const _default: {
|
|
|
492
535
|
authorName?: string;
|
|
493
536
|
authorEmail?: string;
|
|
494
537
|
authorAvatar?: string;
|
|
495
|
-
authorUser?: string
|
|
538
|
+
authorUser?: string | {
|
|
539
|
+
id?: number;
|
|
540
|
+
email?: string;
|
|
541
|
+
};
|
|
496
542
|
locale?: string;
|
|
497
543
|
gotThread?: boolean;
|
|
498
544
|
threadFirstItemId?: number;
|
|
@@ -526,7 +572,10 @@ declare const _default: {
|
|
|
526
572
|
authorName?: string;
|
|
527
573
|
authorEmail?: string;
|
|
528
574
|
authorAvatar?: string;
|
|
529
|
-
authorUser?: string
|
|
575
|
+
authorUser?: string | {
|
|
576
|
+
id?: number;
|
|
577
|
+
email?: string;
|
|
578
|
+
};
|
|
530
579
|
locale?: string;
|
|
531
580
|
gotThread?: boolean;
|
|
532
581
|
threadFirstItemId?: number;
|
|
@@ -554,7 +603,7 @@ declare const _default: {
|
|
|
554
603
|
body: object;
|
|
555
604
|
};
|
|
556
605
|
state: {
|
|
557
|
-
user?: import("./@types
|
|
606
|
+
user?: import("./@types").AdminUser;
|
|
558
607
|
};
|
|
559
608
|
}): Promise<{
|
|
560
609
|
id?: number;
|
|
@@ -574,7 +623,10 @@ declare const _default: {
|
|
|
574
623
|
authorName?: string;
|
|
575
624
|
authorEmail?: string;
|
|
576
625
|
authorAvatar?: string;
|
|
577
|
-
authorUser?: string
|
|
626
|
+
authorUser?: string | {
|
|
627
|
+
id?: number;
|
|
628
|
+
email?: string;
|
|
629
|
+
};
|
|
578
630
|
locale?: string;
|
|
579
631
|
gotThread?: boolean;
|
|
580
632
|
threadFirstItemId?: number;
|
|
@@ -608,7 +660,10 @@ declare const _default: {
|
|
|
608
660
|
authorName?: string;
|
|
609
661
|
authorEmail?: string;
|
|
610
662
|
authorAvatar?: string;
|
|
611
|
-
authorUser?: string
|
|
663
|
+
authorUser?: string | {
|
|
664
|
+
id?: number;
|
|
665
|
+
email?: string;
|
|
666
|
+
};
|
|
612
667
|
locale?: string;
|
|
613
668
|
gotThread?: boolean;
|
|
614
669
|
threadFirstItemId?: number;
|
|
@@ -636,7 +691,7 @@ declare const _default: {
|
|
|
636
691
|
body: object;
|
|
637
692
|
};
|
|
638
693
|
state: {
|
|
639
|
-
user?: import("./@types
|
|
694
|
+
user?: import("./@types").AdminUser;
|
|
640
695
|
};
|
|
641
696
|
}): Promise<{
|
|
642
697
|
id?: number;
|
|
@@ -656,7 +711,10 @@ declare const _default: {
|
|
|
656
711
|
authorName?: string;
|
|
657
712
|
authorEmail?: string;
|
|
658
713
|
authorAvatar?: string;
|
|
659
|
-
authorUser?: string
|
|
714
|
+
authorUser?: string | {
|
|
715
|
+
id?: number;
|
|
716
|
+
email?: string;
|
|
717
|
+
};
|
|
660
718
|
locale?: string;
|
|
661
719
|
gotThread?: boolean;
|
|
662
720
|
threadFirstItemId?: number;
|
|
@@ -690,7 +748,10 @@ declare const _default: {
|
|
|
690
748
|
authorName?: string;
|
|
691
749
|
authorEmail?: string;
|
|
692
750
|
authorAvatar?: string;
|
|
693
|
-
authorUser?: string
|
|
751
|
+
authorUser?: string | {
|
|
752
|
+
id?: number;
|
|
753
|
+
email?: string;
|
|
754
|
+
};
|
|
694
755
|
locale?: string;
|
|
695
756
|
gotThread?: boolean;
|
|
696
757
|
threadFirstItemId?: number;
|
|
@@ -718,7 +779,7 @@ declare const _default: {
|
|
|
718
779
|
body: object;
|
|
719
780
|
};
|
|
720
781
|
state: {
|
|
721
|
-
user?: import("./@types
|
|
782
|
+
user?: import("./@types").AdminUser;
|
|
722
783
|
};
|
|
723
784
|
}): Promise<{
|
|
724
785
|
id?: number;
|
|
@@ -738,7 +799,10 @@ declare const _default: {
|
|
|
738
799
|
authorName?: string;
|
|
739
800
|
authorEmail?: string;
|
|
740
801
|
authorAvatar?: string;
|
|
741
|
-
authorUser?: string
|
|
802
|
+
authorUser?: string | {
|
|
803
|
+
id?: number;
|
|
804
|
+
email?: string;
|
|
805
|
+
};
|
|
742
806
|
locale?: string;
|
|
743
807
|
gotThread?: boolean;
|
|
744
808
|
threadFirstItemId?: number;
|
|
@@ -772,7 +836,10 @@ declare const _default: {
|
|
|
772
836
|
authorName?: string;
|
|
773
837
|
authorEmail?: string;
|
|
774
838
|
authorAvatar?: string;
|
|
775
|
-
authorUser?: string
|
|
839
|
+
authorUser?: string | {
|
|
840
|
+
id?: number;
|
|
841
|
+
email?: string;
|
|
842
|
+
};
|
|
776
843
|
locale?: string;
|
|
777
844
|
gotThread?: boolean;
|
|
778
845
|
threadFirstItemId?: number;
|
|
@@ -790,7 +857,7 @@ declare const _default: {
|
|
|
790
857
|
author?: any;
|
|
791
858
|
};
|
|
792
859
|
}>;
|
|
793
|
-
resolveAbuseReport(ctx: import("./@types
|
|
860
|
+
resolveAbuseReport(ctx: import("./@types").RequestContext<object, {
|
|
794
861
|
id: string;
|
|
795
862
|
reportId: string;
|
|
796
863
|
}>): Promise<{
|
|
@@ -805,16 +872,16 @@ declare const _default: {
|
|
|
805
872
|
resolved?: boolean;
|
|
806
873
|
}>;
|
|
807
874
|
resolveCommentMultipleAbuseReports(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
808
|
-
body: import("./@types
|
|
875
|
+
body: import("./@types").Id[];
|
|
809
876
|
query: object;
|
|
810
877
|
params: {
|
|
811
878
|
id: string;
|
|
812
879
|
};
|
|
813
880
|
request: Omit<import("koa").Request, "body"> & {
|
|
814
|
-
body: import("./@types
|
|
881
|
+
body: import("./@types").Id[];
|
|
815
882
|
};
|
|
816
883
|
state: {
|
|
817
|
-
user?: import("./@types
|
|
884
|
+
user?: import("./@types").AdminUser;
|
|
818
885
|
};
|
|
819
886
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
820
887
|
resolveAllAbuseReportsForComment(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -827,7 +894,7 @@ declare const _default: {
|
|
|
827
894
|
body: object;
|
|
828
895
|
};
|
|
829
896
|
state: {
|
|
830
|
-
user?: import("./@types
|
|
897
|
+
user?: import("./@types").AdminUser;
|
|
831
898
|
};
|
|
832
899
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
833
900
|
resolveAllAbuseReportsForThread(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -840,11 +907,11 @@ declare const _default: {
|
|
|
840
907
|
body: object;
|
|
841
908
|
};
|
|
842
909
|
state: {
|
|
843
|
-
user?: import("./@types
|
|
910
|
+
user?: import("./@types").AdminUser;
|
|
844
911
|
};
|
|
845
912
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
846
|
-
resolveMultipleAbuseReports(ctx: import("./@types
|
|
847
|
-
postComment(ctx: import("./@types
|
|
913
|
+
resolveMultipleAbuseReports(ctx: import("./@types").RequestContext<import("./@types").Id[]>): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
914
|
+
postComment(ctx: import("./@types").RequestContext<Omit<{
|
|
848
915
|
id?: string | number;
|
|
849
916
|
content?: string;
|
|
850
917
|
author?: {
|
|
@@ -882,7 +949,10 @@ declare const _default: {
|
|
|
882
949
|
authorName?: string;
|
|
883
950
|
authorEmail?: string;
|
|
884
951
|
authorAvatar?: string;
|
|
885
|
-
authorUser?: string
|
|
952
|
+
authorUser?: string | {
|
|
953
|
+
id?: number;
|
|
954
|
+
email?: string;
|
|
955
|
+
};
|
|
886
956
|
locale?: string;
|
|
887
957
|
gotThread?: boolean;
|
|
888
958
|
threadFirstItemId?: number;
|
|
@@ -916,7 +986,10 @@ declare const _default: {
|
|
|
916
986
|
authorName?: string;
|
|
917
987
|
authorEmail?: string;
|
|
918
988
|
authorAvatar?: string;
|
|
919
|
-
authorUser?: string
|
|
989
|
+
authorUser?: string | {
|
|
990
|
+
id?: number;
|
|
991
|
+
email?: string;
|
|
992
|
+
};
|
|
920
993
|
locale?: string;
|
|
921
994
|
gotThread?: boolean;
|
|
922
995
|
threadFirstItemId?: number;
|
|
@@ -934,7 +1007,7 @@ declare const _default: {
|
|
|
934
1007
|
author?: any;
|
|
935
1008
|
};
|
|
936
1009
|
}>;
|
|
937
|
-
updateComment(ctx: import("./@types
|
|
1010
|
+
updateComment(ctx: import("./@types").RequestContext<Omit<{
|
|
938
1011
|
id?: string | number;
|
|
939
1012
|
content?: string;
|
|
940
1013
|
author?: {
|
|
@@ -972,7 +1045,10 @@ declare const _default: {
|
|
|
972
1045
|
authorName?: string;
|
|
973
1046
|
authorEmail?: string;
|
|
974
1047
|
authorAvatar?: string;
|
|
975
|
-
authorUser?: string
|
|
1048
|
+
authorUser?: string | {
|
|
1049
|
+
id?: number;
|
|
1050
|
+
email?: string;
|
|
1051
|
+
};
|
|
976
1052
|
locale?: string;
|
|
977
1053
|
gotThread?: boolean;
|
|
978
1054
|
threadFirstItemId?: number;
|
|
@@ -1006,7 +1082,10 @@ declare const _default: {
|
|
|
1006
1082
|
authorName?: string;
|
|
1007
1083
|
authorEmail?: string;
|
|
1008
1084
|
authorAvatar?: string;
|
|
1009
|
-
authorUser?: string
|
|
1085
|
+
authorUser?: string | {
|
|
1086
|
+
id?: number;
|
|
1087
|
+
email?: string;
|
|
1088
|
+
};
|
|
1010
1089
|
locale?: string;
|
|
1011
1090
|
gotThread?: boolean;
|
|
1012
1091
|
threadFirstItemId?: number;
|
|
@@ -1024,7 +1103,7 @@ declare const _default: {
|
|
|
1024
1103
|
author?: any;
|
|
1025
1104
|
};
|
|
1026
1105
|
}>;
|
|
1027
|
-
approveComment(ctx: import("./@types
|
|
1106
|
+
approveComment(ctx: import("./@types").RequestContext<object, {
|
|
1028
1107
|
id?: number;
|
|
1029
1108
|
}>): Promise<{
|
|
1030
1109
|
id?: number;
|
|
@@ -1044,7 +1123,10 @@ declare const _default: {
|
|
|
1044
1123
|
authorName?: string;
|
|
1045
1124
|
authorEmail?: string;
|
|
1046
1125
|
authorAvatar?: string;
|
|
1047
|
-
authorUser?: string
|
|
1126
|
+
authorUser?: string | {
|
|
1127
|
+
id?: number;
|
|
1128
|
+
email?: string;
|
|
1129
|
+
};
|
|
1048
1130
|
locale?: string;
|
|
1049
1131
|
gotThread?: boolean;
|
|
1050
1132
|
threadFirstItemId?: number;
|
|
@@ -1078,7 +1160,10 @@ declare const _default: {
|
|
|
1078
1160
|
authorName?: string;
|
|
1079
1161
|
authorEmail?: string;
|
|
1080
1162
|
authorAvatar?: string;
|
|
1081
|
-
authorUser?: string
|
|
1163
|
+
authorUser?: string | {
|
|
1164
|
+
id?: number;
|
|
1165
|
+
email?: string;
|
|
1166
|
+
};
|
|
1082
1167
|
locale?: string;
|
|
1083
1168
|
gotThread?: boolean;
|
|
1084
1169
|
threadFirstItemId?: number;
|
|
@@ -1096,7 +1181,7 @@ declare const _default: {
|
|
|
1096
1181
|
author?: any;
|
|
1097
1182
|
};
|
|
1098
1183
|
}>;
|
|
1099
|
-
rejectComment(ctx: import("./@types
|
|
1184
|
+
rejectComment(ctx: import("./@types").RequestContext<object, {
|
|
1100
1185
|
id?: number;
|
|
1101
1186
|
}>): Promise<{
|
|
1102
1187
|
id?: number;
|
|
@@ -1116,7 +1201,10 @@ declare const _default: {
|
|
|
1116
1201
|
authorName?: string;
|
|
1117
1202
|
authorEmail?: string;
|
|
1118
1203
|
authorAvatar?: string;
|
|
1119
|
-
authorUser?: string
|
|
1204
|
+
authorUser?: string | {
|
|
1205
|
+
id?: number;
|
|
1206
|
+
email?: string;
|
|
1207
|
+
};
|
|
1120
1208
|
locale?: string;
|
|
1121
1209
|
gotThread?: boolean;
|
|
1122
1210
|
threadFirstItemId?: number;
|
|
@@ -1150,7 +1238,10 @@ declare const _default: {
|
|
|
1150
1238
|
authorName?: string;
|
|
1151
1239
|
authorEmail?: string;
|
|
1152
1240
|
authorAvatar?: string;
|
|
1153
|
-
authorUser?: string
|
|
1241
|
+
authorUser?: string | {
|
|
1242
|
+
id?: number;
|
|
1243
|
+
email?: string;
|
|
1244
|
+
};
|
|
1154
1245
|
locale?: string;
|
|
1155
1246
|
gotThread?: boolean;
|
|
1156
1247
|
threadFirstItemId?: number;
|
|
@@ -1169,10 +1260,10 @@ declare const _default: {
|
|
|
1169
1260
|
};
|
|
1170
1261
|
}>;
|
|
1171
1262
|
};
|
|
1172
|
-
client: ({ strapi }: import("./@types
|
|
1173
|
-
getService<T_1 extends "gql" | "
|
|
1263
|
+
client: ({ strapi }: import("./@types").StrapiContext) => {
|
|
1264
|
+
getService<T_1 extends "gql" | "client" | "admin" | "common" | "settings">(name: T_1): import("./services").PluginServices[T_1];
|
|
1174
1265
|
getStoreRepository(): {
|
|
1175
|
-
getLocalConfig<P extends
|
|
1266
|
+
getLocalConfig<P extends string>(prop?: P, defaultValue?: import("./@types").PathValue<{
|
|
1176
1267
|
enabledCollections?: string[];
|
|
1177
1268
|
approvalFlow?: string[];
|
|
1178
1269
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1189,7 +1280,11 @@ declare const _default: {
|
|
|
1189
1280
|
gql?: {
|
|
1190
1281
|
auth?: boolean;
|
|
1191
1282
|
};
|
|
1192
|
-
|
|
1283
|
+
client?: {
|
|
1284
|
+
url?: string;
|
|
1285
|
+
contactEmail?: string;
|
|
1286
|
+
};
|
|
1287
|
+
}, P>): import("./@types").PathValue<{
|
|
1193
1288
|
enabledCollections?: string[];
|
|
1194
1289
|
approvalFlow?: string[];
|
|
1195
1290
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1206,7 +1301,11 @@ declare const _default: {
|
|
|
1206
1301
|
gql?: {
|
|
1207
1302
|
auth?: boolean;
|
|
1208
1303
|
};
|
|
1209
|
-
|
|
1304
|
+
client?: {
|
|
1305
|
+
url?: string;
|
|
1306
|
+
contactEmail?: string;
|
|
1307
|
+
};
|
|
1308
|
+
}, P>;
|
|
1210
1309
|
getStore(): Promise<{
|
|
1211
1310
|
get(params?: Partial<{
|
|
1212
1311
|
key: string;
|
|
@@ -1248,6 +1347,10 @@ declare const _default: {
|
|
|
1248
1347
|
gql?: {
|
|
1249
1348
|
auth?: boolean;
|
|
1250
1349
|
};
|
|
1350
|
+
client?: {
|
|
1351
|
+
url?: string;
|
|
1352
|
+
contactEmail?: string;
|
|
1353
|
+
};
|
|
1251
1354
|
}>>;
|
|
1252
1355
|
get<T_2 extends boolean>(viaSettingsPage?: T_2): Promise<import("./utils/Either").Either<unknown, T_2 extends true ? {
|
|
1253
1356
|
enabledCollections?: string[];
|
|
@@ -1266,6 +1369,10 @@ declare const _default: {
|
|
|
1266
1369
|
gql?: {
|
|
1267
1370
|
auth?: boolean;
|
|
1268
1371
|
};
|
|
1372
|
+
client?: {
|
|
1373
|
+
url?: string;
|
|
1374
|
+
contactEmail?: string;
|
|
1375
|
+
};
|
|
1269
1376
|
} : Omit<{
|
|
1270
1377
|
enabledCollections?: string[];
|
|
1271
1378
|
approvalFlow?: string[];
|
|
@@ -1283,6 +1390,10 @@ declare const _default: {
|
|
|
1283
1390
|
gql?: {
|
|
1284
1391
|
auth?: boolean;
|
|
1285
1392
|
};
|
|
1393
|
+
client?: {
|
|
1394
|
+
url?: string;
|
|
1395
|
+
contactEmail?: string;
|
|
1396
|
+
};
|
|
1286
1397
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1287
1398
|
update(config: {
|
|
1288
1399
|
enabledCollections?: string[];
|
|
@@ -1301,6 +1412,10 @@ declare const _default: {
|
|
|
1301
1412
|
gql?: {
|
|
1302
1413
|
auth?: boolean;
|
|
1303
1414
|
};
|
|
1415
|
+
client?: {
|
|
1416
|
+
url?: string;
|
|
1417
|
+
contactEmail?: string;
|
|
1418
|
+
};
|
|
1304
1419
|
}): Promise<import("./utils/Either").Either<unknown, {
|
|
1305
1420
|
enabledCollections?: string[];
|
|
1306
1421
|
approvalFlow?: string[];
|
|
@@ -1318,6 +1433,10 @@ declare const _default: {
|
|
|
1318
1433
|
gql?: {
|
|
1319
1434
|
auth?: boolean;
|
|
1320
1435
|
};
|
|
1436
|
+
client?: {
|
|
1437
|
+
url?: string;
|
|
1438
|
+
contactEmail?: string;
|
|
1439
|
+
};
|
|
1321
1440
|
} | Omit<{
|
|
1322
1441
|
enabledCollections?: string[];
|
|
1323
1442
|
approvalFlow?: string[];
|
|
@@ -1335,6 +1454,10 @@ declare const _default: {
|
|
|
1335
1454
|
gql?: {
|
|
1336
1455
|
auth?: boolean;
|
|
1337
1456
|
};
|
|
1457
|
+
client?: {
|
|
1458
|
+
url?: string;
|
|
1459
|
+
contactEmail?: string;
|
|
1460
|
+
};
|
|
1338
1461
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1339
1462
|
restore(): Promise<import("./utils/Either").Either<unknown, {
|
|
1340
1463
|
enabledCollections?: string[];
|
|
@@ -1353,6 +1476,10 @@ declare const _default: {
|
|
|
1353
1476
|
gql?: {
|
|
1354
1477
|
auth?: boolean;
|
|
1355
1478
|
};
|
|
1479
|
+
client?: {
|
|
1480
|
+
url?: string;
|
|
1481
|
+
contactEmail?: string;
|
|
1482
|
+
};
|
|
1356
1483
|
} | Omit<{
|
|
1357
1484
|
enabledCollections?: string[];
|
|
1358
1485
|
approvalFlow?: string[];
|
|
@@ -1370,9 +1497,13 @@ declare const _default: {
|
|
|
1370
1497
|
gql?: {
|
|
1371
1498
|
auth?: boolean;
|
|
1372
1499
|
};
|
|
1500
|
+
client?: {
|
|
1501
|
+
url?: string;
|
|
1502
|
+
contactEmail?: string;
|
|
1503
|
+
};
|
|
1373
1504
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1374
1505
|
};
|
|
1375
|
-
post(ctx: import("./@types
|
|
1506
|
+
post(ctx: import("./@types").RequestContext<object, Pick<{
|
|
1376
1507
|
content?: string;
|
|
1377
1508
|
approvalStatus?: import("./const").APPROVAL_STATUS;
|
|
1378
1509
|
locale?: string;
|
|
@@ -1382,8 +1513,8 @@ declare const _default: {
|
|
|
1382
1513
|
email?: string;
|
|
1383
1514
|
avatar?: string;
|
|
1384
1515
|
};
|
|
1385
|
-
threadOf?:
|
|
1386
|
-
relation?:
|
|
1516
|
+
threadOf?: string;
|
|
1517
|
+
relation?: `${string}::${string}.${string}`;
|
|
1387
1518
|
}, "relation">>): Promise<{
|
|
1388
1519
|
id?: number;
|
|
1389
1520
|
documentId?: string;
|
|
@@ -1402,7 +1533,10 @@ declare const _default: {
|
|
|
1402
1533
|
authorName?: string;
|
|
1403
1534
|
authorEmail?: string;
|
|
1404
1535
|
authorAvatar?: string;
|
|
1405
|
-
authorUser?: string
|
|
1536
|
+
authorUser?: string | {
|
|
1537
|
+
id?: number;
|
|
1538
|
+
email?: string;
|
|
1539
|
+
};
|
|
1406
1540
|
locale?: string;
|
|
1407
1541
|
gotThread?: boolean;
|
|
1408
1542
|
threadFirstItemId?: number;
|
|
@@ -1436,7 +1570,10 @@ declare const _default: {
|
|
|
1436
1570
|
authorName?: string;
|
|
1437
1571
|
authorEmail?: string;
|
|
1438
1572
|
authorAvatar?: string;
|
|
1439
|
-
authorUser?: string
|
|
1573
|
+
authorUser?: string | {
|
|
1574
|
+
id?: number;
|
|
1575
|
+
email?: string;
|
|
1576
|
+
};
|
|
1440
1577
|
locale?: string;
|
|
1441
1578
|
gotThread?: boolean;
|
|
1442
1579
|
threadFirstItemId?: number;
|
|
@@ -1454,7 +1591,7 @@ declare const _default: {
|
|
|
1454
1591
|
author?: any;
|
|
1455
1592
|
};
|
|
1456
1593
|
}>;
|
|
1457
|
-
findAllFlat(ctx: import("./@types
|
|
1594
|
+
findAllFlat(ctx: import("./@types").RequestContext<object, Pick<{
|
|
1458
1595
|
sort?: string;
|
|
1459
1596
|
locale?: string;
|
|
1460
1597
|
pagination?: {
|
|
@@ -1462,7 +1599,7 @@ declare const _default: {
|
|
|
1462
1599
|
pageSize?: number;
|
|
1463
1600
|
withCount?: boolean;
|
|
1464
1601
|
};
|
|
1465
|
-
relation?:
|
|
1602
|
+
relation?: `${string}::${string}.${string}`;
|
|
1466
1603
|
populate?: Record<string, boolean | {
|
|
1467
1604
|
populate?: boolean;
|
|
1468
1605
|
}>;
|
|
@@ -1667,7 +1804,10 @@ declare const _default: {
|
|
|
1667
1804
|
authorName?: string;
|
|
1668
1805
|
authorEmail?: string;
|
|
1669
1806
|
authorAvatar?: string;
|
|
1670
|
-
authorUser?: string
|
|
1807
|
+
authorUser?: string | {
|
|
1808
|
+
id?: number;
|
|
1809
|
+
email?: string;
|
|
1810
|
+
};
|
|
1671
1811
|
locale?: string;
|
|
1672
1812
|
gotThread?: boolean;
|
|
1673
1813
|
threadFirstItemId?: number;
|
|
@@ -1701,7 +1841,10 @@ declare const _default: {
|
|
|
1701
1841
|
authorName?: string;
|
|
1702
1842
|
authorEmail?: string;
|
|
1703
1843
|
authorAvatar?: string;
|
|
1704
|
-
authorUser?: string
|
|
1844
|
+
authorUser?: string | {
|
|
1845
|
+
id?: number;
|
|
1846
|
+
email?: string;
|
|
1847
|
+
};
|
|
1705
1848
|
locale?: string;
|
|
1706
1849
|
gotThread?: boolean;
|
|
1707
1850
|
threadFirstItemId?: number;
|
|
@@ -1742,7 +1885,10 @@ declare const _default: {
|
|
|
1742
1885
|
authorName?: string;
|
|
1743
1886
|
authorEmail?: string;
|
|
1744
1887
|
authorAvatar?: string;
|
|
1745
|
-
authorUser?: string
|
|
1888
|
+
authorUser?: string | {
|
|
1889
|
+
id?: number;
|
|
1890
|
+
email?: string;
|
|
1891
|
+
};
|
|
1746
1892
|
locale?: string;
|
|
1747
1893
|
gotThread?: boolean;
|
|
1748
1894
|
threadFirstItemId?: number;
|
|
@@ -1776,7 +1922,10 @@ declare const _default: {
|
|
|
1776
1922
|
authorName?: string;
|
|
1777
1923
|
authorEmail?: string;
|
|
1778
1924
|
authorAvatar?: string;
|
|
1779
|
-
authorUser?: string
|
|
1925
|
+
authorUser?: string | {
|
|
1926
|
+
id?: number;
|
|
1927
|
+
email?: string;
|
|
1928
|
+
};
|
|
1780
1929
|
locale?: string;
|
|
1781
1930
|
gotThread?: boolean;
|
|
1782
1931
|
threadFirstItemId?: number;
|
|
@@ -1801,10 +1950,10 @@ declare const _default: {
|
|
|
1801
1950
|
total?: number;
|
|
1802
1951
|
};
|
|
1803
1952
|
}>;
|
|
1804
|
-
findAllInHierarchy(ctx: import("./@types
|
|
1953
|
+
findAllInHierarchy(ctx: import("./@types").RequestContext<object, Pick<{
|
|
1805
1954
|
sort?: string;
|
|
1806
1955
|
locale?: string;
|
|
1807
|
-
relation?:
|
|
1956
|
+
relation?: `${string}::${string}.${string}`;
|
|
1808
1957
|
populate?: Record<string, boolean | {
|
|
1809
1958
|
populate?: boolean;
|
|
1810
1959
|
}>;
|
|
@@ -2010,7 +2159,10 @@ declare const _default: {
|
|
|
2010
2159
|
authorName?: string;
|
|
2011
2160
|
authorEmail?: string;
|
|
2012
2161
|
authorAvatar?: string;
|
|
2013
|
-
authorUser?: string
|
|
2162
|
+
authorUser?: string | {
|
|
2163
|
+
id?: number;
|
|
2164
|
+
email?: string;
|
|
2165
|
+
};
|
|
2014
2166
|
locale?: string;
|
|
2015
2167
|
gotThread?: boolean;
|
|
2016
2168
|
threadFirstItemId?: number;
|
|
@@ -2044,7 +2196,10 @@ declare const _default: {
|
|
|
2044
2196
|
authorName?: string;
|
|
2045
2197
|
authorEmail?: string;
|
|
2046
2198
|
authorAvatar?: string;
|
|
2047
|
-
authorUser?: string
|
|
2199
|
+
authorUser?: string | {
|
|
2200
|
+
id?: number;
|
|
2201
|
+
email?: string;
|
|
2202
|
+
};
|
|
2048
2203
|
locale?: string;
|
|
2049
2204
|
gotThread?: boolean;
|
|
2050
2205
|
threadFirstItemId?: number;
|
|
@@ -2062,7 +2217,7 @@ declare const _default: {
|
|
|
2062
2217
|
author?: any;
|
|
2063
2218
|
};
|
|
2064
2219
|
}[]>;
|
|
2065
|
-
findAllPerAuthor(ctx: import("./@types
|
|
2220
|
+
findAllPerAuthor(ctx: import("./@types").RequestContext<object, Pick<{
|
|
2066
2221
|
type?: string;
|
|
2067
2222
|
sort?: string;
|
|
2068
2223
|
authorId?: string | number;
|
|
@@ -2276,7 +2431,10 @@ declare const _default: {
|
|
|
2276
2431
|
authorName?: string;
|
|
2277
2432
|
authorEmail?: string;
|
|
2278
2433
|
authorAvatar?: string;
|
|
2279
|
-
authorUser?: string
|
|
2434
|
+
authorUser?: string | {
|
|
2435
|
+
id?: number;
|
|
2436
|
+
email?: string;
|
|
2437
|
+
};
|
|
2280
2438
|
locale?: string;
|
|
2281
2439
|
gotThread?: boolean;
|
|
2282
2440
|
threadFirstItemId?: number;
|
|
@@ -2309,7 +2467,10 @@ declare const _default: {
|
|
|
2309
2467
|
authorName?: string;
|
|
2310
2468
|
authorEmail?: string;
|
|
2311
2469
|
authorAvatar?: string;
|
|
2312
|
-
authorUser?: string
|
|
2470
|
+
authorUser?: string | {
|
|
2471
|
+
id?: number;
|
|
2472
|
+
email?: string;
|
|
2473
|
+
};
|
|
2313
2474
|
locale?: string;
|
|
2314
2475
|
gotThread?: boolean;
|
|
2315
2476
|
threadFirstItemId?: number;
|
|
@@ -2350,7 +2511,10 @@ declare const _default: {
|
|
|
2350
2511
|
authorName?: string;
|
|
2351
2512
|
authorEmail?: string;
|
|
2352
2513
|
authorAvatar?: string;
|
|
2353
|
-
authorUser?: string
|
|
2514
|
+
authorUser?: string | {
|
|
2515
|
+
id?: number;
|
|
2516
|
+
email?: string;
|
|
2517
|
+
};
|
|
2354
2518
|
locale?: string;
|
|
2355
2519
|
gotThread?: boolean;
|
|
2356
2520
|
threadFirstItemId?: number;
|
|
@@ -2383,7 +2547,10 @@ declare const _default: {
|
|
|
2383
2547
|
authorName?: string;
|
|
2384
2548
|
authorEmail?: string;
|
|
2385
2549
|
authorAvatar?: string;
|
|
2386
|
-
authorUser?: string
|
|
2550
|
+
authorUser?: string | {
|
|
2551
|
+
id?: number;
|
|
2552
|
+
email?: string;
|
|
2553
|
+
};
|
|
2387
2554
|
locale?: string;
|
|
2388
2555
|
gotThread?: boolean;
|
|
2389
2556
|
threadFirstItemId?: number;
|
|
@@ -2408,7 +2575,7 @@ declare const _default: {
|
|
|
2408
2575
|
total?: number;
|
|
2409
2576
|
};
|
|
2410
2577
|
}>;
|
|
2411
|
-
put(ctx: import("./@types
|
|
2578
|
+
put(ctx: import("./@types").RequestContext): Promise<{
|
|
2412
2579
|
id?: number;
|
|
2413
2580
|
documentId?: string;
|
|
2414
2581
|
content?: string;
|
|
@@ -2426,7 +2593,10 @@ declare const _default: {
|
|
|
2426
2593
|
authorName?: string;
|
|
2427
2594
|
authorEmail?: string;
|
|
2428
2595
|
authorAvatar?: string;
|
|
2429
|
-
authorUser?: string
|
|
2596
|
+
authorUser?: string | {
|
|
2597
|
+
id?: number;
|
|
2598
|
+
email?: string;
|
|
2599
|
+
};
|
|
2430
2600
|
locale?: string;
|
|
2431
2601
|
gotThread?: boolean;
|
|
2432
2602
|
threadFirstItemId?: number;
|
|
@@ -2460,7 +2630,10 @@ declare const _default: {
|
|
|
2460
2630
|
authorName?: string;
|
|
2461
2631
|
authorEmail?: string;
|
|
2462
2632
|
authorAvatar?: string;
|
|
2463
|
-
authorUser?: string
|
|
2633
|
+
authorUser?: string | {
|
|
2634
|
+
id?: number;
|
|
2635
|
+
email?: string;
|
|
2636
|
+
};
|
|
2464
2637
|
locale?: string;
|
|
2465
2638
|
gotThread?: boolean;
|
|
2466
2639
|
threadFirstItemId?: number;
|
|
@@ -2478,7 +2651,7 @@ declare const _default: {
|
|
|
2478
2651
|
author?: any;
|
|
2479
2652
|
};
|
|
2480
2653
|
}>;
|
|
2481
|
-
reportAbuse(ctx: import("./@types
|
|
2654
|
+
reportAbuse(ctx: import("./@types").RequestContext): Promise<{
|
|
2482
2655
|
related: {
|
|
2483
2656
|
id?: number;
|
|
2484
2657
|
documentId?: string;
|
|
@@ -2497,7 +2670,10 @@ declare const _default: {
|
|
|
2497
2670
|
authorName?: string;
|
|
2498
2671
|
authorEmail?: string;
|
|
2499
2672
|
authorAvatar?: string;
|
|
2500
|
-
authorUser?: string
|
|
2673
|
+
authorUser?: string | {
|
|
2674
|
+
id?: number;
|
|
2675
|
+
email?: string;
|
|
2676
|
+
};
|
|
2501
2677
|
locale?: string;
|
|
2502
2678
|
gotThread?: boolean;
|
|
2503
2679
|
threadFirstItemId?: number;
|
|
@@ -2531,7 +2707,10 @@ declare const _default: {
|
|
|
2531
2707
|
authorName?: string;
|
|
2532
2708
|
authorEmail?: string;
|
|
2533
2709
|
authorAvatar?: string;
|
|
2534
|
-
authorUser?: string
|
|
2710
|
+
authorUser?: string | {
|
|
2711
|
+
id?: number;
|
|
2712
|
+
email?: string;
|
|
2713
|
+
};
|
|
2535
2714
|
locale?: string;
|
|
2536
2715
|
gotThread?: boolean;
|
|
2537
2716
|
threadFirstItemId?: number;
|
|
@@ -2559,7 +2738,7 @@ declare const _default: {
|
|
|
2559
2738
|
reason?: string;
|
|
2560
2739
|
resolved?: boolean;
|
|
2561
2740
|
}>;
|
|
2562
|
-
removeComment(ctx: import("./@types
|
|
2741
|
+
removeComment(ctx: import("./@types").RequestContext): Promise<{
|
|
2563
2742
|
id?: number;
|
|
2564
2743
|
documentId?: string;
|
|
2565
2744
|
content?: string;
|
|
@@ -2577,7 +2756,10 @@ declare const _default: {
|
|
|
2577
2756
|
authorName?: string;
|
|
2578
2757
|
authorEmail?: string;
|
|
2579
2758
|
authorAvatar?: string;
|
|
2580
|
-
authorUser?: string
|
|
2759
|
+
authorUser?: string | {
|
|
2760
|
+
id?: number;
|
|
2761
|
+
email?: string;
|
|
2762
|
+
};
|
|
2581
2763
|
locale?: string;
|
|
2582
2764
|
gotThread?: boolean;
|
|
2583
2765
|
threadFirstItemId?: number;
|
|
@@ -2611,7 +2793,10 @@ declare const _default: {
|
|
|
2611
2793
|
authorName?: string;
|
|
2612
2794
|
authorEmail?: string;
|
|
2613
2795
|
authorAvatar?: string;
|
|
2614
|
-
authorUser?: string
|
|
2796
|
+
authorUser?: string | {
|
|
2797
|
+
id?: number;
|
|
2798
|
+
email?: string;
|
|
2799
|
+
};
|
|
2615
2800
|
locale?: string;
|
|
2616
2801
|
gotThread?: boolean;
|
|
2617
2802
|
threadFirstItemId?: number;
|
|
@@ -2630,8 +2815,8 @@ declare const _default: {
|
|
|
2630
2815
|
};
|
|
2631
2816
|
}>;
|
|
2632
2817
|
};
|
|
2633
|
-
settings: ({ strapi }: import("./@types
|
|
2634
|
-
get(ctx: import("./@types
|
|
2818
|
+
settings: ({ strapi }: import("./@types").StrapiContext) => {
|
|
2819
|
+
get(ctx: import("./@types").RequestContext): Promise<{
|
|
2635
2820
|
enabledCollections?: string[];
|
|
2636
2821
|
approvalFlow?: string[];
|
|
2637
2822
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2648,6 +2833,10 @@ declare const _default: {
|
|
|
2648
2833
|
gql?: {
|
|
2649
2834
|
auth?: boolean;
|
|
2650
2835
|
};
|
|
2836
|
+
client?: {
|
|
2837
|
+
url?: string;
|
|
2838
|
+
contactEmail?: string;
|
|
2839
|
+
};
|
|
2651
2840
|
} | Omit<{
|
|
2652
2841
|
enabledCollections?: string[];
|
|
2653
2842
|
approvalFlow?: string[];
|
|
@@ -2665,8 +2854,12 @@ declare const _default: {
|
|
|
2665
2854
|
gql?: {
|
|
2666
2855
|
auth?: boolean;
|
|
2667
2856
|
};
|
|
2857
|
+
client?: {
|
|
2858
|
+
url?: string;
|
|
2859
|
+
contactEmail?: string;
|
|
2860
|
+
};
|
|
2668
2861
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2669
|
-
getForSettingsPage(ctx: import("./@types
|
|
2862
|
+
getForSettingsPage(ctx: import("./@types").RequestContext): Promise<{
|
|
2670
2863
|
enabledCollections?: string[];
|
|
2671
2864
|
approvalFlow?: string[];
|
|
2672
2865
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2683,6 +2876,10 @@ declare const _default: {
|
|
|
2683
2876
|
gql?: {
|
|
2684
2877
|
auth?: boolean;
|
|
2685
2878
|
};
|
|
2879
|
+
client?: {
|
|
2880
|
+
url?: string;
|
|
2881
|
+
contactEmail?: string;
|
|
2882
|
+
};
|
|
2686
2883
|
} | Omit<{
|
|
2687
2884
|
enabledCollections?: string[];
|
|
2688
2885
|
approvalFlow?: string[];
|
|
@@ -2700,8 +2897,12 @@ declare const _default: {
|
|
|
2700
2897
|
gql?: {
|
|
2701
2898
|
auth?: boolean;
|
|
2702
2899
|
};
|
|
2900
|
+
client?: {
|
|
2901
|
+
url?: string;
|
|
2902
|
+
contactEmail?: string;
|
|
2903
|
+
};
|
|
2703
2904
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2704
|
-
update(ctx: import("./@types
|
|
2905
|
+
update(ctx: import("./@types").RequestContext<{
|
|
2705
2906
|
enabledCollections?: string[];
|
|
2706
2907
|
approvalFlow?: string[];
|
|
2707
2908
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2718,6 +2919,10 @@ declare const _default: {
|
|
|
2718
2919
|
gql?: {
|
|
2719
2920
|
auth?: boolean;
|
|
2720
2921
|
};
|
|
2922
|
+
client?: {
|
|
2923
|
+
url?: string;
|
|
2924
|
+
contactEmail?: string;
|
|
2925
|
+
};
|
|
2721
2926
|
}>): Promise<{
|
|
2722
2927
|
enabledCollections?: string[];
|
|
2723
2928
|
approvalFlow?: string[];
|
|
@@ -2735,6 +2940,10 @@ declare const _default: {
|
|
|
2735
2940
|
gql?: {
|
|
2736
2941
|
auth?: boolean;
|
|
2737
2942
|
};
|
|
2943
|
+
client?: {
|
|
2944
|
+
url?: string;
|
|
2945
|
+
contactEmail?: string;
|
|
2946
|
+
};
|
|
2738
2947
|
} | Omit<{
|
|
2739
2948
|
enabledCollections?: string[];
|
|
2740
2949
|
approvalFlow?: string[];
|
|
@@ -2752,8 +2961,12 @@ declare const _default: {
|
|
|
2752
2961
|
gql?: {
|
|
2753
2962
|
auth?: boolean;
|
|
2754
2963
|
};
|
|
2964
|
+
client?: {
|
|
2965
|
+
url?: string;
|
|
2966
|
+
contactEmail?: string;
|
|
2967
|
+
};
|
|
2755
2968
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2756
|
-
restore(ctx: import("./@types
|
|
2969
|
+
restore(ctx: import("./@types").RequestContext): Promise<{
|
|
2757
2970
|
enabledCollections?: string[];
|
|
2758
2971
|
approvalFlow?: string[];
|
|
2759
2972
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2770,6 +2983,10 @@ declare const _default: {
|
|
|
2770
2983
|
gql?: {
|
|
2771
2984
|
auth?: boolean;
|
|
2772
2985
|
};
|
|
2986
|
+
client?: {
|
|
2987
|
+
url?: string;
|
|
2988
|
+
contactEmail?: string;
|
|
2989
|
+
};
|
|
2773
2990
|
} | Omit<{
|
|
2774
2991
|
enabledCollections?: string[];
|
|
2775
2992
|
approvalFlow?: string[];
|
|
@@ -2787,24 +3004,28 @@ declare const _default: {
|
|
|
2787
3004
|
gql?: {
|
|
2788
3005
|
auth?: boolean;
|
|
2789
3006
|
};
|
|
3007
|
+
client?: {
|
|
3008
|
+
url?: string;
|
|
3009
|
+
contactEmail?: string;
|
|
3010
|
+
};
|
|
2790
3011
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2791
|
-
restart(ctx: import("./@types
|
|
3012
|
+
restart(ctx: import("./@types").RequestContext): Promise<any>;
|
|
2792
3013
|
};
|
|
2793
3014
|
};
|
|
2794
3015
|
routes: {
|
|
2795
3016
|
'content-api': {
|
|
2796
3017
|
type: string;
|
|
2797
|
-
routes: import("./@types
|
|
3018
|
+
routes: import("./@types").StrapiRoute<"client">[];
|
|
2798
3019
|
};
|
|
2799
3020
|
admin: {
|
|
2800
3021
|
type: string;
|
|
2801
|
-
routes: (import("./@types
|
|
3022
|
+
routes: (import("./@types").StrapiRoute<"admin"> | import("./@types").StrapiRoute<"settings">)[];
|
|
2802
3023
|
};
|
|
2803
3024
|
};
|
|
2804
3025
|
services: {
|
|
2805
|
-
admin: ({ strapi }: import("./@types
|
|
3026
|
+
admin: ({ strapi }: import("./@types").StrapiContext) => {
|
|
2806
3027
|
getCommonService(): {
|
|
2807
|
-
getConfig<T_3 extends
|
|
3028
|
+
getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
|
|
2808
3029
|
enabledCollections?: string[];
|
|
2809
3030
|
approvalFlow?: string[];
|
|
2810
3031
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2821,24 +3042,11 @@ declare const _default: {
|
|
|
2821
3042
|
gql?: {
|
|
2822
3043
|
auth?: boolean;
|
|
2823
3044
|
};
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
entryLabel?: Record<string, string[]>;
|
|
2828
|
-
moderatorRoles?: string[];
|
|
2829
|
-
badWords?: boolean;
|
|
2830
|
-
blockedAuthorProps?: string[];
|
|
2831
|
-
isValidationEnabled?: boolean;
|
|
2832
|
-
reportReasons?: {
|
|
2833
|
-
BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
|
|
2834
|
-
DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
|
|
2835
|
-
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2836
|
-
};
|
|
2837
|
-
isGQLPluginEnabled?: boolean;
|
|
2838
|
-
gql?: {
|
|
2839
|
-
auth?: boolean;
|
|
3045
|
+
client?: {
|
|
3046
|
+
url?: string;
|
|
3047
|
+
contactEmail?: string;
|
|
2840
3048
|
};
|
|
2841
|
-
}
|
|
3049
|
+
}, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
|
|
2842
3050
|
enabledCollections?: string[];
|
|
2843
3051
|
approvalFlow?: string[];
|
|
2844
3052
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2855,7 +3063,11 @@ declare const _default: {
|
|
|
2855
3063
|
gql?: {
|
|
2856
3064
|
auth?: boolean;
|
|
2857
3065
|
};
|
|
2858
|
-
|
|
3066
|
+
client?: {
|
|
3067
|
+
url?: string;
|
|
3068
|
+
contactEmail?: string;
|
|
3069
|
+
};
|
|
3070
|
+
}, T_3>>;
|
|
2859
3071
|
parseRelationString(relation: string): {
|
|
2860
3072
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
2861
3073
|
relatedId: string;
|
|
@@ -2881,7 +3093,10 @@ declare const _default: {
|
|
|
2881
3093
|
authorName?: string;
|
|
2882
3094
|
authorEmail?: string;
|
|
2883
3095
|
authorAvatar?: string;
|
|
2884
|
-
authorUser?: string
|
|
3096
|
+
authorUser?: string | {
|
|
3097
|
+
id?: number;
|
|
3098
|
+
email?: string;
|
|
3099
|
+
};
|
|
2885
3100
|
locale?: string;
|
|
2886
3101
|
gotThread?: boolean;
|
|
2887
3102
|
threadFirstItemId?: number;
|
|
@@ -2915,7 +3130,10 @@ declare const _default: {
|
|
|
2915
3130
|
authorName?: string;
|
|
2916
3131
|
authorEmail?: string;
|
|
2917
3132
|
authorAvatar?: string;
|
|
2918
|
-
authorUser?: string
|
|
3133
|
+
authorUser?: string | {
|
|
3134
|
+
id?: number;
|
|
3135
|
+
email?: string;
|
|
3136
|
+
};
|
|
2919
3137
|
locale?: string;
|
|
2920
3138
|
gotThread?: boolean;
|
|
2921
3139
|
threadFirstItemId?: number;
|
|
@@ -2956,7 +3174,10 @@ declare const _default: {
|
|
|
2956
3174
|
authorName?: string;
|
|
2957
3175
|
authorEmail?: string;
|
|
2958
3176
|
authorAvatar?: string;
|
|
2959
|
-
authorUser?: string
|
|
3177
|
+
authorUser?: string | {
|
|
3178
|
+
id?: number;
|
|
3179
|
+
email?: string;
|
|
3180
|
+
};
|
|
2960
3181
|
locale?: string;
|
|
2961
3182
|
gotThread?: boolean;
|
|
2962
3183
|
threadFirstItemId?: number;
|
|
@@ -2990,7 +3211,10 @@ declare const _default: {
|
|
|
2990
3211
|
authorName?: string;
|
|
2991
3212
|
authorEmail?: string;
|
|
2992
3213
|
authorAvatar?: string;
|
|
2993
|
-
authorUser?: string
|
|
3214
|
+
authorUser?: string | {
|
|
3215
|
+
id?: number;
|
|
3216
|
+
email?: string;
|
|
3217
|
+
};
|
|
2994
3218
|
locale?: string;
|
|
2995
3219
|
gotThread?: boolean;
|
|
2996
3220
|
threadFirstItemId?: number;
|
|
@@ -3025,7 +3249,10 @@ declare const _default: {
|
|
|
3025
3249
|
authorName?: string;
|
|
3026
3250
|
authorEmail?: string;
|
|
3027
3251
|
authorAvatar?: string;
|
|
3028
|
-
authorUser?: string
|
|
3252
|
+
authorUser?: string | {
|
|
3253
|
+
id?: number;
|
|
3254
|
+
email?: string;
|
|
3255
|
+
};
|
|
3029
3256
|
locale?: string;
|
|
3030
3257
|
gotThread?: boolean;
|
|
3031
3258
|
threadFirstItemId?: number;
|
|
@@ -3059,7 +3286,10 @@ declare const _default: {
|
|
|
3059
3286
|
authorName?: string;
|
|
3060
3287
|
authorEmail?: string;
|
|
3061
3288
|
authorAvatar?: string;
|
|
3062
|
-
authorUser?: string
|
|
3289
|
+
authorUser?: string | {
|
|
3290
|
+
id?: number;
|
|
3291
|
+
email?: string;
|
|
3292
|
+
};
|
|
3063
3293
|
locale?: string;
|
|
3064
3294
|
gotThread?: boolean;
|
|
3065
3295
|
threadFirstItemId?: number;
|
|
@@ -3085,7 +3315,7 @@ declare const _default: {
|
|
|
3085
3315
|
pageSize?: number;
|
|
3086
3316
|
withCount?: boolean;
|
|
3087
3317
|
};
|
|
3088
|
-
relation?:
|
|
3318
|
+
relation?: `${string}::${string}.${string}`;
|
|
3089
3319
|
populate?: Record<string, boolean | {
|
|
3090
3320
|
populate?: boolean;
|
|
3091
3321
|
}>;
|
|
@@ -3290,7 +3520,10 @@ declare const _default: {
|
|
|
3290
3520
|
authorName?: string;
|
|
3291
3521
|
authorEmail?: string;
|
|
3292
3522
|
authorAvatar?: string;
|
|
3293
|
-
authorUser?: string
|
|
3523
|
+
authorUser?: string | {
|
|
3524
|
+
id?: number;
|
|
3525
|
+
email?: string;
|
|
3526
|
+
};
|
|
3294
3527
|
locale?: string;
|
|
3295
3528
|
gotThread?: boolean;
|
|
3296
3529
|
threadFirstItemId?: number;
|
|
@@ -3324,7 +3557,10 @@ declare const _default: {
|
|
|
3324
3557
|
authorName?: string;
|
|
3325
3558
|
authorEmail?: string;
|
|
3326
3559
|
authorAvatar?: string;
|
|
3327
|
-
authorUser?: string
|
|
3560
|
+
authorUser?: string | {
|
|
3561
|
+
id?: number;
|
|
3562
|
+
email?: string;
|
|
3563
|
+
};
|
|
3328
3564
|
locale?: string;
|
|
3329
3565
|
gotThread?: boolean;
|
|
3330
3566
|
threadFirstItemId?: number;
|
|
@@ -3365,7 +3601,10 @@ declare const _default: {
|
|
|
3365
3601
|
authorName?: string;
|
|
3366
3602
|
authorEmail?: string;
|
|
3367
3603
|
authorAvatar?: string;
|
|
3368
|
-
authorUser?: string
|
|
3604
|
+
authorUser?: string | {
|
|
3605
|
+
id?: number;
|
|
3606
|
+
email?: string;
|
|
3607
|
+
};
|
|
3369
3608
|
locale?: string;
|
|
3370
3609
|
gotThread?: boolean;
|
|
3371
3610
|
threadFirstItemId?: number;
|
|
@@ -3399,7 +3638,10 @@ declare const _default: {
|
|
|
3399
3638
|
authorName?: string;
|
|
3400
3639
|
authorEmail?: string;
|
|
3401
3640
|
authorAvatar?: string;
|
|
3402
|
-
authorUser?: string
|
|
3641
|
+
authorUser?: string | {
|
|
3642
|
+
id?: number;
|
|
3643
|
+
email?: string;
|
|
3644
|
+
};
|
|
3403
3645
|
locale?: string;
|
|
3404
3646
|
gotThread?: boolean;
|
|
3405
3647
|
threadFirstItemId?: number;
|
|
@@ -3427,7 +3669,7 @@ declare const _default: {
|
|
|
3427
3669
|
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
3428
3670
|
sort?: string;
|
|
3429
3671
|
locale?: string;
|
|
3430
|
-
relation?:
|
|
3672
|
+
relation?: `${string}::${string}.${string}`;
|
|
3431
3673
|
populate?: Record<string, boolean | {
|
|
3432
3674
|
populate?: boolean;
|
|
3433
3675
|
}>;
|
|
@@ -3633,7 +3875,10 @@ declare const _default: {
|
|
|
3633
3875
|
authorName?: string;
|
|
3634
3876
|
authorEmail?: string;
|
|
3635
3877
|
authorAvatar?: string;
|
|
3636
|
-
authorUser?: string
|
|
3878
|
+
authorUser?: string | {
|
|
3879
|
+
id?: number;
|
|
3880
|
+
email?: string;
|
|
3881
|
+
};
|
|
3637
3882
|
locale?: string;
|
|
3638
3883
|
gotThread?: boolean;
|
|
3639
3884
|
threadFirstItemId?: number;
|
|
@@ -3667,7 +3912,10 @@ declare const _default: {
|
|
|
3667
3912
|
authorName?: string;
|
|
3668
3913
|
authorEmail?: string;
|
|
3669
3914
|
authorAvatar?: string;
|
|
3670
|
-
authorUser?: string
|
|
3915
|
+
authorUser?: string | {
|
|
3916
|
+
id?: number;
|
|
3917
|
+
email?: string;
|
|
3918
|
+
};
|
|
3671
3919
|
locale?: string;
|
|
3672
3920
|
gotThread?: boolean;
|
|
3673
3921
|
threadFirstItemId?: number;
|
|
@@ -3703,7 +3951,10 @@ declare const _default: {
|
|
|
3703
3951
|
authorName?: string;
|
|
3704
3952
|
authorEmail?: string;
|
|
3705
3953
|
authorAvatar?: string;
|
|
3706
|
-
authorUser?: string
|
|
3954
|
+
authorUser?: string | {
|
|
3955
|
+
id?: number;
|
|
3956
|
+
email?: string;
|
|
3957
|
+
};
|
|
3707
3958
|
locale?: string;
|
|
3708
3959
|
gotThread?: boolean;
|
|
3709
3960
|
threadFirstItemId?: number;
|
|
@@ -3737,7 +3988,10 @@ declare const _default: {
|
|
|
3737
3988
|
authorName?: string;
|
|
3738
3989
|
authorEmail?: string;
|
|
3739
3990
|
authorAvatar?: string;
|
|
3740
|
-
authorUser?: string
|
|
3991
|
+
authorUser?: string | {
|
|
3992
|
+
id?: number;
|
|
3993
|
+
email?: string;
|
|
3994
|
+
};
|
|
3741
3995
|
locale?: string;
|
|
3742
3996
|
gotThread?: boolean;
|
|
3743
3997
|
threadFirstItemId?: number;
|
|
@@ -3773,7 +4027,10 @@ declare const _default: {
|
|
|
3773
4027
|
authorName?: string;
|
|
3774
4028
|
authorEmail?: string;
|
|
3775
4029
|
authorAvatar?: string;
|
|
3776
|
-
authorUser?: string
|
|
4030
|
+
authorUser?: string | {
|
|
4031
|
+
id?: number;
|
|
4032
|
+
email?: string;
|
|
4033
|
+
};
|
|
3777
4034
|
locale?: string;
|
|
3778
4035
|
gotThread?: boolean;
|
|
3779
4036
|
threadFirstItemId?: number;
|
|
@@ -3807,7 +4064,10 @@ declare const _default: {
|
|
|
3807
4064
|
authorName?: string;
|
|
3808
4065
|
authorEmail?: string;
|
|
3809
4066
|
authorAvatar?: string;
|
|
3810
|
-
authorUser?: string
|
|
4067
|
+
authorUser?: string | {
|
|
4068
|
+
id?: number;
|
|
4069
|
+
email?: string;
|
|
4070
|
+
};
|
|
3811
4071
|
locale?: string;
|
|
3812
4072
|
gotThread?: boolean;
|
|
3813
4073
|
threadFirstItemId?: number;
|
|
@@ -3843,7 +4103,10 @@ declare const _default: {
|
|
|
3843
4103
|
authorName?: string;
|
|
3844
4104
|
authorEmail?: string;
|
|
3845
4105
|
authorAvatar?: string;
|
|
3846
|
-
authorUser?: string
|
|
4106
|
+
authorUser?: string | {
|
|
4107
|
+
id?: number;
|
|
4108
|
+
email?: string;
|
|
4109
|
+
};
|
|
3847
4110
|
locale?: string;
|
|
3848
4111
|
gotThread?: boolean;
|
|
3849
4112
|
threadFirstItemId?: number;
|
|
@@ -3877,7 +4140,10 @@ declare const _default: {
|
|
|
3877
4140
|
authorName?: string;
|
|
3878
4141
|
authorEmail?: string;
|
|
3879
4142
|
authorAvatar?: string;
|
|
3880
|
-
authorUser?: string
|
|
4143
|
+
authorUser?: string | {
|
|
4144
|
+
id?: number;
|
|
4145
|
+
email?: string;
|
|
4146
|
+
};
|
|
3881
4147
|
locale?: string;
|
|
3882
4148
|
gotThread?: boolean;
|
|
3883
4149
|
threadFirstItemId?: number;
|
|
@@ -3912,7 +4178,10 @@ declare const _default: {
|
|
|
3912
4178
|
authorName?: string;
|
|
3913
4179
|
authorEmail?: string;
|
|
3914
4180
|
authorAvatar?: string;
|
|
3915
|
-
authorUser?: string
|
|
4181
|
+
authorUser?: string | {
|
|
4182
|
+
id?: number;
|
|
4183
|
+
email?: string;
|
|
4184
|
+
};
|
|
3916
4185
|
locale?: string;
|
|
3917
4186
|
gotThread?: boolean;
|
|
3918
4187
|
threadFirstItemId?: number;
|
|
@@ -3946,7 +4215,10 @@ declare const _default: {
|
|
|
3946
4215
|
authorName?: string;
|
|
3947
4216
|
authorEmail?: string;
|
|
3948
4217
|
authorAvatar?: string;
|
|
3949
|
-
authorUser?: string
|
|
4218
|
+
authorUser?: string | {
|
|
4219
|
+
id?: number;
|
|
4220
|
+
email?: string;
|
|
4221
|
+
};
|
|
3950
4222
|
locale?: string;
|
|
3951
4223
|
gotThread?: boolean;
|
|
3952
4224
|
threadFirstItemId?: number;
|
|
@@ -4178,7 +4450,10 @@ declare const _default: {
|
|
|
4178
4450
|
authorName?: string;
|
|
4179
4451
|
authorEmail?: string;
|
|
4180
4452
|
authorAvatar?: string;
|
|
4181
|
-
authorUser?: string
|
|
4453
|
+
authorUser?: string | {
|
|
4454
|
+
id?: number;
|
|
4455
|
+
email?: string;
|
|
4456
|
+
};
|
|
4182
4457
|
locale?: string;
|
|
4183
4458
|
gotThread?: boolean;
|
|
4184
4459
|
threadFirstItemId?: number;
|
|
@@ -4211,7 +4486,10 @@ declare const _default: {
|
|
|
4211
4486
|
authorName?: string;
|
|
4212
4487
|
authorEmail?: string;
|
|
4213
4488
|
authorAvatar?: string;
|
|
4214
|
-
authorUser?: string
|
|
4489
|
+
authorUser?: string | {
|
|
4490
|
+
id?: number;
|
|
4491
|
+
email?: string;
|
|
4492
|
+
};
|
|
4215
4493
|
locale?: string;
|
|
4216
4494
|
gotThread?: boolean;
|
|
4217
4495
|
threadFirstItemId?: number;
|
|
@@ -4252,7 +4530,10 @@ declare const _default: {
|
|
|
4252
4530
|
authorName?: string;
|
|
4253
4531
|
authorEmail?: string;
|
|
4254
4532
|
authorAvatar?: string;
|
|
4255
|
-
authorUser?: string
|
|
4533
|
+
authorUser?: string | {
|
|
4534
|
+
id?: number;
|
|
4535
|
+
email?: string;
|
|
4536
|
+
};
|
|
4256
4537
|
locale?: string;
|
|
4257
4538
|
gotThread?: boolean;
|
|
4258
4539
|
threadFirstItemId?: number;
|
|
@@ -4285,7 +4566,10 @@ declare const _default: {
|
|
|
4285
4566
|
authorName?: string;
|
|
4286
4567
|
authorEmail?: string;
|
|
4287
4568
|
authorAvatar?: string;
|
|
4288
|
-
authorUser?: string
|
|
4569
|
+
authorUser?: string | {
|
|
4570
|
+
id?: number;
|
|
4571
|
+
email?: string;
|
|
4572
|
+
};
|
|
4289
4573
|
locale?: string;
|
|
4290
4574
|
gotThread?: boolean;
|
|
4291
4575
|
threadFirstItemId?: number;
|
|
@@ -4328,7 +4612,10 @@ declare const _default: {
|
|
|
4328
4612
|
authorName?: string;
|
|
4329
4613
|
authorEmail?: string;
|
|
4330
4614
|
authorAvatar?: string;
|
|
4331
|
-
authorUser?: string
|
|
4615
|
+
authorUser?: string | {
|
|
4616
|
+
id?: number;
|
|
4617
|
+
email?: string;
|
|
4618
|
+
};
|
|
4332
4619
|
locale?: string;
|
|
4333
4620
|
gotThread?: boolean;
|
|
4334
4621
|
threadFirstItemId?: number;
|
|
@@ -4362,7 +4649,10 @@ declare const _default: {
|
|
|
4362
4649
|
authorName?: string;
|
|
4363
4650
|
authorEmail?: string;
|
|
4364
4651
|
authorAvatar?: string;
|
|
4365
|
-
authorUser?: string
|
|
4652
|
+
authorUser?: string | {
|
|
4653
|
+
id?: number;
|
|
4654
|
+
email?: string;
|
|
4655
|
+
};
|
|
4366
4656
|
locale?: string;
|
|
4367
4657
|
gotThread?: boolean;
|
|
4368
4658
|
threadFirstItemId?: number;
|
|
@@ -4404,7 +4694,10 @@ declare const _default: {
|
|
|
4404
4694
|
authorName?: string;
|
|
4405
4695
|
authorEmail?: string;
|
|
4406
4696
|
authorAvatar?: string;
|
|
4407
|
-
authorUser?: string
|
|
4697
|
+
authorUser?: string | {
|
|
4698
|
+
id?: number;
|
|
4699
|
+
email?: string;
|
|
4700
|
+
};
|
|
4408
4701
|
locale?: string;
|
|
4409
4702
|
gotThread?: boolean;
|
|
4410
4703
|
threadFirstItemId?: number;
|
|
@@ -4438,7 +4731,10 @@ declare const _default: {
|
|
|
4438
4731
|
authorName?: string;
|
|
4439
4732
|
authorEmail?: string;
|
|
4440
4733
|
authorAvatar?: string;
|
|
4441
|
-
authorUser?: string
|
|
4734
|
+
authorUser?: string | {
|
|
4735
|
+
id?: number;
|
|
4736
|
+
email?: string;
|
|
4737
|
+
};
|
|
4442
4738
|
locale?: string;
|
|
4443
4739
|
gotThread?: boolean;
|
|
4444
4740
|
threadFirstItemId?: number;
|
|
@@ -4485,7 +4781,10 @@ declare const _default: {
|
|
|
4485
4781
|
authorName?: string;
|
|
4486
4782
|
authorEmail?: string;
|
|
4487
4783
|
authorAvatar?: string;
|
|
4488
|
-
authorUser?: string
|
|
4784
|
+
authorUser?: string | {
|
|
4785
|
+
id?: number;
|
|
4786
|
+
email?: string;
|
|
4787
|
+
};
|
|
4489
4788
|
locale?: string;
|
|
4490
4789
|
gotThread?: boolean;
|
|
4491
4790
|
threadFirstItemId?: number;
|
|
@@ -4519,7 +4818,10 @@ declare const _default: {
|
|
|
4519
4818
|
authorName?: string;
|
|
4520
4819
|
authorEmail?: string;
|
|
4521
4820
|
authorAvatar?: string;
|
|
4522
|
-
authorUser?: string
|
|
4821
|
+
authorUser?: string | {
|
|
4822
|
+
id?: number;
|
|
4823
|
+
email?: string;
|
|
4824
|
+
};
|
|
4523
4825
|
locale?: string;
|
|
4524
4826
|
gotThread?: boolean;
|
|
4525
4827
|
threadFirstItemId?: number;
|
|
@@ -4537,7 +4839,7 @@ declare const _default: {
|
|
|
4537
4839
|
author?: any;
|
|
4538
4840
|
};
|
|
4539
4841
|
};
|
|
4540
|
-
modifiedNestedNestedComments<T_5 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("./@types
|
|
4842
|
+
modifiedNestedNestedComments<T_5 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("./@types").Id, fieldName: T_5, value: {
|
|
4541
4843
|
id?: number;
|
|
4542
4844
|
documentId?: string;
|
|
4543
4845
|
content?: string;
|
|
@@ -4555,7 +4857,10 @@ declare const _default: {
|
|
|
4555
4857
|
authorName?: string;
|
|
4556
4858
|
authorEmail?: string;
|
|
4557
4859
|
authorAvatar?: string;
|
|
4558
|
-
authorUser?: string
|
|
4860
|
+
authorUser?: string | {
|
|
4861
|
+
id?: number;
|
|
4862
|
+
email?: string;
|
|
4863
|
+
};
|
|
4559
4864
|
locale?: string;
|
|
4560
4865
|
gotThread?: boolean;
|
|
4561
4866
|
threadFirstItemId?: number;
|
|
@@ -4589,7 +4894,10 @@ declare const _default: {
|
|
|
4589
4894
|
authorName?: string;
|
|
4590
4895
|
authorEmail?: string;
|
|
4591
4896
|
authorAvatar?: string;
|
|
4592
|
-
authorUser?: string
|
|
4897
|
+
authorUser?: string | {
|
|
4898
|
+
id?: number;
|
|
4899
|
+
email?: string;
|
|
4900
|
+
};
|
|
4593
4901
|
locale?: string;
|
|
4594
4902
|
gotThread?: boolean;
|
|
4595
4903
|
threadFirstItemId?: number;
|
|
@@ -4606,7 +4914,7 @@ declare const _default: {
|
|
|
4606
4914
|
}[];
|
|
4607
4915
|
author?: any;
|
|
4608
4916
|
};
|
|
4609
|
-
}[T_5]): Promise<boolean>;
|
|
4917
|
+
}[T_5], deepLimit?: number): Promise<boolean>;
|
|
4610
4918
|
checkBadWords(content: string): Promise<string>;
|
|
4611
4919
|
registerLifecycleHook(): void;
|
|
4612
4920
|
runLifecycleHook(): Promise<void>;
|
|
@@ -4647,7 +4955,10 @@ declare const _default: {
|
|
|
4647
4955
|
authorName?: string;
|
|
4648
4956
|
authorEmail?: string;
|
|
4649
4957
|
authorAvatar?: string;
|
|
4650
|
-
authorUser?: string
|
|
4958
|
+
authorUser?: string | {
|
|
4959
|
+
id?: number;
|
|
4960
|
+
email?: string;
|
|
4961
|
+
};
|
|
4651
4962
|
locale?: string;
|
|
4652
4963
|
gotThread?: boolean;
|
|
4653
4964
|
threadFirstItemId?: number;
|
|
@@ -4681,7 +4992,10 @@ declare const _default: {
|
|
|
4681
4992
|
authorName?: string;
|
|
4682
4993
|
authorEmail?: string;
|
|
4683
4994
|
authorAvatar?: string;
|
|
4684
|
-
authorUser?: string
|
|
4995
|
+
authorUser?: string | {
|
|
4996
|
+
id?: number;
|
|
4997
|
+
email?: string;
|
|
4998
|
+
};
|
|
4685
4999
|
locale?: string;
|
|
4686
5000
|
gotThread?: boolean;
|
|
4687
5001
|
threadFirstItemId?: number;
|
|
@@ -4724,7 +5038,10 @@ declare const _default: {
|
|
|
4724
5038
|
authorName?: string;
|
|
4725
5039
|
authorEmail?: string;
|
|
4726
5040
|
authorAvatar?: string;
|
|
4727
|
-
authorUser?: string
|
|
5041
|
+
authorUser?: string | {
|
|
5042
|
+
id?: number;
|
|
5043
|
+
email?: string;
|
|
5044
|
+
};
|
|
4728
5045
|
locale?: string;
|
|
4729
5046
|
gotThread?: boolean;
|
|
4730
5047
|
threadFirstItemId?: number;
|
|
@@ -4758,7 +5075,10 @@ declare const _default: {
|
|
|
4758
5075
|
authorName?: string;
|
|
4759
5076
|
authorEmail?: string;
|
|
4760
5077
|
authorAvatar?: string;
|
|
4761
|
-
authorUser?: string
|
|
5078
|
+
authorUser?: string | {
|
|
5079
|
+
id?: number;
|
|
5080
|
+
email?: string;
|
|
5081
|
+
};
|
|
4762
5082
|
locale?: string;
|
|
4763
5083
|
gotThread?: boolean;
|
|
4764
5084
|
threadFirstItemId?: number;
|
|
@@ -4789,7 +5109,8 @@ declare const _default: {
|
|
|
4789
5109
|
}): Promise<{
|
|
4790
5110
|
entity: {
|
|
4791
5111
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
4792
|
-
|
|
5112
|
+
documentId: string;
|
|
5113
|
+
id: number;
|
|
4793
5114
|
};
|
|
4794
5115
|
selected: {
|
|
4795
5116
|
id?: number;
|
|
@@ -4809,7 +5130,10 @@ declare const _default: {
|
|
|
4809
5130
|
authorName?: string;
|
|
4810
5131
|
authorEmail?: string;
|
|
4811
5132
|
authorAvatar?: string;
|
|
4812
|
-
authorUser?: string
|
|
5133
|
+
authorUser?: string | {
|
|
5134
|
+
id?: number;
|
|
5135
|
+
email?: string;
|
|
5136
|
+
};
|
|
4813
5137
|
locale?: string;
|
|
4814
5138
|
gotThread?: boolean;
|
|
4815
5139
|
threadFirstItemId?: number;
|
|
@@ -4843,7 +5167,10 @@ declare const _default: {
|
|
|
4843
5167
|
authorName?: string;
|
|
4844
5168
|
authorEmail?: string;
|
|
4845
5169
|
authorAvatar?: string;
|
|
4846
|
-
authorUser?: string
|
|
5170
|
+
authorUser?: string | {
|
|
5171
|
+
id?: number;
|
|
5172
|
+
email?: string;
|
|
5173
|
+
};
|
|
4847
5174
|
locale?: string;
|
|
4848
5175
|
gotThread?: boolean;
|
|
4849
5176
|
threadFirstItemId?: number;
|
|
@@ -4879,7 +5206,10 @@ declare const _default: {
|
|
|
4879
5206
|
authorName?: string;
|
|
4880
5207
|
authorEmail?: string;
|
|
4881
5208
|
authorAvatar?: string;
|
|
4882
|
-
authorUser?: string
|
|
5209
|
+
authorUser?: string | {
|
|
5210
|
+
id?: number;
|
|
5211
|
+
email?: string;
|
|
5212
|
+
};
|
|
4883
5213
|
locale?: string;
|
|
4884
5214
|
gotThread?: boolean;
|
|
4885
5215
|
threadFirstItemId?: number;
|
|
@@ -4913,7 +5243,10 @@ declare const _default: {
|
|
|
4913
5243
|
authorName?: string;
|
|
4914
5244
|
authorEmail?: string;
|
|
4915
5245
|
authorAvatar?: string;
|
|
4916
|
-
authorUser?: string
|
|
5246
|
+
authorUser?: string | {
|
|
5247
|
+
id?: number;
|
|
5248
|
+
email?: string;
|
|
5249
|
+
};
|
|
4917
5250
|
locale?: string;
|
|
4918
5251
|
gotThread?: boolean;
|
|
4919
5252
|
threadFirstItemId?: number;
|
|
@@ -4932,7 +5265,7 @@ declare const _default: {
|
|
|
4932
5265
|
};
|
|
4933
5266
|
}[];
|
|
4934
5267
|
}>;
|
|
4935
|
-
changeBlockedComment(id: import("./@types
|
|
5268
|
+
changeBlockedComment(id: import("./@types").Id, forceStatus?: boolean): Promise<{
|
|
4936
5269
|
id?: number;
|
|
4937
5270
|
documentId?: string;
|
|
4938
5271
|
content?: string;
|
|
@@ -4950,7 +5283,10 @@ declare const _default: {
|
|
|
4950
5283
|
authorName?: string;
|
|
4951
5284
|
authorEmail?: string;
|
|
4952
5285
|
authorAvatar?: string;
|
|
4953
|
-
authorUser?: string
|
|
5286
|
+
authorUser?: string | {
|
|
5287
|
+
id?: number;
|
|
5288
|
+
email?: string;
|
|
5289
|
+
};
|
|
4954
5290
|
locale?: string;
|
|
4955
5291
|
gotThread?: boolean;
|
|
4956
5292
|
threadFirstItemId?: number;
|
|
@@ -4984,7 +5320,10 @@ declare const _default: {
|
|
|
4984
5320
|
authorName?: string;
|
|
4985
5321
|
authorEmail?: string;
|
|
4986
5322
|
authorAvatar?: string;
|
|
4987
|
-
authorUser?: string
|
|
5323
|
+
authorUser?: string | {
|
|
5324
|
+
id?: number;
|
|
5325
|
+
email?: string;
|
|
5326
|
+
};
|
|
4988
5327
|
locale?: string;
|
|
4989
5328
|
gotThread?: boolean;
|
|
4990
5329
|
threadFirstItemId?: number;
|
|
@@ -5002,7 +5341,7 @@ declare const _default: {
|
|
|
5002
5341
|
author?: any;
|
|
5003
5342
|
};
|
|
5004
5343
|
}>;
|
|
5005
|
-
deleteComment(id: import("./@types
|
|
5344
|
+
deleteComment(id: import("./@types").Id): Promise<{
|
|
5006
5345
|
id?: number;
|
|
5007
5346
|
documentId?: string;
|
|
5008
5347
|
content?: string;
|
|
@@ -5020,7 +5359,10 @@ declare const _default: {
|
|
|
5020
5359
|
authorName?: string;
|
|
5021
5360
|
authorEmail?: string;
|
|
5022
5361
|
authorAvatar?: string;
|
|
5023
|
-
authorUser?: string
|
|
5362
|
+
authorUser?: string | {
|
|
5363
|
+
id?: number;
|
|
5364
|
+
email?: string;
|
|
5365
|
+
};
|
|
5024
5366
|
locale?: string;
|
|
5025
5367
|
gotThread?: boolean;
|
|
5026
5368
|
threadFirstItemId?: number;
|
|
@@ -5054,7 +5396,10 @@ declare const _default: {
|
|
|
5054
5396
|
authorName?: string;
|
|
5055
5397
|
authorEmail?: string;
|
|
5056
5398
|
authorAvatar?: string;
|
|
5057
|
-
authorUser?: string
|
|
5399
|
+
authorUser?: string | {
|
|
5400
|
+
id?: number;
|
|
5401
|
+
email?: string;
|
|
5402
|
+
};
|
|
5058
5403
|
locale?: string;
|
|
5059
5404
|
gotThread?: boolean;
|
|
5060
5405
|
threadFirstItemId?: number;
|
|
@@ -5072,7 +5417,7 @@ declare const _default: {
|
|
|
5072
5417
|
author?: any;
|
|
5073
5418
|
};
|
|
5074
5419
|
}>;
|
|
5075
|
-
blockCommentThread(id: import("./@types
|
|
5420
|
+
blockCommentThread(id: import("./@types").Id, forceStatus?: boolean): Promise<{
|
|
5076
5421
|
id?: number;
|
|
5077
5422
|
documentId?: string;
|
|
5078
5423
|
content?: string;
|
|
@@ -5090,7 +5435,10 @@ declare const _default: {
|
|
|
5090
5435
|
authorName?: string;
|
|
5091
5436
|
authorEmail?: string;
|
|
5092
5437
|
authorAvatar?: string;
|
|
5093
|
-
authorUser?: string
|
|
5438
|
+
authorUser?: string | {
|
|
5439
|
+
id?: number;
|
|
5440
|
+
email?: string;
|
|
5441
|
+
};
|
|
5094
5442
|
locale?: string;
|
|
5095
5443
|
gotThread?: boolean;
|
|
5096
5444
|
threadFirstItemId?: number;
|
|
@@ -5124,7 +5472,10 @@ declare const _default: {
|
|
|
5124
5472
|
authorName?: string;
|
|
5125
5473
|
authorEmail?: string;
|
|
5126
5474
|
authorAvatar?: string;
|
|
5127
|
-
authorUser?: string
|
|
5475
|
+
authorUser?: string | {
|
|
5476
|
+
id?: number;
|
|
5477
|
+
email?: string;
|
|
5478
|
+
};
|
|
5128
5479
|
locale?: string;
|
|
5129
5480
|
gotThread?: boolean;
|
|
5130
5481
|
threadFirstItemId?: number;
|
|
@@ -5142,7 +5493,7 @@ declare const _default: {
|
|
|
5142
5493
|
author?: any;
|
|
5143
5494
|
};
|
|
5144
5495
|
}>;
|
|
5145
|
-
approveComment(id: import("./@types
|
|
5496
|
+
approveComment(id: import("./@types").Id): Promise<{
|
|
5146
5497
|
id?: number;
|
|
5147
5498
|
documentId?: string;
|
|
5148
5499
|
content?: string;
|
|
@@ -5160,7 +5511,10 @@ declare const _default: {
|
|
|
5160
5511
|
authorName?: string;
|
|
5161
5512
|
authorEmail?: string;
|
|
5162
5513
|
authorAvatar?: string;
|
|
5163
|
-
authorUser?: string
|
|
5514
|
+
authorUser?: string | {
|
|
5515
|
+
id?: number;
|
|
5516
|
+
email?: string;
|
|
5517
|
+
};
|
|
5164
5518
|
locale?: string;
|
|
5165
5519
|
gotThread?: boolean;
|
|
5166
5520
|
threadFirstItemId?: number;
|
|
@@ -5194,7 +5548,10 @@ declare const _default: {
|
|
|
5194
5548
|
authorName?: string;
|
|
5195
5549
|
authorEmail?: string;
|
|
5196
5550
|
authorAvatar?: string;
|
|
5197
|
-
authorUser?: string
|
|
5551
|
+
authorUser?: string | {
|
|
5552
|
+
id?: number;
|
|
5553
|
+
email?: string;
|
|
5554
|
+
};
|
|
5198
5555
|
locale?: string;
|
|
5199
5556
|
gotThread?: boolean;
|
|
5200
5557
|
threadFirstItemId?: number;
|
|
@@ -5212,7 +5569,7 @@ declare const _default: {
|
|
|
5212
5569
|
author?: any;
|
|
5213
5570
|
};
|
|
5214
5571
|
}>;
|
|
5215
|
-
rejectComment(id: import("./@types
|
|
5572
|
+
rejectComment(id: import("./@types").Id): Promise<{
|
|
5216
5573
|
id?: number;
|
|
5217
5574
|
documentId?: string;
|
|
5218
5575
|
content?: string;
|
|
@@ -5230,7 +5587,10 @@ declare const _default: {
|
|
|
5230
5587
|
authorName?: string;
|
|
5231
5588
|
authorEmail?: string;
|
|
5232
5589
|
authorAvatar?: string;
|
|
5233
|
-
authorUser?: string
|
|
5590
|
+
authorUser?: string | {
|
|
5591
|
+
id?: number;
|
|
5592
|
+
email?: string;
|
|
5593
|
+
};
|
|
5234
5594
|
locale?: string;
|
|
5235
5595
|
gotThread?: boolean;
|
|
5236
5596
|
threadFirstItemId?: number;
|
|
@@ -5264,7 +5624,10 @@ declare const _default: {
|
|
|
5264
5624
|
authorName?: string;
|
|
5265
5625
|
authorEmail?: string;
|
|
5266
5626
|
authorAvatar?: string;
|
|
5267
|
-
authorUser?: string
|
|
5627
|
+
authorUser?: string | {
|
|
5628
|
+
id?: number;
|
|
5629
|
+
email?: string;
|
|
5630
|
+
};
|
|
5268
5631
|
locale?: string;
|
|
5269
5632
|
gotThread?: boolean;
|
|
5270
5633
|
threadFirstItemId?: number;
|
|
@@ -5282,7 +5645,7 @@ declare const _default: {
|
|
|
5282
5645
|
author?: any;
|
|
5283
5646
|
};
|
|
5284
5647
|
}>;
|
|
5285
|
-
blockNestedThreads(id: import("./@types
|
|
5648
|
+
blockNestedThreads(id: import("./@types").Id, status: boolean): Promise<boolean>;
|
|
5286
5649
|
resolveAbuseReport({ id: commentId, reportId, }: {
|
|
5287
5650
|
id?: number;
|
|
5288
5651
|
reportId?: number;
|
|
@@ -5301,7 +5664,7 @@ declare const _default: {
|
|
|
5301
5664
|
id?: number;
|
|
5302
5665
|
reportIds?: number[];
|
|
5303
5666
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
5304
|
-
resolveAllAbuseReportsForComment(id: import("./@types
|
|
5667
|
+
resolveAllAbuseReportsForComment(id: import("./@types").Id): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
5305
5668
|
resolveAllAbuseReportsForThread(commentId: number): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
5306
5669
|
resolveMultipleAbuseReports({ reportIds, }: {
|
|
5307
5670
|
reportIds?: number[];
|
|
@@ -5334,7 +5697,10 @@ declare const _default: {
|
|
|
5334
5697
|
authorName?: string;
|
|
5335
5698
|
authorEmail?: string;
|
|
5336
5699
|
authorAvatar?: string;
|
|
5337
|
-
authorUser?: string
|
|
5700
|
+
authorUser?: string | {
|
|
5701
|
+
id?: number;
|
|
5702
|
+
email?: string;
|
|
5703
|
+
};
|
|
5338
5704
|
locale?: string;
|
|
5339
5705
|
gotThread?: boolean;
|
|
5340
5706
|
threadFirstItemId?: number;
|
|
@@ -5368,7 +5734,10 @@ declare const _default: {
|
|
|
5368
5734
|
authorName?: string;
|
|
5369
5735
|
authorEmail?: string;
|
|
5370
5736
|
authorAvatar?: string;
|
|
5371
|
-
authorUser?: string
|
|
5737
|
+
authorUser?: string | {
|
|
5738
|
+
id?: number;
|
|
5739
|
+
email?: string;
|
|
5740
|
+
};
|
|
5372
5741
|
locale?: string;
|
|
5373
5742
|
gotThread?: boolean;
|
|
5374
5743
|
threadFirstItemId?: number;
|
|
@@ -5407,7 +5776,10 @@ declare const _default: {
|
|
|
5407
5776
|
authorName?: string;
|
|
5408
5777
|
authorEmail?: string;
|
|
5409
5778
|
authorAvatar?: string;
|
|
5410
|
-
authorUser?: string
|
|
5779
|
+
authorUser?: string | {
|
|
5780
|
+
id?: number;
|
|
5781
|
+
email?: string;
|
|
5782
|
+
};
|
|
5411
5783
|
locale?: string;
|
|
5412
5784
|
gotThread?: boolean;
|
|
5413
5785
|
threadFirstItemId?: number;
|
|
@@ -5441,7 +5813,10 @@ declare const _default: {
|
|
|
5441
5813
|
authorName?: string;
|
|
5442
5814
|
authorEmail?: string;
|
|
5443
5815
|
authorAvatar?: string;
|
|
5444
|
-
authorUser?: string
|
|
5816
|
+
authorUser?: string | {
|
|
5817
|
+
id?: number;
|
|
5818
|
+
email?: string;
|
|
5819
|
+
};
|
|
5445
5820
|
locale?: string;
|
|
5446
5821
|
gotThread?: boolean;
|
|
5447
5822
|
threadFirstItemId?: number;
|
|
@@ -5460,9 +5835,9 @@ declare const _default: {
|
|
|
5460
5835
|
};
|
|
5461
5836
|
}>;
|
|
5462
5837
|
};
|
|
5463
|
-
client: ({ strapi }: import("./@types
|
|
5838
|
+
client: ({ strapi }: import("./@types").StrapiContext) => {
|
|
5464
5839
|
getCommonService(): {
|
|
5465
|
-
getConfig<T_3 extends
|
|
5840
|
+
getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
|
|
5466
5841
|
enabledCollections?: string[];
|
|
5467
5842
|
approvalFlow?: string[];
|
|
5468
5843
|
entryLabel?: Record<string, string[]>;
|
|
@@ -5479,24 +5854,11 @@ declare const _default: {
|
|
|
5479
5854
|
gql?: {
|
|
5480
5855
|
auth?: boolean;
|
|
5481
5856
|
};
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
entryLabel?: Record<string, string[]>;
|
|
5486
|
-
moderatorRoles?: string[];
|
|
5487
|
-
badWords?: boolean;
|
|
5488
|
-
blockedAuthorProps?: string[];
|
|
5489
|
-
isValidationEnabled?: boolean;
|
|
5490
|
-
reportReasons?: {
|
|
5491
|
-
BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
|
|
5492
|
-
DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
|
|
5493
|
-
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
5494
|
-
};
|
|
5495
|
-
isGQLPluginEnabled?: boolean;
|
|
5496
|
-
gql?: {
|
|
5497
|
-
auth?: boolean;
|
|
5857
|
+
client?: {
|
|
5858
|
+
url?: string;
|
|
5859
|
+
contactEmail?: string;
|
|
5498
5860
|
};
|
|
5499
|
-
}
|
|
5861
|
+
}, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
|
|
5500
5862
|
enabledCollections?: string[];
|
|
5501
5863
|
approvalFlow?: string[];
|
|
5502
5864
|
entryLabel?: Record<string, string[]>;
|
|
@@ -5513,7 +5875,11 @@ declare const _default: {
|
|
|
5513
5875
|
gql?: {
|
|
5514
5876
|
auth?: boolean;
|
|
5515
5877
|
};
|
|
5516
|
-
|
|
5878
|
+
client?: {
|
|
5879
|
+
url?: string;
|
|
5880
|
+
contactEmail?: string;
|
|
5881
|
+
};
|
|
5882
|
+
}, T_3>>;
|
|
5517
5883
|
parseRelationString(relation: string): {
|
|
5518
5884
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
5519
5885
|
relatedId: string;
|
|
@@ -5539,7 +5905,10 @@ declare const _default: {
|
|
|
5539
5905
|
authorName?: string;
|
|
5540
5906
|
authorEmail?: string;
|
|
5541
5907
|
authorAvatar?: string;
|
|
5542
|
-
authorUser?: string
|
|
5908
|
+
authorUser?: string | {
|
|
5909
|
+
id?: number;
|
|
5910
|
+
email?: string;
|
|
5911
|
+
};
|
|
5543
5912
|
locale?: string;
|
|
5544
5913
|
gotThread?: boolean;
|
|
5545
5914
|
threadFirstItemId?: number;
|
|
@@ -5573,7 +5942,10 @@ declare const _default: {
|
|
|
5573
5942
|
authorName?: string;
|
|
5574
5943
|
authorEmail?: string;
|
|
5575
5944
|
authorAvatar?: string;
|
|
5576
|
-
authorUser?: string
|
|
5945
|
+
authorUser?: string | {
|
|
5946
|
+
id?: number;
|
|
5947
|
+
email?: string;
|
|
5948
|
+
};
|
|
5577
5949
|
locale?: string;
|
|
5578
5950
|
gotThread?: boolean;
|
|
5579
5951
|
threadFirstItemId?: number;
|
|
@@ -5614,7 +5986,10 @@ declare const _default: {
|
|
|
5614
5986
|
authorName?: string;
|
|
5615
5987
|
authorEmail?: string;
|
|
5616
5988
|
authorAvatar?: string;
|
|
5617
|
-
authorUser?: string
|
|
5989
|
+
authorUser?: string | {
|
|
5990
|
+
id?: number;
|
|
5991
|
+
email?: string;
|
|
5992
|
+
};
|
|
5618
5993
|
locale?: string;
|
|
5619
5994
|
gotThread?: boolean;
|
|
5620
5995
|
threadFirstItemId?: number;
|
|
@@ -5648,7 +6023,10 @@ declare const _default: {
|
|
|
5648
6023
|
authorName?: string;
|
|
5649
6024
|
authorEmail?: string;
|
|
5650
6025
|
authorAvatar?: string;
|
|
5651
|
-
authorUser?: string
|
|
6026
|
+
authorUser?: string | {
|
|
6027
|
+
id?: number;
|
|
6028
|
+
email?: string;
|
|
6029
|
+
};
|
|
5652
6030
|
locale?: string;
|
|
5653
6031
|
gotThread?: boolean;
|
|
5654
6032
|
threadFirstItemId?: number;
|
|
@@ -5683,7 +6061,10 @@ declare const _default: {
|
|
|
5683
6061
|
authorName?: string;
|
|
5684
6062
|
authorEmail?: string;
|
|
5685
6063
|
authorAvatar?: string;
|
|
5686
|
-
authorUser?: string
|
|
6064
|
+
authorUser?: string | {
|
|
6065
|
+
id?: number;
|
|
6066
|
+
email?: string;
|
|
6067
|
+
};
|
|
5687
6068
|
locale?: string;
|
|
5688
6069
|
gotThread?: boolean;
|
|
5689
6070
|
threadFirstItemId?: number;
|
|
@@ -5717,7 +6098,10 @@ declare const _default: {
|
|
|
5717
6098
|
authorName?: string;
|
|
5718
6099
|
authorEmail?: string;
|
|
5719
6100
|
authorAvatar?: string;
|
|
5720
|
-
authorUser?: string
|
|
6101
|
+
authorUser?: string | {
|
|
6102
|
+
id?: number;
|
|
6103
|
+
email?: string;
|
|
6104
|
+
};
|
|
5721
6105
|
locale?: string;
|
|
5722
6106
|
gotThread?: boolean;
|
|
5723
6107
|
threadFirstItemId?: number;
|
|
@@ -5743,7 +6127,7 @@ declare const _default: {
|
|
|
5743
6127
|
pageSize?: number;
|
|
5744
6128
|
withCount?: boolean;
|
|
5745
6129
|
};
|
|
5746
|
-
relation?:
|
|
6130
|
+
relation?: `${string}::${string}.${string}`;
|
|
5747
6131
|
populate?: Record<string, boolean | {
|
|
5748
6132
|
populate?: boolean;
|
|
5749
6133
|
}>;
|
|
@@ -5948,7 +6332,10 @@ declare const _default: {
|
|
|
5948
6332
|
authorName?: string;
|
|
5949
6333
|
authorEmail?: string;
|
|
5950
6334
|
authorAvatar?: string;
|
|
5951
|
-
authorUser?: string
|
|
6335
|
+
authorUser?: string | {
|
|
6336
|
+
id?: number;
|
|
6337
|
+
email?: string;
|
|
6338
|
+
};
|
|
5952
6339
|
locale?: string;
|
|
5953
6340
|
gotThread?: boolean;
|
|
5954
6341
|
threadFirstItemId?: number;
|
|
@@ -5982,7 +6369,10 @@ declare const _default: {
|
|
|
5982
6369
|
authorName?: string;
|
|
5983
6370
|
authorEmail?: string;
|
|
5984
6371
|
authorAvatar?: string;
|
|
5985
|
-
authorUser?: string
|
|
6372
|
+
authorUser?: string | {
|
|
6373
|
+
id?: number;
|
|
6374
|
+
email?: string;
|
|
6375
|
+
};
|
|
5986
6376
|
locale?: string;
|
|
5987
6377
|
gotThread?: boolean;
|
|
5988
6378
|
threadFirstItemId?: number;
|
|
@@ -6023,7 +6413,10 @@ declare const _default: {
|
|
|
6023
6413
|
authorName?: string;
|
|
6024
6414
|
authorEmail?: string;
|
|
6025
6415
|
authorAvatar?: string;
|
|
6026
|
-
authorUser?: string
|
|
6416
|
+
authorUser?: string | {
|
|
6417
|
+
id?: number;
|
|
6418
|
+
email?: string;
|
|
6419
|
+
};
|
|
6027
6420
|
locale?: string;
|
|
6028
6421
|
gotThread?: boolean;
|
|
6029
6422
|
threadFirstItemId?: number;
|
|
@@ -6057,7 +6450,10 @@ declare const _default: {
|
|
|
6057
6450
|
authorName?: string;
|
|
6058
6451
|
authorEmail?: string;
|
|
6059
6452
|
authorAvatar?: string;
|
|
6060
|
-
authorUser?: string
|
|
6453
|
+
authorUser?: string | {
|
|
6454
|
+
id?: number;
|
|
6455
|
+
email?: string;
|
|
6456
|
+
};
|
|
6061
6457
|
locale?: string;
|
|
6062
6458
|
gotThread?: boolean;
|
|
6063
6459
|
threadFirstItemId?: number;
|
|
@@ -6085,7 +6481,7 @@ declare const _default: {
|
|
|
6085
6481
|
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
6086
6482
|
sort?: string;
|
|
6087
6483
|
locale?: string;
|
|
6088
|
-
relation?:
|
|
6484
|
+
relation?: `${string}::${string}.${string}`;
|
|
6089
6485
|
populate?: Record<string, boolean | {
|
|
6090
6486
|
populate?: boolean;
|
|
6091
6487
|
}>;
|
|
@@ -6291,7 +6687,10 @@ declare const _default: {
|
|
|
6291
6687
|
authorName?: string;
|
|
6292
6688
|
authorEmail?: string;
|
|
6293
6689
|
authorAvatar?: string;
|
|
6294
|
-
authorUser?: string
|
|
6690
|
+
authorUser?: string | {
|
|
6691
|
+
id?: number;
|
|
6692
|
+
email?: string;
|
|
6693
|
+
};
|
|
6295
6694
|
locale?: string;
|
|
6296
6695
|
gotThread?: boolean;
|
|
6297
6696
|
threadFirstItemId?: number;
|
|
@@ -6325,7 +6724,10 @@ declare const _default: {
|
|
|
6325
6724
|
authorName?: string;
|
|
6326
6725
|
authorEmail?: string;
|
|
6327
6726
|
authorAvatar?: string;
|
|
6328
|
-
authorUser?: string
|
|
6727
|
+
authorUser?: string | {
|
|
6728
|
+
id?: number;
|
|
6729
|
+
email?: string;
|
|
6730
|
+
};
|
|
6329
6731
|
locale?: string;
|
|
6330
6732
|
gotThread?: boolean;
|
|
6331
6733
|
threadFirstItemId?: number;
|
|
@@ -6361,7 +6763,10 @@ declare const _default: {
|
|
|
6361
6763
|
authorName?: string;
|
|
6362
6764
|
authorEmail?: string;
|
|
6363
6765
|
authorAvatar?: string;
|
|
6364
|
-
authorUser?: string
|
|
6766
|
+
authorUser?: string | {
|
|
6767
|
+
id?: number;
|
|
6768
|
+
email?: string;
|
|
6769
|
+
};
|
|
6365
6770
|
locale?: string;
|
|
6366
6771
|
gotThread?: boolean;
|
|
6367
6772
|
threadFirstItemId?: number;
|
|
@@ -6395,7 +6800,10 @@ declare const _default: {
|
|
|
6395
6800
|
authorName?: string;
|
|
6396
6801
|
authorEmail?: string;
|
|
6397
6802
|
authorAvatar?: string;
|
|
6398
|
-
authorUser?: string
|
|
6803
|
+
authorUser?: string | {
|
|
6804
|
+
id?: number;
|
|
6805
|
+
email?: string;
|
|
6806
|
+
};
|
|
6399
6807
|
locale?: string;
|
|
6400
6808
|
gotThread?: boolean;
|
|
6401
6809
|
threadFirstItemId?: number;
|
|
@@ -6431,7 +6839,10 @@ declare const _default: {
|
|
|
6431
6839
|
authorName?: string;
|
|
6432
6840
|
authorEmail?: string;
|
|
6433
6841
|
authorAvatar?: string;
|
|
6434
|
-
authorUser?: string
|
|
6842
|
+
authorUser?: string | {
|
|
6843
|
+
id?: number;
|
|
6844
|
+
email?: string;
|
|
6845
|
+
};
|
|
6435
6846
|
locale?: string;
|
|
6436
6847
|
gotThread?: boolean;
|
|
6437
6848
|
threadFirstItemId?: number;
|
|
@@ -6465,7 +6876,10 @@ declare const _default: {
|
|
|
6465
6876
|
authorName?: string;
|
|
6466
6877
|
authorEmail?: string;
|
|
6467
6878
|
authorAvatar?: string;
|
|
6468
|
-
authorUser?: string
|
|
6879
|
+
authorUser?: string | {
|
|
6880
|
+
id?: number;
|
|
6881
|
+
email?: string;
|
|
6882
|
+
};
|
|
6469
6883
|
locale?: string;
|
|
6470
6884
|
gotThread?: boolean;
|
|
6471
6885
|
threadFirstItemId?: number;
|
|
@@ -6501,7 +6915,10 @@ declare const _default: {
|
|
|
6501
6915
|
authorName?: string;
|
|
6502
6916
|
authorEmail?: string;
|
|
6503
6917
|
authorAvatar?: string;
|
|
6504
|
-
authorUser?: string
|
|
6918
|
+
authorUser?: string | {
|
|
6919
|
+
id?: number;
|
|
6920
|
+
email?: string;
|
|
6921
|
+
};
|
|
6505
6922
|
locale?: string;
|
|
6506
6923
|
gotThread?: boolean;
|
|
6507
6924
|
threadFirstItemId?: number;
|
|
@@ -6535,7 +6952,10 @@ declare const _default: {
|
|
|
6535
6952
|
authorName?: string;
|
|
6536
6953
|
authorEmail?: string;
|
|
6537
6954
|
authorAvatar?: string;
|
|
6538
|
-
authorUser?: string
|
|
6955
|
+
authorUser?: string | {
|
|
6956
|
+
id?: number;
|
|
6957
|
+
email?: string;
|
|
6958
|
+
};
|
|
6539
6959
|
locale?: string;
|
|
6540
6960
|
gotThread?: boolean;
|
|
6541
6961
|
threadFirstItemId?: number;
|
|
@@ -6570,7 +6990,10 @@ declare const _default: {
|
|
|
6570
6990
|
authorName?: string;
|
|
6571
6991
|
authorEmail?: string;
|
|
6572
6992
|
authorAvatar?: string;
|
|
6573
|
-
authorUser?: string
|
|
6993
|
+
authorUser?: string | {
|
|
6994
|
+
id?: number;
|
|
6995
|
+
email?: string;
|
|
6996
|
+
};
|
|
6574
6997
|
locale?: string;
|
|
6575
6998
|
gotThread?: boolean;
|
|
6576
6999
|
threadFirstItemId?: number;
|
|
@@ -6604,7 +7027,10 @@ declare const _default: {
|
|
|
6604
7027
|
authorName?: string;
|
|
6605
7028
|
authorEmail?: string;
|
|
6606
7029
|
authorAvatar?: string;
|
|
6607
|
-
authorUser?: string
|
|
7030
|
+
authorUser?: string | {
|
|
7031
|
+
id?: number;
|
|
7032
|
+
email?: string;
|
|
7033
|
+
};
|
|
6608
7034
|
locale?: string;
|
|
6609
7035
|
gotThread?: boolean;
|
|
6610
7036
|
threadFirstItemId?: number;
|
|
@@ -6836,7 +7262,10 @@ declare const _default: {
|
|
|
6836
7262
|
authorName?: string;
|
|
6837
7263
|
authorEmail?: string;
|
|
6838
7264
|
authorAvatar?: string;
|
|
6839
|
-
authorUser?: string
|
|
7265
|
+
authorUser?: string | {
|
|
7266
|
+
id?: number;
|
|
7267
|
+
email?: string;
|
|
7268
|
+
};
|
|
6840
7269
|
locale?: string;
|
|
6841
7270
|
gotThread?: boolean;
|
|
6842
7271
|
threadFirstItemId?: number;
|
|
@@ -6869,7 +7298,10 @@ declare const _default: {
|
|
|
6869
7298
|
authorName?: string;
|
|
6870
7299
|
authorEmail?: string;
|
|
6871
7300
|
authorAvatar?: string;
|
|
6872
|
-
authorUser?: string
|
|
7301
|
+
authorUser?: string | {
|
|
7302
|
+
id?: number;
|
|
7303
|
+
email?: string;
|
|
7304
|
+
};
|
|
6873
7305
|
locale?: string;
|
|
6874
7306
|
gotThread?: boolean;
|
|
6875
7307
|
threadFirstItemId?: number;
|
|
@@ -6910,7 +7342,10 @@ declare const _default: {
|
|
|
6910
7342
|
authorName?: string;
|
|
6911
7343
|
authorEmail?: string;
|
|
6912
7344
|
authorAvatar?: string;
|
|
6913
|
-
authorUser?: string
|
|
7345
|
+
authorUser?: string | {
|
|
7346
|
+
id?: number;
|
|
7347
|
+
email?: string;
|
|
7348
|
+
};
|
|
6914
7349
|
locale?: string;
|
|
6915
7350
|
gotThread?: boolean;
|
|
6916
7351
|
threadFirstItemId?: number;
|
|
@@ -6943,7 +7378,10 @@ declare const _default: {
|
|
|
6943
7378
|
authorName?: string;
|
|
6944
7379
|
authorEmail?: string;
|
|
6945
7380
|
authorAvatar?: string;
|
|
6946
|
-
authorUser?: string
|
|
7381
|
+
authorUser?: string | {
|
|
7382
|
+
id?: number;
|
|
7383
|
+
email?: string;
|
|
7384
|
+
};
|
|
6947
7385
|
locale?: string;
|
|
6948
7386
|
gotThread?: boolean;
|
|
6949
7387
|
threadFirstItemId?: number;
|
|
@@ -6986,7 +7424,10 @@ declare const _default: {
|
|
|
6986
7424
|
authorName?: string;
|
|
6987
7425
|
authorEmail?: string;
|
|
6988
7426
|
authorAvatar?: string;
|
|
6989
|
-
authorUser?: string
|
|
7427
|
+
authorUser?: string | {
|
|
7428
|
+
id?: number;
|
|
7429
|
+
email?: string;
|
|
7430
|
+
};
|
|
6990
7431
|
locale?: string;
|
|
6991
7432
|
gotThread?: boolean;
|
|
6992
7433
|
threadFirstItemId?: number;
|
|
@@ -7020,7 +7461,10 @@ declare const _default: {
|
|
|
7020
7461
|
authorName?: string;
|
|
7021
7462
|
authorEmail?: string;
|
|
7022
7463
|
authorAvatar?: string;
|
|
7023
|
-
authorUser?: string
|
|
7464
|
+
authorUser?: string | {
|
|
7465
|
+
id?: number;
|
|
7466
|
+
email?: string;
|
|
7467
|
+
};
|
|
7024
7468
|
locale?: string;
|
|
7025
7469
|
gotThread?: boolean;
|
|
7026
7470
|
threadFirstItemId?: number;
|
|
@@ -7062,7 +7506,10 @@ declare const _default: {
|
|
|
7062
7506
|
authorName?: string;
|
|
7063
7507
|
authorEmail?: string;
|
|
7064
7508
|
authorAvatar?: string;
|
|
7065
|
-
authorUser?: string
|
|
7509
|
+
authorUser?: string | {
|
|
7510
|
+
id?: number;
|
|
7511
|
+
email?: string;
|
|
7512
|
+
};
|
|
7066
7513
|
locale?: string;
|
|
7067
7514
|
gotThread?: boolean;
|
|
7068
7515
|
threadFirstItemId?: number;
|
|
@@ -7096,7 +7543,10 @@ declare const _default: {
|
|
|
7096
7543
|
authorName?: string;
|
|
7097
7544
|
authorEmail?: string;
|
|
7098
7545
|
authorAvatar?: string;
|
|
7099
|
-
authorUser?: string
|
|
7546
|
+
authorUser?: string | {
|
|
7547
|
+
id?: number;
|
|
7548
|
+
email?: string;
|
|
7549
|
+
};
|
|
7100
7550
|
locale?: string;
|
|
7101
7551
|
gotThread?: boolean;
|
|
7102
7552
|
threadFirstItemId?: number;
|
|
@@ -7143,7 +7593,10 @@ declare const _default: {
|
|
|
7143
7593
|
authorName?: string;
|
|
7144
7594
|
authorEmail?: string;
|
|
7145
7595
|
authorAvatar?: string;
|
|
7146
|
-
authorUser?: string
|
|
7596
|
+
authorUser?: string | {
|
|
7597
|
+
id?: number;
|
|
7598
|
+
email?: string;
|
|
7599
|
+
};
|
|
7147
7600
|
locale?: string;
|
|
7148
7601
|
gotThread?: boolean;
|
|
7149
7602
|
threadFirstItemId?: number;
|
|
@@ -7177,7 +7630,10 @@ declare const _default: {
|
|
|
7177
7630
|
authorName?: string;
|
|
7178
7631
|
authorEmail?: string;
|
|
7179
7632
|
authorAvatar?: string;
|
|
7180
|
-
authorUser?: string
|
|
7633
|
+
authorUser?: string | {
|
|
7634
|
+
id?: number;
|
|
7635
|
+
email?: string;
|
|
7636
|
+
};
|
|
7181
7637
|
locale?: string;
|
|
7182
7638
|
gotThread?: boolean;
|
|
7183
7639
|
threadFirstItemId?: number;
|
|
@@ -7195,7 +7651,7 @@ declare const _default: {
|
|
|
7195
7651
|
author?: any;
|
|
7196
7652
|
};
|
|
7197
7653
|
};
|
|
7198
|
-
modifiedNestedNestedComments<T_5 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("./@types
|
|
7654
|
+
modifiedNestedNestedComments<T_5 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("./@types").Id, fieldName: T_5, value: {
|
|
7199
7655
|
id?: number;
|
|
7200
7656
|
documentId?: string;
|
|
7201
7657
|
content?: string;
|
|
@@ -7213,7 +7669,10 @@ declare const _default: {
|
|
|
7213
7669
|
authorName?: string;
|
|
7214
7670
|
authorEmail?: string;
|
|
7215
7671
|
authorAvatar?: string;
|
|
7216
|
-
authorUser?: string
|
|
7672
|
+
authorUser?: string | {
|
|
7673
|
+
id?: number;
|
|
7674
|
+
email?: string;
|
|
7675
|
+
};
|
|
7217
7676
|
locale?: string;
|
|
7218
7677
|
gotThread?: boolean;
|
|
7219
7678
|
threadFirstItemId?: number;
|
|
@@ -7247,7 +7706,10 @@ declare const _default: {
|
|
|
7247
7706
|
authorName?: string;
|
|
7248
7707
|
authorEmail?: string;
|
|
7249
7708
|
authorAvatar?: string;
|
|
7250
|
-
authorUser?: string
|
|
7709
|
+
authorUser?: string | {
|
|
7710
|
+
id?: number;
|
|
7711
|
+
email?: string;
|
|
7712
|
+
};
|
|
7251
7713
|
locale?: string;
|
|
7252
7714
|
gotThread?: boolean;
|
|
7253
7715
|
threadFirstItemId?: number;
|
|
@@ -7264,7 +7726,7 @@ declare const _default: {
|
|
|
7264
7726
|
}[];
|
|
7265
7727
|
author?: any;
|
|
7266
7728
|
};
|
|
7267
|
-
}[T_5]): Promise<boolean>;
|
|
7729
|
+
}[T_5], deepLimit?: number): Promise<boolean>;
|
|
7268
7730
|
checkBadWords(content: string): Promise<string>;
|
|
7269
7731
|
registerLifecycleHook(): void;
|
|
7270
7732
|
runLifecycleHook(): Promise<void>;
|
|
@@ -7279,9 +7741,9 @@ declare const _default: {
|
|
|
7279
7741
|
email?: string;
|
|
7280
7742
|
avatar?: string;
|
|
7281
7743
|
};
|
|
7282
|
-
threadOf?:
|
|
7283
|
-
relation?:
|
|
7284
|
-
}, user?: import("./@types
|
|
7744
|
+
threadOf?: string;
|
|
7745
|
+
relation?: `${string}::${string}.${string}`;
|
|
7746
|
+
}, user?: import("./@types").AdminUser): Promise<{
|
|
7285
7747
|
id?: number;
|
|
7286
7748
|
documentId?: string;
|
|
7287
7749
|
content?: string;
|
|
@@ -7299,7 +7761,10 @@ declare const _default: {
|
|
|
7299
7761
|
authorName?: string;
|
|
7300
7762
|
authorEmail?: string;
|
|
7301
7763
|
authorAvatar?: string;
|
|
7302
|
-
authorUser?: string
|
|
7764
|
+
authorUser?: string | {
|
|
7765
|
+
id?: number;
|
|
7766
|
+
email?: string;
|
|
7767
|
+
};
|
|
7303
7768
|
locale?: string;
|
|
7304
7769
|
gotThread?: boolean;
|
|
7305
7770
|
threadFirstItemId?: number;
|
|
@@ -7333,7 +7798,10 @@ declare const _default: {
|
|
|
7333
7798
|
authorName?: string;
|
|
7334
7799
|
authorEmail?: string;
|
|
7335
7800
|
authorAvatar?: string;
|
|
7336
|
-
authorUser?: string
|
|
7801
|
+
authorUser?: string | {
|
|
7802
|
+
id?: number;
|
|
7803
|
+
email?: string;
|
|
7804
|
+
};
|
|
7337
7805
|
locale?: string;
|
|
7338
7806
|
gotThread?: boolean;
|
|
7339
7807
|
threadFirstItemId?: number;
|
|
@@ -7353,9 +7821,9 @@ declare const _default: {
|
|
|
7353
7821
|
}>;
|
|
7354
7822
|
update({ commentId, content }: {
|
|
7355
7823
|
content?: string;
|
|
7356
|
-
relation?:
|
|
7824
|
+
relation?: `${string}::${string}.${string}`;
|
|
7357
7825
|
commentId?: number;
|
|
7358
|
-
}, user?: import("./@types
|
|
7826
|
+
}, user?: import("./@types").AdminUser): Promise<{
|
|
7359
7827
|
id?: number;
|
|
7360
7828
|
documentId?: string;
|
|
7361
7829
|
content?: string;
|
|
@@ -7373,7 +7841,10 @@ declare const _default: {
|
|
|
7373
7841
|
authorName?: string;
|
|
7374
7842
|
authorEmail?: string;
|
|
7375
7843
|
authorAvatar?: string;
|
|
7376
|
-
authorUser?: string
|
|
7844
|
+
authorUser?: string | {
|
|
7845
|
+
id?: number;
|
|
7846
|
+
email?: string;
|
|
7847
|
+
};
|
|
7377
7848
|
locale?: string;
|
|
7378
7849
|
gotThread?: boolean;
|
|
7379
7850
|
threadFirstItemId?: number;
|
|
@@ -7407,7 +7878,10 @@ declare const _default: {
|
|
|
7407
7878
|
authorName?: string;
|
|
7408
7879
|
authorEmail?: string;
|
|
7409
7880
|
authorAvatar?: string;
|
|
7410
|
-
authorUser?: string
|
|
7881
|
+
authorUser?: string | {
|
|
7882
|
+
id?: number;
|
|
7883
|
+
email?: string;
|
|
7884
|
+
};
|
|
7411
7885
|
locale?: string;
|
|
7412
7886
|
gotThread?: boolean;
|
|
7413
7887
|
threadFirstItemId?: number;
|
|
@@ -7427,10 +7901,10 @@ declare const _default: {
|
|
|
7427
7901
|
}>;
|
|
7428
7902
|
reportAbuse({ commentId, relation, ...payload }: {
|
|
7429
7903
|
content?: string;
|
|
7430
|
-
reason?:
|
|
7431
|
-
relation?:
|
|
7904
|
+
reason?: import("./const").REPORT_REASON;
|
|
7905
|
+
relation?: `${string}::${string}.${string}`;
|
|
7432
7906
|
commentId?: number;
|
|
7433
|
-
}, user?: import("./@types
|
|
7907
|
+
}, user?: import("./@types").AdminUser): Promise<{
|
|
7434
7908
|
related: {
|
|
7435
7909
|
id?: number;
|
|
7436
7910
|
documentId?: string;
|
|
@@ -7449,7 +7923,10 @@ declare const _default: {
|
|
|
7449
7923
|
authorName?: string;
|
|
7450
7924
|
authorEmail?: string;
|
|
7451
7925
|
authorAvatar?: string;
|
|
7452
|
-
authorUser?: string
|
|
7926
|
+
authorUser?: string | {
|
|
7927
|
+
id?: number;
|
|
7928
|
+
email?: string;
|
|
7929
|
+
};
|
|
7453
7930
|
locale?: string;
|
|
7454
7931
|
gotThread?: boolean;
|
|
7455
7932
|
threadFirstItemId?: number;
|
|
@@ -7483,7 +7960,10 @@ declare const _default: {
|
|
|
7483
7960
|
authorName?: string;
|
|
7484
7961
|
authorEmail?: string;
|
|
7485
7962
|
authorAvatar?: string;
|
|
7486
|
-
authorUser?: string
|
|
7963
|
+
authorUser?: string | {
|
|
7964
|
+
id?: number;
|
|
7965
|
+
email?: string;
|
|
7966
|
+
};
|
|
7487
7967
|
locale?: string;
|
|
7488
7968
|
gotThread?: boolean;
|
|
7489
7969
|
threadFirstItemId?: number;
|
|
@@ -7513,9 +7993,9 @@ declare const _default: {
|
|
|
7513
7993
|
}>;
|
|
7514
7994
|
markAsRemoved({ commentId, relation, authorId }: {
|
|
7515
7995
|
authorId?: string | number;
|
|
7516
|
-
relation?:
|
|
7996
|
+
relation?: `${string}::${string}.${string}`;
|
|
7517
7997
|
commentId?: number;
|
|
7518
|
-
}, user: import("./@types
|
|
7998
|
+
}, user: import("./@types").AdminUser): Promise<{
|
|
7519
7999
|
id?: number;
|
|
7520
8000
|
documentId?: string;
|
|
7521
8001
|
content?: string;
|
|
@@ -7533,7 +8013,10 @@ declare const _default: {
|
|
|
7533
8013
|
authorName?: string;
|
|
7534
8014
|
authorEmail?: string;
|
|
7535
8015
|
authorAvatar?: string;
|
|
7536
|
-
authorUser?: string
|
|
8016
|
+
authorUser?: string | {
|
|
8017
|
+
id?: number;
|
|
8018
|
+
email?: string;
|
|
8019
|
+
};
|
|
7537
8020
|
locale?: string;
|
|
7538
8021
|
gotThread?: boolean;
|
|
7539
8022
|
threadFirstItemId?: number;
|
|
@@ -7567,7 +8050,10 @@ declare const _default: {
|
|
|
7567
8050
|
authorName?: string;
|
|
7568
8051
|
authorEmail?: string;
|
|
7569
8052
|
authorAvatar?: string;
|
|
7570
|
-
authorUser?: string
|
|
8053
|
+
authorUser?: string | {
|
|
8054
|
+
id?: number;
|
|
8055
|
+
email?: string;
|
|
8056
|
+
};
|
|
7571
8057
|
locale?: string;
|
|
7572
8058
|
gotThread?: boolean;
|
|
7573
8059
|
threadFirstItemId?: number;
|
|
@@ -7586,8 +8072,8 @@ declare const _default: {
|
|
|
7586
8072
|
};
|
|
7587
8073
|
}>;
|
|
7588
8074
|
sendAbuseReportEmail(reason: string, content: string): Promise<void>;
|
|
7589
|
-
markAsRemovedNested(commentId: string | number, status: boolean): Promise<
|
|
7590
|
-
sendResponseNotification(
|
|
8075
|
+
markAsRemovedNested(commentId: string | number, status: boolean): Promise<boolean>;
|
|
8076
|
+
sendResponseNotification(entity: {
|
|
7591
8077
|
id?: number;
|
|
7592
8078
|
documentId?: string;
|
|
7593
8079
|
content?: string;
|
|
@@ -7605,7 +8091,10 @@ declare const _default: {
|
|
|
7605
8091
|
authorName?: string;
|
|
7606
8092
|
authorEmail?: string;
|
|
7607
8093
|
authorAvatar?: string;
|
|
7608
|
-
authorUser?: string
|
|
8094
|
+
authorUser?: string | {
|
|
8095
|
+
id?: number;
|
|
8096
|
+
email?: string;
|
|
8097
|
+
};
|
|
7609
8098
|
locale?: string;
|
|
7610
8099
|
gotThread?: boolean;
|
|
7611
8100
|
threadFirstItemId?: number;
|
|
@@ -7639,7 +8128,10 @@ declare const _default: {
|
|
|
7639
8128
|
authorName?: string;
|
|
7640
8129
|
authorEmail?: string;
|
|
7641
8130
|
authorAvatar?: string;
|
|
7642
|
-
authorUser?: string
|
|
8131
|
+
authorUser?: string | {
|
|
8132
|
+
id?: number;
|
|
8133
|
+
email?: string;
|
|
8134
|
+
};
|
|
7643
8135
|
locale?: string;
|
|
7644
8136
|
gotThread?: boolean;
|
|
7645
8137
|
threadFirstItemId?: number;
|
|
@@ -7658,8 +8150,8 @@ declare const _default: {
|
|
|
7658
8150
|
};
|
|
7659
8151
|
}): Promise<void>;
|
|
7660
8152
|
};
|
|
7661
|
-
common: ({ strapi }: import("./@types
|
|
7662
|
-
getConfig<T_3 extends
|
|
8153
|
+
common: ({ strapi }: import("./@types").StrapiContext) => {
|
|
8154
|
+
getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
|
|
7663
8155
|
enabledCollections?: string[];
|
|
7664
8156
|
approvalFlow?: string[];
|
|
7665
8157
|
entryLabel?: Record<string, string[]>;
|
|
@@ -7676,24 +8168,11 @@ declare const _default: {
|
|
|
7676
8168
|
gql?: {
|
|
7677
8169
|
auth?: boolean;
|
|
7678
8170
|
};
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
entryLabel?: Record<string, string[]>;
|
|
7683
|
-
moderatorRoles?: string[];
|
|
7684
|
-
badWords?: boolean;
|
|
7685
|
-
blockedAuthorProps?: string[];
|
|
7686
|
-
isValidationEnabled?: boolean;
|
|
7687
|
-
reportReasons?: {
|
|
7688
|
-
BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
|
|
7689
|
-
DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
|
|
7690
|
-
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
8171
|
+
client?: {
|
|
8172
|
+
url?: string;
|
|
8173
|
+
contactEmail?: string;
|
|
7691
8174
|
};
|
|
7692
|
-
|
|
7693
|
-
gql?: {
|
|
7694
|
-
auth?: boolean;
|
|
7695
|
-
};
|
|
7696
|
-
}[T_3] : {
|
|
8175
|
+
}, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
|
|
7697
8176
|
enabledCollections?: string[];
|
|
7698
8177
|
approvalFlow?: string[];
|
|
7699
8178
|
entryLabel?: Record<string, string[]>;
|
|
@@ -7710,7 +8189,11 @@ declare const _default: {
|
|
|
7710
8189
|
gql?: {
|
|
7711
8190
|
auth?: boolean;
|
|
7712
8191
|
};
|
|
7713
|
-
|
|
8192
|
+
client?: {
|
|
8193
|
+
url?: string;
|
|
8194
|
+
contactEmail?: string;
|
|
8195
|
+
};
|
|
8196
|
+
}, T_3>>;
|
|
7714
8197
|
parseRelationString(relation: string): {
|
|
7715
8198
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
7716
8199
|
relatedId: string;
|
|
@@ -7736,7 +8219,10 @@ declare const _default: {
|
|
|
7736
8219
|
authorName?: string;
|
|
7737
8220
|
authorEmail?: string;
|
|
7738
8221
|
authorAvatar?: string;
|
|
7739
|
-
authorUser?: string
|
|
8222
|
+
authorUser?: string | {
|
|
8223
|
+
id?: number;
|
|
8224
|
+
email?: string;
|
|
8225
|
+
};
|
|
7740
8226
|
locale?: string;
|
|
7741
8227
|
gotThread?: boolean;
|
|
7742
8228
|
threadFirstItemId?: number;
|
|
@@ -7770,7 +8256,10 @@ declare const _default: {
|
|
|
7770
8256
|
authorName?: string;
|
|
7771
8257
|
authorEmail?: string;
|
|
7772
8258
|
authorAvatar?: string;
|
|
7773
|
-
authorUser?: string
|
|
8259
|
+
authorUser?: string | {
|
|
8260
|
+
id?: number;
|
|
8261
|
+
email?: string;
|
|
8262
|
+
};
|
|
7774
8263
|
locale?: string;
|
|
7775
8264
|
gotThread?: boolean;
|
|
7776
8265
|
threadFirstItemId?: number;
|
|
@@ -7811,7 +8300,10 @@ declare const _default: {
|
|
|
7811
8300
|
authorName?: string;
|
|
7812
8301
|
authorEmail?: string;
|
|
7813
8302
|
authorAvatar?: string;
|
|
7814
|
-
authorUser?: string
|
|
8303
|
+
authorUser?: string | {
|
|
8304
|
+
id?: number;
|
|
8305
|
+
email?: string;
|
|
8306
|
+
};
|
|
7815
8307
|
locale?: string;
|
|
7816
8308
|
gotThread?: boolean;
|
|
7817
8309
|
threadFirstItemId?: number;
|
|
@@ -7845,7 +8337,10 @@ declare const _default: {
|
|
|
7845
8337
|
authorName?: string;
|
|
7846
8338
|
authorEmail?: string;
|
|
7847
8339
|
authorAvatar?: string;
|
|
7848
|
-
authorUser?: string
|
|
8340
|
+
authorUser?: string | {
|
|
8341
|
+
id?: number;
|
|
8342
|
+
email?: string;
|
|
8343
|
+
};
|
|
7849
8344
|
locale?: string;
|
|
7850
8345
|
gotThread?: boolean;
|
|
7851
8346
|
threadFirstItemId?: number;
|
|
@@ -7880,7 +8375,10 @@ declare const _default: {
|
|
|
7880
8375
|
authorName?: string;
|
|
7881
8376
|
authorEmail?: string;
|
|
7882
8377
|
authorAvatar?: string;
|
|
7883
|
-
authorUser?: string
|
|
8378
|
+
authorUser?: string | {
|
|
8379
|
+
id?: number;
|
|
8380
|
+
email?: string;
|
|
8381
|
+
};
|
|
7884
8382
|
locale?: string;
|
|
7885
8383
|
gotThread?: boolean;
|
|
7886
8384
|
threadFirstItemId?: number;
|
|
@@ -7914,7 +8412,10 @@ declare const _default: {
|
|
|
7914
8412
|
authorName?: string;
|
|
7915
8413
|
authorEmail?: string;
|
|
7916
8414
|
authorAvatar?: string;
|
|
7917
|
-
authorUser?: string
|
|
8415
|
+
authorUser?: string | {
|
|
8416
|
+
id?: number;
|
|
8417
|
+
email?: string;
|
|
8418
|
+
};
|
|
7918
8419
|
locale?: string;
|
|
7919
8420
|
gotThread?: boolean;
|
|
7920
8421
|
threadFirstItemId?: number;
|
|
@@ -7940,7 +8441,7 @@ declare const _default: {
|
|
|
7940
8441
|
pageSize?: number;
|
|
7941
8442
|
withCount?: boolean;
|
|
7942
8443
|
};
|
|
7943
|
-
relation?:
|
|
8444
|
+
relation?: `${string}::${string}.${string}`;
|
|
7944
8445
|
populate?: Record<string, boolean | {
|
|
7945
8446
|
populate?: boolean;
|
|
7946
8447
|
}>;
|
|
@@ -8145,7 +8646,10 @@ declare const _default: {
|
|
|
8145
8646
|
authorName?: string;
|
|
8146
8647
|
authorEmail?: string;
|
|
8147
8648
|
authorAvatar?: string;
|
|
8148
|
-
authorUser?: string
|
|
8649
|
+
authorUser?: string | {
|
|
8650
|
+
id?: number;
|
|
8651
|
+
email?: string;
|
|
8652
|
+
};
|
|
8149
8653
|
locale?: string;
|
|
8150
8654
|
gotThread?: boolean;
|
|
8151
8655
|
threadFirstItemId?: number;
|
|
@@ -8179,7 +8683,10 @@ declare const _default: {
|
|
|
8179
8683
|
authorName?: string;
|
|
8180
8684
|
authorEmail?: string;
|
|
8181
8685
|
authorAvatar?: string;
|
|
8182
|
-
authorUser?: string
|
|
8686
|
+
authorUser?: string | {
|
|
8687
|
+
id?: number;
|
|
8688
|
+
email?: string;
|
|
8689
|
+
};
|
|
8183
8690
|
locale?: string;
|
|
8184
8691
|
gotThread?: boolean;
|
|
8185
8692
|
threadFirstItemId?: number;
|
|
@@ -8220,7 +8727,10 @@ declare const _default: {
|
|
|
8220
8727
|
authorName?: string;
|
|
8221
8728
|
authorEmail?: string;
|
|
8222
8729
|
authorAvatar?: string;
|
|
8223
|
-
authorUser?: string
|
|
8730
|
+
authorUser?: string | {
|
|
8731
|
+
id?: number;
|
|
8732
|
+
email?: string;
|
|
8733
|
+
};
|
|
8224
8734
|
locale?: string;
|
|
8225
8735
|
gotThread?: boolean;
|
|
8226
8736
|
threadFirstItemId?: number;
|
|
@@ -8254,7 +8764,10 @@ declare const _default: {
|
|
|
8254
8764
|
authorName?: string;
|
|
8255
8765
|
authorEmail?: string;
|
|
8256
8766
|
authorAvatar?: string;
|
|
8257
|
-
authorUser?: string
|
|
8767
|
+
authorUser?: string | {
|
|
8768
|
+
id?: number;
|
|
8769
|
+
email?: string;
|
|
8770
|
+
};
|
|
8258
8771
|
locale?: string;
|
|
8259
8772
|
gotThread?: boolean;
|
|
8260
8773
|
threadFirstItemId?: number;
|
|
@@ -8282,7 +8795,7 @@ declare const _default: {
|
|
|
8282
8795
|
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
8283
8796
|
sort?: string;
|
|
8284
8797
|
locale?: string;
|
|
8285
|
-
relation?:
|
|
8798
|
+
relation?: `${string}::${string}.${string}`;
|
|
8286
8799
|
populate?: Record<string, boolean | {
|
|
8287
8800
|
populate?: boolean;
|
|
8288
8801
|
}>;
|
|
@@ -8488,7 +9001,10 @@ declare const _default: {
|
|
|
8488
9001
|
authorName?: string;
|
|
8489
9002
|
authorEmail?: string;
|
|
8490
9003
|
authorAvatar?: string;
|
|
8491
|
-
authorUser?: string
|
|
9004
|
+
authorUser?: string | {
|
|
9005
|
+
id?: number;
|
|
9006
|
+
email?: string;
|
|
9007
|
+
};
|
|
8492
9008
|
locale?: string;
|
|
8493
9009
|
gotThread?: boolean;
|
|
8494
9010
|
threadFirstItemId?: number;
|
|
@@ -8522,7 +9038,10 @@ declare const _default: {
|
|
|
8522
9038
|
authorName?: string;
|
|
8523
9039
|
authorEmail?: string;
|
|
8524
9040
|
authorAvatar?: string;
|
|
8525
|
-
authorUser?: string
|
|
9041
|
+
authorUser?: string | {
|
|
9042
|
+
id?: number;
|
|
9043
|
+
email?: string;
|
|
9044
|
+
};
|
|
8526
9045
|
locale?: string;
|
|
8527
9046
|
gotThread?: boolean;
|
|
8528
9047
|
threadFirstItemId?: number;
|
|
@@ -8558,7 +9077,10 @@ declare const _default: {
|
|
|
8558
9077
|
authorName?: string;
|
|
8559
9078
|
authorEmail?: string;
|
|
8560
9079
|
authorAvatar?: string;
|
|
8561
|
-
authorUser?: string
|
|
9080
|
+
authorUser?: string | {
|
|
9081
|
+
id?: number;
|
|
9082
|
+
email?: string;
|
|
9083
|
+
};
|
|
8562
9084
|
locale?: string;
|
|
8563
9085
|
gotThread?: boolean;
|
|
8564
9086
|
threadFirstItemId?: number;
|
|
@@ -8592,7 +9114,10 @@ declare const _default: {
|
|
|
8592
9114
|
authorName?: string;
|
|
8593
9115
|
authorEmail?: string;
|
|
8594
9116
|
authorAvatar?: string;
|
|
8595
|
-
authorUser?: string
|
|
9117
|
+
authorUser?: string | {
|
|
9118
|
+
id?: number;
|
|
9119
|
+
email?: string;
|
|
9120
|
+
};
|
|
8596
9121
|
locale?: string;
|
|
8597
9122
|
gotThread?: boolean;
|
|
8598
9123
|
threadFirstItemId?: number;
|
|
@@ -8628,7 +9153,10 @@ declare const _default: {
|
|
|
8628
9153
|
authorName?: string;
|
|
8629
9154
|
authorEmail?: string;
|
|
8630
9155
|
authorAvatar?: string;
|
|
8631
|
-
authorUser?: string
|
|
9156
|
+
authorUser?: string | {
|
|
9157
|
+
id?: number;
|
|
9158
|
+
email?: string;
|
|
9159
|
+
};
|
|
8632
9160
|
locale?: string;
|
|
8633
9161
|
gotThread?: boolean;
|
|
8634
9162
|
threadFirstItemId?: number;
|
|
@@ -8662,7 +9190,10 @@ declare const _default: {
|
|
|
8662
9190
|
authorName?: string;
|
|
8663
9191
|
authorEmail?: string;
|
|
8664
9192
|
authorAvatar?: string;
|
|
8665
|
-
authorUser?: string
|
|
9193
|
+
authorUser?: string | {
|
|
9194
|
+
id?: number;
|
|
9195
|
+
email?: string;
|
|
9196
|
+
};
|
|
8666
9197
|
locale?: string;
|
|
8667
9198
|
gotThread?: boolean;
|
|
8668
9199
|
threadFirstItemId?: number;
|
|
@@ -8698,7 +9229,10 @@ declare const _default: {
|
|
|
8698
9229
|
authorName?: string;
|
|
8699
9230
|
authorEmail?: string;
|
|
8700
9231
|
authorAvatar?: string;
|
|
8701
|
-
authorUser?: string
|
|
9232
|
+
authorUser?: string | {
|
|
9233
|
+
id?: number;
|
|
9234
|
+
email?: string;
|
|
9235
|
+
};
|
|
8702
9236
|
locale?: string;
|
|
8703
9237
|
gotThread?: boolean;
|
|
8704
9238
|
threadFirstItemId?: number;
|
|
@@ -8732,7 +9266,10 @@ declare const _default: {
|
|
|
8732
9266
|
authorName?: string;
|
|
8733
9267
|
authorEmail?: string;
|
|
8734
9268
|
authorAvatar?: string;
|
|
8735
|
-
authorUser?: string
|
|
9269
|
+
authorUser?: string | {
|
|
9270
|
+
id?: number;
|
|
9271
|
+
email?: string;
|
|
9272
|
+
};
|
|
8736
9273
|
locale?: string;
|
|
8737
9274
|
gotThread?: boolean;
|
|
8738
9275
|
threadFirstItemId?: number;
|
|
@@ -8767,7 +9304,10 @@ declare const _default: {
|
|
|
8767
9304
|
authorName?: string;
|
|
8768
9305
|
authorEmail?: string;
|
|
8769
9306
|
authorAvatar?: string;
|
|
8770
|
-
authorUser?: string
|
|
9307
|
+
authorUser?: string | {
|
|
9308
|
+
id?: number;
|
|
9309
|
+
email?: string;
|
|
9310
|
+
};
|
|
8771
9311
|
locale?: string;
|
|
8772
9312
|
gotThread?: boolean;
|
|
8773
9313
|
threadFirstItemId?: number;
|
|
@@ -8801,7 +9341,10 @@ declare const _default: {
|
|
|
8801
9341
|
authorName?: string;
|
|
8802
9342
|
authorEmail?: string;
|
|
8803
9343
|
authorAvatar?: string;
|
|
8804
|
-
authorUser?: string
|
|
9344
|
+
authorUser?: string | {
|
|
9345
|
+
id?: number;
|
|
9346
|
+
email?: string;
|
|
9347
|
+
};
|
|
8805
9348
|
locale?: string;
|
|
8806
9349
|
gotThread?: boolean;
|
|
8807
9350
|
threadFirstItemId?: number;
|
|
@@ -9033,7 +9576,10 @@ declare const _default: {
|
|
|
9033
9576
|
authorName?: string;
|
|
9034
9577
|
authorEmail?: string;
|
|
9035
9578
|
authorAvatar?: string;
|
|
9036
|
-
authorUser?: string
|
|
9579
|
+
authorUser?: string | {
|
|
9580
|
+
id?: number;
|
|
9581
|
+
email?: string;
|
|
9582
|
+
};
|
|
9037
9583
|
locale?: string;
|
|
9038
9584
|
gotThread?: boolean;
|
|
9039
9585
|
threadFirstItemId?: number;
|
|
@@ -9066,7 +9612,10 @@ declare const _default: {
|
|
|
9066
9612
|
authorName?: string;
|
|
9067
9613
|
authorEmail?: string;
|
|
9068
9614
|
authorAvatar?: string;
|
|
9069
|
-
authorUser?: string
|
|
9615
|
+
authorUser?: string | {
|
|
9616
|
+
id?: number;
|
|
9617
|
+
email?: string;
|
|
9618
|
+
};
|
|
9070
9619
|
locale?: string;
|
|
9071
9620
|
gotThread?: boolean;
|
|
9072
9621
|
threadFirstItemId?: number;
|
|
@@ -9107,7 +9656,10 @@ declare const _default: {
|
|
|
9107
9656
|
authorName?: string;
|
|
9108
9657
|
authorEmail?: string;
|
|
9109
9658
|
authorAvatar?: string;
|
|
9110
|
-
authorUser?: string
|
|
9659
|
+
authorUser?: string | {
|
|
9660
|
+
id?: number;
|
|
9661
|
+
email?: string;
|
|
9662
|
+
};
|
|
9111
9663
|
locale?: string;
|
|
9112
9664
|
gotThread?: boolean;
|
|
9113
9665
|
threadFirstItemId?: number;
|
|
@@ -9140,7 +9692,10 @@ declare const _default: {
|
|
|
9140
9692
|
authorName?: string;
|
|
9141
9693
|
authorEmail?: string;
|
|
9142
9694
|
authorAvatar?: string;
|
|
9143
|
-
authorUser?: string
|
|
9695
|
+
authorUser?: string | {
|
|
9696
|
+
id?: number;
|
|
9697
|
+
email?: string;
|
|
9698
|
+
};
|
|
9144
9699
|
locale?: string;
|
|
9145
9700
|
gotThread?: boolean;
|
|
9146
9701
|
threadFirstItemId?: number;
|
|
@@ -9183,7 +9738,10 @@ declare const _default: {
|
|
|
9183
9738
|
authorName?: string;
|
|
9184
9739
|
authorEmail?: string;
|
|
9185
9740
|
authorAvatar?: string;
|
|
9186
|
-
authorUser?: string
|
|
9741
|
+
authorUser?: string | {
|
|
9742
|
+
id?: number;
|
|
9743
|
+
email?: string;
|
|
9744
|
+
};
|
|
9187
9745
|
locale?: string;
|
|
9188
9746
|
gotThread?: boolean;
|
|
9189
9747
|
threadFirstItemId?: number;
|
|
@@ -9217,7 +9775,10 @@ declare const _default: {
|
|
|
9217
9775
|
authorName?: string;
|
|
9218
9776
|
authorEmail?: string;
|
|
9219
9777
|
authorAvatar?: string;
|
|
9220
|
-
authorUser?: string
|
|
9778
|
+
authorUser?: string | {
|
|
9779
|
+
id?: number;
|
|
9780
|
+
email?: string;
|
|
9781
|
+
};
|
|
9221
9782
|
locale?: string;
|
|
9222
9783
|
gotThread?: boolean;
|
|
9223
9784
|
threadFirstItemId?: number;
|
|
@@ -9259,7 +9820,10 @@ declare const _default: {
|
|
|
9259
9820
|
authorName?: string;
|
|
9260
9821
|
authorEmail?: string;
|
|
9261
9822
|
authorAvatar?: string;
|
|
9262
|
-
authorUser?: string
|
|
9823
|
+
authorUser?: string | {
|
|
9824
|
+
id?: number;
|
|
9825
|
+
email?: string;
|
|
9826
|
+
};
|
|
9263
9827
|
locale?: string;
|
|
9264
9828
|
gotThread?: boolean;
|
|
9265
9829
|
threadFirstItemId?: number;
|
|
@@ -9293,7 +9857,10 @@ declare const _default: {
|
|
|
9293
9857
|
authorName?: string;
|
|
9294
9858
|
authorEmail?: string;
|
|
9295
9859
|
authorAvatar?: string;
|
|
9296
|
-
authorUser?: string
|
|
9860
|
+
authorUser?: string | {
|
|
9861
|
+
id?: number;
|
|
9862
|
+
email?: string;
|
|
9863
|
+
};
|
|
9297
9864
|
locale?: string;
|
|
9298
9865
|
gotThread?: boolean;
|
|
9299
9866
|
threadFirstItemId?: number;
|
|
@@ -9340,7 +9907,10 @@ declare const _default: {
|
|
|
9340
9907
|
authorName?: string;
|
|
9341
9908
|
authorEmail?: string;
|
|
9342
9909
|
authorAvatar?: string;
|
|
9343
|
-
authorUser?: string
|
|
9910
|
+
authorUser?: string | {
|
|
9911
|
+
id?: number;
|
|
9912
|
+
email?: string;
|
|
9913
|
+
};
|
|
9344
9914
|
locale?: string;
|
|
9345
9915
|
gotThread?: boolean;
|
|
9346
9916
|
threadFirstItemId?: number;
|
|
@@ -9374,7 +9944,10 @@ declare const _default: {
|
|
|
9374
9944
|
authorName?: string;
|
|
9375
9945
|
authorEmail?: string;
|
|
9376
9946
|
authorAvatar?: string;
|
|
9377
|
-
authorUser?: string
|
|
9947
|
+
authorUser?: string | {
|
|
9948
|
+
id?: number;
|
|
9949
|
+
email?: string;
|
|
9950
|
+
};
|
|
9378
9951
|
locale?: string;
|
|
9379
9952
|
gotThread?: boolean;
|
|
9380
9953
|
threadFirstItemId?: number;
|
|
@@ -9392,7 +9965,7 @@ declare const _default: {
|
|
|
9392
9965
|
author?: any;
|
|
9393
9966
|
};
|
|
9394
9967
|
};
|
|
9395
|
-
modifiedNestedNestedComments<T_5 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("./@types
|
|
9968
|
+
modifiedNestedNestedComments<T_5 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("./@types").Id, fieldName: T_5, value: {
|
|
9396
9969
|
id?: number;
|
|
9397
9970
|
documentId?: string;
|
|
9398
9971
|
content?: string;
|
|
@@ -9410,7 +9983,10 @@ declare const _default: {
|
|
|
9410
9983
|
authorName?: string;
|
|
9411
9984
|
authorEmail?: string;
|
|
9412
9985
|
authorAvatar?: string;
|
|
9413
|
-
authorUser?: string
|
|
9986
|
+
authorUser?: string | {
|
|
9987
|
+
id?: number;
|
|
9988
|
+
email?: string;
|
|
9989
|
+
};
|
|
9414
9990
|
locale?: string;
|
|
9415
9991
|
gotThread?: boolean;
|
|
9416
9992
|
threadFirstItemId?: number;
|
|
@@ -9444,7 +10020,10 @@ declare const _default: {
|
|
|
9444
10020
|
authorName?: string;
|
|
9445
10021
|
authorEmail?: string;
|
|
9446
10022
|
authorAvatar?: string;
|
|
9447
|
-
authorUser?: string
|
|
10023
|
+
authorUser?: string | {
|
|
10024
|
+
id?: number;
|
|
10025
|
+
email?: string;
|
|
10026
|
+
};
|
|
9448
10027
|
locale?: string;
|
|
9449
10028
|
gotThread?: boolean;
|
|
9450
10029
|
threadFirstItemId?: number;
|
|
@@ -9461,12 +10040,12 @@ declare const _default: {
|
|
|
9461
10040
|
}[];
|
|
9462
10041
|
author?: any;
|
|
9463
10042
|
};
|
|
9464
|
-
}[T_5]): Promise<boolean>;
|
|
10043
|
+
}[T_5], deepLimit?: number): Promise<boolean>;
|
|
9465
10044
|
checkBadWords(content: string): Promise<string>;
|
|
9466
10045
|
registerLifecycleHook(): void;
|
|
9467
10046
|
runLifecycleHook(): Promise<void>;
|
|
9468
10047
|
};
|
|
9469
|
-
settings: ({ strapi }: import("./@types
|
|
10048
|
+
settings: ({ strapi }: import("./@types").StrapiContext) => {
|
|
9470
10049
|
getConfig: (viaSettingsPage?: boolean) => Promise<{
|
|
9471
10050
|
enabledCollections?: string[];
|
|
9472
10051
|
approvalFlow?: string[];
|
|
@@ -9484,6 +10063,10 @@ declare const _default: {
|
|
|
9484
10063
|
gql?: {
|
|
9485
10064
|
auth?: boolean;
|
|
9486
10065
|
};
|
|
10066
|
+
client?: {
|
|
10067
|
+
url?: string;
|
|
10068
|
+
contactEmail?: string;
|
|
10069
|
+
};
|
|
9487
10070
|
} | Omit<{
|
|
9488
10071
|
enabledCollections?: string[];
|
|
9489
10072
|
approvalFlow?: string[];
|
|
@@ -9501,6 +10084,10 @@ declare const _default: {
|
|
|
9501
10084
|
gql?: {
|
|
9502
10085
|
auth?: boolean;
|
|
9503
10086
|
};
|
|
10087
|
+
client?: {
|
|
10088
|
+
url?: string;
|
|
10089
|
+
contactEmail?: string;
|
|
10090
|
+
};
|
|
9504
10091
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9505
10092
|
update: (config: {
|
|
9506
10093
|
enabledCollections?: string[];
|
|
@@ -9519,6 +10106,10 @@ declare const _default: {
|
|
|
9519
10106
|
gql?: {
|
|
9520
10107
|
auth?: boolean;
|
|
9521
10108
|
};
|
|
10109
|
+
client?: {
|
|
10110
|
+
url?: string;
|
|
10111
|
+
contactEmail?: string;
|
|
10112
|
+
};
|
|
9522
10113
|
}) => Promise<{
|
|
9523
10114
|
enabledCollections?: string[];
|
|
9524
10115
|
approvalFlow?: string[];
|
|
@@ -9536,6 +10127,10 @@ declare const _default: {
|
|
|
9536
10127
|
gql?: {
|
|
9537
10128
|
auth?: boolean;
|
|
9538
10129
|
};
|
|
10130
|
+
client?: {
|
|
10131
|
+
url?: string;
|
|
10132
|
+
contactEmail?: string;
|
|
10133
|
+
};
|
|
9539
10134
|
} | Omit<{
|
|
9540
10135
|
enabledCollections?: string[];
|
|
9541
10136
|
approvalFlow?: string[];
|
|
@@ -9553,6 +10148,10 @@ declare const _default: {
|
|
|
9553
10148
|
gql?: {
|
|
9554
10149
|
auth?: boolean;
|
|
9555
10150
|
};
|
|
10151
|
+
client?: {
|
|
10152
|
+
url?: string;
|
|
10153
|
+
contactEmail?: string;
|
|
10154
|
+
};
|
|
9556
10155
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9557
10156
|
restore: () => Promise<{
|
|
9558
10157
|
enabledCollections?: string[];
|
|
@@ -9571,6 +10170,10 @@ declare const _default: {
|
|
|
9571
10170
|
gql?: {
|
|
9572
10171
|
auth?: boolean;
|
|
9573
10172
|
};
|
|
10173
|
+
client?: {
|
|
10174
|
+
url?: string;
|
|
10175
|
+
contactEmail?: string;
|
|
10176
|
+
};
|
|
9574
10177
|
} | Omit<{
|
|
9575
10178
|
enabledCollections?: string[];
|
|
9576
10179
|
approvalFlow?: string[];
|
|
@@ -9588,10 +10191,14 @@ declare const _default: {
|
|
|
9588
10191
|
gql?: {
|
|
9589
10192
|
auth?: boolean;
|
|
9590
10193
|
};
|
|
10194
|
+
client?: {
|
|
10195
|
+
url?: string;
|
|
10196
|
+
contactEmail?: string;
|
|
10197
|
+
};
|
|
9591
10198
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9592
10199
|
restart: () => void;
|
|
9593
10200
|
};
|
|
9594
|
-
gql: ({ strapi }: import("./@types
|
|
10201
|
+
gql: ({ strapi }: import("./@types").StrapiContext) => {
|
|
9595
10202
|
graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
|
|
9596
10203
|
buildContentTypeFilters<T_6 extends import("@strapi/types/dist/uid").ContentType>(contentType: import("@strapi/types/dist/schema").ContentType<T_6>): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
|
|
9597
10204
|
};
|