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,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="koa" />
|
|
2
2
|
declare const controllers: {
|
|
3
|
-
admin: ({ strapi }: import("../@types
|
|
4
|
-
getService<T extends "gql" | "
|
|
5
|
-
findAll(ctx: import("../@types
|
|
3
|
+
admin: ({ strapi }: import("../@types").StrapiContext) => {
|
|
4
|
+
getService<T extends "gql" | "client" | "admin" | "common" | "settings">(name: T): import("../services").PluginServices[T];
|
|
5
|
+
findAll(ctx: import("../@types").RequestContext): Promise<{
|
|
6
6
|
pagination: {
|
|
7
7
|
page?: number;
|
|
8
8
|
pageSize?: number;
|
|
@@ -33,7 +33,10 @@ declare const controllers: {
|
|
|
33
33
|
authorName?: string;
|
|
34
34
|
authorEmail?: string;
|
|
35
35
|
authorAvatar?: string;
|
|
36
|
-
authorUser?: string
|
|
36
|
+
authorUser?: string | {
|
|
37
|
+
id?: number;
|
|
38
|
+
email?: string;
|
|
39
|
+
};
|
|
37
40
|
locale?: string;
|
|
38
41
|
gotThread?: boolean;
|
|
39
42
|
threadFirstItemId?: number;
|
|
@@ -67,7 +70,10 @@ declare const controllers: {
|
|
|
67
70
|
authorName?: string;
|
|
68
71
|
authorEmail?: string;
|
|
69
72
|
authorAvatar?: string;
|
|
70
|
-
authorUser?: string
|
|
73
|
+
authorUser?: string | {
|
|
74
|
+
id?: number;
|
|
75
|
+
email?: string;
|
|
76
|
+
};
|
|
71
77
|
locale?: string;
|
|
72
78
|
gotThread?: boolean;
|
|
73
79
|
threadFirstItemId?: number;
|
|
@@ -86,7 +92,7 @@ declare const controllers: {
|
|
|
86
92
|
};
|
|
87
93
|
}[];
|
|
88
94
|
}>;
|
|
89
|
-
findReports(ctx: import("../@types
|
|
95
|
+
findReports(ctx: import("../@types").RequestContext): Promise<{
|
|
90
96
|
result: {
|
|
91
97
|
id?: number;
|
|
92
98
|
documentId?: string;
|
|
@@ -105,7 +111,10 @@ declare const controllers: {
|
|
|
105
111
|
authorName?: string;
|
|
106
112
|
authorEmail?: string;
|
|
107
113
|
authorAvatar?: string;
|
|
108
|
-
authorUser?: string
|
|
114
|
+
authorUser?: string | {
|
|
115
|
+
id?: number;
|
|
116
|
+
email?: string;
|
|
117
|
+
};
|
|
109
118
|
locale?: string;
|
|
110
119
|
gotThread?: boolean;
|
|
111
120
|
threadFirstItemId?: number;
|
|
@@ -139,7 +148,10 @@ declare const controllers: {
|
|
|
139
148
|
authorName?: string;
|
|
140
149
|
authorEmail?: string;
|
|
141
150
|
authorAvatar?: string;
|
|
142
|
-
authorUser?: string
|
|
151
|
+
authorUser?: string | {
|
|
152
|
+
id?: number;
|
|
153
|
+
email?: string;
|
|
154
|
+
};
|
|
143
155
|
locale?: string;
|
|
144
156
|
gotThread?: boolean;
|
|
145
157
|
threadFirstItemId?: number;
|
|
@@ -174,12 +186,13 @@ declare const controllers: {
|
|
|
174
186
|
body: object;
|
|
175
187
|
};
|
|
176
188
|
state: {
|
|
177
|
-
user?: import("../@types
|
|
189
|
+
user?: import("../@types").AdminUser;
|
|
178
190
|
};
|
|
179
191
|
}): Promise<{
|
|
180
192
|
entity: {
|
|
181
193
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
182
|
-
|
|
194
|
+
documentId: string;
|
|
195
|
+
id: number;
|
|
183
196
|
};
|
|
184
197
|
selected: {
|
|
185
198
|
id?: number;
|
|
@@ -199,7 +212,10 @@ declare const controllers: {
|
|
|
199
212
|
authorName?: string;
|
|
200
213
|
authorEmail?: string;
|
|
201
214
|
authorAvatar?: string;
|
|
202
|
-
authorUser?: string
|
|
215
|
+
authorUser?: string | {
|
|
216
|
+
id?: number;
|
|
217
|
+
email?: string;
|
|
218
|
+
};
|
|
203
219
|
locale?: string;
|
|
204
220
|
gotThread?: boolean;
|
|
205
221
|
threadFirstItemId?: number;
|
|
@@ -233,7 +249,10 @@ declare const controllers: {
|
|
|
233
249
|
authorName?: string;
|
|
234
250
|
authorEmail?: string;
|
|
235
251
|
authorAvatar?: string;
|
|
236
|
-
authorUser?: string
|
|
252
|
+
authorUser?: string | {
|
|
253
|
+
id?: number;
|
|
254
|
+
email?: string;
|
|
255
|
+
};
|
|
237
256
|
locale?: string;
|
|
238
257
|
gotThread?: boolean;
|
|
239
258
|
threadFirstItemId?: number;
|
|
@@ -269,7 +288,10 @@ declare const controllers: {
|
|
|
269
288
|
authorName?: string;
|
|
270
289
|
authorEmail?: string;
|
|
271
290
|
authorAvatar?: string;
|
|
272
|
-
authorUser?: string
|
|
291
|
+
authorUser?: string | {
|
|
292
|
+
id?: number;
|
|
293
|
+
email?: string;
|
|
294
|
+
};
|
|
273
295
|
locale?: string;
|
|
274
296
|
gotThread?: boolean;
|
|
275
297
|
threadFirstItemId?: number;
|
|
@@ -303,7 +325,10 @@ declare const controllers: {
|
|
|
303
325
|
authorName?: string;
|
|
304
326
|
authorEmail?: string;
|
|
305
327
|
authorAvatar?: string;
|
|
306
|
-
authorUser?: string
|
|
328
|
+
authorUser?: string | {
|
|
329
|
+
id?: number;
|
|
330
|
+
email?: string;
|
|
331
|
+
};
|
|
307
332
|
locale?: string;
|
|
308
333
|
gotThread?: boolean;
|
|
309
334
|
threadFirstItemId?: number;
|
|
@@ -332,7 +357,7 @@ declare const controllers: {
|
|
|
332
357
|
body: object;
|
|
333
358
|
};
|
|
334
359
|
state: {
|
|
335
|
-
user?: import("../@types
|
|
360
|
+
user?: import("../@types").AdminUser;
|
|
336
361
|
};
|
|
337
362
|
}): Promise<{
|
|
338
363
|
id?: number;
|
|
@@ -352,7 +377,10 @@ declare const controllers: {
|
|
|
352
377
|
authorName?: string;
|
|
353
378
|
authorEmail?: string;
|
|
354
379
|
authorAvatar?: string;
|
|
355
|
-
authorUser?: string
|
|
380
|
+
authorUser?: string | {
|
|
381
|
+
id?: number;
|
|
382
|
+
email?: string;
|
|
383
|
+
};
|
|
356
384
|
locale?: string;
|
|
357
385
|
gotThread?: boolean;
|
|
358
386
|
threadFirstItemId?: number;
|
|
@@ -386,7 +414,10 @@ declare const controllers: {
|
|
|
386
414
|
authorName?: string;
|
|
387
415
|
authorEmail?: string;
|
|
388
416
|
authorAvatar?: string;
|
|
389
|
-
authorUser?: string
|
|
417
|
+
authorUser?: string | {
|
|
418
|
+
id?: number;
|
|
419
|
+
email?: string;
|
|
420
|
+
};
|
|
390
421
|
locale?: string;
|
|
391
422
|
gotThread?: boolean;
|
|
392
423
|
threadFirstItemId?: number;
|
|
@@ -414,7 +445,7 @@ declare const controllers: {
|
|
|
414
445
|
body: object;
|
|
415
446
|
};
|
|
416
447
|
state: {
|
|
417
|
-
user?: import("../@types
|
|
448
|
+
user?: import("../@types").AdminUser;
|
|
418
449
|
};
|
|
419
450
|
}): Promise<{
|
|
420
451
|
id?: number;
|
|
@@ -434,7 +465,10 @@ declare const controllers: {
|
|
|
434
465
|
authorName?: string;
|
|
435
466
|
authorEmail?: string;
|
|
436
467
|
authorAvatar?: string;
|
|
437
|
-
authorUser?: string
|
|
468
|
+
authorUser?: string | {
|
|
469
|
+
id?: number;
|
|
470
|
+
email?: string;
|
|
471
|
+
};
|
|
438
472
|
locale?: string;
|
|
439
473
|
gotThread?: boolean;
|
|
440
474
|
threadFirstItemId?: number;
|
|
@@ -468,7 +502,10 @@ declare const controllers: {
|
|
|
468
502
|
authorName?: string;
|
|
469
503
|
authorEmail?: string;
|
|
470
504
|
authorAvatar?: string;
|
|
471
|
-
authorUser?: string
|
|
505
|
+
authorUser?: string | {
|
|
506
|
+
id?: number;
|
|
507
|
+
email?: string;
|
|
508
|
+
};
|
|
472
509
|
locale?: string;
|
|
473
510
|
gotThread?: boolean;
|
|
474
511
|
threadFirstItemId?: number;
|
|
@@ -496,7 +533,7 @@ declare const controllers: {
|
|
|
496
533
|
body: object;
|
|
497
534
|
};
|
|
498
535
|
state: {
|
|
499
|
-
user?: import("../@types
|
|
536
|
+
user?: import("../@types").AdminUser;
|
|
500
537
|
};
|
|
501
538
|
}): Promise<{
|
|
502
539
|
id?: number;
|
|
@@ -516,7 +553,10 @@ declare const controllers: {
|
|
|
516
553
|
authorName?: string;
|
|
517
554
|
authorEmail?: string;
|
|
518
555
|
authorAvatar?: string;
|
|
519
|
-
authorUser?: string
|
|
556
|
+
authorUser?: string | {
|
|
557
|
+
id?: number;
|
|
558
|
+
email?: string;
|
|
559
|
+
};
|
|
520
560
|
locale?: string;
|
|
521
561
|
gotThread?: boolean;
|
|
522
562
|
threadFirstItemId?: number;
|
|
@@ -550,7 +590,10 @@ declare const controllers: {
|
|
|
550
590
|
authorName?: string;
|
|
551
591
|
authorEmail?: string;
|
|
552
592
|
authorAvatar?: string;
|
|
553
|
-
authorUser?: string
|
|
593
|
+
authorUser?: string | {
|
|
594
|
+
id?: number;
|
|
595
|
+
email?: string;
|
|
596
|
+
};
|
|
554
597
|
locale?: string;
|
|
555
598
|
gotThread?: boolean;
|
|
556
599
|
threadFirstItemId?: number;
|
|
@@ -578,7 +621,7 @@ declare const controllers: {
|
|
|
578
621
|
body: object;
|
|
579
622
|
};
|
|
580
623
|
state: {
|
|
581
|
-
user?: import("../@types
|
|
624
|
+
user?: import("../@types").AdminUser;
|
|
582
625
|
};
|
|
583
626
|
}): Promise<{
|
|
584
627
|
id?: number;
|
|
@@ -598,7 +641,10 @@ declare const controllers: {
|
|
|
598
641
|
authorName?: string;
|
|
599
642
|
authorEmail?: string;
|
|
600
643
|
authorAvatar?: string;
|
|
601
|
-
authorUser?: string
|
|
644
|
+
authorUser?: string | {
|
|
645
|
+
id?: number;
|
|
646
|
+
email?: string;
|
|
647
|
+
};
|
|
602
648
|
locale?: string;
|
|
603
649
|
gotThread?: boolean;
|
|
604
650
|
threadFirstItemId?: number;
|
|
@@ -632,7 +678,10 @@ declare const controllers: {
|
|
|
632
678
|
authorName?: string;
|
|
633
679
|
authorEmail?: string;
|
|
634
680
|
authorAvatar?: string;
|
|
635
|
-
authorUser?: string
|
|
681
|
+
authorUser?: string | {
|
|
682
|
+
id?: number;
|
|
683
|
+
email?: string;
|
|
684
|
+
};
|
|
636
685
|
locale?: string;
|
|
637
686
|
gotThread?: boolean;
|
|
638
687
|
threadFirstItemId?: number;
|
|
@@ -660,7 +709,7 @@ declare const controllers: {
|
|
|
660
709
|
body: object;
|
|
661
710
|
};
|
|
662
711
|
state: {
|
|
663
|
-
user?: import("../@types
|
|
712
|
+
user?: import("../@types").AdminUser;
|
|
664
713
|
};
|
|
665
714
|
}): Promise<{
|
|
666
715
|
id?: number;
|
|
@@ -680,7 +729,10 @@ declare const controllers: {
|
|
|
680
729
|
authorName?: string;
|
|
681
730
|
authorEmail?: string;
|
|
682
731
|
authorAvatar?: string;
|
|
683
|
-
authorUser?: string
|
|
732
|
+
authorUser?: string | {
|
|
733
|
+
id?: number;
|
|
734
|
+
email?: string;
|
|
735
|
+
};
|
|
684
736
|
locale?: string;
|
|
685
737
|
gotThread?: boolean;
|
|
686
738
|
threadFirstItemId?: number;
|
|
@@ -714,7 +766,10 @@ declare const controllers: {
|
|
|
714
766
|
authorName?: string;
|
|
715
767
|
authorEmail?: string;
|
|
716
768
|
authorAvatar?: string;
|
|
717
|
-
authorUser?: string
|
|
769
|
+
authorUser?: string | {
|
|
770
|
+
id?: number;
|
|
771
|
+
email?: string;
|
|
772
|
+
};
|
|
718
773
|
locale?: string;
|
|
719
774
|
gotThread?: boolean;
|
|
720
775
|
threadFirstItemId?: number;
|
|
@@ -732,7 +787,7 @@ declare const controllers: {
|
|
|
732
787
|
author?: any;
|
|
733
788
|
};
|
|
734
789
|
}>;
|
|
735
|
-
resolveAbuseReport(ctx: import("../@types
|
|
790
|
+
resolveAbuseReport(ctx: import("../@types").RequestContext<object, {
|
|
736
791
|
id: string;
|
|
737
792
|
reportId: string;
|
|
738
793
|
}>): Promise<{
|
|
@@ -747,16 +802,16 @@ declare const controllers: {
|
|
|
747
802
|
resolved?: boolean;
|
|
748
803
|
}>;
|
|
749
804
|
resolveCommentMultipleAbuseReports(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
750
|
-
body: import("../@types
|
|
805
|
+
body: import("../@types").Id[];
|
|
751
806
|
query: object;
|
|
752
807
|
params: {
|
|
753
808
|
id: string;
|
|
754
809
|
};
|
|
755
810
|
request: Omit<import("koa").Request, "body"> & {
|
|
756
|
-
body: import("../@types
|
|
811
|
+
body: import("../@types").Id[];
|
|
757
812
|
};
|
|
758
813
|
state: {
|
|
759
|
-
user?: import("../@types
|
|
814
|
+
user?: import("../@types").AdminUser;
|
|
760
815
|
};
|
|
761
816
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
762
817
|
resolveAllAbuseReportsForComment(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -769,7 +824,7 @@ declare const controllers: {
|
|
|
769
824
|
body: object;
|
|
770
825
|
};
|
|
771
826
|
state: {
|
|
772
|
-
user?: import("../@types
|
|
827
|
+
user?: import("../@types").AdminUser;
|
|
773
828
|
};
|
|
774
829
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
775
830
|
resolveAllAbuseReportsForThread(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -782,11 +837,11 @@ declare const controllers: {
|
|
|
782
837
|
body: object;
|
|
783
838
|
};
|
|
784
839
|
state: {
|
|
785
|
-
user?: import("../@types
|
|
840
|
+
user?: import("../@types").AdminUser;
|
|
786
841
|
};
|
|
787
842
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
788
|
-
resolveMultipleAbuseReports(ctx: import("../@types
|
|
789
|
-
postComment(ctx: import("../@types
|
|
843
|
+
resolveMultipleAbuseReports(ctx: import("../@types").RequestContext<import("../@types").Id[]>): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
844
|
+
postComment(ctx: import("../@types").RequestContext<Omit<{
|
|
790
845
|
id?: string | number;
|
|
791
846
|
content?: string;
|
|
792
847
|
author?: {
|
|
@@ -824,7 +879,10 @@ declare const controllers: {
|
|
|
824
879
|
authorName?: string;
|
|
825
880
|
authorEmail?: string;
|
|
826
881
|
authorAvatar?: string;
|
|
827
|
-
authorUser?: string
|
|
882
|
+
authorUser?: string | {
|
|
883
|
+
id?: number;
|
|
884
|
+
email?: string;
|
|
885
|
+
};
|
|
828
886
|
locale?: string;
|
|
829
887
|
gotThread?: boolean;
|
|
830
888
|
threadFirstItemId?: number;
|
|
@@ -858,7 +916,10 @@ declare const controllers: {
|
|
|
858
916
|
authorName?: string;
|
|
859
917
|
authorEmail?: string;
|
|
860
918
|
authorAvatar?: string;
|
|
861
|
-
authorUser?: string
|
|
919
|
+
authorUser?: string | {
|
|
920
|
+
id?: number;
|
|
921
|
+
email?: string;
|
|
922
|
+
};
|
|
862
923
|
locale?: string;
|
|
863
924
|
gotThread?: boolean;
|
|
864
925
|
threadFirstItemId?: number;
|
|
@@ -876,7 +937,7 @@ declare const controllers: {
|
|
|
876
937
|
author?: any;
|
|
877
938
|
};
|
|
878
939
|
}>;
|
|
879
|
-
updateComment(ctx: import("../@types
|
|
940
|
+
updateComment(ctx: import("../@types").RequestContext<Omit<{
|
|
880
941
|
id?: string | number;
|
|
881
942
|
content?: string;
|
|
882
943
|
author?: {
|
|
@@ -914,7 +975,10 @@ declare const controllers: {
|
|
|
914
975
|
authorName?: string;
|
|
915
976
|
authorEmail?: string;
|
|
916
977
|
authorAvatar?: string;
|
|
917
|
-
authorUser?: string
|
|
978
|
+
authorUser?: string | {
|
|
979
|
+
id?: number;
|
|
980
|
+
email?: string;
|
|
981
|
+
};
|
|
918
982
|
locale?: string;
|
|
919
983
|
gotThread?: boolean;
|
|
920
984
|
threadFirstItemId?: number;
|
|
@@ -948,7 +1012,10 @@ declare const controllers: {
|
|
|
948
1012
|
authorName?: string;
|
|
949
1013
|
authorEmail?: string;
|
|
950
1014
|
authorAvatar?: string;
|
|
951
|
-
authorUser?: string
|
|
1015
|
+
authorUser?: string | {
|
|
1016
|
+
id?: number;
|
|
1017
|
+
email?: string;
|
|
1018
|
+
};
|
|
952
1019
|
locale?: string;
|
|
953
1020
|
gotThread?: boolean;
|
|
954
1021
|
threadFirstItemId?: number;
|
|
@@ -966,7 +1033,7 @@ declare const controllers: {
|
|
|
966
1033
|
author?: any;
|
|
967
1034
|
};
|
|
968
1035
|
}>;
|
|
969
|
-
approveComment(ctx: import("../@types
|
|
1036
|
+
approveComment(ctx: import("../@types").RequestContext<object, {
|
|
970
1037
|
id?: number;
|
|
971
1038
|
}>): Promise<{
|
|
972
1039
|
id?: number;
|
|
@@ -986,7 +1053,10 @@ declare const controllers: {
|
|
|
986
1053
|
authorName?: string;
|
|
987
1054
|
authorEmail?: string;
|
|
988
1055
|
authorAvatar?: string;
|
|
989
|
-
authorUser?: string
|
|
1056
|
+
authorUser?: string | {
|
|
1057
|
+
id?: number;
|
|
1058
|
+
email?: string;
|
|
1059
|
+
};
|
|
990
1060
|
locale?: string;
|
|
991
1061
|
gotThread?: boolean;
|
|
992
1062
|
threadFirstItemId?: number;
|
|
@@ -1020,7 +1090,10 @@ declare const controllers: {
|
|
|
1020
1090
|
authorName?: string;
|
|
1021
1091
|
authorEmail?: string;
|
|
1022
1092
|
authorAvatar?: string;
|
|
1023
|
-
authorUser?: string
|
|
1093
|
+
authorUser?: string | {
|
|
1094
|
+
id?: number;
|
|
1095
|
+
email?: string;
|
|
1096
|
+
};
|
|
1024
1097
|
locale?: string;
|
|
1025
1098
|
gotThread?: boolean;
|
|
1026
1099
|
threadFirstItemId?: number;
|
|
@@ -1038,7 +1111,7 @@ declare const controllers: {
|
|
|
1038
1111
|
author?: any;
|
|
1039
1112
|
};
|
|
1040
1113
|
}>;
|
|
1041
|
-
rejectComment(ctx: import("../@types
|
|
1114
|
+
rejectComment(ctx: import("../@types").RequestContext<object, {
|
|
1042
1115
|
id?: number;
|
|
1043
1116
|
}>): Promise<{
|
|
1044
1117
|
id?: number;
|
|
@@ -1058,7 +1131,10 @@ declare const controllers: {
|
|
|
1058
1131
|
authorName?: string;
|
|
1059
1132
|
authorEmail?: string;
|
|
1060
1133
|
authorAvatar?: string;
|
|
1061
|
-
authorUser?: string
|
|
1134
|
+
authorUser?: string | {
|
|
1135
|
+
id?: number;
|
|
1136
|
+
email?: string;
|
|
1137
|
+
};
|
|
1062
1138
|
locale?: string;
|
|
1063
1139
|
gotThread?: boolean;
|
|
1064
1140
|
threadFirstItemId?: number;
|
|
@@ -1092,7 +1168,10 @@ declare const controllers: {
|
|
|
1092
1168
|
authorName?: string;
|
|
1093
1169
|
authorEmail?: string;
|
|
1094
1170
|
authorAvatar?: string;
|
|
1095
|
-
authorUser?: string
|
|
1171
|
+
authorUser?: string | {
|
|
1172
|
+
id?: number;
|
|
1173
|
+
email?: string;
|
|
1174
|
+
};
|
|
1096
1175
|
locale?: string;
|
|
1097
1176
|
gotThread?: boolean;
|
|
1098
1177
|
threadFirstItemId?: number;
|
|
@@ -1111,10 +1190,10 @@ declare const controllers: {
|
|
|
1111
1190
|
};
|
|
1112
1191
|
}>;
|
|
1113
1192
|
};
|
|
1114
|
-
client: ({ strapi }: import("../@types
|
|
1115
|
-
getService<T_1 extends "gql" | "
|
|
1193
|
+
client: ({ strapi }: import("../@types").StrapiContext) => {
|
|
1194
|
+
getService<T_1 extends "gql" | "client" | "admin" | "common" | "settings">(name: T_1): import("../services").PluginServices[T_1];
|
|
1116
1195
|
getStoreRepository(): {
|
|
1117
|
-
getLocalConfig<P extends
|
|
1196
|
+
getLocalConfig<P extends string>(prop?: P, defaultValue?: import("../@types").PathValue<{
|
|
1118
1197
|
enabledCollections?: string[];
|
|
1119
1198
|
approvalFlow?: string[];
|
|
1120
1199
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1131,7 +1210,11 @@ declare const controllers: {
|
|
|
1131
1210
|
gql?: {
|
|
1132
1211
|
auth?: boolean;
|
|
1133
1212
|
};
|
|
1134
|
-
|
|
1213
|
+
client?: {
|
|
1214
|
+
url?: string;
|
|
1215
|
+
contactEmail?: string;
|
|
1216
|
+
};
|
|
1217
|
+
}, P>): import("../@types").PathValue<{
|
|
1135
1218
|
enabledCollections?: string[];
|
|
1136
1219
|
approvalFlow?: string[];
|
|
1137
1220
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1148,7 +1231,11 @@ declare const controllers: {
|
|
|
1148
1231
|
gql?: {
|
|
1149
1232
|
auth?: boolean;
|
|
1150
1233
|
};
|
|
1151
|
-
|
|
1234
|
+
client?: {
|
|
1235
|
+
url?: string;
|
|
1236
|
+
contactEmail?: string;
|
|
1237
|
+
};
|
|
1238
|
+
}, P>;
|
|
1152
1239
|
getStore(): Promise<{
|
|
1153
1240
|
get(params?: Partial<{
|
|
1154
1241
|
key: string;
|
|
@@ -1190,6 +1277,10 @@ declare const controllers: {
|
|
|
1190
1277
|
gql?: {
|
|
1191
1278
|
auth?: boolean;
|
|
1192
1279
|
};
|
|
1280
|
+
client?: {
|
|
1281
|
+
url?: string;
|
|
1282
|
+
contactEmail?: string;
|
|
1283
|
+
};
|
|
1193
1284
|
}>>;
|
|
1194
1285
|
get<T_2 extends boolean>(viaSettingsPage?: T_2): Promise<import("../utils/Either").Either<unknown, T_2 extends true ? {
|
|
1195
1286
|
enabledCollections?: string[];
|
|
@@ -1208,6 +1299,10 @@ declare const controllers: {
|
|
|
1208
1299
|
gql?: {
|
|
1209
1300
|
auth?: boolean;
|
|
1210
1301
|
};
|
|
1302
|
+
client?: {
|
|
1303
|
+
url?: string;
|
|
1304
|
+
contactEmail?: string;
|
|
1305
|
+
};
|
|
1211
1306
|
} : Omit<{
|
|
1212
1307
|
enabledCollections?: string[];
|
|
1213
1308
|
approvalFlow?: string[];
|
|
@@ -1225,6 +1320,10 @@ declare const controllers: {
|
|
|
1225
1320
|
gql?: {
|
|
1226
1321
|
auth?: boolean;
|
|
1227
1322
|
};
|
|
1323
|
+
client?: {
|
|
1324
|
+
url?: string;
|
|
1325
|
+
contactEmail?: string;
|
|
1326
|
+
};
|
|
1228
1327
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1229
1328
|
update(config: {
|
|
1230
1329
|
enabledCollections?: string[];
|
|
@@ -1243,6 +1342,10 @@ declare const controllers: {
|
|
|
1243
1342
|
gql?: {
|
|
1244
1343
|
auth?: boolean;
|
|
1245
1344
|
};
|
|
1345
|
+
client?: {
|
|
1346
|
+
url?: string;
|
|
1347
|
+
contactEmail?: string;
|
|
1348
|
+
};
|
|
1246
1349
|
}): Promise<import("../utils/Either").Either<unknown, {
|
|
1247
1350
|
enabledCollections?: string[];
|
|
1248
1351
|
approvalFlow?: string[];
|
|
@@ -1260,6 +1363,10 @@ declare const controllers: {
|
|
|
1260
1363
|
gql?: {
|
|
1261
1364
|
auth?: boolean;
|
|
1262
1365
|
};
|
|
1366
|
+
client?: {
|
|
1367
|
+
url?: string;
|
|
1368
|
+
contactEmail?: string;
|
|
1369
|
+
};
|
|
1263
1370
|
} | Omit<{
|
|
1264
1371
|
enabledCollections?: string[];
|
|
1265
1372
|
approvalFlow?: string[];
|
|
@@ -1277,6 +1384,10 @@ declare const controllers: {
|
|
|
1277
1384
|
gql?: {
|
|
1278
1385
|
auth?: boolean;
|
|
1279
1386
|
};
|
|
1387
|
+
client?: {
|
|
1388
|
+
url?: string;
|
|
1389
|
+
contactEmail?: string;
|
|
1390
|
+
};
|
|
1280
1391
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1281
1392
|
restore(): Promise<import("../utils/Either").Either<unknown, {
|
|
1282
1393
|
enabledCollections?: string[];
|
|
@@ -1295,6 +1406,10 @@ declare const controllers: {
|
|
|
1295
1406
|
gql?: {
|
|
1296
1407
|
auth?: boolean;
|
|
1297
1408
|
};
|
|
1409
|
+
client?: {
|
|
1410
|
+
url?: string;
|
|
1411
|
+
contactEmail?: string;
|
|
1412
|
+
};
|
|
1298
1413
|
} | Omit<{
|
|
1299
1414
|
enabledCollections?: string[];
|
|
1300
1415
|
approvalFlow?: string[];
|
|
@@ -1312,9 +1427,13 @@ declare const controllers: {
|
|
|
1312
1427
|
gql?: {
|
|
1313
1428
|
auth?: boolean;
|
|
1314
1429
|
};
|
|
1430
|
+
client?: {
|
|
1431
|
+
url?: string;
|
|
1432
|
+
contactEmail?: string;
|
|
1433
|
+
};
|
|
1315
1434
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1316
1435
|
};
|
|
1317
|
-
post(ctx: import("../@types
|
|
1436
|
+
post(ctx: import("../@types").RequestContext<object, Pick<{
|
|
1318
1437
|
content?: string;
|
|
1319
1438
|
approvalStatus?: import("../const").APPROVAL_STATUS;
|
|
1320
1439
|
locale?: string;
|
|
@@ -1324,8 +1443,8 @@ declare const controllers: {
|
|
|
1324
1443
|
email?: string;
|
|
1325
1444
|
avatar?: string;
|
|
1326
1445
|
};
|
|
1327
|
-
threadOf?:
|
|
1328
|
-
relation?:
|
|
1446
|
+
threadOf?: string;
|
|
1447
|
+
relation?: `${string}::${string}.${string}`;
|
|
1329
1448
|
}, "relation">>): Promise<{
|
|
1330
1449
|
id?: number;
|
|
1331
1450
|
documentId?: string;
|
|
@@ -1344,7 +1463,10 @@ declare const controllers: {
|
|
|
1344
1463
|
authorName?: string;
|
|
1345
1464
|
authorEmail?: string;
|
|
1346
1465
|
authorAvatar?: string;
|
|
1347
|
-
authorUser?: string
|
|
1466
|
+
authorUser?: string | {
|
|
1467
|
+
id?: number;
|
|
1468
|
+
email?: string;
|
|
1469
|
+
};
|
|
1348
1470
|
locale?: string;
|
|
1349
1471
|
gotThread?: boolean;
|
|
1350
1472
|
threadFirstItemId?: number;
|
|
@@ -1378,7 +1500,10 @@ declare const controllers: {
|
|
|
1378
1500
|
authorName?: string;
|
|
1379
1501
|
authorEmail?: string;
|
|
1380
1502
|
authorAvatar?: string;
|
|
1381
|
-
authorUser?: string
|
|
1503
|
+
authorUser?: string | {
|
|
1504
|
+
id?: number;
|
|
1505
|
+
email?: string;
|
|
1506
|
+
};
|
|
1382
1507
|
locale?: string;
|
|
1383
1508
|
gotThread?: boolean;
|
|
1384
1509
|
threadFirstItemId?: number;
|
|
@@ -1396,7 +1521,7 @@ declare const controllers: {
|
|
|
1396
1521
|
author?: any;
|
|
1397
1522
|
};
|
|
1398
1523
|
}>;
|
|
1399
|
-
findAllFlat(ctx: import("../@types
|
|
1524
|
+
findAllFlat(ctx: import("../@types").RequestContext<object, Pick<{
|
|
1400
1525
|
sort?: string;
|
|
1401
1526
|
locale?: string;
|
|
1402
1527
|
pagination?: {
|
|
@@ -1404,7 +1529,7 @@ declare const controllers: {
|
|
|
1404
1529
|
pageSize?: number;
|
|
1405
1530
|
withCount?: boolean;
|
|
1406
1531
|
};
|
|
1407
|
-
relation?:
|
|
1532
|
+
relation?: `${string}::${string}.${string}`;
|
|
1408
1533
|
populate?: Record<string, boolean | {
|
|
1409
1534
|
populate?: boolean;
|
|
1410
1535
|
}>;
|
|
@@ -1609,7 +1734,10 @@ declare const controllers: {
|
|
|
1609
1734
|
authorName?: string;
|
|
1610
1735
|
authorEmail?: string;
|
|
1611
1736
|
authorAvatar?: string;
|
|
1612
|
-
authorUser?: string
|
|
1737
|
+
authorUser?: string | {
|
|
1738
|
+
id?: number;
|
|
1739
|
+
email?: string;
|
|
1740
|
+
};
|
|
1613
1741
|
locale?: string;
|
|
1614
1742
|
gotThread?: boolean;
|
|
1615
1743
|
threadFirstItemId?: number;
|
|
@@ -1643,7 +1771,10 @@ declare const controllers: {
|
|
|
1643
1771
|
authorName?: string;
|
|
1644
1772
|
authorEmail?: string;
|
|
1645
1773
|
authorAvatar?: string;
|
|
1646
|
-
authorUser?: string
|
|
1774
|
+
authorUser?: string | {
|
|
1775
|
+
id?: number;
|
|
1776
|
+
email?: string;
|
|
1777
|
+
};
|
|
1647
1778
|
locale?: string;
|
|
1648
1779
|
gotThread?: boolean;
|
|
1649
1780
|
threadFirstItemId?: number;
|
|
@@ -1684,7 +1815,10 @@ declare const controllers: {
|
|
|
1684
1815
|
authorName?: string;
|
|
1685
1816
|
authorEmail?: string;
|
|
1686
1817
|
authorAvatar?: string;
|
|
1687
|
-
authorUser?: string
|
|
1818
|
+
authorUser?: string | {
|
|
1819
|
+
id?: number;
|
|
1820
|
+
email?: string;
|
|
1821
|
+
};
|
|
1688
1822
|
locale?: string;
|
|
1689
1823
|
gotThread?: boolean;
|
|
1690
1824
|
threadFirstItemId?: number;
|
|
@@ -1718,7 +1852,10 @@ declare const controllers: {
|
|
|
1718
1852
|
authorName?: string;
|
|
1719
1853
|
authorEmail?: string;
|
|
1720
1854
|
authorAvatar?: string;
|
|
1721
|
-
authorUser?: string
|
|
1855
|
+
authorUser?: string | {
|
|
1856
|
+
id?: number;
|
|
1857
|
+
email?: string;
|
|
1858
|
+
};
|
|
1722
1859
|
locale?: string;
|
|
1723
1860
|
gotThread?: boolean;
|
|
1724
1861
|
threadFirstItemId?: number;
|
|
@@ -1743,10 +1880,10 @@ declare const controllers: {
|
|
|
1743
1880
|
total?: number;
|
|
1744
1881
|
};
|
|
1745
1882
|
}>;
|
|
1746
|
-
findAllInHierarchy(ctx: import("../@types
|
|
1883
|
+
findAllInHierarchy(ctx: import("../@types").RequestContext<object, Pick<{
|
|
1747
1884
|
sort?: string;
|
|
1748
1885
|
locale?: string;
|
|
1749
|
-
relation?:
|
|
1886
|
+
relation?: `${string}::${string}.${string}`;
|
|
1750
1887
|
populate?: Record<string, boolean | {
|
|
1751
1888
|
populate?: boolean;
|
|
1752
1889
|
}>;
|
|
@@ -1952,7 +2089,10 @@ declare const controllers: {
|
|
|
1952
2089
|
authorName?: string;
|
|
1953
2090
|
authorEmail?: string;
|
|
1954
2091
|
authorAvatar?: string;
|
|
1955
|
-
authorUser?: string
|
|
2092
|
+
authorUser?: string | {
|
|
2093
|
+
id?: number;
|
|
2094
|
+
email?: string;
|
|
2095
|
+
};
|
|
1956
2096
|
locale?: string;
|
|
1957
2097
|
gotThread?: boolean;
|
|
1958
2098
|
threadFirstItemId?: number;
|
|
@@ -1986,7 +2126,10 @@ declare const controllers: {
|
|
|
1986
2126
|
authorName?: string;
|
|
1987
2127
|
authorEmail?: string;
|
|
1988
2128
|
authorAvatar?: string;
|
|
1989
|
-
authorUser?: string
|
|
2129
|
+
authorUser?: string | {
|
|
2130
|
+
id?: number;
|
|
2131
|
+
email?: string;
|
|
2132
|
+
};
|
|
1990
2133
|
locale?: string;
|
|
1991
2134
|
gotThread?: boolean;
|
|
1992
2135
|
threadFirstItemId?: number;
|
|
@@ -2004,7 +2147,7 @@ declare const controllers: {
|
|
|
2004
2147
|
author?: any;
|
|
2005
2148
|
};
|
|
2006
2149
|
}[]>;
|
|
2007
|
-
findAllPerAuthor(ctx: import("../@types
|
|
2150
|
+
findAllPerAuthor(ctx: import("../@types").RequestContext<object, Pick<{
|
|
2008
2151
|
type?: string;
|
|
2009
2152
|
sort?: string;
|
|
2010
2153
|
authorId?: string | number;
|
|
@@ -2218,7 +2361,10 @@ declare const controllers: {
|
|
|
2218
2361
|
authorName?: string;
|
|
2219
2362
|
authorEmail?: string;
|
|
2220
2363
|
authorAvatar?: string;
|
|
2221
|
-
authorUser?: string
|
|
2364
|
+
authorUser?: string | {
|
|
2365
|
+
id?: number;
|
|
2366
|
+
email?: string;
|
|
2367
|
+
};
|
|
2222
2368
|
locale?: string;
|
|
2223
2369
|
gotThread?: boolean;
|
|
2224
2370
|
threadFirstItemId?: number;
|
|
@@ -2251,7 +2397,10 @@ declare const controllers: {
|
|
|
2251
2397
|
authorName?: string;
|
|
2252
2398
|
authorEmail?: string;
|
|
2253
2399
|
authorAvatar?: string;
|
|
2254
|
-
authorUser?: string
|
|
2400
|
+
authorUser?: string | {
|
|
2401
|
+
id?: number;
|
|
2402
|
+
email?: string;
|
|
2403
|
+
};
|
|
2255
2404
|
locale?: string;
|
|
2256
2405
|
gotThread?: boolean;
|
|
2257
2406
|
threadFirstItemId?: number;
|
|
@@ -2292,7 +2441,10 @@ declare const controllers: {
|
|
|
2292
2441
|
authorName?: string;
|
|
2293
2442
|
authorEmail?: string;
|
|
2294
2443
|
authorAvatar?: string;
|
|
2295
|
-
authorUser?: string
|
|
2444
|
+
authorUser?: string | {
|
|
2445
|
+
id?: number;
|
|
2446
|
+
email?: string;
|
|
2447
|
+
};
|
|
2296
2448
|
locale?: string;
|
|
2297
2449
|
gotThread?: boolean;
|
|
2298
2450
|
threadFirstItemId?: number;
|
|
@@ -2325,7 +2477,10 @@ declare const controllers: {
|
|
|
2325
2477
|
authorName?: string;
|
|
2326
2478
|
authorEmail?: string;
|
|
2327
2479
|
authorAvatar?: string;
|
|
2328
|
-
authorUser?: string
|
|
2480
|
+
authorUser?: string | {
|
|
2481
|
+
id?: number;
|
|
2482
|
+
email?: string;
|
|
2483
|
+
};
|
|
2329
2484
|
locale?: string;
|
|
2330
2485
|
gotThread?: boolean;
|
|
2331
2486
|
threadFirstItemId?: number;
|
|
@@ -2350,7 +2505,7 @@ declare const controllers: {
|
|
|
2350
2505
|
total?: number;
|
|
2351
2506
|
};
|
|
2352
2507
|
}>;
|
|
2353
|
-
put(ctx: import("../@types
|
|
2508
|
+
put(ctx: import("../@types").RequestContext): Promise<{
|
|
2354
2509
|
id?: number;
|
|
2355
2510
|
documentId?: string;
|
|
2356
2511
|
content?: string;
|
|
@@ -2368,7 +2523,10 @@ declare const controllers: {
|
|
|
2368
2523
|
authorName?: string;
|
|
2369
2524
|
authorEmail?: string;
|
|
2370
2525
|
authorAvatar?: string;
|
|
2371
|
-
authorUser?: string
|
|
2526
|
+
authorUser?: string | {
|
|
2527
|
+
id?: number;
|
|
2528
|
+
email?: string;
|
|
2529
|
+
};
|
|
2372
2530
|
locale?: string;
|
|
2373
2531
|
gotThread?: boolean;
|
|
2374
2532
|
threadFirstItemId?: number;
|
|
@@ -2402,7 +2560,10 @@ declare const controllers: {
|
|
|
2402
2560
|
authorName?: string;
|
|
2403
2561
|
authorEmail?: string;
|
|
2404
2562
|
authorAvatar?: string;
|
|
2405
|
-
authorUser?: string
|
|
2563
|
+
authorUser?: string | {
|
|
2564
|
+
id?: number;
|
|
2565
|
+
email?: string;
|
|
2566
|
+
};
|
|
2406
2567
|
locale?: string;
|
|
2407
2568
|
gotThread?: boolean;
|
|
2408
2569
|
threadFirstItemId?: number;
|
|
@@ -2420,7 +2581,7 @@ declare const controllers: {
|
|
|
2420
2581
|
author?: any;
|
|
2421
2582
|
};
|
|
2422
2583
|
}>;
|
|
2423
|
-
reportAbuse(ctx: import("../@types
|
|
2584
|
+
reportAbuse(ctx: import("../@types").RequestContext): Promise<{
|
|
2424
2585
|
related: {
|
|
2425
2586
|
id?: number;
|
|
2426
2587
|
documentId?: string;
|
|
@@ -2439,7 +2600,10 @@ declare const controllers: {
|
|
|
2439
2600
|
authorName?: string;
|
|
2440
2601
|
authorEmail?: string;
|
|
2441
2602
|
authorAvatar?: string;
|
|
2442
|
-
authorUser?: string
|
|
2603
|
+
authorUser?: string | {
|
|
2604
|
+
id?: number;
|
|
2605
|
+
email?: string;
|
|
2606
|
+
};
|
|
2443
2607
|
locale?: string;
|
|
2444
2608
|
gotThread?: boolean;
|
|
2445
2609
|
threadFirstItemId?: number;
|
|
@@ -2473,7 +2637,10 @@ declare const controllers: {
|
|
|
2473
2637
|
authorName?: string;
|
|
2474
2638
|
authorEmail?: string;
|
|
2475
2639
|
authorAvatar?: string;
|
|
2476
|
-
authorUser?: string
|
|
2640
|
+
authorUser?: string | {
|
|
2641
|
+
id?: number;
|
|
2642
|
+
email?: string;
|
|
2643
|
+
};
|
|
2477
2644
|
locale?: string;
|
|
2478
2645
|
gotThread?: boolean;
|
|
2479
2646
|
threadFirstItemId?: number;
|
|
@@ -2501,7 +2668,7 @@ declare const controllers: {
|
|
|
2501
2668
|
reason?: string;
|
|
2502
2669
|
resolved?: boolean;
|
|
2503
2670
|
}>;
|
|
2504
|
-
removeComment(ctx: import("../@types
|
|
2671
|
+
removeComment(ctx: import("../@types").RequestContext): Promise<{
|
|
2505
2672
|
id?: number;
|
|
2506
2673
|
documentId?: string;
|
|
2507
2674
|
content?: string;
|
|
@@ -2519,7 +2686,10 @@ declare const controllers: {
|
|
|
2519
2686
|
authorName?: string;
|
|
2520
2687
|
authorEmail?: string;
|
|
2521
2688
|
authorAvatar?: string;
|
|
2522
|
-
authorUser?: string
|
|
2689
|
+
authorUser?: string | {
|
|
2690
|
+
id?: number;
|
|
2691
|
+
email?: string;
|
|
2692
|
+
};
|
|
2523
2693
|
locale?: string;
|
|
2524
2694
|
gotThread?: boolean;
|
|
2525
2695
|
threadFirstItemId?: number;
|
|
@@ -2553,7 +2723,10 @@ declare const controllers: {
|
|
|
2553
2723
|
authorName?: string;
|
|
2554
2724
|
authorEmail?: string;
|
|
2555
2725
|
authorAvatar?: string;
|
|
2556
|
-
authorUser?: string
|
|
2726
|
+
authorUser?: string | {
|
|
2727
|
+
id?: number;
|
|
2728
|
+
email?: string;
|
|
2729
|
+
};
|
|
2557
2730
|
locale?: string;
|
|
2558
2731
|
gotThread?: boolean;
|
|
2559
2732
|
threadFirstItemId?: number;
|
|
@@ -2572,8 +2745,8 @@ declare const controllers: {
|
|
|
2572
2745
|
};
|
|
2573
2746
|
}>;
|
|
2574
2747
|
};
|
|
2575
|
-
settings: ({ strapi }: import("../@types
|
|
2576
|
-
get(ctx: import("../@types
|
|
2748
|
+
settings: ({ strapi }: import("../@types").StrapiContext) => {
|
|
2749
|
+
get(ctx: import("../@types").RequestContext): Promise<{
|
|
2577
2750
|
enabledCollections?: string[];
|
|
2578
2751
|
approvalFlow?: string[];
|
|
2579
2752
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2590,6 +2763,10 @@ declare const controllers: {
|
|
|
2590
2763
|
gql?: {
|
|
2591
2764
|
auth?: boolean;
|
|
2592
2765
|
};
|
|
2766
|
+
client?: {
|
|
2767
|
+
url?: string;
|
|
2768
|
+
contactEmail?: string;
|
|
2769
|
+
};
|
|
2593
2770
|
} | Omit<{
|
|
2594
2771
|
enabledCollections?: string[];
|
|
2595
2772
|
approvalFlow?: string[];
|
|
@@ -2607,8 +2784,12 @@ declare const controllers: {
|
|
|
2607
2784
|
gql?: {
|
|
2608
2785
|
auth?: boolean;
|
|
2609
2786
|
};
|
|
2787
|
+
client?: {
|
|
2788
|
+
url?: string;
|
|
2789
|
+
contactEmail?: string;
|
|
2790
|
+
};
|
|
2610
2791
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2611
|
-
getForSettingsPage(ctx: import("../@types
|
|
2792
|
+
getForSettingsPage(ctx: import("../@types").RequestContext): Promise<{
|
|
2612
2793
|
enabledCollections?: string[];
|
|
2613
2794
|
approvalFlow?: string[];
|
|
2614
2795
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2625,6 +2806,10 @@ declare const controllers: {
|
|
|
2625
2806
|
gql?: {
|
|
2626
2807
|
auth?: boolean;
|
|
2627
2808
|
};
|
|
2809
|
+
client?: {
|
|
2810
|
+
url?: string;
|
|
2811
|
+
contactEmail?: string;
|
|
2812
|
+
};
|
|
2628
2813
|
} | Omit<{
|
|
2629
2814
|
enabledCollections?: string[];
|
|
2630
2815
|
approvalFlow?: string[];
|
|
@@ -2642,8 +2827,12 @@ declare const controllers: {
|
|
|
2642
2827
|
gql?: {
|
|
2643
2828
|
auth?: boolean;
|
|
2644
2829
|
};
|
|
2830
|
+
client?: {
|
|
2831
|
+
url?: string;
|
|
2832
|
+
contactEmail?: string;
|
|
2833
|
+
};
|
|
2645
2834
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2646
|
-
update(ctx: import("../@types
|
|
2835
|
+
update(ctx: import("../@types").RequestContext<{
|
|
2647
2836
|
enabledCollections?: string[];
|
|
2648
2837
|
approvalFlow?: string[];
|
|
2649
2838
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2660,6 +2849,10 @@ declare const controllers: {
|
|
|
2660
2849
|
gql?: {
|
|
2661
2850
|
auth?: boolean;
|
|
2662
2851
|
};
|
|
2852
|
+
client?: {
|
|
2853
|
+
url?: string;
|
|
2854
|
+
contactEmail?: string;
|
|
2855
|
+
};
|
|
2663
2856
|
}>): Promise<{
|
|
2664
2857
|
enabledCollections?: string[];
|
|
2665
2858
|
approvalFlow?: string[];
|
|
@@ -2677,6 +2870,10 @@ declare const controllers: {
|
|
|
2677
2870
|
gql?: {
|
|
2678
2871
|
auth?: boolean;
|
|
2679
2872
|
};
|
|
2873
|
+
client?: {
|
|
2874
|
+
url?: string;
|
|
2875
|
+
contactEmail?: string;
|
|
2876
|
+
};
|
|
2680
2877
|
} | Omit<{
|
|
2681
2878
|
enabledCollections?: string[];
|
|
2682
2879
|
approvalFlow?: string[];
|
|
@@ -2694,8 +2891,12 @@ declare const controllers: {
|
|
|
2694
2891
|
gql?: {
|
|
2695
2892
|
auth?: boolean;
|
|
2696
2893
|
};
|
|
2894
|
+
client?: {
|
|
2895
|
+
url?: string;
|
|
2896
|
+
contactEmail?: string;
|
|
2897
|
+
};
|
|
2697
2898
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2698
|
-
restore(ctx: import("../@types
|
|
2899
|
+
restore(ctx: import("../@types").RequestContext): Promise<{
|
|
2699
2900
|
enabledCollections?: string[];
|
|
2700
2901
|
approvalFlow?: string[];
|
|
2701
2902
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2712,6 +2913,10 @@ declare const controllers: {
|
|
|
2712
2913
|
gql?: {
|
|
2713
2914
|
auth?: boolean;
|
|
2714
2915
|
};
|
|
2916
|
+
client?: {
|
|
2917
|
+
url?: string;
|
|
2918
|
+
contactEmail?: string;
|
|
2919
|
+
};
|
|
2715
2920
|
} | Omit<{
|
|
2716
2921
|
enabledCollections?: string[];
|
|
2717
2922
|
approvalFlow?: string[];
|
|
@@ -2729,8 +2934,12 @@ declare const controllers: {
|
|
|
2729
2934
|
gql?: {
|
|
2730
2935
|
auth?: boolean;
|
|
2731
2936
|
};
|
|
2937
|
+
client?: {
|
|
2938
|
+
url?: string;
|
|
2939
|
+
contactEmail?: string;
|
|
2940
|
+
};
|
|
2732
2941
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2733
|
-
restart(ctx: import("../@types
|
|
2942
|
+
restart(ctx: import("../@types").RequestContext): Promise<any>;
|
|
2734
2943
|
};
|
|
2735
2944
|
};
|
|
2736
2945
|
export type PluginControllers = {
|