strapi-plugin-comments 3.0.0-beta.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -123
- package/dist/_chunks/{index-fAgatqD0.js → index-B-ygLKrb.js} +6080 -5662
- package/dist/_chunks/{index-fSb-gYwg.mjs → index-BgN4aUMA.mjs} +5 -5
- package/dist/_chunks/{index-h-TB6Qu2.mjs → index-Bx2boY6h.mjs} +6072 -5654
- package/dist/_chunks/{index-BQERo8pN.mjs → index-CIqMAf50.mjs} +1261 -1141
- package/dist/_chunks/{index-B6Q4U8YQ.js → index-CWfr5ejx.js} +27 -29
- package/dist/_chunks/{index-CTjupB9v.js → index-D8uskGzQ.js} +5 -5
- package/dist/_chunks/{index-BVj8EXjI.js → index-DFAPx7Bl.js} +1293 -1152
- package/dist/_chunks/{index-Bpbf7RON.mjs → index-Db2zwbpe.mjs} +27 -29
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +33 -52
- package/dist/admin/src/api/schemas.d.ts +454 -764
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/contexts/UserContext.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +34 -53
- package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
- package/dist/admin/src/hooks/useCommentsAll.d.ts +7 -10
- package/dist/admin/src/hooks/useReports.d.ts +6 -10
- package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
- package/dist/server/index.js +9307 -2467
- package/dist/server/index.mjs +9307 -2467
- package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/config/index.d.ts +52 -0
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/controllers/admin.controller.d.ts +110 -29
- package/dist/server/src/controllers/client.controller.d.ts +151 -23
- package/dist/server/src/controllers/index.d.ts +504 -197
- package/dist/server/src/controllers/settings.controller.d.ts +58 -2
- package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
- package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
- package/dist/server/src/graphql/index.d.ts +2 -0
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +95 -0
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/index.d.ts +3 -0
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +177 -0
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +87 -0
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +176 -0
- package/dist/server/src/graphql/queries/index.d.ts +3 -0
- package/dist/server/src/graphql/types/getComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getId.d.ts +2 -0
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/index.d.ts +3 -0
- package/dist/server/src/index.d.ts +1686 -779
- package/dist/server/src/register/custom-fields/index.d.ts +1 -1
- package/dist/server/src/register/index.d.ts +1 -1
- package/dist/server/src/repositories/comment.repository.d.ts +10 -1
- package/dist/server/src/repositories/index.d.ts +0 -2
- package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
- package/dist/server/src/repositories/store.repository.d.ts +175 -4
- package/dist/server/src/repositories/utils.d.ts +1 -3
- package/dist/server/src/routes/admin.routes.d.ts +1 -1
- package/dist/server/src/routes/client.routes.d.ts +1 -1
- package/dist/server/src/routes/index.d.ts +2 -2
- package/dist/server/src/services/admin/admin.service.d.ts +399 -188
- package/dist/server/src/services/admin/utils.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +343 -177
- package/dist/server/src/services/common.service.d.ts +66 -22
- package/dist/server/src/services/gql.service.d.ts +7 -0
- package/dist/server/src/services/index.d.ts +1131 -552
- package/dist/server/src/services/settings.service.d.ts +44 -2
- package/dist/server/src/services/utils/functions.d.ts +10 -6
- package/dist/server/src/test/utils.d.ts +1 -0
- package/dist/server/src/utils/constants.d.ts +1 -1
- package/dist/server/src/utils/getConfig.d.ts +2 -2
- package/dist/server/src/utils/getPluginService.d.ts +2 -2
- package/dist/server/src/utils/throwError.d.ts +1 -1
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +116 -80
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +7 -3
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +400 -72
- package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +18 -11
- /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="koa" />
|
|
2
2
|
declare const controllers: {
|
|
3
|
-
admin: ({ strapi }: import("../@types
|
|
4
|
-
getService<T extends "
|
|
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;
|
|
@@ -21,6 +21,8 @@ declare const controllers: {
|
|
|
21
21
|
approvalStatus?: string;
|
|
22
22
|
related?: {
|
|
23
23
|
id?: number;
|
|
24
|
+
documentId?: string;
|
|
25
|
+
locale?: string;
|
|
24
26
|
uid?: string;
|
|
25
27
|
requireCommentsApproval?: boolean;
|
|
26
28
|
};
|
|
@@ -31,7 +33,10 @@ declare const controllers: {
|
|
|
31
33
|
authorName?: string;
|
|
32
34
|
authorEmail?: string;
|
|
33
35
|
authorAvatar?: string;
|
|
34
|
-
authorUser?: string
|
|
36
|
+
authorUser?: string | {
|
|
37
|
+
id?: number;
|
|
38
|
+
email?: string;
|
|
39
|
+
};
|
|
35
40
|
locale?: string;
|
|
36
41
|
gotThread?: boolean;
|
|
37
42
|
threadFirstItemId?: number;
|
|
@@ -65,7 +70,10 @@ declare const controllers: {
|
|
|
65
70
|
authorName?: string;
|
|
66
71
|
authorEmail?: string;
|
|
67
72
|
authorAvatar?: string;
|
|
68
|
-
authorUser?: string
|
|
73
|
+
authorUser?: string | {
|
|
74
|
+
id?: number;
|
|
75
|
+
email?: string;
|
|
76
|
+
};
|
|
69
77
|
locale?: string;
|
|
70
78
|
gotThread?: boolean;
|
|
71
79
|
threadFirstItemId?: number;
|
|
@@ -84,7 +92,7 @@ declare const controllers: {
|
|
|
84
92
|
};
|
|
85
93
|
}[];
|
|
86
94
|
}>;
|
|
87
|
-
findReports(ctx: import("../@types
|
|
95
|
+
findReports(ctx: import("../@types").RequestContext): Promise<{
|
|
88
96
|
result: {
|
|
89
97
|
id?: number;
|
|
90
98
|
documentId?: string;
|
|
@@ -103,7 +111,10 @@ declare const controllers: {
|
|
|
103
111
|
authorName?: string;
|
|
104
112
|
authorEmail?: string;
|
|
105
113
|
authorAvatar?: string;
|
|
106
|
-
authorUser?: string
|
|
114
|
+
authorUser?: string | {
|
|
115
|
+
id?: number;
|
|
116
|
+
email?: string;
|
|
117
|
+
};
|
|
107
118
|
locale?: string;
|
|
108
119
|
gotThread?: boolean;
|
|
109
120
|
threadFirstItemId?: number;
|
|
@@ -137,7 +148,10 @@ declare const controllers: {
|
|
|
137
148
|
authorName?: string;
|
|
138
149
|
authorEmail?: string;
|
|
139
150
|
authorAvatar?: string;
|
|
140
|
-
authorUser?: string
|
|
151
|
+
authorUser?: string | {
|
|
152
|
+
id?: number;
|
|
153
|
+
email?: string;
|
|
154
|
+
};
|
|
141
155
|
locale?: string;
|
|
142
156
|
gotThread?: boolean;
|
|
143
157
|
threadFirstItemId?: number;
|
|
@@ -172,12 +186,13 @@ declare const controllers: {
|
|
|
172
186
|
body: object;
|
|
173
187
|
};
|
|
174
188
|
state: {
|
|
175
|
-
user?: import("../@types
|
|
189
|
+
user?: import("../@types").AdminUser;
|
|
176
190
|
};
|
|
177
191
|
}): Promise<{
|
|
178
192
|
entity: {
|
|
179
193
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
180
|
-
|
|
194
|
+
documentId: string;
|
|
195
|
+
id: number;
|
|
181
196
|
};
|
|
182
197
|
selected: {
|
|
183
198
|
id?: number;
|
|
@@ -197,7 +212,10 @@ declare const controllers: {
|
|
|
197
212
|
authorName?: string;
|
|
198
213
|
authorEmail?: string;
|
|
199
214
|
authorAvatar?: string;
|
|
200
|
-
authorUser?: string
|
|
215
|
+
authorUser?: string | {
|
|
216
|
+
id?: number;
|
|
217
|
+
email?: string;
|
|
218
|
+
};
|
|
201
219
|
locale?: string;
|
|
202
220
|
gotThread?: boolean;
|
|
203
221
|
threadFirstItemId?: number;
|
|
@@ -231,7 +249,10 @@ declare const controllers: {
|
|
|
231
249
|
authorName?: string;
|
|
232
250
|
authorEmail?: string;
|
|
233
251
|
authorAvatar?: string;
|
|
234
|
-
authorUser?: string
|
|
252
|
+
authorUser?: string | {
|
|
253
|
+
id?: number;
|
|
254
|
+
email?: string;
|
|
255
|
+
};
|
|
235
256
|
locale?: string;
|
|
236
257
|
gotThread?: boolean;
|
|
237
258
|
threadFirstItemId?: number;
|
|
@@ -267,7 +288,10 @@ declare const controllers: {
|
|
|
267
288
|
authorName?: string;
|
|
268
289
|
authorEmail?: string;
|
|
269
290
|
authorAvatar?: string;
|
|
270
|
-
authorUser?: string
|
|
291
|
+
authorUser?: string | {
|
|
292
|
+
id?: number;
|
|
293
|
+
email?: string;
|
|
294
|
+
};
|
|
271
295
|
locale?: string;
|
|
272
296
|
gotThread?: boolean;
|
|
273
297
|
threadFirstItemId?: number;
|
|
@@ -301,7 +325,10 @@ declare const controllers: {
|
|
|
301
325
|
authorName?: string;
|
|
302
326
|
authorEmail?: string;
|
|
303
327
|
authorAvatar?: string;
|
|
304
|
-
authorUser?: string
|
|
328
|
+
authorUser?: string | {
|
|
329
|
+
id?: number;
|
|
330
|
+
email?: string;
|
|
331
|
+
};
|
|
305
332
|
locale?: string;
|
|
306
333
|
gotThread?: boolean;
|
|
307
334
|
threadFirstItemId?: number;
|
|
@@ -330,7 +357,7 @@ declare const controllers: {
|
|
|
330
357
|
body: object;
|
|
331
358
|
};
|
|
332
359
|
state: {
|
|
333
|
-
user?: import("../@types
|
|
360
|
+
user?: import("../@types").AdminUser;
|
|
334
361
|
};
|
|
335
362
|
}): Promise<{
|
|
336
363
|
id?: number;
|
|
@@ -350,7 +377,10 @@ declare const controllers: {
|
|
|
350
377
|
authorName?: string;
|
|
351
378
|
authorEmail?: string;
|
|
352
379
|
authorAvatar?: string;
|
|
353
|
-
authorUser?: string
|
|
380
|
+
authorUser?: string | {
|
|
381
|
+
id?: number;
|
|
382
|
+
email?: string;
|
|
383
|
+
};
|
|
354
384
|
locale?: string;
|
|
355
385
|
gotThread?: boolean;
|
|
356
386
|
threadFirstItemId?: number;
|
|
@@ -384,7 +414,10 @@ declare const controllers: {
|
|
|
384
414
|
authorName?: string;
|
|
385
415
|
authorEmail?: string;
|
|
386
416
|
authorAvatar?: string;
|
|
387
|
-
authorUser?: string
|
|
417
|
+
authorUser?: string | {
|
|
418
|
+
id?: number;
|
|
419
|
+
email?: string;
|
|
420
|
+
};
|
|
388
421
|
locale?: string;
|
|
389
422
|
gotThread?: boolean;
|
|
390
423
|
threadFirstItemId?: number;
|
|
@@ -412,7 +445,7 @@ declare const controllers: {
|
|
|
412
445
|
body: object;
|
|
413
446
|
};
|
|
414
447
|
state: {
|
|
415
|
-
user?: import("../@types
|
|
448
|
+
user?: import("../@types").AdminUser;
|
|
416
449
|
};
|
|
417
450
|
}): Promise<{
|
|
418
451
|
id?: number;
|
|
@@ -432,7 +465,10 @@ declare const controllers: {
|
|
|
432
465
|
authorName?: string;
|
|
433
466
|
authorEmail?: string;
|
|
434
467
|
authorAvatar?: string;
|
|
435
|
-
authorUser?: string
|
|
468
|
+
authorUser?: string | {
|
|
469
|
+
id?: number;
|
|
470
|
+
email?: string;
|
|
471
|
+
};
|
|
436
472
|
locale?: string;
|
|
437
473
|
gotThread?: boolean;
|
|
438
474
|
threadFirstItemId?: number;
|
|
@@ -466,7 +502,10 @@ declare const controllers: {
|
|
|
466
502
|
authorName?: string;
|
|
467
503
|
authorEmail?: string;
|
|
468
504
|
authorAvatar?: string;
|
|
469
|
-
authorUser?: string
|
|
505
|
+
authorUser?: string | {
|
|
506
|
+
id?: number;
|
|
507
|
+
email?: string;
|
|
508
|
+
};
|
|
470
509
|
locale?: string;
|
|
471
510
|
gotThread?: boolean;
|
|
472
511
|
threadFirstItemId?: number;
|
|
@@ -494,7 +533,7 @@ declare const controllers: {
|
|
|
494
533
|
body: object;
|
|
495
534
|
};
|
|
496
535
|
state: {
|
|
497
|
-
user?: import("../@types
|
|
536
|
+
user?: import("../@types").AdminUser;
|
|
498
537
|
};
|
|
499
538
|
}): Promise<{
|
|
500
539
|
id?: number;
|
|
@@ -514,7 +553,10 @@ declare const controllers: {
|
|
|
514
553
|
authorName?: string;
|
|
515
554
|
authorEmail?: string;
|
|
516
555
|
authorAvatar?: string;
|
|
517
|
-
authorUser?: string
|
|
556
|
+
authorUser?: string | {
|
|
557
|
+
id?: number;
|
|
558
|
+
email?: string;
|
|
559
|
+
};
|
|
518
560
|
locale?: string;
|
|
519
561
|
gotThread?: boolean;
|
|
520
562
|
threadFirstItemId?: number;
|
|
@@ -548,7 +590,10 @@ declare const controllers: {
|
|
|
548
590
|
authorName?: string;
|
|
549
591
|
authorEmail?: string;
|
|
550
592
|
authorAvatar?: string;
|
|
551
|
-
authorUser?: string
|
|
593
|
+
authorUser?: string | {
|
|
594
|
+
id?: number;
|
|
595
|
+
email?: string;
|
|
596
|
+
};
|
|
552
597
|
locale?: string;
|
|
553
598
|
gotThread?: boolean;
|
|
554
599
|
threadFirstItemId?: number;
|
|
@@ -576,7 +621,7 @@ declare const controllers: {
|
|
|
576
621
|
body: object;
|
|
577
622
|
};
|
|
578
623
|
state: {
|
|
579
|
-
user?: import("../@types
|
|
624
|
+
user?: import("../@types").AdminUser;
|
|
580
625
|
};
|
|
581
626
|
}): Promise<{
|
|
582
627
|
id?: number;
|
|
@@ -596,7 +641,10 @@ declare const controllers: {
|
|
|
596
641
|
authorName?: string;
|
|
597
642
|
authorEmail?: string;
|
|
598
643
|
authorAvatar?: string;
|
|
599
|
-
authorUser?: string
|
|
644
|
+
authorUser?: string | {
|
|
645
|
+
id?: number;
|
|
646
|
+
email?: string;
|
|
647
|
+
};
|
|
600
648
|
locale?: string;
|
|
601
649
|
gotThread?: boolean;
|
|
602
650
|
threadFirstItemId?: number;
|
|
@@ -630,7 +678,10 @@ declare const controllers: {
|
|
|
630
678
|
authorName?: string;
|
|
631
679
|
authorEmail?: string;
|
|
632
680
|
authorAvatar?: string;
|
|
633
|
-
authorUser?: string
|
|
681
|
+
authorUser?: string | {
|
|
682
|
+
id?: number;
|
|
683
|
+
email?: string;
|
|
684
|
+
};
|
|
634
685
|
locale?: string;
|
|
635
686
|
gotThread?: boolean;
|
|
636
687
|
threadFirstItemId?: number;
|
|
@@ -658,7 +709,7 @@ declare const controllers: {
|
|
|
658
709
|
body: object;
|
|
659
710
|
};
|
|
660
711
|
state: {
|
|
661
|
-
user?: import("../@types
|
|
712
|
+
user?: import("../@types").AdminUser;
|
|
662
713
|
};
|
|
663
714
|
}): Promise<{
|
|
664
715
|
id?: number;
|
|
@@ -678,7 +729,10 @@ declare const controllers: {
|
|
|
678
729
|
authorName?: string;
|
|
679
730
|
authorEmail?: string;
|
|
680
731
|
authorAvatar?: string;
|
|
681
|
-
authorUser?: string
|
|
732
|
+
authorUser?: string | {
|
|
733
|
+
id?: number;
|
|
734
|
+
email?: string;
|
|
735
|
+
};
|
|
682
736
|
locale?: string;
|
|
683
737
|
gotThread?: boolean;
|
|
684
738
|
threadFirstItemId?: number;
|
|
@@ -712,7 +766,10 @@ declare const controllers: {
|
|
|
712
766
|
authorName?: string;
|
|
713
767
|
authorEmail?: string;
|
|
714
768
|
authorAvatar?: string;
|
|
715
|
-
authorUser?: string
|
|
769
|
+
authorUser?: string | {
|
|
770
|
+
id?: number;
|
|
771
|
+
email?: string;
|
|
772
|
+
};
|
|
716
773
|
locale?: string;
|
|
717
774
|
gotThread?: boolean;
|
|
718
775
|
threadFirstItemId?: number;
|
|
@@ -730,7 +787,7 @@ declare const controllers: {
|
|
|
730
787
|
author?: any;
|
|
731
788
|
};
|
|
732
789
|
}>;
|
|
733
|
-
resolveAbuseReport(ctx: import("../@types
|
|
790
|
+
resolveAbuseReport(ctx: import("../@types").RequestContext<object, {
|
|
734
791
|
id: string;
|
|
735
792
|
reportId: string;
|
|
736
793
|
}>): Promise<{
|
|
@@ -745,16 +802,16 @@ declare const controllers: {
|
|
|
745
802
|
resolved?: boolean;
|
|
746
803
|
}>;
|
|
747
804
|
resolveCommentMultipleAbuseReports(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
748
|
-
body: import("../@types
|
|
805
|
+
body: import("../@types").Id[];
|
|
749
806
|
query: object;
|
|
750
807
|
params: {
|
|
751
808
|
id: string;
|
|
752
809
|
};
|
|
753
810
|
request: Omit<import("koa").Request, "body"> & {
|
|
754
|
-
body: import("../@types
|
|
811
|
+
body: import("../@types").Id[];
|
|
755
812
|
};
|
|
756
813
|
state: {
|
|
757
|
-
user?: import("../@types
|
|
814
|
+
user?: import("../@types").AdminUser;
|
|
758
815
|
};
|
|
759
816
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
760
817
|
resolveAllAbuseReportsForComment(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -767,7 +824,7 @@ declare const controllers: {
|
|
|
767
824
|
body: object;
|
|
768
825
|
};
|
|
769
826
|
state: {
|
|
770
|
-
user?: import("../@types
|
|
827
|
+
user?: import("../@types").AdminUser;
|
|
771
828
|
};
|
|
772
829
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
773
830
|
resolveAllAbuseReportsForThread(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -780,11 +837,11 @@ declare const controllers: {
|
|
|
780
837
|
body: object;
|
|
781
838
|
};
|
|
782
839
|
state: {
|
|
783
|
-
user?: import("../@types
|
|
840
|
+
user?: import("../@types").AdminUser;
|
|
784
841
|
};
|
|
785
842
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
786
|
-
resolveMultipleAbuseReports(ctx: import("../@types
|
|
787
|
-
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<{
|
|
788
845
|
id?: string | number;
|
|
789
846
|
content?: string;
|
|
790
847
|
author?: {
|
|
@@ -822,7 +879,10 @@ declare const controllers: {
|
|
|
822
879
|
authorName?: string;
|
|
823
880
|
authorEmail?: string;
|
|
824
881
|
authorAvatar?: string;
|
|
825
|
-
authorUser?: string
|
|
882
|
+
authorUser?: string | {
|
|
883
|
+
id?: number;
|
|
884
|
+
email?: string;
|
|
885
|
+
};
|
|
826
886
|
locale?: string;
|
|
827
887
|
gotThread?: boolean;
|
|
828
888
|
threadFirstItemId?: number;
|
|
@@ -856,7 +916,10 @@ declare const controllers: {
|
|
|
856
916
|
authorName?: string;
|
|
857
917
|
authorEmail?: string;
|
|
858
918
|
authorAvatar?: string;
|
|
859
|
-
authorUser?: string
|
|
919
|
+
authorUser?: string | {
|
|
920
|
+
id?: number;
|
|
921
|
+
email?: string;
|
|
922
|
+
};
|
|
860
923
|
locale?: string;
|
|
861
924
|
gotThread?: boolean;
|
|
862
925
|
threadFirstItemId?: number;
|
|
@@ -874,7 +937,7 @@ declare const controllers: {
|
|
|
874
937
|
author?: any;
|
|
875
938
|
};
|
|
876
939
|
}>;
|
|
877
|
-
updateComment(ctx: import("../@types
|
|
940
|
+
updateComment(ctx: import("../@types").RequestContext<Omit<{
|
|
878
941
|
id?: string | number;
|
|
879
942
|
content?: string;
|
|
880
943
|
author?: {
|
|
@@ -912,7 +975,10 @@ declare const controllers: {
|
|
|
912
975
|
authorName?: string;
|
|
913
976
|
authorEmail?: string;
|
|
914
977
|
authorAvatar?: string;
|
|
915
|
-
authorUser?: string
|
|
978
|
+
authorUser?: string | {
|
|
979
|
+
id?: number;
|
|
980
|
+
email?: string;
|
|
981
|
+
};
|
|
916
982
|
locale?: string;
|
|
917
983
|
gotThread?: boolean;
|
|
918
984
|
threadFirstItemId?: number;
|
|
@@ -946,7 +1012,10 @@ declare const controllers: {
|
|
|
946
1012
|
authorName?: string;
|
|
947
1013
|
authorEmail?: string;
|
|
948
1014
|
authorAvatar?: string;
|
|
949
|
-
authorUser?: string
|
|
1015
|
+
authorUser?: string | {
|
|
1016
|
+
id?: number;
|
|
1017
|
+
email?: string;
|
|
1018
|
+
};
|
|
950
1019
|
locale?: string;
|
|
951
1020
|
gotThread?: boolean;
|
|
952
1021
|
threadFirstItemId?: number;
|
|
@@ -964,7 +1033,7 @@ declare const controllers: {
|
|
|
964
1033
|
author?: any;
|
|
965
1034
|
};
|
|
966
1035
|
}>;
|
|
967
|
-
approveComment(ctx: import("../@types
|
|
1036
|
+
approveComment(ctx: import("../@types").RequestContext<object, {
|
|
968
1037
|
id?: number;
|
|
969
1038
|
}>): Promise<{
|
|
970
1039
|
id?: number;
|
|
@@ -984,7 +1053,10 @@ declare const controllers: {
|
|
|
984
1053
|
authorName?: string;
|
|
985
1054
|
authorEmail?: string;
|
|
986
1055
|
authorAvatar?: string;
|
|
987
|
-
authorUser?: string
|
|
1056
|
+
authorUser?: string | {
|
|
1057
|
+
id?: number;
|
|
1058
|
+
email?: string;
|
|
1059
|
+
};
|
|
988
1060
|
locale?: string;
|
|
989
1061
|
gotThread?: boolean;
|
|
990
1062
|
threadFirstItemId?: number;
|
|
@@ -1018,7 +1090,10 @@ declare const controllers: {
|
|
|
1018
1090
|
authorName?: string;
|
|
1019
1091
|
authorEmail?: string;
|
|
1020
1092
|
authorAvatar?: string;
|
|
1021
|
-
authorUser?: string
|
|
1093
|
+
authorUser?: string | {
|
|
1094
|
+
id?: number;
|
|
1095
|
+
email?: string;
|
|
1096
|
+
};
|
|
1022
1097
|
locale?: string;
|
|
1023
1098
|
gotThread?: boolean;
|
|
1024
1099
|
threadFirstItemId?: number;
|
|
@@ -1036,7 +1111,7 @@ declare const controllers: {
|
|
|
1036
1111
|
author?: any;
|
|
1037
1112
|
};
|
|
1038
1113
|
}>;
|
|
1039
|
-
rejectComment(ctx: import("../@types
|
|
1114
|
+
rejectComment(ctx: import("../@types").RequestContext<object, {
|
|
1040
1115
|
id?: number;
|
|
1041
1116
|
}>): Promise<{
|
|
1042
1117
|
id?: number;
|
|
@@ -1056,7 +1131,10 @@ declare const controllers: {
|
|
|
1056
1131
|
authorName?: string;
|
|
1057
1132
|
authorEmail?: string;
|
|
1058
1133
|
authorAvatar?: string;
|
|
1059
|
-
authorUser?: string
|
|
1134
|
+
authorUser?: string | {
|
|
1135
|
+
id?: number;
|
|
1136
|
+
email?: string;
|
|
1137
|
+
};
|
|
1060
1138
|
locale?: string;
|
|
1061
1139
|
gotThread?: boolean;
|
|
1062
1140
|
threadFirstItemId?: number;
|
|
@@ -1090,7 +1168,10 @@ declare const controllers: {
|
|
|
1090
1168
|
authorName?: string;
|
|
1091
1169
|
authorEmail?: string;
|
|
1092
1170
|
authorAvatar?: string;
|
|
1093
|
-
authorUser?: string
|
|
1171
|
+
authorUser?: string | {
|
|
1172
|
+
id?: number;
|
|
1173
|
+
email?: string;
|
|
1174
|
+
};
|
|
1094
1175
|
locale?: string;
|
|
1095
1176
|
gotThread?: boolean;
|
|
1096
1177
|
threadFirstItemId?: number;
|
|
@@ -1109,10 +1190,10 @@ declare const controllers: {
|
|
|
1109
1190
|
};
|
|
1110
1191
|
}>;
|
|
1111
1192
|
};
|
|
1112
|
-
client: ({ strapi }: import("../@types
|
|
1113
|
-
getService<T_1 extends "
|
|
1193
|
+
client: ({ strapi }: import("../@types").StrapiContext) => {
|
|
1194
|
+
getService<T_1 extends "gql" | "client" | "admin" | "common" | "settings">(name: T_1): import("../services").PluginServices[T_1];
|
|
1114
1195
|
getStoreRepository(): {
|
|
1115
|
-
getLocalConfig<P extends
|
|
1196
|
+
getLocalConfig<P extends string>(prop?: P, defaultValue?: import("../@types").PathValue<{
|
|
1116
1197
|
enabledCollections?: string[];
|
|
1117
1198
|
approvalFlow?: string[];
|
|
1118
1199
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1126,7 +1207,14 @@ declare const controllers: {
|
|
|
1126
1207
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1127
1208
|
};
|
|
1128
1209
|
isGQLPluginEnabled?: boolean;
|
|
1129
|
-
|
|
1210
|
+
gql?: {
|
|
1211
|
+
auth?: boolean;
|
|
1212
|
+
};
|
|
1213
|
+
client?: {
|
|
1214
|
+
url?: string;
|
|
1215
|
+
contactEmail?: string;
|
|
1216
|
+
};
|
|
1217
|
+
}, P>): import("../@types").PathValue<{
|
|
1130
1218
|
enabledCollections?: string[];
|
|
1131
1219
|
approvalFlow?: string[];
|
|
1132
1220
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1140,7 +1228,14 @@ declare const controllers: {
|
|
|
1140
1228
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1141
1229
|
};
|
|
1142
1230
|
isGQLPluginEnabled?: boolean;
|
|
1143
|
-
|
|
1231
|
+
gql?: {
|
|
1232
|
+
auth?: boolean;
|
|
1233
|
+
};
|
|
1234
|
+
client?: {
|
|
1235
|
+
url?: string;
|
|
1236
|
+
contactEmail?: string;
|
|
1237
|
+
};
|
|
1238
|
+
}, P>;
|
|
1144
1239
|
getStore(): Promise<{
|
|
1145
1240
|
get(params?: Partial<{
|
|
1146
1241
|
key: string;
|
|
@@ -1179,6 +1274,13 @@ declare const controllers: {
|
|
|
1179
1274
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1180
1275
|
};
|
|
1181
1276
|
isGQLPluginEnabled?: boolean;
|
|
1277
|
+
gql?: {
|
|
1278
|
+
auth?: boolean;
|
|
1279
|
+
};
|
|
1280
|
+
client?: {
|
|
1281
|
+
url?: string;
|
|
1282
|
+
contactEmail?: string;
|
|
1283
|
+
};
|
|
1182
1284
|
}>>;
|
|
1183
1285
|
get<T_2 extends boolean>(viaSettingsPage?: T_2): Promise<import("../utils/Either").Either<unknown, T_2 extends true ? {
|
|
1184
1286
|
enabledCollections?: string[];
|
|
@@ -1194,6 +1296,13 @@ declare const controllers: {
|
|
|
1194
1296
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1195
1297
|
};
|
|
1196
1298
|
isGQLPluginEnabled?: boolean;
|
|
1299
|
+
gql?: {
|
|
1300
|
+
auth?: boolean;
|
|
1301
|
+
};
|
|
1302
|
+
client?: {
|
|
1303
|
+
url?: string;
|
|
1304
|
+
contactEmail?: string;
|
|
1305
|
+
};
|
|
1197
1306
|
} : Omit<{
|
|
1198
1307
|
enabledCollections?: string[];
|
|
1199
1308
|
approvalFlow?: string[];
|
|
@@ -1208,6 +1317,13 @@ declare const controllers: {
|
|
|
1208
1317
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1209
1318
|
};
|
|
1210
1319
|
isGQLPluginEnabled?: boolean;
|
|
1320
|
+
gql?: {
|
|
1321
|
+
auth?: boolean;
|
|
1322
|
+
};
|
|
1323
|
+
client?: {
|
|
1324
|
+
url?: string;
|
|
1325
|
+
contactEmail?: string;
|
|
1326
|
+
};
|
|
1211
1327
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1212
1328
|
update(config: {
|
|
1213
1329
|
enabledCollections?: string[];
|
|
@@ -1223,6 +1339,13 @@ declare const controllers: {
|
|
|
1223
1339
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1224
1340
|
};
|
|
1225
1341
|
isGQLPluginEnabled?: boolean;
|
|
1342
|
+
gql?: {
|
|
1343
|
+
auth?: boolean;
|
|
1344
|
+
};
|
|
1345
|
+
client?: {
|
|
1346
|
+
url?: string;
|
|
1347
|
+
contactEmail?: string;
|
|
1348
|
+
};
|
|
1226
1349
|
}): Promise<import("../utils/Either").Either<unknown, {
|
|
1227
1350
|
enabledCollections?: string[];
|
|
1228
1351
|
approvalFlow?: string[];
|
|
@@ -1237,6 +1360,13 @@ declare const controllers: {
|
|
|
1237
1360
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1238
1361
|
};
|
|
1239
1362
|
isGQLPluginEnabled?: boolean;
|
|
1363
|
+
gql?: {
|
|
1364
|
+
auth?: boolean;
|
|
1365
|
+
};
|
|
1366
|
+
client?: {
|
|
1367
|
+
url?: string;
|
|
1368
|
+
contactEmail?: string;
|
|
1369
|
+
};
|
|
1240
1370
|
} | Omit<{
|
|
1241
1371
|
enabledCollections?: string[];
|
|
1242
1372
|
approvalFlow?: string[];
|
|
@@ -1251,6 +1381,13 @@ declare const controllers: {
|
|
|
1251
1381
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1252
1382
|
};
|
|
1253
1383
|
isGQLPluginEnabled?: boolean;
|
|
1384
|
+
gql?: {
|
|
1385
|
+
auth?: boolean;
|
|
1386
|
+
};
|
|
1387
|
+
client?: {
|
|
1388
|
+
url?: string;
|
|
1389
|
+
contactEmail?: string;
|
|
1390
|
+
};
|
|
1254
1391
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1255
1392
|
restore(): Promise<import("../utils/Either").Either<unknown, {
|
|
1256
1393
|
enabledCollections?: string[];
|
|
@@ -1266,6 +1403,13 @@ declare const controllers: {
|
|
|
1266
1403
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1267
1404
|
};
|
|
1268
1405
|
isGQLPluginEnabled?: boolean;
|
|
1406
|
+
gql?: {
|
|
1407
|
+
auth?: boolean;
|
|
1408
|
+
};
|
|
1409
|
+
client?: {
|
|
1410
|
+
url?: string;
|
|
1411
|
+
contactEmail?: string;
|
|
1412
|
+
};
|
|
1269
1413
|
} | Omit<{
|
|
1270
1414
|
enabledCollections?: string[];
|
|
1271
1415
|
approvalFlow?: string[];
|
|
@@ -1280,19 +1424,27 @@ declare const controllers: {
|
|
|
1280
1424
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
1281
1425
|
};
|
|
1282
1426
|
isGQLPluginEnabled?: boolean;
|
|
1427
|
+
gql?: {
|
|
1428
|
+
auth?: boolean;
|
|
1429
|
+
};
|
|
1430
|
+
client?: {
|
|
1431
|
+
url?: string;
|
|
1432
|
+
contactEmail?: string;
|
|
1433
|
+
};
|
|
1283
1434
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1284
1435
|
};
|
|
1285
|
-
post(ctx: import("../@types
|
|
1436
|
+
post(ctx: import("../@types").RequestContext<object, Pick<{
|
|
1286
1437
|
content?: string;
|
|
1287
1438
|
approvalStatus?: import("../const").APPROVAL_STATUS;
|
|
1439
|
+
locale?: string;
|
|
1288
1440
|
author?: {
|
|
1289
1441
|
name?: string;
|
|
1290
1442
|
id?: number;
|
|
1291
1443
|
email?: string;
|
|
1292
1444
|
avatar?: string;
|
|
1293
1445
|
};
|
|
1294
|
-
threadOf?:
|
|
1295
|
-
relation?:
|
|
1446
|
+
threadOf?: string;
|
|
1447
|
+
relation?: `${string}::${string}.${string}`;
|
|
1296
1448
|
}, "relation">>): Promise<{
|
|
1297
1449
|
id?: number;
|
|
1298
1450
|
documentId?: string;
|
|
@@ -1311,7 +1463,10 @@ declare const controllers: {
|
|
|
1311
1463
|
authorName?: string;
|
|
1312
1464
|
authorEmail?: string;
|
|
1313
1465
|
authorAvatar?: string;
|
|
1314
|
-
authorUser?: string
|
|
1466
|
+
authorUser?: string | {
|
|
1467
|
+
id?: number;
|
|
1468
|
+
email?: string;
|
|
1469
|
+
};
|
|
1315
1470
|
locale?: string;
|
|
1316
1471
|
gotThread?: boolean;
|
|
1317
1472
|
threadFirstItemId?: number;
|
|
@@ -1345,7 +1500,10 @@ declare const controllers: {
|
|
|
1345
1500
|
authorName?: string;
|
|
1346
1501
|
authorEmail?: string;
|
|
1347
1502
|
authorAvatar?: string;
|
|
1348
|
-
authorUser?: string
|
|
1503
|
+
authorUser?: string | {
|
|
1504
|
+
id?: number;
|
|
1505
|
+
email?: string;
|
|
1506
|
+
};
|
|
1349
1507
|
locale?: string;
|
|
1350
1508
|
gotThread?: boolean;
|
|
1351
1509
|
threadFirstItemId?: number;
|
|
@@ -1363,44 +1521,20 @@ declare const controllers: {
|
|
|
1363
1521
|
author?: any;
|
|
1364
1522
|
};
|
|
1365
1523
|
}>;
|
|
1366
|
-
findAllFlat(ctx: import("../@types
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
} | {
|
|
1381
|
-
$lt?: string;
|
|
1382
|
-
} | {
|
|
1383
|
-
$lte?: string;
|
|
1384
|
-
} | {
|
|
1385
|
-
$startsWith?: string;
|
|
1386
|
-
} | {
|
|
1387
|
-
$startsWithi?: string;
|
|
1388
|
-
} | {
|
|
1389
|
-
$endsWith?: string;
|
|
1390
|
-
} | {
|
|
1391
|
-
$endsWithi?: string;
|
|
1392
|
-
} | {
|
|
1393
|
-
$contains?: string;
|
|
1394
|
-
} | {
|
|
1395
|
-
$containsi?: string;
|
|
1396
|
-
} | {
|
|
1397
|
-
$notContains?: string;
|
|
1398
|
-
} | {
|
|
1399
|
-
$notContainsi?: string;
|
|
1400
|
-
} | {
|
|
1401
|
-
$notNull?: boolean;
|
|
1402
|
-
}>[];
|
|
1403
|
-
$or?: Record<string, string | number | {
|
|
1524
|
+
findAllFlat(ctx: import("../@types").RequestContext<object, Pick<{
|
|
1525
|
+
sort?: string;
|
|
1526
|
+
locale?: string;
|
|
1527
|
+
pagination?: {
|
|
1528
|
+
page?: number;
|
|
1529
|
+
pageSize?: number;
|
|
1530
|
+
withCount?: boolean;
|
|
1531
|
+
};
|
|
1532
|
+
relation?: `${string}::${string}.${string}`;
|
|
1533
|
+
populate?: Record<string, boolean | {
|
|
1534
|
+
populate?: boolean;
|
|
1535
|
+
}>;
|
|
1536
|
+
filters?: {
|
|
1537
|
+
id?: string | number | {
|
|
1404
1538
|
$eq?: string;
|
|
1405
1539
|
} | {
|
|
1406
1540
|
$eqi?: string;
|
|
@@ -1434,10 +1568,7 @@ declare const controllers: {
|
|
|
1434
1568
|
$notContainsi?: string;
|
|
1435
1569
|
} | {
|
|
1436
1570
|
$notNull?: boolean;
|
|
1437
|
-
}
|
|
1438
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
1439
|
-
sort?: string;
|
|
1440
|
-
filter?: {
|
|
1571
|
+
};
|
|
1441
1572
|
content?: string | number | {
|
|
1442
1573
|
$eq?: string;
|
|
1443
1574
|
} | {
|
|
@@ -1579,15 +1710,6 @@ declare const controllers: {
|
|
|
1579
1710
|
$notNull?: boolean;
|
|
1580
1711
|
};
|
|
1581
1712
|
};
|
|
1582
|
-
pagination?: {
|
|
1583
|
-
page?: number;
|
|
1584
|
-
pageSize?: number;
|
|
1585
|
-
withCount?: boolean;
|
|
1586
|
-
};
|
|
1587
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
1588
|
-
populate?: Record<string, boolean | {
|
|
1589
|
-
populate?: boolean;
|
|
1590
|
-
}>;
|
|
1591
1713
|
limit?: number;
|
|
1592
1714
|
fields?: string[];
|
|
1593
1715
|
omit?: string[];
|
|
@@ -1612,7 +1734,10 @@ declare const controllers: {
|
|
|
1612
1734
|
authorName?: string;
|
|
1613
1735
|
authorEmail?: string;
|
|
1614
1736
|
authorAvatar?: string;
|
|
1615
|
-
authorUser?: string
|
|
1737
|
+
authorUser?: string | {
|
|
1738
|
+
id?: number;
|
|
1739
|
+
email?: string;
|
|
1740
|
+
};
|
|
1616
1741
|
locale?: string;
|
|
1617
1742
|
gotThread?: boolean;
|
|
1618
1743
|
threadFirstItemId?: number;
|
|
@@ -1646,7 +1771,10 @@ declare const controllers: {
|
|
|
1646
1771
|
authorName?: string;
|
|
1647
1772
|
authorEmail?: string;
|
|
1648
1773
|
authorAvatar?: string;
|
|
1649
|
-
authorUser?: string
|
|
1774
|
+
authorUser?: string | {
|
|
1775
|
+
id?: number;
|
|
1776
|
+
email?: string;
|
|
1777
|
+
};
|
|
1650
1778
|
locale?: string;
|
|
1651
1779
|
gotThread?: boolean;
|
|
1652
1780
|
threadFirstItemId?: number;
|
|
@@ -1675,6 +1803,8 @@ declare const controllers: {
|
|
|
1675
1803
|
approvalStatus?: string;
|
|
1676
1804
|
related?: {
|
|
1677
1805
|
id?: number;
|
|
1806
|
+
documentId?: string;
|
|
1807
|
+
locale?: string;
|
|
1678
1808
|
uid?: string;
|
|
1679
1809
|
requireCommentsApproval?: boolean;
|
|
1680
1810
|
};
|
|
@@ -1685,7 +1815,10 @@ declare const controllers: {
|
|
|
1685
1815
|
authorName?: string;
|
|
1686
1816
|
authorEmail?: string;
|
|
1687
1817
|
authorAvatar?: string;
|
|
1688
|
-
authorUser?: string
|
|
1818
|
+
authorUser?: string | {
|
|
1819
|
+
id?: number;
|
|
1820
|
+
email?: string;
|
|
1821
|
+
};
|
|
1689
1822
|
locale?: string;
|
|
1690
1823
|
gotThread?: boolean;
|
|
1691
1824
|
threadFirstItemId?: number;
|
|
@@ -1719,7 +1852,10 @@ declare const controllers: {
|
|
|
1719
1852
|
authorName?: string;
|
|
1720
1853
|
authorEmail?: string;
|
|
1721
1854
|
authorAvatar?: string;
|
|
1722
|
-
authorUser?: string
|
|
1855
|
+
authorUser?: string | {
|
|
1856
|
+
id?: number;
|
|
1857
|
+
email?: string;
|
|
1858
|
+
};
|
|
1723
1859
|
locale?: string;
|
|
1724
1860
|
gotThread?: boolean;
|
|
1725
1861
|
threadFirstItemId?: number;
|
|
@@ -1744,44 +1880,15 @@ declare const controllers: {
|
|
|
1744
1880
|
total?: number;
|
|
1745
1881
|
};
|
|
1746
1882
|
}>;
|
|
1747
|
-
findAllInHierarchy(ctx: import("../@types
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
$nei?: string;
|
|
1757
|
-
} | {
|
|
1758
|
-
$gt?: string;
|
|
1759
|
-
} | {
|
|
1760
|
-
$gte?: string;
|
|
1761
|
-
} | {
|
|
1762
|
-
$lt?: string;
|
|
1763
|
-
} | {
|
|
1764
|
-
$lte?: string;
|
|
1765
|
-
} | {
|
|
1766
|
-
$startsWith?: string;
|
|
1767
|
-
} | {
|
|
1768
|
-
$startsWithi?: string;
|
|
1769
|
-
} | {
|
|
1770
|
-
$endsWith?: string;
|
|
1771
|
-
} | {
|
|
1772
|
-
$endsWithi?: string;
|
|
1773
|
-
} | {
|
|
1774
|
-
$contains?: string;
|
|
1775
|
-
} | {
|
|
1776
|
-
$containsi?: string;
|
|
1777
|
-
} | {
|
|
1778
|
-
$notContains?: string;
|
|
1779
|
-
} | {
|
|
1780
|
-
$notContainsi?: string;
|
|
1781
|
-
} | {
|
|
1782
|
-
$notNull?: boolean;
|
|
1783
|
-
}>[];
|
|
1784
|
-
$or?: Record<string, string | number | {
|
|
1883
|
+
findAllInHierarchy(ctx: import("../@types").RequestContext<object, Pick<{
|
|
1884
|
+
sort?: string;
|
|
1885
|
+
locale?: string;
|
|
1886
|
+
relation?: `${string}::${string}.${string}`;
|
|
1887
|
+
populate?: Record<string, boolean | {
|
|
1888
|
+
populate?: boolean;
|
|
1889
|
+
}>;
|
|
1890
|
+
filters?: {
|
|
1891
|
+
id?: string | number | {
|
|
1785
1892
|
$eq?: string;
|
|
1786
1893
|
} | {
|
|
1787
1894
|
$eqi?: string;
|
|
@@ -1815,10 +1922,7 @@ declare const controllers: {
|
|
|
1815
1922
|
$notContainsi?: string;
|
|
1816
1923
|
} | {
|
|
1817
1924
|
$notNull?: boolean;
|
|
1818
|
-
}
|
|
1819
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
1820
|
-
sort?: string;
|
|
1821
|
-
filter?: {
|
|
1925
|
+
};
|
|
1822
1926
|
content?: string | number | {
|
|
1823
1927
|
$eq?: string;
|
|
1824
1928
|
} | {
|
|
@@ -1960,10 +2064,6 @@ declare const controllers: {
|
|
|
1960
2064
|
$notNull?: boolean;
|
|
1961
2065
|
};
|
|
1962
2066
|
};
|
|
1963
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
1964
|
-
populate?: Record<string, boolean | {
|
|
1965
|
-
populate?: boolean;
|
|
1966
|
-
}>;
|
|
1967
2067
|
limit?: number;
|
|
1968
2068
|
fields?: string[];
|
|
1969
2069
|
omit?: string[];
|
|
@@ -1989,7 +2089,10 @@ declare const controllers: {
|
|
|
1989
2089
|
authorName?: string;
|
|
1990
2090
|
authorEmail?: string;
|
|
1991
2091
|
authorAvatar?: string;
|
|
1992
|
-
authorUser?: string
|
|
2092
|
+
authorUser?: string | {
|
|
2093
|
+
id?: number;
|
|
2094
|
+
email?: string;
|
|
2095
|
+
};
|
|
1993
2096
|
locale?: string;
|
|
1994
2097
|
gotThread?: boolean;
|
|
1995
2098
|
threadFirstItemId?: number;
|
|
@@ -2023,7 +2126,10 @@ declare const controllers: {
|
|
|
2023
2126
|
authorName?: string;
|
|
2024
2127
|
authorEmail?: string;
|
|
2025
2128
|
authorAvatar?: string;
|
|
2026
|
-
authorUser?: string
|
|
2129
|
+
authorUser?: string | {
|
|
2130
|
+
id?: number;
|
|
2131
|
+
email?: string;
|
|
2132
|
+
};
|
|
2027
2133
|
locale?: string;
|
|
2028
2134
|
gotThread?: boolean;
|
|
2029
2135
|
threadFirstItemId?: number;
|
|
@@ -2041,9 +2147,21 @@ declare const controllers: {
|
|
|
2041
2147
|
author?: any;
|
|
2042
2148
|
};
|
|
2043
2149
|
}[]>;
|
|
2044
|
-
findAllPerAuthor(ctx: import("../@types
|
|
2045
|
-
|
|
2046
|
-
|
|
2150
|
+
findAllPerAuthor(ctx: import("../@types").RequestContext<object, Pick<{
|
|
2151
|
+
type?: string;
|
|
2152
|
+
sort?: string;
|
|
2153
|
+
authorId?: string | number;
|
|
2154
|
+
locale?: string;
|
|
2155
|
+
pagination?: {
|
|
2156
|
+
page?: number;
|
|
2157
|
+
pageSize?: number;
|
|
2158
|
+
withCount?: boolean;
|
|
2159
|
+
};
|
|
2160
|
+
populate?: Record<string, boolean | {
|
|
2161
|
+
populate?: boolean;
|
|
2162
|
+
}>;
|
|
2163
|
+
filters?: {
|
|
2164
|
+
id?: string | number | {
|
|
2047
2165
|
$eq?: string;
|
|
2048
2166
|
} | {
|
|
2049
2167
|
$eqi?: string;
|
|
@@ -2077,8 +2195,8 @@ declare const controllers: {
|
|
|
2077
2195
|
$notContainsi?: string;
|
|
2078
2196
|
} | {
|
|
2079
2197
|
$notNull?: boolean;
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2198
|
+
};
|
|
2199
|
+
content?: string | number | {
|
|
2082
2200
|
$eq?: string;
|
|
2083
2201
|
} | {
|
|
2084
2202
|
$eqi?: string;
|
|
@@ -2112,19 +2230,113 @@ declare const controllers: {
|
|
|
2112
2230
|
$notContainsi?: string;
|
|
2113
2231
|
} | {
|
|
2114
2232
|
$notNull?: boolean;
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2233
|
+
};
|
|
2234
|
+
createdAt?: string | number | {
|
|
2235
|
+
$eq?: string;
|
|
2236
|
+
} | {
|
|
2237
|
+
$eqi?: string;
|
|
2238
|
+
} | {
|
|
2239
|
+
$ne?: string;
|
|
2240
|
+
} | {
|
|
2241
|
+
$nei?: string;
|
|
2242
|
+
} | {
|
|
2243
|
+
$gt?: string;
|
|
2244
|
+
} | {
|
|
2245
|
+
$gte?: string;
|
|
2246
|
+
} | {
|
|
2247
|
+
$lt?: string;
|
|
2248
|
+
} | {
|
|
2249
|
+
$lte?: string;
|
|
2250
|
+
} | {
|
|
2251
|
+
$startsWith?: string;
|
|
2252
|
+
} | {
|
|
2253
|
+
$startsWithi?: string;
|
|
2254
|
+
} | {
|
|
2255
|
+
$endsWith?: string;
|
|
2256
|
+
} | {
|
|
2257
|
+
$endsWithi?: string;
|
|
2258
|
+
} | {
|
|
2259
|
+
$contains?: string;
|
|
2260
|
+
} | {
|
|
2261
|
+
$containsi?: string;
|
|
2262
|
+
} | {
|
|
2263
|
+
$notContains?: string;
|
|
2264
|
+
} | {
|
|
2265
|
+
$notContainsi?: string;
|
|
2266
|
+
} | {
|
|
2267
|
+
$notNull?: boolean;
|
|
2268
|
+
};
|
|
2269
|
+
updatedAt?: string | number | {
|
|
2270
|
+
$eq?: string;
|
|
2271
|
+
} | {
|
|
2272
|
+
$eqi?: string;
|
|
2273
|
+
} | {
|
|
2274
|
+
$ne?: string;
|
|
2275
|
+
} | {
|
|
2276
|
+
$nei?: string;
|
|
2277
|
+
} | {
|
|
2278
|
+
$gt?: string;
|
|
2279
|
+
} | {
|
|
2280
|
+
$gte?: string;
|
|
2281
|
+
} | {
|
|
2282
|
+
$lt?: string;
|
|
2283
|
+
} | {
|
|
2284
|
+
$lte?: string;
|
|
2285
|
+
} | {
|
|
2286
|
+
$startsWith?: string;
|
|
2287
|
+
} | {
|
|
2288
|
+
$startsWithi?: string;
|
|
2289
|
+
} | {
|
|
2290
|
+
$endsWith?: string;
|
|
2291
|
+
} | {
|
|
2292
|
+
$endsWithi?: string;
|
|
2293
|
+
} | {
|
|
2294
|
+
$contains?: string;
|
|
2295
|
+
} | {
|
|
2296
|
+
$containsi?: string;
|
|
2297
|
+
} | {
|
|
2298
|
+
$notContains?: string;
|
|
2299
|
+
} | {
|
|
2300
|
+
$notContainsi?: string;
|
|
2301
|
+
} | {
|
|
2302
|
+
$notNull?: boolean;
|
|
2303
|
+
};
|
|
2304
|
+
authorName?: string | number | {
|
|
2305
|
+
$eq?: string;
|
|
2306
|
+
} | {
|
|
2307
|
+
$eqi?: string;
|
|
2308
|
+
} | {
|
|
2309
|
+
$ne?: string;
|
|
2310
|
+
} | {
|
|
2311
|
+
$nei?: string;
|
|
2312
|
+
} | {
|
|
2313
|
+
$gt?: string;
|
|
2314
|
+
} | {
|
|
2315
|
+
$gte?: string;
|
|
2316
|
+
} | {
|
|
2317
|
+
$lt?: string;
|
|
2318
|
+
} | {
|
|
2319
|
+
$lte?: string;
|
|
2320
|
+
} | {
|
|
2321
|
+
$startsWith?: string;
|
|
2322
|
+
} | {
|
|
2323
|
+
$startsWithi?: string;
|
|
2324
|
+
} | {
|
|
2325
|
+
$endsWith?: string;
|
|
2326
|
+
} | {
|
|
2327
|
+
$endsWithi?: string;
|
|
2328
|
+
} | {
|
|
2329
|
+
$contains?: string;
|
|
2330
|
+
} | {
|
|
2331
|
+
$containsi?: string;
|
|
2332
|
+
} | {
|
|
2333
|
+
$notContains?: string;
|
|
2334
|
+
} | {
|
|
2335
|
+
$notContainsi?: string;
|
|
2336
|
+
} | {
|
|
2337
|
+
$notNull?: boolean;
|
|
2338
|
+
};
|
|
2124
2339
|
};
|
|
2125
|
-
populate?: Record<string, boolean | {
|
|
2126
|
-
populate?: boolean;
|
|
2127
|
-
}>;
|
|
2128
2340
|
limit?: number;
|
|
2129
2341
|
fields?: string[];
|
|
2130
2342
|
omit?: string[];
|
|
@@ -2149,7 +2361,10 @@ declare const controllers: {
|
|
|
2149
2361
|
authorName?: string;
|
|
2150
2362
|
authorEmail?: string;
|
|
2151
2363
|
authorAvatar?: string;
|
|
2152
|
-
authorUser?: string
|
|
2364
|
+
authorUser?: string | {
|
|
2365
|
+
id?: number;
|
|
2366
|
+
email?: string;
|
|
2367
|
+
};
|
|
2153
2368
|
locale?: string;
|
|
2154
2369
|
gotThread?: boolean;
|
|
2155
2370
|
threadFirstItemId?: number;
|
|
@@ -2182,7 +2397,10 @@ declare const controllers: {
|
|
|
2182
2397
|
authorName?: string;
|
|
2183
2398
|
authorEmail?: string;
|
|
2184
2399
|
authorAvatar?: string;
|
|
2185
|
-
authorUser?: string
|
|
2400
|
+
authorUser?: string | {
|
|
2401
|
+
id?: number;
|
|
2402
|
+
email?: string;
|
|
2403
|
+
};
|
|
2186
2404
|
locale?: string;
|
|
2187
2405
|
gotThread?: boolean;
|
|
2188
2406
|
threadFirstItemId?: number;
|
|
@@ -2211,6 +2429,8 @@ declare const controllers: {
|
|
|
2211
2429
|
approvalStatus?: string;
|
|
2212
2430
|
related?: {
|
|
2213
2431
|
id?: number;
|
|
2432
|
+
documentId?: string;
|
|
2433
|
+
locale?: string;
|
|
2214
2434
|
uid?: string;
|
|
2215
2435
|
requireCommentsApproval?: boolean;
|
|
2216
2436
|
};
|
|
@@ -2221,7 +2441,10 @@ declare const controllers: {
|
|
|
2221
2441
|
authorName?: string;
|
|
2222
2442
|
authorEmail?: string;
|
|
2223
2443
|
authorAvatar?: string;
|
|
2224
|
-
authorUser?: string
|
|
2444
|
+
authorUser?: string | {
|
|
2445
|
+
id?: number;
|
|
2446
|
+
email?: string;
|
|
2447
|
+
};
|
|
2225
2448
|
locale?: string;
|
|
2226
2449
|
gotThread?: boolean;
|
|
2227
2450
|
threadFirstItemId?: number;
|
|
@@ -2254,7 +2477,10 @@ declare const controllers: {
|
|
|
2254
2477
|
authorName?: string;
|
|
2255
2478
|
authorEmail?: string;
|
|
2256
2479
|
authorAvatar?: string;
|
|
2257
|
-
authorUser?: string
|
|
2480
|
+
authorUser?: string | {
|
|
2481
|
+
id?: number;
|
|
2482
|
+
email?: string;
|
|
2483
|
+
};
|
|
2258
2484
|
locale?: string;
|
|
2259
2485
|
gotThread?: boolean;
|
|
2260
2486
|
threadFirstItemId?: number;
|
|
@@ -2279,7 +2505,7 @@ declare const controllers: {
|
|
|
2279
2505
|
total?: number;
|
|
2280
2506
|
};
|
|
2281
2507
|
}>;
|
|
2282
|
-
put(ctx: import("../@types
|
|
2508
|
+
put(ctx: import("../@types").RequestContext): Promise<{
|
|
2283
2509
|
id?: number;
|
|
2284
2510
|
documentId?: string;
|
|
2285
2511
|
content?: string;
|
|
@@ -2297,7 +2523,10 @@ declare const controllers: {
|
|
|
2297
2523
|
authorName?: string;
|
|
2298
2524
|
authorEmail?: string;
|
|
2299
2525
|
authorAvatar?: string;
|
|
2300
|
-
authorUser?: string
|
|
2526
|
+
authorUser?: string | {
|
|
2527
|
+
id?: number;
|
|
2528
|
+
email?: string;
|
|
2529
|
+
};
|
|
2301
2530
|
locale?: string;
|
|
2302
2531
|
gotThread?: boolean;
|
|
2303
2532
|
threadFirstItemId?: number;
|
|
@@ -2331,7 +2560,10 @@ declare const controllers: {
|
|
|
2331
2560
|
authorName?: string;
|
|
2332
2561
|
authorEmail?: string;
|
|
2333
2562
|
authorAvatar?: string;
|
|
2334
|
-
authorUser?: string
|
|
2563
|
+
authorUser?: string | {
|
|
2564
|
+
id?: number;
|
|
2565
|
+
email?: string;
|
|
2566
|
+
};
|
|
2335
2567
|
locale?: string;
|
|
2336
2568
|
gotThread?: boolean;
|
|
2337
2569
|
threadFirstItemId?: number;
|
|
@@ -2349,7 +2581,7 @@ declare const controllers: {
|
|
|
2349
2581
|
author?: any;
|
|
2350
2582
|
};
|
|
2351
2583
|
}>;
|
|
2352
|
-
reportAbuse(ctx: import("../@types
|
|
2584
|
+
reportAbuse(ctx: import("../@types").RequestContext): Promise<{
|
|
2353
2585
|
related: {
|
|
2354
2586
|
id?: number;
|
|
2355
2587
|
documentId?: string;
|
|
@@ -2368,7 +2600,10 @@ declare const controllers: {
|
|
|
2368
2600
|
authorName?: string;
|
|
2369
2601
|
authorEmail?: string;
|
|
2370
2602
|
authorAvatar?: string;
|
|
2371
|
-
authorUser?: string
|
|
2603
|
+
authorUser?: string | {
|
|
2604
|
+
id?: number;
|
|
2605
|
+
email?: string;
|
|
2606
|
+
};
|
|
2372
2607
|
locale?: string;
|
|
2373
2608
|
gotThread?: boolean;
|
|
2374
2609
|
threadFirstItemId?: number;
|
|
@@ -2402,7 +2637,10 @@ declare const controllers: {
|
|
|
2402
2637
|
authorName?: string;
|
|
2403
2638
|
authorEmail?: string;
|
|
2404
2639
|
authorAvatar?: string;
|
|
2405
|
-
authorUser?: string
|
|
2640
|
+
authorUser?: string | {
|
|
2641
|
+
id?: number;
|
|
2642
|
+
email?: string;
|
|
2643
|
+
};
|
|
2406
2644
|
locale?: string;
|
|
2407
2645
|
gotThread?: boolean;
|
|
2408
2646
|
threadFirstItemId?: number;
|
|
@@ -2430,7 +2668,7 @@ declare const controllers: {
|
|
|
2430
2668
|
reason?: string;
|
|
2431
2669
|
resolved?: boolean;
|
|
2432
2670
|
}>;
|
|
2433
|
-
removeComment(ctx: import("../@types
|
|
2671
|
+
removeComment(ctx: import("../@types").RequestContext): Promise<{
|
|
2434
2672
|
id?: number;
|
|
2435
2673
|
documentId?: string;
|
|
2436
2674
|
content?: string;
|
|
@@ -2448,7 +2686,10 @@ declare const controllers: {
|
|
|
2448
2686
|
authorName?: string;
|
|
2449
2687
|
authorEmail?: string;
|
|
2450
2688
|
authorAvatar?: string;
|
|
2451
|
-
authorUser?: string
|
|
2689
|
+
authorUser?: string | {
|
|
2690
|
+
id?: number;
|
|
2691
|
+
email?: string;
|
|
2692
|
+
};
|
|
2452
2693
|
locale?: string;
|
|
2453
2694
|
gotThread?: boolean;
|
|
2454
2695
|
threadFirstItemId?: number;
|
|
@@ -2482,7 +2723,10 @@ declare const controllers: {
|
|
|
2482
2723
|
authorName?: string;
|
|
2483
2724
|
authorEmail?: string;
|
|
2484
2725
|
authorAvatar?: string;
|
|
2485
|
-
authorUser?: string
|
|
2726
|
+
authorUser?: string | {
|
|
2727
|
+
id?: number;
|
|
2728
|
+
email?: string;
|
|
2729
|
+
};
|
|
2486
2730
|
locale?: string;
|
|
2487
2731
|
gotThread?: boolean;
|
|
2488
2732
|
threadFirstItemId?: number;
|
|
@@ -2501,8 +2745,8 @@ declare const controllers: {
|
|
|
2501
2745
|
};
|
|
2502
2746
|
}>;
|
|
2503
2747
|
};
|
|
2504
|
-
settings: ({ strapi }: import("../@types
|
|
2505
|
-
get(ctx: import("../@types
|
|
2748
|
+
settings: ({ strapi }: import("../@types").StrapiContext) => {
|
|
2749
|
+
get(ctx: import("../@types").RequestContext): Promise<{
|
|
2506
2750
|
enabledCollections?: string[];
|
|
2507
2751
|
approvalFlow?: string[];
|
|
2508
2752
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2516,6 +2760,13 @@ declare const controllers: {
|
|
|
2516
2760
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2517
2761
|
};
|
|
2518
2762
|
isGQLPluginEnabled?: boolean;
|
|
2763
|
+
gql?: {
|
|
2764
|
+
auth?: boolean;
|
|
2765
|
+
};
|
|
2766
|
+
client?: {
|
|
2767
|
+
url?: string;
|
|
2768
|
+
contactEmail?: string;
|
|
2769
|
+
};
|
|
2519
2770
|
} | Omit<{
|
|
2520
2771
|
enabledCollections?: string[];
|
|
2521
2772
|
approvalFlow?: string[];
|
|
@@ -2530,8 +2781,15 @@ declare const controllers: {
|
|
|
2530
2781
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2531
2782
|
};
|
|
2532
2783
|
isGQLPluginEnabled?: boolean;
|
|
2784
|
+
gql?: {
|
|
2785
|
+
auth?: boolean;
|
|
2786
|
+
};
|
|
2787
|
+
client?: {
|
|
2788
|
+
url?: string;
|
|
2789
|
+
contactEmail?: string;
|
|
2790
|
+
};
|
|
2533
2791
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2534
|
-
getForSettingsPage(ctx: import("../@types
|
|
2792
|
+
getForSettingsPage(ctx: import("../@types").RequestContext): Promise<{
|
|
2535
2793
|
enabledCollections?: string[];
|
|
2536
2794
|
approvalFlow?: string[];
|
|
2537
2795
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2545,6 +2803,13 @@ declare const controllers: {
|
|
|
2545
2803
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2546
2804
|
};
|
|
2547
2805
|
isGQLPluginEnabled?: boolean;
|
|
2806
|
+
gql?: {
|
|
2807
|
+
auth?: boolean;
|
|
2808
|
+
};
|
|
2809
|
+
client?: {
|
|
2810
|
+
url?: string;
|
|
2811
|
+
contactEmail?: string;
|
|
2812
|
+
};
|
|
2548
2813
|
} | Omit<{
|
|
2549
2814
|
enabledCollections?: string[];
|
|
2550
2815
|
approvalFlow?: string[];
|
|
@@ -2559,8 +2824,15 @@ declare const controllers: {
|
|
|
2559
2824
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2560
2825
|
};
|
|
2561
2826
|
isGQLPluginEnabled?: boolean;
|
|
2827
|
+
gql?: {
|
|
2828
|
+
auth?: boolean;
|
|
2829
|
+
};
|
|
2830
|
+
client?: {
|
|
2831
|
+
url?: string;
|
|
2832
|
+
contactEmail?: string;
|
|
2833
|
+
};
|
|
2562
2834
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2563
|
-
update(ctx: import("../@types
|
|
2835
|
+
update(ctx: import("../@types").RequestContext<{
|
|
2564
2836
|
enabledCollections?: string[];
|
|
2565
2837
|
approvalFlow?: string[];
|
|
2566
2838
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2574,6 +2846,13 @@ declare const controllers: {
|
|
|
2574
2846
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2575
2847
|
};
|
|
2576
2848
|
isGQLPluginEnabled?: boolean;
|
|
2849
|
+
gql?: {
|
|
2850
|
+
auth?: boolean;
|
|
2851
|
+
};
|
|
2852
|
+
client?: {
|
|
2853
|
+
url?: string;
|
|
2854
|
+
contactEmail?: string;
|
|
2855
|
+
};
|
|
2577
2856
|
}>): Promise<{
|
|
2578
2857
|
enabledCollections?: string[];
|
|
2579
2858
|
approvalFlow?: string[];
|
|
@@ -2588,6 +2867,13 @@ declare const controllers: {
|
|
|
2588
2867
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2589
2868
|
};
|
|
2590
2869
|
isGQLPluginEnabled?: boolean;
|
|
2870
|
+
gql?: {
|
|
2871
|
+
auth?: boolean;
|
|
2872
|
+
};
|
|
2873
|
+
client?: {
|
|
2874
|
+
url?: string;
|
|
2875
|
+
contactEmail?: string;
|
|
2876
|
+
};
|
|
2591
2877
|
} | Omit<{
|
|
2592
2878
|
enabledCollections?: string[];
|
|
2593
2879
|
approvalFlow?: string[];
|
|
@@ -2602,8 +2888,15 @@ declare const controllers: {
|
|
|
2602
2888
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2603
2889
|
};
|
|
2604
2890
|
isGQLPluginEnabled?: boolean;
|
|
2891
|
+
gql?: {
|
|
2892
|
+
auth?: boolean;
|
|
2893
|
+
};
|
|
2894
|
+
client?: {
|
|
2895
|
+
url?: string;
|
|
2896
|
+
contactEmail?: string;
|
|
2897
|
+
};
|
|
2605
2898
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2606
|
-
restore(ctx: import("../@types
|
|
2899
|
+
restore(ctx: import("../@types").RequestContext): Promise<{
|
|
2607
2900
|
enabledCollections?: string[];
|
|
2608
2901
|
approvalFlow?: string[];
|
|
2609
2902
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2617,6 +2910,13 @@ declare const controllers: {
|
|
|
2617
2910
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2618
2911
|
};
|
|
2619
2912
|
isGQLPluginEnabled?: boolean;
|
|
2913
|
+
gql?: {
|
|
2914
|
+
auth?: boolean;
|
|
2915
|
+
};
|
|
2916
|
+
client?: {
|
|
2917
|
+
url?: string;
|
|
2918
|
+
contactEmail?: string;
|
|
2919
|
+
};
|
|
2620
2920
|
} | Omit<{
|
|
2621
2921
|
enabledCollections?: string[];
|
|
2622
2922
|
approvalFlow?: string[];
|
|
@@ -2631,8 +2931,15 @@ declare const controllers: {
|
|
|
2631
2931
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2632
2932
|
};
|
|
2633
2933
|
isGQLPluginEnabled?: boolean;
|
|
2934
|
+
gql?: {
|
|
2935
|
+
auth?: boolean;
|
|
2936
|
+
};
|
|
2937
|
+
client?: {
|
|
2938
|
+
url?: string;
|
|
2939
|
+
contactEmail?: string;
|
|
2940
|
+
};
|
|
2634
2941
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2635
|
-
restart(ctx: import("../@types
|
|
2942
|
+
restart(ctx: import("../@types").RequestContext): Promise<any>;
|
|
2636
2943
|
};
|
|
2637
2944
|
};
|
|
2638
2945
|
export type PluginControllers = {
|