strapi-plugin-comments 3.0.0-beta.1 → 3.0.1
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-D3iNqWZT.mjs → index-BC5Odn17.mjs} +5 -5
- package/dist/_chunks/{index-BBcsmSTs.mjs → index-BIorFYba.mjs} +448 -256
- package/dist/_chunks/{index-Bcck91A8.js → index-COoWcAcA.js} +1290 -1144
- package/dist/_chunks/{index-CY_AVWS-.js → index-Ccb93U47.js} +445 -253
- package/dist/_chunks/{index-D9MOkoQ2.mjs → index-D1DAMkhj.mjs} +20 -26
- package/dist/_chunks/{index-BFPteXuP.js → index-R1krliyC.js} +5 -5
- package/dist/_chunks/{index-DJ32APz-.mjs → index-_exHAK6u.mjs} +1290 -1144
- package/dist/_chunks/{index-BXEk5PWx.js → index-k7z0V0lj.js} +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 +212 -157
- package/dist/server/index.mjs +212 -157
- 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 +121 -24
- package/dist/server/src/controllers/index.d.ts +300 -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 +931 -315
- 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 +178 -67
- 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 +615 -223
- 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 +16 -9
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
- package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +18 -12
- /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const pluginServices: {
|
|
2
|
-
admin: ({ strapi }: import("../@types
|
|
2
|
+
admin: ({ strapi }: import("../@types").StrapiContext) => {
|
|
3
3
|
getCommonService(): {
|
|
4
|
-
getConfig<T extends
|
|
4
|
+
getConfig<T extends string>(prop?: T, defaultValue?: import("../@types").PathValue<{
|
|
5
5
|
enabledCollections?: string[];
|
|
6
6
|
approvalFlow?: string[];
|
|
7
7
|
entryLabel?: Record<string, string[]>;
|
|
@@ -18,24 +18,11 @@ declare const pluginServices: {
|
|
|
18
18
|
gql?: {
|
|
19
19
|
auth?: boolean;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
entryLabel?: Record<string, string[]>;
|
|
25
|
-
moderatorRoles?: string[];
|
|
26
|
-
badWords?: boolean;
|
|
27
|
-
blockedAuthorProps?: string[];
|
|
28
|
-
isValidationEnabled?: boolean;
|
|
29
|
-
reportReasons?: {
|
|
30
|
-
BAD_LANGUAGE?: import("../const").REPORT_REASON.BAD_LANGUAGE;
|
|
31
|
-
DISCRIMINATION?: import("../const").REPORT_REASON.DISCRIMINATION;
|
|
32
|
-
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
21
|
+
client?: {
|
|
22
|
+
url?: string;
|
|
23
|
+
contactEmail?: string;
|
|
33
24
|
};
|
|
34
|
-
|
|
35
|
-
gql?: {
|
|
36
|
-
auth?: boolean;
|
|
37
|
-
};
|
|
38
|
-
}[T] : {
|
|
25
|
+
}, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
|
|
39
26
|
enabledCollections?: string[];
|
|
40
27
|
approvalFlow?: string[];
|
|
41
28
|
entryLabel?: Record<string, string[]>;
|
|
@@ -52,7 +39,11 @@ declare const pluginServices: {
|
|
|
52
39
|
gql?: {
|
|
53
40
|
auth?: boolean;
|
|
54
41
|
};
|
|
55
|
-
|
|
42
|
+
client?: {
|
|
43
|
+
url?: string;
|
|
44
|
+
contactEmail?: string;
|
|
45
|
+
};
|
|
46
|
+
}, T>>;
|
|
56
47
|
parseRelationString(relation: string): {
|
|
57
48
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
58
49
|
relatedId: string;
|
|
@@ -78,7 +69,10 @@ declare const pluginServices: {
|
|
|
78
69
|
authorName?: string;
|
|
79
70
|
authorEmail?: string;
|
|
80
71
|
authorAvatar?: string;
|
|
81
|
-
authorUser?: string
|
|
72
|
+
authorUser?: string | {
|
|
73
|
+
id?: number;
|
|
74
|
+
email?: string;
|
|
75
|
+
};
|
|
82
76
|
locale?: string;
|
|
83
77
|
gotThread?: boolean;
|
|
84
78
|
threadFirstItemId?: number;
|
|
@@ -112,7 +106,10 @@ declare const pluginServices: {
|
|
|
112
106
|
authorName?: string;
|
|
113
107
|
authorEmail?: string;
|
|
114
108
|
authorAvatar?: string;
|
|
115
|
-
authorUser?: string
|
|
109
|
+
authorUser?: string | {
|
|
110
|
+
id?: number;
|
|
111
|
+
email?: string;
|
|
112
|
+
};
|
|
116
113
|
locale?: string;
|
|
117
114
|
gotThread?: boolean;
|
|
118
115
|
threadFirstItemId?: number;
|
|
@@ -153,7 +150,10 @@ declare const pluginServices: {
|
|
|
153
150
|
authorName?: string;
|
|
154
151
|
authorEmail?: string;
|
|
155
152
|
authorAvatar?: string;
|
|
156
|
-
authorUser?: string
|
|
153
|
+
authorUser?: string | {
|
|
154
|
+
id?: number;
|
|
155
|
+
email?: string;
|
|
156
|
+
};
|
|
157
157
|
locale?: string;
|
|
158
158
|
gotThread?: boolean;
|
|
159
159
|
threadFirstItemId?: number;
|
|
@@ -187,7 +187,10 @@ declare const pluginServices: {
|
|
|
187
187
|
authorName?: string;
|
|
188
188
|
authorEmail?: string;
|
|
189
189
|
authorAvatar?: string;
|
|
190
|
-
authorUser?: string
|
|
190
|
+
authorUser?: string | {
|
|
191
|
+
id?: number;
|
|
192
|
+
email?: string;
|
|
193
|
+
};
|
|
191
194
|
locale?: string;
|
|
192
195
|
gotThread?: boolean;
|
|
193
196
|
threadFirstItemId?: number;
|
|
@@ -222,7 +225,10 @@ declare const pluginServices: {
|
|
|
222
225
|
authorName?: string;
|
|
223
226
|
authorEmail?: string;
|
|
224
227
|
authorAvatar?: string;
|
|
225
|
-
authorUser?: string
|
|
228
|
+
authorUser?: string | {
|
|
229
|
+
id?: number;
|
|
230
|
+
email?: string;
|
|
231
|
+
};
|
|
226
232
|
locale?: string;
|
|
227
233
|
gotThread?: boolean;
|
|
228
234
|
threadFirstItemId?: number;
|
|
@@ -256,7 +262,10 @@ declare const pluginServices: {
|
|
|
256
262
|
authorName?: string;
|
|
257
263
|
authorEmail?: string;
|
|
258
264
|
authorAvatar?: string;
|
|
259
|
-
authorUser?: string
|
|
265
|
+
authorUser?: string | {
|
|
266
|
+
id?: number;
|
|
267
|
+
email?: string;
|
|
268
|
+
};
|
|
260
269
|
locale?: string;
|
|
261
270
|
gotThread?: boolean;
|
|
262
271
|
threadFirstItemId?: number;
|
|
@@ -282,7 +291,7 @@ declare const pluginServices: {
|
|
|
282
291
|
pageSize?: number;
|
|
283
292
|
withCount?: boolean;
|
|
284
293
|
};
|
|
285
|
-
relation?:
|
|
294
|
+
relation?: `${string}::${string}.${string}`;
|
|
286
295
|
populate?: Record<string, boolean | {
|
|
287
296
|
populate?: boolean;
|
|
288
297
|
}>;
|
|
@@ -487,7 +496,10 @@ declare const pluginServices: {
|
|
|
487
496
|
authorName?: string;
|
|
488
497
|
authorEmail?: string;
|
|
489
498
|
authorAvatar?: string;
|
|
490
|
-
authorUser?: string
|
|
499
|
+
authorUser?: string | {
|
|
500
|
+
id?: number;
|
|
501
|
+
email?: string;
|
|
502
|
+
};
|
|
491
503
|
locale?: string;
|
|
492
504
|
gotThread?: boolean;
|
|
493
505
|
threadFirstItemId?: number;
|
|
@@ -521,7 +533,10 @@ declare const pluginServices: {
|
|
|
521
533
|
authorName?: string;
|
|
522
534
|
authorEmail?: string;
|
|
523
535
|
authorAvatar?: string;
|
|
524
|
-
authorUser?: string
|
|
536
|
+
authorUser?: string | {
|
|
537
|
+
id?: number;
|
|
538
|
+
email?: string;
|
|
539
|
+
};
|
|
525
540
|
locale?: string;
|
|
526
541
|
gotThread?: boolean;
|
|
527
542
|
threadFirstItemId?: number;
|
|
@@ -562,7 +577,10 @@ declare const pluginServices: {
|
|
|
562
577
|
authorName?: string;
|
|
563
578
|
authorEmail?: string;
|
|
564
579
|
authorAvatar?: string;
|
|
565
|
-
authorUser?: string
|
|
580
|
+
authorUser?: string | {
|
|
581
|
+
id?: number;
|
|
582
|
+
email?: string;
|
|
583
|
+
};
|
|
566
584
|
locale?: string;
|
|
567
585
|
gotThread?: boolean;
|
|
568
586
|
threadFirstItemId?: number;
|
|
@@ -596,7 +614,10 @@ declare const pluginServices: {
|
|
|
596
614
|
authorName?: string;
|
|
597
615
|
authorEmail?: string;
|
|
598
616
|
authorAvatar?: string;
|
|
599
|
-
authorUser?: string
|
|
617
|
+
authorUser?: string | {
|
|
618
|
+
id?: number;
|
|
619
|
+
email?: string;
|
|
620
|
+
};
|
|
600
621
|
locale?: string;
|
|
601
622
|
gotThread?: boolean;
|
|
602
623
|
threadFirstItemId?: number;
|
|
@@ -624,7 +645,7 @@ declare const pluginServices: {
|
|
|
624
645
|
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
625
646
|
sort?: string;
|
|
626
647
|
locale?: string;
|
|
627
|
-
relation?:
|
|
648
|
+
relation?: `${string}::${string}.${string}`;
|
|
628
649
|
populate?: Record<string, boolean | {
|
|
629
650
|
populate?: boolean;
|
|
630
651
|
}>;
|
|
@@ -830,7 +851,10 @@ declare const pluginServices: {
|
|
|
830
851
|
authorName?: string;
|
|
831
852
|
authorEmail?: string;
|
|
832
853
|
authorAvatar?: string;
|
|
833
|
-
authorUser?: string
|
|
854
|
+
authorUser?: string | {
|
|
855
|
+
id?: number;
|
|
856
|
+
email?: string;
|
|
857
|
+
};
|
|
834
858
|
locale?: string;
|
|
835
859
|
gotThread?: boolean;
|
|
836
860
|
threadFirstItemId?: number;
|
|
@@ -864,7 +888,10 @@ declare const pluginServices: {
|
|
|
864
888
|
authorName?: string;
|
|
865
889
|
authorEmail?: string;
|
|
866
890
|
authorAvatar?: string;
|
|
867
|
-
authorUser?: string
|
|
891
|
+
authorUser?: string | {
|
|
892
|
+
id?: number;
|
|
893
|
+
email?: string;
|
|
894
|
+
};
|
|
868
895
|
locale?: string;
|
|
869
896
|
gotThread?: boolean;
|
|
870
897
|
threadFirstItemId?: number;
|
|
@@ -900,7 +927,10 @@ declare const pluginServices: {
|
|
|
900
927
|
authorName?: string;
|
|
901
928
|
authorEmail?: string;
|
|
902
929
|
authorAvatar?: string;
|
|
903
|
-
authorUser?: string
|
|
930
|
+
authorUser?: string | {
|
|
931
|
+
id?: number;
|
|
932
|
+
email?: string;
|
|
933
|
+
};
|
|
904
934
|
locale?: string;
|
|
905
935
|
gotThread?: boolean;
|
|
906
936
|
threadFirstItemId?: number;
|
|
@@ -934,7 +964,10 @@ declare const pluginServices: {
|
|
|
934
964
|
authorName?: string;
|
|
935
965
|
authorEmail?: string;
|
|
936
966
|
authorAvatar?: string;
|
|
937
|
-
authorUser?: string
|
|
967
|
+
authorUser?: string | {
|
|
968
|
+
id?: number;
|
|
969
|
+
email?: string;
|
|
970
|
+
};
|
|
938
971
|
locale?: string;
|
|
939
972
|
gotThread?: boolean;
|
|
940
973
|
threadFirstItemId?: number;
|
|
@@ -970,7 +1003,10 @@ declare const pluginServices: {
|
|
|
970
1003
|
authorName?: string;
|
|
971
1004
|
authorEmail?: string;
|
|
972
1005
|
authorAvatar?: string;
|
|
973
|
-
authorUser?: string
|
|
1006
|
+
authorUser?: string | {
|
|
1007
|
+
id?: number;
|
|
1008
|
+
email?: string;
|
|
1009
|
+
};
|
|
974
1010
|
locale?: string;
|
|
975
1011
|
gotThread?: boolean;
|
|
976
1012
|
threadFirstItemId?: number;
|
|
@@ -1004,7 +1040,10 @@ declare const pluginServices: {
|
|
|
1004
1040
|
authorName?: string;
|
|
1005
1041
|
authorEmail?: string;
|
|
1006
1042
|
authorAvatar?: string;
|
|
1007
|
-
authorUser?: string
|
|
1043
|
+
authorUser?: string | {
|
|
1044
|
+
id?: number;
|
|
1045
|
+
email?: string;
|
|
1046
|
+
};
|
|
1008
1047
|
locale?: string;
|
|
1009
1048
|
gotThread?: boolean;
|
|
1010
1049
|
threadFirstItemId?: number;
|
|
@@ -1040,7 +1079,10 @@ declare const pluginServices: {
|
|
|
1040
1079
|
authorName?: string;
|
|
1041
1080
|
authorEmail?: string;
|
|
1042
1081
|
authorAvatar?: string;
|
|
1043
|
-
authorUser?: string
|
|
1082
|
+
authorUser?: string | {
|
|
1083
|
+
id?: number;
|
|
1084
|
+
email?: string;
|
|
1085
|
+
};
|
|
1044
1086
|
locale?: string;
|
|
1045
1087
|
gotThread?: boolean;
|
|
1046
1088
|
threadFirstItemId?: number;
|
|
@@ -1074,7 +1116,10 @@ declare const pluginServices: {
|
|
|
1074
1116
|
authorName?: string;
|
|
1075
1117
|
authorEmail?: string;
|
|
1076
1118
|
authorAvatar?: string;
|
|
1077
|
-
authorUser?: string
|
|
1119
|
+
authorUser?: string | {
|
|
1120
|
+
id?: number;
|
|
1121
|
+
email?: string;
|
|
1122
|
+
};
|
|
1078
1123
|
locale?: string;
|
|
1079
1124
|
gotThread?: boolean;
|
|
1080
1125
|
threadFirstItemId?: number;
|
|
@@ -1109,7 +1154,10 @@ declare const pluginServices: {
|
|
|
1109
1154
|
authorName?: string;
|
|
1110
1155
|
authorEmail?: string;
|
|
1111
1156
|
authorAvatar?: string;
|
|
1112
|
-
authorUser?: string
|
|
1157
|
+
authorUser?: string | {
|
|
1158
|
+
id?: number;
|
|
1159
|
+
email?: string;
|
|
1160
|
+
};
|
|
1113
1161
|
locale?: string;
|
|
1114
1162
|
gotThread?: boolean;
|
|
1115
1163
|
threadFirstItemId?: number;
|
|
@@ -1143,7 +1191,10 @@ declare const pluginServices: {
|
|
|
1143
1191
|
authorName?: string;
|
|
1144
1192
|
authorEmail?: string;
|
|
1145
1193
|
authorAvatar?: string;
|
|
1146
|
-
authorUser?: string
|
|
1194
|
+
authorUser?: string | {
|
|
1195
|
+
id?: number;
|
|
1196
|
+
email?: string;
|
|
1197
|
+
};
|
|
1147
1198
|
locale?: string;
|
|
1148
1199
|
gotThread?: boolean;
|
|
1149
1200
|
threadFirstItemId?: number;
|
|
@@ -1375,7 +1426,10 @@ declare const pluginServices: {
|
|
|
1375
1426
|
authorName?: string;
|
|
1376
1427
|
authorEmail?: string;
|
|
1377
1428
|
authorAvatar?: string;
|
|
1378
|
-
authorUser?: string
|
|
1429
|
+
authorUser?: string | {
|
|
1430
|
+
id?: number;
|
|
1431
|
+
email?: string;
|
|
1432
|
+
};
|
|
1379
1433
|
locale?: string;
|
|
1380
1434
|
gotThread?: boolean;
|
|
1381
1435
|
threadFirstItemId?: number;
|
|
@@ -1408,7 +1462,10 @@ declare const pluginServices: {
|
|
|
1408
1462
|
authorName?: string;
|
|
1409
1463
|
authorEmail?: string;
|
|
1410
1464
|
authorAvatar?: string;
|
|
1411
|
-
authorUser?: string
|
|
1465
|
+
authorUser?: string | {
|
|
1466
|
+
id?: number;
|
|
1467
|
+
email?: string;
|
|
1468
|
+
};
|
|
1412
1469
|
locale?: string;
|
|
1413
1470
|
gotThread?: boolean;
|
|
1414
1471
|
threadFirstItemId?: number;
|
|
@@ -1449,7 +1506,10 @@ declare const pluginServices: {
|
|
|
1449
1506
|
authorName?: string;
|
|
1450
1507
|
authorEmail?: string;
|
|
1451
1508
|
authorAvatar?: string;
|
|
1452
|
-
authorUser?: string
|
|
1509
|
+
authorUser?: string | {
|
|
1510
|
+
id?: number;
|
|
1511
|
+
email?: string;
|
|
1512
|
+
};
|
|
1453
1513
|
locale?: string;
|
|
1454
1514
|
gotThread?: boolean;
|
|
1455
1515
|
threadFirstItemId?: number;
|
|
@@ -1482,7 +1542,10 @@ declare const pluginServices: {
|
|
|
1482
1542
|
authorName?: string;
|
|
1483
1543
|
authorEmail?: string;
|
|
1484
1544
|
authorAvatar?: string;
|
|
1485
|
-
authorUser?: string
|
|
1545
|
+
authorUser?: string | {
|
|
1546
|
+
id?: number;
|
|
1547
|
+
email?: string;
|
|
1548
|
+
};
|
|
1486
1549
|
locale?: string;
|
|
1487
1550
|
gotThread?: boolean;
|
|
1488
1551
|
threadFirstItemId?: number;
|
|
@@ -1525,7 +1588,10 @@ declare const pluginServices: {
|
|
|
1525
1588
|
authorName?: string;
|
|
1526
1589
|
authorEmail?: string;
|
|
1527
1590
|
authorAvatar?: string;
|
|
1528
|
-
authorUser?: string
|
|
1591
|
+
authorUser?: string | {
|
|
1592
|
+
id?: number;
|
|
1593
|
+
email?: string;
|
|
1594
|
+
};
|
|
1529
1595
|
locale?: string;
|
|
1530
1596
|
gotThread?: boolean;
|
|
1531
1597
|
threadFirstItemId?: number;
|
|
@@ -1559,7 +1625,10 @@ declare const pluginServices: {
|
|
|
1559
1625
|
authorName?: string;
|
|
1560
1626
|
authorEmail?: string;
|
|
1561
1627
|
authorAvatar?: string;
|
|
1562
|
-
authorUser?: string
|
|
1628
|
+
authorUser?: string | {
|
|
1629
|
+
id?: number;
|
|
1630
|
+
email?: string;
|
|
1631
|
+
};
|
|
1563
1632
|
locale?: string;
|
|
1564
1633
|
gotThread?: boolean;
|
|
1565
1634
|
threadFirstItemId?: number;
|
|
@@ -1601,7 +1670,10 @@ declare const pluginServices: {
|
|
|
1601
1670
|
authorName?: string;
|
|
1602
1671
|
authorEmail?: string;
|
|
1603
1672
|
authorAvatar?: string;
|
|
1604
|
-
authorUser?: string
|
|
1673
|
+
authorUser?: string | {
|
|
1674
|
+
id?: number;
|
|
1675
|
+
email?: string;
|
|
1676
|
+
};
|
|
1605
1677
|
locale?: string;
|
|
1606
1678
|
gotThread?: boolean;
|
|
1607
1679
|
threadFirstItemId?: number;
|
|
@@ -1635,7 +1707,10 @@ declare const pluginServices: {
|
|
|
1635
1707
|
authorName?: string;
|
|
1636
1708
|
authorEmail?: string;
|
|
1637
1709
|
authorAvatar?: string;
|
|
1638
|
-
authorUser?: string
|
|
1710
|
+
authorUser?: string | {
|
|
1711
|
+
id?: number;
|
|
1712
|
+
email?: string;
|
|
1713
|
+
};
|
|
1639
1714
|
locale?: string;
|
|
1640
1715
|
gotThread?: boolean;
|
|
1641
1716
|
threadFirstItemId?: number;
|
|
@@ -1682,7 +1757,10 @@ declare const pluginServices: {
|
|
|
1682
1757
|
authorName?: string;
|
|
1683
1758
|
authorEmail?: string;
|
|
1684
1759
|
authorAvatar?: string;
|
|
1685
|
-
authorUser?: string
|
|
1760
|
+
authorUser?: string | {
|
|
1761
|
+
id?: number;
|
|
1762
|
+
email?: string;
|
|
1763
|
+
};
|
|
1686
1764
|
locale?: string;
|
|
1687
1765
|
gotThread?: boolean;
|
|
1688
1766
|
threadFirstItemId?: number;
|
|
@@ -1716,7 +1794,10 @@ declare const pluginServices: {
|
|
|
1716
1794
|
authorName?: string;
|
|
1717
1795
|
authorEmail?: string;
|
|
1718
1796
|
authorAvatar?: string;
|
|
1719
|
-
authorUser?: string
|
|
1797
|
+
authorUser?: string | {
|
|
1798
|
+
id?: number;
|
|
1799
|
+
email?: string;
|
|
1800
|
+
};
|
|
1720
1801
|
locale?: string;
|
|
1721
1802
|
gotThread?: boolean;
|
|
1722
1803
|
threadFirstItemId?: number;
|
|
@@ -1734,7 +1815,7 @@ declare const pluginServices: {
|
|
|
1734
1815
|
author?: any;
|
|
1735
1816
|
};
|
|
1736
1817
|
};
|
|
1737
|
-
modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types
|
|
1818
|
+
modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types").Id, fieldName: T_2, value: {
|
|
1738
1819
|
id?: number;
|
|
1739
1820
|
documentId?: string;
|
|
1740
1821
|
content?: string;
|
|
@@ -1752,7 +1833,10 @@ declare const pluginServices: {
|
|
|
1752
1833
|
authorName?: string;
|
|
1753
1834
|
authorEmail?: string;
|
|
1754
1835
|
authorAvatar?: string;
|
|
1755
|
-
authorUser?: string
|
|
1836
|
+
authorUser?: string | {
|
|
1837
|
+
id?: number;
|
|
1838
|
+
email?: string;
|
|
1839
|
+
};
|
|
1756
1840
|
locale?: string;
|
|
1757
1841
|
gotThread?: boolean;
|
|
1758
1842
|
threadFirstItemId?: number;
|
|
@@ -1786,7 +1870,10 @@ declare const pluginServices: {
|
|
|
1786
1870
|
authorName?: string;
|
|
1787
1871
|
authorEmail?: string;
|
|
1788
1872
|
authorAvatar?: string;
|
|
1789
|
-
authorUser?: string
|
|
1873
|
+
authorUser?: string | {
|
|
1874
|
+
id?: number;
|
|
1875
|
+
email?: string;
|
|
1876
|
+
};
|
|
1790
1877
|
locale?: string;
|
|
1791
1878
|
gotThread?: boolean;
|
|
1792
1879
|
threadFirstItemId?: number;
|
|
@@ -1803,7 +1890,7 @@ declare const pluginServices: {
|
|
|
1803
1890
|
}[];
|
|
1804
1891
|
author?: any;
|
|
1805
1892
|
};
|
|
1806
|
-
}[T_2]): Promise<boolean>;
|
|
1893
|
+
}[T_2], deepLimit?: number): Promise<boolean>;
|
|
1807
1894
|
checkBadWords(content: string): Promise<string>;
|
|
1808
1895
|
registerLifecycleHook(): void;
|
|
1809
1896
|
runLifecycleHook(): Promise<void>;
|
|
@@ -1844,7 +1931,10 @@ declare const pluginServices: {
|
|
|
1844
1931
|
authorName?: string;
|
|
1845
1932
|
authorEmail?: string;
|
|
1846
1933
|
authorAvatar?: string;
|
|
1847
|
-
authorUser?: string
|
|
1934
|
+
authorUser?: string | {
|
|
1935
|
+
id?: number;
|
|
1936
|
+
email?: string;
|
|
1937
|
+
};
|
|
1848
1938
|
locale?: string;
|
|
1849
1939
|
gotThread?: boolean;
|
|
1850
1940
|
threadFirstItemId?: number;
|
|
@@ -1878,7 +1968,10 @@ declare const pluginServices: {
|
|
|
1878
1968
|
authorName?: string;
|
|
1879
1969
|
authorEmail?: string;
|
|
1880
1970
|
authorAvatar?: string;
|
|
1881
|
-
authorUser?: string
|
|
1971
|
+
authorUser?: string | {
|
|
1972
|
+
id?: number;
|
|
1973
|
+
email?: string;
|
|
1974
|
+
};
|
|
1882
1975
|
locale?: string;
|
|
1883
1976
|
gotThread?: boolean;
|
|
1884
1977
|
threadFirstItemId?: number;
|
|
@@ -1921,7 +2014,10 @@ declare const pluginServices: {
|
|
|
1921
2014
|
authorName?: string;
|
|
1922
2015
|
authorEmail?: string;
|
|
1923
2016
|
authorAvatar?: string;
|
|
1924
|
-
authorUser?: string
|
|
2017
|
+
authorUser?: string | {
|
|
2018
|
+
id?: number;
|
|
2019
|
+
email?: string;
|
|
2020
|
+
};
|
|
1925
2021
|
locale?: string;
|
|
1926
2022
|
gotThread?: boolean;
|
|
1927
2023
|
threadFirstItemId?: number;
|
|
@@ -1955,7 +2051,10 @@ declare const pluginServices: {
|
|
|
1955
2051
|
authorName?: string;
|
|
1956
2052
|
authorEmail?: string;
|
|
1957
2053
|
authorAvatar?: string;
|
|
1958
|
-
authorUser?: string
|
|
2054
|
+
authorUser?: string | {
|
|
2055
|
+
id?: number;
|
|
2056
|
+
email?: string;
|
|
2057
|
+
};
|
|
1959
2058
|
locale?: string;
|
|
1960
2059
|
gotThread?: boolean;
|
|
1961
2060
|
threadFirstItemId?: number;
|
|
@@ -1986,7 +2085,8 @@ declare const pluginServices: {
|
|
|
1986
2085
|
}): Promise<{
|
|
1987
2086
|
entity: {
|
|
1988
2087
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
1989
|
-
|
|
2088
|
+
documentId: string;
|
|
2089
|
+
id: number;
|
|
1990
2090
|
};
|
|
1991
2091
|
selected: {
|
|
1992
2092
|
id?: number;
|
|
@@ -2006,7 +2106,10 @@ declare const pluginServices: {
|
|
|
2006
2106
|
authorName?: string;
|
|
2007
2107
|
authorEmail?: string;
|
|
2008
2108
|
authorAvatar?: string;
|
|
2009
|
-
authorUser?: string
|
|
2109
|
+
authorUser?: string | {
|
|
2110
|
+
id?: number;
|
|
2111
|
+
email?: string;
|
|
2112
|
+
};
|
|
2010
2113
|
locale?: string;
|
|
2011
2114
|
gotThread?: boolean;
|
|
2012
2115
|
threadFirstItemId?: number;
|
|
@@ -2040,7 +2143,10 @@ declare const pluginServices: {
|
|
|
2040
2143
|
authorName?: string;
|
|
2041
2144
|
authorEmail?: string;
|
|
2042
2145
|
authorAvatar?: string;
|
|
2043
|
-
authorUser?: string
|
|
2146
|
+
authorUser?: string | {
|
|
2147
|
+
id?: number;
|
|
2148
|
+
email?: string;
|
|
2149
|
+
};
|
|
2044
2150
|
locale?: string;
|
|
2045
2151
|
gotThread?: boolean;
|
|
2046
2152
|
threadFirstItemId?: number;
|
|
@@ -2076,7 +2182,10 @@ declare const pluginServices: {
|
|
|
2076
2182
|
authorName?: string;
|
|
2077
2183
|
authorEmail?: string;
|
|
2078
2184
|
authorAvatar?: string;
|
|
2079
|
-
authorUser?: string
|
|
2185
|
+
authorUser?: string | {
|
|
2186
|
+
id?: number;
|
|
2187
|
+
email?: string;
|
|
2188
|
+
};
|
|
2080
2189
|
locale?: string;
|
|
2081
2190
|
gotThread?: boolean;
|
|
2082
2191
|
threadFirstItemId?: number;
|
|
@@ -2110,7 +2219,10 @@ declare const pluginServices: {
|
|
|
2110
2219
|
authorName?: string;
|
|
2111
2220
|
authorEmail?: string;
|
|
2112
2221
|
authorAvatar?: string;
|
|
2113
|
-
authorUser?: string
|
|
2222
|
+
authorUser?: string | {
|
|
2223
|
+
id?: number;
|
|
2224
|
+
email?: string;
|
|
2225
|
+
};
|
|
2114
2226
|
locale?: string;
|
|
2115
2227
|
gotThread?: boolean;
|
|
2116
2228
|
threadFirstItemId?: number;
|
|
@@ -2129,7 +2241,7 @@ declare const pluginServices: {
|
|
|
2129
2241
|
};
|
|
2130
2242
|
}[];
|
|
2131
2243
|
}>;
|
|
2132
|
-
changeBlockedComment(id: import("../@types
|
|
2244
|
+
changeBlockedComment(id: import("../@types").Id, forceStatus?: boolean): Promise<{
|
|
2133
2245
|
id?: number;
|
|
2134
2246
|
documentId?: string;
|
|
2135
2247
|
content?: string;
|
|
@@ -2147,7 +2259,10 @@ declare const pluginServices: {
|
|
|
2147
2259
|
authorName?: string;
|
|
2148
2260
|
authorEmail?: string;
|
|
2149
2261
|
authorAvatar?: string;
|
|
2150
|
-
authorUser?: string
|
|
2262
|
+
authorUser?: string | {
|
|
2263
|
+
id?: number;
|
|
2264
|
+
email?: string;
|
|
2265
|
+
};
|
|
2151
2266
|
locale?: string;
|
|
2152
2267
|
gotThread?: boolean;
|
|
2153
2268
|
threadFirstItemId?: number;
|
|
@@ -2181,7 +2296,10 @@ declare const pluginServices: {
|
|
|
2181
2296
|
authorName?: string;
|
|
2182
2297
|
authorEmail?: string;
|
|
2183
2298
|
authorAvatar?: string;
|
|
2184
|
-
authorUser?: string
|
|
2299
|
+
authorUser?: string | {
|
|
2300
|
+
id?: number;
|
|
2301
|
+
email?: string;
|
|
2302
|
+
};
|
|
2185
2303
|
locale?: string;
|
|
2186
2304
|
gotThread?: boolean;
|
|
2187
2305
|
threadFirstItemId?: number;
|
|
@@ -2199,7 +2317,7 @@ declare const pluginServices: {
|
|
|
2199
2317
|
author?: any;
|
|
2200
2318
|
};
|
|
2201
2319
|
}>;
|
|
2202
|
-
deleteComment(id: import("../@types
|
|
2320
|
+
deleteComment(id: import("../@types").Id): Promise<{
|
|
2203
2321
|
id?: number;
|
|
2204
2322
|
documentId?: string;
|
|
2205
2323
|
content?: string;
|
|
@@ -2217,7 +2335,10 @@ declare const pluginServices: {
|
|
|
2217
2335
|
authorName?: string;
|
|
2218
2336
|
authorEmail?: string;
|
|
2219
2337
|
authorAvatar?: string;
|
|
2220
|
-
authorUser?: string
|
|
2338
|
+
authorUser?: string | {
|
|
2339
|
+
id?: number;
|
|
2340
|
+
email?: string;
|
|
2341
|
+
};
|
|
2221
2342
|
locale?: string;
|
|
2222
2343
|
gotThread?: boolean;
|
|
2223
2344
|
threadFirstItemId?: number;
|
|
@@ -2251,7 +2372,10 @@ declare const pluginServices: {
|
|
|
2251
2372
|
authorName?: string;
|
|
2252
2373
|
authorEmail?: string;
|
|
2253
2374
|
authorAvatar?: string;
|
|
2254
|
-
authorUser?: string
|
|
2375
|
+
authorUser?: string | {
|
|
2376
|
+
id?: number;
|
|
2377
|
+
email?: string;
|
|
2378
|
+
};
|
|
2255
2379
|
locale?: string;
|
|
2256
2380
|
gotThread?: boolean;
|
|
2257
2381
|
threadFirstItemId?: number;
|
|
@@ -2269,7 +2393,7 @@ declare const pluginServices: {
|
|
|
2269
2393
|
author?: any;
|
|
2270
2394
|
};
|
|
2271
2395
|
}>;
|
|
2272
|
-
blockCommentThread(id: import("../@types
|
|
2396
|
+
blockCommentThread(id: import("../@types").Id, forceStatus?: boolean): Promise<{
|
|
2273
2397
|
id?: number;
|
|
2274
2398
|
documentId?: string;
|
|
2275
2399
|
content?: string;
|
|
@@ -2287,7 +2411,10 @@ declare const pluginServices: {
|
|
|
2287
2411
|
authorName?: string;
|
|
2288
2412
|
authorEmail?: string;
|
|
2289
2413
|
authorAvatar?: string;
|
|
2290
|
-
authorUser?: string
|
|
2414
|
+
authorUser?: string | {
|
|
2415
|
+
id?: number;
|
|
2416
|
+
email?: string;
|
|
2417
|
+
};
|
|
2291
2418
|
locale?: string;
|
|
2292
2419
|
gotThread?: boolean;
|
|
2293
2420
|
threadFirstItemId?: number;
|
|
@@ -2321,7 +2448,10 @@ declare const pluginServices: {
|
|
|
2321
2448
|
authorName?: string;
|
|
2322
2449
|
authorEmail?: string;
|
|
2323
2450
|
authorAvatar?: string;
|
|
2324
|
-
authorUser?: string
|
|
2451
|
+
authorUser?: string | {
|
|
2452
|
+
id?: number;
|
|
2453
|
+
email?: string;
|
|
2454
|
+
};
|
|
2325
2455
|
locale?: string;
|
|
2326
2456
|
gotThread?: boolean;
|
|
2327
2457
|
threadFirstItemId?: number;
|
|
@@ -2339,7 +2469,7 @@ declare const pluginServices: {
|
|
|
2339
2469
|
author?: any;
|
|
2340
2470
|
};
|
|
2341
2471
|
}>;
|
|
2342
|
-
approveComment(id: import("../@types
|
|
2472
|
+
approveComment(id: import("../@types").Id): Promise<{
|
|
2343
2473
|
id?: number;
|
|
2344
2474
|
documentId?: string;
|
|
2345
2475
|
content?: string;
|
|
@@ -2357,7 +2487,10 @@ declare const pluginServices: {
|
|
|
2357
2487
|
authorName?: string;
|
|
2358
2488
|
authorEmail?: string;
|
|
2359
2489
|
authorAvatar?: string;
|
|
2360
|
-
authorUser?: string
|
|
2490
|
+
authorUser?: string | {
|
|
2491
|
+
id?: number;
|
|
2492
|
+
email?: string;
|
|
2493
|
+
};
|
|
2361
2494
|
locale?: string;
|
|
2362
2495
|
gotThread?: boolean;
|
|
2363
2496
|
threadFirstItemId?: number;
|
|
@@ -2391,7 +2524,10 @@ declare const pluginServices: {
|
|
|
2391
2524
|
authorName?: string;
|
|
2392
2525
|
authorEmail?: string;
|
|
2393
2526
|
authorAvatar?: string;
|
|
2394
|
-
authorUser?: string
|
|
2527
|
+
authorUser?: string | {
|
|
2528
|
+
id?: number;
|
|
2529
|
+
email?: string;
|
|
2530
|
+
};
|
|
2395
2531
|
locale?: string;
|
|
2396
2532
|
gotThread?: boolean;
|
|
2397
2533
|
threadFirstItemId?: number;
|
|
@@ -2409,7 +2545,7 @@ declare const pluginServices: {
|
|
|
2409
2545
|
author?: any;
|
|
2410
2546
|
};
|
|
2411
2547
|
}>;
|
|
2412
|
-
rejectComment(id: import("../@types
|
|
2548
|
+
rejectComment(id: import("../@types").Id): Promise<{
|
|
2413
2549
|
id?: number;
|
|
2414
2550
|
documentId?: string;
|
|
2415
2551
|
content?: string;
|
|
@@ -2427,7 +2563,10 @@ declare const pluginServices: {
|
|
|
2427
2563
|
authorName?: string;
|
|
2428
2564
|
authorEmail?: string;
|
|
2429
2565
|
authorAvatar?: string;
|
|
2430
|
-
authorUser?: string
|
|
2566
|
+
authorUser?: string | {
|
|
2567
|
+
id?: number;
|
|
2568
|
+
email?: string;
|
|
2569
|
+
};
|
|
2431
2570
|
locale?: string;
|
|
2432
2571
|
gotThread?: boolean;
|
|
2433
2572
|
threadFirstItemId?: number;
|
|
@@ -2461,7 +2600,10 @@ declare const pluginServices: {
|
|
|
2461
2600
|
authorName?: string;
|
|
2462
2601
|
authorEmail?: string;
|
|
2463
2602
|
authorAvatar?: string;
|
|
2464
|
-
authorUser?: string
|
|
2603
|
+
authorUser?: string | {
|
|
2604
|
+
id?: number;
|
|
2605
|
+
email?: string;
|
|
2606
|
+
};
|
|
2465
2607
|
locale?: string;
|
|
2466
2608
|
gotThread?: boolean;
|
|
2467
2609
|
threadFirstItemId?: number;
|
|
@@ -2479,7 +2621,7 @@ declare const pluginServices: {
|
|
|
2479
2621
|
author?: any;
|
|
2480
2622
|
};
|
|
2481
2623
|
}>;
|
|
2482
|
-
blockNestedThreads(id: import("../@types
|
|
2624
|
+
blockNestedThreads(id: import("../@types").Id, status: boolean): Promise<boolean>;
|
|
2483
2625
|
resolveAbuseReport({ id: commentId, reportId, }: {
|
|
2484
2626
|
id?: number;
|
|
2485
2627
|
reportId?: number;
|
|
@@ -2498,7 +2640,7 @@ declare const pluginServices: {
|
|
|
2498
2640
|
id?: number;
|
|
2499
2641
|
reportIds?: number[];
|
|
2500
2642
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
2501
|
-
resolveAllAbuseReportsForComment(id: import("../@types
|
|
2643
|
+
resolveAllAbuseReportsForComment(id: import("../@types").Id): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
2502
2644
|
resolveAllAbuseReportsForThread(commentId: number): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
2503
2645
|
resolveMultipleAbuseReports({ reportIds, }: {
|
|
2504
2646
|
reportIds?: number[];
|
|
@@ -2531,7 +2673,10 @@ declare const pluginServices: {
|
|
|
2531
2673
|
authorName?: string;
|
|
2532
2674
|
authorEmail?: string;
|
|
2533
2675
|
authorAvatar?: string;
|
|
2534
|
-
authorUser?: string
|
|
2676
|
+
authorUser?: string | {
|
|
2677
|
+
id?: number;
|
|
2678
|
+
email?: string;
|
|
2679
|
+
};
|
|
2535
2680
|
locale?: string;
|
|
2536
2681
|
gotThread?: boolean;
|
|
2537
2682
|
threadFirstItemId?: number;
|
|
@@ -2565,7 +2710,10 @@ declare const pluginServices: {
|
|
|
2565
2710
|
authorName?: string;
|
|
2566
2711
|
authorEmail?: string;
|
|
2567
2712
|
authorAvatar?: string;
|
|
2568
|
-
authorUser?: string
|
|
2713
|
+
authorUser?: string | {
|
|
2714
|
+
id?: number;
|
|
2715
|
+
email?: string;
|
|
2716
|
+
};
|
|
2569
2717
|
locale?: string;
|
|
2570
2718
|
gotThread?: boolean;
|
|
2571
2719
|
threadFirstItemId?: number;
|
|
@@ -2604,7 +2752,10 @@ declare const pluginServices: {
|
|
|
2604
2752
|
authorName?: string;
|
|
2605
2753
|
authorEmail?: string;
|
|
2606
2754
|
authorAvatar?: string;
|
|
2607
|
-
authorUser?: string
|
|
2755
|
+
authorUser?: string | {
|
|
2756
|
+
id?: number;
|
|
2757
|
+
email?: string;
|
|
2758
|
+
};
|
|
2608
2759
|
locale?: string;
|
|
2609
2760
|
gotThread?: boolean;
|
|
2610
2761
|
threadFirstItemId?: number;
|
|
@@ -2638,7 +2789,10 @@ declare const pluginServices: {
|
|
|
2638
2789
|
authorName?: string;
|
|
2639
2790
|
authorEmail?: string;
|
|
2640
2791
|
authorAvatar?: string;
|
|
2641
|
-
authorUser?: string
|
|
2792
|
+
authorUser?: string | {
|
|
2793
|
+
id?: number;
|
|
2794
|
+
email?: string;
|
|
2795
|
+
};
|
|
2642
2796
|
locale?: string;
|
|
2643
2797
|
gotThread?: boolean;
|
|
2644
2798
|
threadFirstItemId?: number;
|
|
@@ -2657,9 +2811,9 @@ declare const pluginServices: {
|
|
|
2657
2811
|
};
|
|
2658
2812
|
}>;
|
|
2659
2813
|
};
|
|
2660
|
-
client: ({ strapi }: import("../@types
|
|
2814
|
+
client: ({ strapi }: import("../@types").StrapiContext) => {
|
|
2661
2815
|
getCommonService(): {
|
|
2662
|
-
getConfig<T extends
|
|
2816
|
+
getConfig<T extends string>(prop?: T, defaultValue?: import("../@types").PathValue<{
|
|
2663
2817
|
enabledCollections?: string[];
|
|
2664
2818
|
approvalFlow?: string[];
|
|
2665
2819
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2676,24 +2830,11 @@ declare const pluginServices: {
|
|
|
2676
2830
|
gql?: {
|
|
2677
2831
|
auth?: boolean;
|
|
2678
2832
|
};
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
entryLabel?: Record<string, string[]>;
|
|
2683
|
-
moderatorRoles?: string[];
|
|
2684
|
-
badWords?: boolean;
|
|
2685
|
-
blockedAuthorProps?: string[];
|
|
2686
|
-
isValidationEnabled?: boolean;
|
|
2687
|
-
reportReasons?: {
|
|
2688
|
-
BAD_LANGUAGE?: import("../const").REPORT_REASON.BAD_LANGUAGE;
|
|
2689
|
-
DISCRIMINATION?: import("../const").REPORT_REASON.DISCRIMINATION;
|
|
2690
|
-
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2691
|
-
};
|
|
2692
|
-
isGQLPluginEnabled?: boolean;
|
|
2693
|
-
gql?: {
|
|
2694
|
-
auth?: boolean;
|
|
2833
|
+
client?: {
|
|
2834
|
+
url?: string;
|
|
2835
|
+
contactEmail?: string;
|
|
2695
2836
|
};
|
|
2696
|
-
}
|
|
2837
|
+
}, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
|
|
2697
2838
|
enabledCollections?: string[];
|
|
2698
2839
|
approvalFlow?: string[];
|
|
2699
2840
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2710,7 +2851,11 @@ declare const pluginServices: {
|
|
|
2710
2851
|
gql?: {
|
|
2711
2852
|
auth?: boolean;
|
|
2712
2853
|
};
|
|
2713
|
-
|
|
2854
|
+
client?: {
|
|
2855
|
+
url?: string;
|
|
2856
|
+
contactEmail?: string;
|
|
2857
|
+
};
|
|
2858
|
+
}, T>>;
|
|
2714
2859
|
parseRelationString(relation: string): {
|
|
2715
2860
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
2716
2861
|
relatedId: string;
|
|
@@ -2736,7 +2881,10 @@ declare const pluginServices: {
|
|
|
2736
2881
|
authorName?: string;
|
|
2737
2882
|
authorEmail?: string;
|
|
2738
2883
|
authorAvatar?: string;
|
|
2739
|
-
authorUser?: string
|
|
2884
|
+
authorUser?: string | {
|
|
2885
|
+
id?: number;
|
|
2886
|
+
email?: string;
|
|
2887
|
+
};
|
|
2740
2888
|
locale?: string;
|
|
2741
2889
|
gotThread?: boolean;
|
|
2742
2890
|
threadFirstItemId?: number;
|
|
@@ -2770,7 +2918,10 @@ declare const pluginServices: {
|
|
|
2770
2918
|
authorName?: string;
|
|
2771
2919
|
authorEmail?: string;
|
|
2772
2920
|
authorAvatar?: string;
|
|
2773
|
-
authorUser?: string
|
|
2921
|
+
authorUser?: string | {
|
|
2922
|
+
id?: number;
|
|
2923
|
+
email?: string;
|
|
2924
|
+
};
|
|
2774
2925
|
locale?: string;
|
|
2775
2926
|
gotThread?: boolean;
|
|
2776
2927
|
threadFirstItemId?: number;
|
|
@@ -2811,7 +2962,10 @@ declare const pluginServices: {
|
|
|
2811
2962
|
authorName?: string;
|
|
2812
2963
|
authorEmail?: string;
|
|
2813
2964
|
authorAvatar?: string;
|
|
2814
|
-
authorUser?: string
|
|
2965
|
+
authorUser?: string | {
|
|
2966
|
+
id?: number;
|
|
2967
|
+
email?: string;
|
|
2968
|
+
};
|
|
2815
2969
|
locale?: string;
|
|
2816
2970
|
gotThread?: boolean;
|
|
2817
2971
|
threadFirstItemId?: number;
|
|
@@ -2845,7 +2999,10 @@ declare const pluginServices: {
|
|
|
2845
2999
|
authorName?: string;
|
|
2846
3000
|
authorEmail?: string;
|
|
2847
3001
|
authorAvatar?: string;
|
|
2848
|
-
authorUser?: string
|
|
3002
|
+
authorUser?: string | {
|
|
3003
|
+
id?: number;
|
|
3004
|
+
email?: string;
|
|
3005
|
+
};
|
|
2849
3006
|
locale?: string;
|
|
2850
3007
|
gotThread?: boolean;
|
|
2851
3008
|
threadFirstItemId?: number;
|
|
@@ -2880,7 +3037,10 @@ declare const pluginServices: {
|
|
|
2880
3037
|
authorName?: string;
|
|
2881
3038
|
authorEmail?: string;
|
|
2882
3039
|
authorAvatar?: string;
|
|
2883
|
-
authorUser?: string
|
|
3040
|
+
authorUser?: string | {
|
|
3041
|
+
id?: number;
|
|
3042
|
+
email?: string;
|
|
3043
|
+
};
|
|
2884
3044
|
locale?: string;
|
|
2885
3045
|
gotThread?: boolean;
|
|
2886
3046
|
threadFirstItemId?: number;
|
|
@@ -2914,7 +3074,10 @@ declare const pluginServices: {
|
|
|
2914
3074
|
authorName?: string;
|
|
2915
3075
|
authorEmail?: string;
|
|
2916
3076
|
authorAvatar?: string;
|
|
2917
|
-
authorUser?: string
|
|
3077
|
+
authorUser?: string | {
|
|
3078
|
+
id?: number;
|
|
3079
|
+
email?: string;
|
|
3080
|
+
};
|
|
2918
3081
|
locale?: string;
|
|
2919
3082
|
gotThread?: boolean;
|
|
2920
3083
|
threadFirstItemId?: number;
|
|
@@ -2940,7 +3103,7 @@ declare const pluginServices: {
|
|
|
2940
3103
|
pageSize?: number;
|
|
2941
3104
|
withCount?: boolean;
|
|
2942
3105
|
};
|
|
2943
|
-
relation?:
|
|
3106
|
+
relation?: `${string}::${string}.${string}`;
|
|
2944
3107
|
populate?: Record<string, boolean | {
|
|
2945
3108
|
populate?: boolean;
|
|
2946
3109
|
}>;
|
|
@@ -3145,7 +3308,10 @@ declare const pluginServices: {
|
|
|
3145
3308
|
authorName?: string;
|
|
3146
3309
|
authorEmail?: string;
|
|
3147
3310
|
authorAvatar?: string;
|
|
3148
|
-
authorUser?: string
|
|
3311
|
+
authorUser?: string | {
|
|
3312
|
+
id?: number;
|
|
3313
|
+
email?: string;
|
|
3314
|
+
};
|
|
3149
3315
|
locale?: string;
|
|
3150
3316
|
gotThread?: boolean;
|
|
3151
3317
|
threadFirstItemId?: number;
|
|
@@ -3179,7 +3345,10 @@ declare const pluginServices: {
|
|
|
3179
3345
|
authorName?: string;
|
|
3180
3346
|
authorEmail?: string;
|
|
3181
3347
|
authorAvatar?: string;
|
|
3182
|
-
authorUser?: string
|
|
3348
|
+
authorUser?: string | {
|
|
3349
|
+
id?: number;
|
|
3350
|
+
email?: string;
|
|
3351
|
+
};
|
|
3183
3352
|
locale?: string;
|
|
3184
3353
|
gotThread?: boolean;
|
|
3185
3354
|
threadFirstItemId?: number;
|
|
@@ -3220,7 +3389,10 @@ declare const pluginServices: {
|
|
|
3220
3389
|
authorName?: string;
|
|
3221
3390
|
authorEmail?: string;
|
|
3222
3391
|
authorAvatar?: string;
|
|
3223
|
-
authorUser?: string
|
|
3392
|
+
authorUser?: string | {
|
|
3393
|
+
id?: number;
|
|
3394
|
+
email?: string;
|
|
3395
|
+
};
|
|
3224
3396
|
locale?: string;
|
|
3225
3397
|
gotThread?: boolean;
|
|
3226
3398
|
threadFirstItemId?: number;
|
|
@@ -3254,7 +3426,10 @@ declare const pluginServices: {
|
|
|
3254
3426
|
authorName?: string;
|
|
3255
3427
|
authorEmail?: string;
|
|
3256
3428
|
authorAvatar?: string;
|
|
3257
|
-
authorUser?: string
|
|
3429
|
+
authorUser?: string | {
|
|
3430
|
+
id?: number;
|
|
3431
|
+
email?: string;
|
|
3432
|
+
};
|
|
3258
3433
|
locale?: string;
|
|
3259
3434
|
gotThread?: boolean;
|
|
3260
3435
|
threadFirstItemId?: number;
|
|
@@ -3282,7 +3457,7 @@ declare const pluginServices: {
|
|
|
3282
3457
|
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
3283
3458
|
sort?: string;
|
|
3284
3459
|
locale?: string;
|
|
3285
|
-
relation?:
|
|
3460
|
+
relation?: `${string}::${string}.${string}`;
|
|
3286
3461
|
populate?: Record<string, boolean | {
|
|
3287
3462
|
populate?: boolean;
|
|
3288
3463
|
}>;
|
|
@@ -3488,7 +3663,10 @@ declare const pluginServices: {
|
|
|
3488
3663
|
authorName?: string;
|
|
3489
3664
|
authorEmail?: string;
|
|
3490
3665
|
authorAvatar?: string;
|
|
3491
|
-
authorUser?: string
|
|
3666
|
+
authorUser?: string | {
|
|
3667
|
+
id?: number;
|
|
3668
|
+
email?: string;
|
|
3669
|
+
};
|
|
3492
3670
|
locale?: string;
|
|
3493
3671
|
gotThread?: boolean;
|
|
3494
3672
|
threadFirstItemId?: number;
|
|
@@ -3522,7 +3700,10 @@ declare const pluginServices: {
|
|
|
3522
3700
|
authorName?: string;
|
|
3523
3701
|
authorEmail?: string;
|
|
3524
3702
|
authorAvatar?: string;
|
|
3525
|
-
authorUser?: string
|
|
3703
|
+
authorUser?: string | {
|
|
3704
|
+
id?: number;
|
|
3705
|
+
email?: string;
|
|
3706
|
+
};
|
|
3526
3707
|
locale?: string;
|
|
3527
3708
|
gotThread?: boolean;
|
|
3528
3709
|
threadFirstItemId?: number;
|
|
@@ -3558,7 +3739,10 @@ declare const pluginServices: {
|
|
|
3558
3739
|
authorName?: string;
|
|
3559
3740
|
authorEmail?: string;
|
|
3560
3741
|
authorAvatar?: string;
|
|
3561
|
-
authorUser?: string
|
|
3742
|
+
authorUser?: string | {
|
|
3743
|
+
id?: number;
|
|
3744
|
+
email?: string;
|
|
3745
|
+
};
|
|
3562
3746
|
locale?: string;
|
|
3563
3747
|
gotThread?: boolean;
|
|
3564
3748
|
threadFirstItemId?: number;
|
|
@@ -3592,7 +3776,10 @@ declare const pluginServices: {
|
|
|
3592
3776
|
authorName?: string;
|
|
3593
3777
|
authorEmail?: string;
|
|
3594
3778
|
authorAvatar?: string;
|
|
3595
|
-
authorUser?: string
|
|
3779
|
+
authorUser?: string | {
|
|
3780
|
+
id?: number;
|
|
3781
|
+
email?: string;
|
|
3782
|
+
};
|
|
3596
3783
|
locale?: string;
|
|
3597
3784
|
gotThread?: boolean;
|
|
3598
3785
|
threadFirstItemId?: number;
|
|
@@ -3628,7 +3815,10 @@ declare const pluginServices: {
|
|
|
3628
3815
|
authorName?: string;
|
|
3629
3816
|
authorEmail?: string;
|
|
3630
3817
|
authorAvatar?: string;
|
|
3631
|
-
authorUser?: string
|
|
3818
|
+
authorUser?: string | {
|
|
3819
|
+
id?: number;
|
|
3820
|
+
email?: string;
|
|
3821
|
+
};
|
|
3632
3822
|
locale?: string;
|
|
3633
3823
|
gotThread?: boolean;
|
|
3634
3824
|
threadFirstItemId?: number;
|
|
@@ -3662,7 +3852,10 @@ declare const pluginServices: {
|
|
|
3662
3852
|
authorName?: string;
|
|
3663
3853
|
authorEmail?: string;
|
|
3664
3854
|
authorAvatar?: string;
|
|
3665
|
-
authorUser?: string
|
|
3855
|
+
authorUser?: string | {
|
|
3856
|
+
id?: number;
|
|
3857
|
+
email?: string;
|
|
3858
|
+
};
|
|
3666
3859
|
locale?: string;
|
|
3667
3860
|
gotThread?: boolean;
|
|
3668
3861
|
threadFirstItemId?: number;
|
|
@@ -3698,7 +3891,10 @@ declare const pluginServices: {
|
|
|
3698
3891
|
authorName?: string;
|
|
3699
3892
|
authorEmail?: string;
|
|
3700
3893
|
authorAvatar?: string;
|
|
3701
|
-
authorUser?: string
|
|
3894
|
+
authorUser?: string | {
|
|
3895
|
+
id?: number;
|
|
3896
|
+
email?: string;
|
|
3897
|
+
};
|
|
3702
3898
|
locale?: string;
|
|
3703
3899
|
gotThread?: boolean;
|
|
3704
3900
|
threadFirstItemId?: number;
|
|
@@ -3732,7 +3928,10 @@ declare const pluginServices: {
|
|
|
3732
3928
|
authorName?: string;
|
|
3733
3929
|
authorEmail?: string;
|
|
3734
3930
|
authorAvatar?: string;
|
|
3735
|
-
authorUser?: string
|
|
3931
|
+
authorUser?: string | {
|
|
3932
|
+
id?: number;
|
|
3933
|
+
email?: string;
|
|
3934
|
+
};
|
|
3736
3935
|
locale?: string;
|
|
3737
3936
|
gotThread?: boolean;
|
|
3738
3937
|
threadFirstItemId?: number;
|
|
@@ -3767,7 +3966,10 @@ declare const pluginServices: {
|
|
|
3767
3966
|
authorName?: string;
|
|
3768
3967
|
authorEmail?: string;
|
|
3769
3968
|
authorAvatar?: string;
|
|
3770
|
-
authorUser?: string
|
|
3969
|
+
authorUser?: string | {
|
|
3970
|
+
id?: number;
|
|
3971
|
+
email?: string;
|
|
3972
|
+
};
|
|
3771
3973
|
locale?: string;
|
|
3772
3974
|
gotThread?: boolean;
|
|
3773
3975
|
threadFirstItemId?: number;
|
|
@@ -3801,7 +4003,10 @@ declare const pluginServices: {
|
|
|
3801
4003
|
authorName?: string;
|
|
3802
4004
|
authorEmail?: string;
|
|
3803
4005
|
authorAvatar?: string;
|
|
3804
|
-
authorUser?: string
|
|
4006
|
+
authorUser?: string | {
|
|
4007
|
+
id?: number;
|
|
4008
|
+
email?: string;
|
|
4009
|
+
};
|
|
3805
4010
|
locale?: string;
|
|
3806
4011
|
gotThread?: boolean;
|
|
3807
4012
|
threadFirstItemId?: number;
|
|
@@ -4033,7 +4238,10 @@ declare const pluginServices: {
|
|
|
4033
4238
|
authorName?: string;
|
|
4034
4239
|
authorEmail?: string;
|
|
4035
4240
|
authorAvatar?: string;
|
|
4036
|
-
authorUser?: string
|
|
4241
|
+
authorUser?: string | {
|
|
4242
|
+
id?: number;
|
|
4243
|
+
email?: string;
|
|
4244
|
+
};
|
|
4037
4245
|
locale?: string;
|
|
4038
4246
|
gotThread?: boolean;
|
|
4039
4247
|
threadFirstItemId?: number;
|
|
@@ -4066,7 +4274,10 @@ declare const pluginServices: {
|
|
|
4066
4274
|
authorName?: string;
|
|
4067
4275
|
authorEmail?: string;
|
|
4068
4276
|
authorAvatar?: string;
|
|
4069
|
-
authorUser?: string
|
|
4277
|
+
authorUser?: string | {
|
|
4278
|
+
id?: number;
|
|
4279
|
+
email?: string;
|
|
4280
|
+
};
|
|
4070
4281
|
locale?: string;
|
|
4071
4282
|
gotThread?: boolean;
|
|
4072
4283
|
threadFirstItemId?: number;
|
|
@@ -4107,7 +4318,10 @@ declare const pluginServices: {
|
|
|
4107
4318
|
authorName?: string;
|
|
4108
4319
|
authorEmail?: string;
|
|
4109
4320
|
authorAvatar?: string;
|
|
4110
|
-
authorUser?: string
|
|
4321
|
+
authorUser?: string | {
|
|
4322
|
+
id?: number;
|
|
4323
|
+
email?: string;
|
|
4324
|
+
};
|
|
4111
4325
|
locale?: string;
|
|
4112
4326
|
gotThread?: boolean;
|
|
4113
4327
|
threadFirstItemId?: number;
|
|
@@ -4140,7 +4354,10 @@ declare const pluginServices: {
|
|
|
4140
4354
|
authorName?: string;
|
|
4141
4355
|
authorEmail?: string;
|
|
4142
4356
|
authorAvatar?: string;
|
|
4143
|
-
authorUser?: string
|
|
4357
|
+
authorUser?: string | {
|
|
4358
|
+
id?: number;
|
|
4359
|
+
email?: string;
|
|
4360
|
+
};
|
|
4144
4361
|
locale?: string;
|
|
4145
4362
|
gotThread?: boolean;
|
|
4146
4363
|
threadFirstItemId?: number;
|
|
@@ -4183,7 +4400,10 @@ declare const pluginServices: {
|
|
|
4183
4400
|
authorName?: string;
|
|
4184
4401
|
authorEmail?: string;
|
|
4185
4402
|
authorAvatar?: string;
|
|
4186
|
-
authorUser?: string
|
|
4403
|
+
authorUser?: string | {
|
|
4404
|
+
id?: number;
|
|
4405
|
+
email?: string;
|
|
4406
|
+
};
|
|
4187
4407
|
locale?: string;
|
|
4188
4408
|
gotThread?: boolean;
|
|
4189
4409
|
threadFirstItemId?: number;
|
|
@@ -4217,7 +4437,10 @@ declare const pluginServices: {
|
|
|
4217
4437
|
authorName?: string;
|
|
4218
4438
|
authorEmail?: string;
|
|
4219
4439
|
authorAvatar?: string;
|
|
4220
|
-
authorUser?: string
|
|
4440
|
+
authorUser?: string | {
|
|
4441
|
+
id?: number;
|
|
4442
|
+
email?: string;
|
|
4443
|
+
};
|
|
4221
4444
|
locale?: string;
|
|
4222
4445
|
gotThread?: boolean;
|
|
4223
4446
|
threadFirstItemId?: number;
|
|
@@ -4259,7 +4482,10 @@ declare const pluginServices: {
|
|
|
4259
4482
|
authorName?: string;
|
|
4260
4483
|
authorEmail?: string;
|
|
4261
4484
|
authorAvatar?: string;
|
|
4262
|
-
authorUser?: string
|
|
4485
|
+
authorUser?: string | {
|
|
4486
|
+
id?: number;
|
|
4487
|
+
email?: string;
|
|
4488
|
+
};
|
|
4263
4489
|
locale?: string;
|
|
4264
4490
|
gotThread?: boolean;
|
|
4265
4491
|
threadFirstItemId?: number;
|
|
@@ -4293,7 +4519,10 @@ declare const pluginServices: {
|
|
|
4293
4519
|
authorName?: string;
|
|
4294
4520
|
authorEmail?: string;
|
|
4295
4521
|
authorAvatar?: string;
|
|
4296
|
-
authorUser?: string
|
|
4522
|
+
authorUser?: string | {
|
|
4523
|
+
id?: number;
|
|
4524
|
+
email?: string;
|
|
4525
|
+
};
|
|
4297
4526
|
locale?: string;
|
|
4298
4527
|
gotThread?: boolean;
|
|
4299
4528
|
threadFirstItemId?: number;
|
|
@@ -4340,7 +4569,10 @@ declare const pluginServices: {
|
|
|
4340
4569
|
authorName?: string;
|
|
4341
4570
|
authorEmail?: string;
|
|
4342
4571
|
authorAvatar?: string;
|
|
4343
|
-
authorUser?: string
|
|
4572
|
+
authorUser?: string | {
|
|
4573
|
+
id?: number;
|
|
4574
|
+
email?: string;
|
|
4575
|
+
};
|
|
4344
4576
|
locale?: string;
|
|
4345
4577
|
gotThread?: boolean;
|
|
4346
4578
|
threadFirstItemId?: number;
|
|
@@ -4374,7 +4606,10 @@ declare const pluginServices: {
|
|
|
4374
4606
|
authorName?: string;
|
|
4375
4607
|
authorEmail?: string;
|
|
4376
4608
|
authorAvatar?: string;
|
|
4377
|
-
authorUser?: string
|
|
4609
|
+
authorUser?: string | {
|
|
4610
|
+
id?: number;
|
|
4611
|
+
email?: string;
|
|
4612
|
+
};
|
|
4378
4613
|
locale?: string;
|
|
4379
4614
|
gotThread?: boolean;
|
|
4380
4615
|
threadFirstItemId?: number;
|
|
@@ -4392,7 +4627,7 @@ declare const pluginServices: {
|
|
|
4392
4627
|
author?: any;
|
|
4393
4628
|
};
|
|
4394
4629
|
};
|
|
4395
|
-
modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types
|
|
4630
|
+
modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types").Id, fieldName: T_2, value: {
|
|
4396
4631
|
id?: number;
|
|
4397
4632
|
documentId?: string;
|
|
4398
4633
|
content?: string;
|
|
@@ -4410,7 +4645,10 @@ declare const pluginServices: {
|
|
|
4410
4645
|
authorName?: string;
|
|
4411
4646
|
authorEmail?: string;
|
|
4412
4647
|
authorAvatar?: string;
|
|
4413
|
-
authorUser?: string
|
|
4648
|
+
authorUser?: string | {
|
|
4649
|
+
id?: number;
|
|
4650
|
+
email?: string;
|
|
4651
|
+
};
|
|
4414
4652
|
locale?: string;
|
|
4415
4653
|
gotThread?: boolean;
|
|
4416
4654
|
threadFirstItemId?: number;
|
|
@@ -4444,7 +4682,10 @@ declare const pluginServices: {
|
|
|
4444
4682
|
authorName?: string;
|
|
4445
4683
|
authorEmail?: string;
|
|
4446
4684
|
authorAvatar?: string;
|
|
4447
|
-
authorUser?: string
|
|
4685
|
+
authorUser?: string | {
|
|
4686
|
+
id?: number;
|
|
4687
|
+
email?: string;
|
|
4688
|
+
};
|
|
4448
4689
|
locale?: string;
|
|
4449
4690
|
gotThread?: boolean;
|
|
4450
4691
|
threadFirstItemId?: number;
|
|
@@ -4461,7 +4702,7 @@ declare const pluginServices: {
|
|
|
4461
4702
|
}[];
|
|
4462
4703
|
author?: any;
|
|
4463
4704
|
};
|
|
4464
|
-
}[T_2]): Promise<boolean>;
|
|
4705
|
+
}[T_2], deepLimit?: number): Promise<boolean>;
|
|
4465
4706
|
checkBadWords(content: string): Promise<string>;
|
|
4466
4707
|
registerLifecycleHook(): void;
|
|
4467
4708
|
runLifecycleHook(): Promise<void>;
|
|
@@ -4476,9 +4717,9 @@ declare const pluginServices: {
|
|
|
4476
4717
|
email?: string;
|
|
4477
4718
|
avatar?: string;
|
|
4478
4719
|
};
|
|
4479
|
-
threadOf?:
|
|
4480
|
-
relation?:
|
|
4481
|
-
}, user?: import("../@types
|
|
4720
|
+
threadOf?: string;
|
|
4721
|
+
relation?: `${string}::${string}.${string}`;
|
|
4722
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4482
4723
|
id?: number;
|
|
4483
4724
|
documentId?: string;
|
|
4484
4725
|
content?: string;
|
|
@@ -4496,7 +4737,10 @@ declare const pluginServices: {
|
|
|
4496
4737
|
authorName?: string;
|
|
4497
4738
|
authorEmail?: string;
|
|
4498
4739
|
authorAvatar?: string;
|
|
4499
|
-
authorUser?: string
|
|
4740
|
+
authorUser?: string | {
|
|
4741
|
+
id?: number;
|
|
4742
|
+
email?: string;
|
|
4743
|
+
};
|
|
4500
4744
|
locale?: string;
|
|
4501
4745
|
gotThread?: boolean;
|
|
4502
4746
|
threadFirstItemId?: number;
|
|
@@ -4530,7 +4774,10 @@ declare const pluginServices: {
|
|
|
4530
4774
|
authorName?: string;
|
|
4531
4775
|
authorEmail?: string;
|
|
4532
4776
|
authorAvatar?: string;
|
|
4533
|
-
authorUser?: string
|
|
4777
|
+
authorUser?: string | {
|
|
4778
|
+
id?: number;
|
|
4779
|
+
email?: string;
|
|
4780
|
+
};
|
|
4534
4781
|
locale?: string;
|
|
4535
4782
|
gotThread?: boolean;
|
|
4536
4783
|
threadFirstItemId?: number;
|
|
@@ -4548,11 +4795,17 @@ declare const pluginServices: {
|
|
|
4548
4795
|
author?: any;
|
|
4549
4796
|
};
|
|
4550
4797
|
}>;
|
|
4551
|
-
update({ commentId, content }: {
|
|
4798
|
+
update({ commentId, content, author, relation }: {
|
|
4552
4799
|
content?: string;
|
|
4553
|
-
|
|
4800
|
+
author?: {
|
|
4801
|
+
name?: string;
|
|
4802
|
+
id?: number;
|
|
4803
|
+
email?: string;
|
|
4804
|
+
avatar?: string;
|
|
4805
|
+
};
|
|
4806
|
+
relation?: `${string}::${string}.${string}`;
|
|
4554
4807
|
commentId?: number;
|
|
4555
|
-
}, user?: import("../@types
|
|
4808
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4556
4809
|
id?: number;
|
|
4557
4810
|
documentId?: string;
|
|
4558
4811
|
content?: string;
|
|
@@ -4570,7 +4823,10 @@ declare const pluginServices: {
|
|
|
4570
4823
|
authorName?: string;
|
|
4571
4824
|
authorEmail?: string;
|
|
4572
4825
|
authorAvatar?: string;
|
|
4573
|
-
authorUser?: string
|
|
4826
|
+
authorUser?: string | {
|
|
4827
|
+
id?: number;
|
|
4828
|
+
email?: string;
|
|
4829
|
+
};
|
|
4574
4830
|
locale?: string;
|
|
4575
4831
|
gotThread?: boolean;
|
|
4576
4832
|
threadFirstItemId?: number;
|
|
@@ -4604,7 +4860,10 @@ declare const pluginServices: {
|
|
|
4604
4860
|
authorName?: string;
|
|
4605
4861
|
authorEmail?: string;
|
|
4606
4862
|
authorAvatar?: string;
|
|
4607
|
-
authorUser?: string
|
|
4863
|
+
authorUser?: string | {
|
|
4864
|
+
id?: number;
|
|
4865
|
+
email?: string;
|
|
4866
|
+
};
|
|
4608
4867
|
locale?: string;
|
|
4609
4868
|
gotThread?: boolean;
|
|
4610
4869
|
threadFirstItemId?: number;
|
|
@@ -4624,10 +4883,10 @@ declare const pluginServices: {
|
|
|
4624
4883
|
}>;
|
|
4625
4884
|
reportAbuse({ commentId, relation, ...payload }: {
|
|
4626
4885
|
content?: string;
|
|
4627
|
-
reason?:
|
|
4628
|
-
relation?:
|
|
4886
|
+
reason?: import("../const").REPORT_REASON;
|
|
4887
|
+
relation?: `${string}::${string}.${string}`;
|
|
4629
4888
|
commentId?: number;
|
|
4630
|
-
}, user?: import("../@types
|
|
4889
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4631
4890
|
related: {
|
|
4632
4891
|
id?: number;
|
|
4633
4892
|
documentId?: string;
|
|
@@ -4646,7 +4905,10 @@ declare const pluginServices: {
|
|
|
4646
4905
|
authorName?: string;
|
|
4647
4906
|
authorEmail?: string;
|
|
4648
4907
|
authorAvatar?: string;
|
|
4649
|
-
authorUser?: string
|
|
4908
|
+
authorUser?: string | {
|
|
4909
|
+
id?: number;
|
|
4910
|
+
email?: string;
|
|
4911
|
+
};
|
|
4650
4912
|
locale?: string;
|
|
4651
4913
|
gotThread?: boolean;
|
|
4652
4914
|
threadFirstItemId?: number;
|
|
@@ -4680,7 +4942,10 @@ declare const pluginServices: {
|
|
|
4680
4942
|
authorName?: string;
|
|
4681
4943
|
authorEmail?: string;
|
|
4682
4944
|
authorAvatar?: string;
|
|
4683
|
-
authorUser?: string
|
|
4945
|
+
authorUser?: string | {
|
|
4946
|
+
id?: number;
|
|
4947
|
+
email?: string;
|
|
4948
|
+
};
|
|
4684
4949
|
locale?: string;
|
|
4685
4950
|
gotThread?: boolean;
|
|
4686
4951
|
threadFirstItemId?: number;
|
|
@@ -4710,9 +4975,9 @@ declare const pluginServices: {
|
|
|
4710
4975
|
}>;
|
|
4711
4976
|
markAsRemoved({ commentId, relation, authorId }: {
|
|
4712
4977
|
authorId?: string | number;
|
|
4713
|
-
relation?:
|
|
4978
|
+
relation?: `${string}::${string}.${string}`;
|
|
4714
4979
|
commentId?: number;
|
|
4715
|
-
}, user: import("../@types
|
|
4980
|
+
}, user: import("../@types").AdminUser): Promise<{
|
|
4716
4981
|
id?: number;
|
|
4717
4982
|
documentId?: string;
|
|
4718
4983
|
content?: string;
|
|
@@ -4730,7 +4995,10 @@ declare const pluginServices: {
|
|
|
4730
4995
|
authorName?: string;
|
|
4731
4996
|
authorEmail?: string;
|
|
4732
4997
|
authorAvatar?: string;
|
|
4733
|
-
authorUser?: string
|
|
4998
|
+
authorUser?: string | {
|
|
4999
|
+
id?: number;
|
|
5000
|
+
email?: string;
|
|
5001
|
+
};
|
|
4734
5002
|
locale?: string;
|
|
4735
5003
|
gotThread?: boolean;
|
|
4736
5004
|
threadFirstItemId?: number;
|
|
@@ -4764,7 +5032,10 @@ declare const pluginServices: {
|
|
|
4764
5032
|
authorName?: string;
|
|
4765
5033
|
authorEmail?: string;
|
|
4766
5034
|
authorAvatar?: string;
|
|
4767
|
-
authorUser?: string
|
|
5035
|
+
authorUser?: string | {
|
|
5036
|
+
id?: number;
|
|
5037
|
+
email?: string;
|
|
5038
|
+
};
|
|
4768
5039
|
locale?: string;
|
|
4769
5040
|
gotThread?: boolean;
|
|
4770
5041
|
threadFirstItemId?: number;
|
|
@@ -4783,8 +5054,8 @@ declare const pluginServices: {
|
|
|
4783
5054
|
};
|
|
4784
5055
|
}>;
|
|
4785
5056
|
sendAbuseReportEmail(reason: string, content: string): Promise<void>;
|
|
4786
|
-
markAsRemovedNested(commentId: string | number, status: boolean): Promise<
|
|
4787
|
-
sendResponseNotification(
|
|
5057
|
+
markAsRemovedNested(commentId: string | number, status: boolean): Promise<boolean>;
|
|
5058
|
+
sendResponseNotification(entity: {
|
|
4788
5059
|
id?: number;
|
|
4789
5060
|
documentId?: string;
|
|
4790
5061
|
content?: string;
|
|
@@ -4802,7 +5073,10 @@ declare const pluginServices: {
|
|
|
4802
5073
|
authorName?: string;
|
|
4803
5074
|
authorEmail?: string;
|
|
4804
5075
|
authorAvatar?: string;
|
|
4805
|
-
authorUser?: string
|
|
5076
|
+
authorUser?: string | {
|
|
5077
|
+
id?: number;
|
|
5078
|
+
email?: string;
|
|
5079
|
+
};
|
|
4806
5080
|
locale?: string;
|
|
4807
5081
|
gotThread?: boolean;
|
|
4808
5082
|
threadFirstItemId?: number;
|
|
@@ -4836,7 +5110,10 @@ declare const pluginServices: {
|
|
|
4836
5110
|
authorName?: string;
|
|
4837
5111
|
authorEmail?: string;
|
|
4838
5112
|
authorAvatar?: string;
|
|
4839
|
-
authorUser?: string
|
|
5113
|
+
authorUser?: string | {
|
|
5114
|
+
id?: number;
|
|
5115
|
+
email?: string;
|
|
5116
|
+
};
|
|
4840
5117
|
locale?: string;
|
|
4841
5118
|
gotThread?: boolean;
|
|
4842
5119
|
threadFirstItemId?: number;
|
|
@@ -4855,8 +5132,8 @@ declare const pluginServices: {
|
|
|
4855
5132
|
};
|
|
4856
5133
|
}): Promise<void>;
|
|
4857
5134
|
};
|
|
4858
|
-
common: ({ strapi }: import("../@types
|
|
4859
|
-
getConfig<T extends
|
|
5135
|
+
common: ({ strapi }: import("../@types").StrapiContext) => {
|
|
5136
|
+
getConfig<T extends string>(prop?: T, defaultValue?: import("../@types").PathValue<{
|
|
4860
5137
|
enabledCollections?: string[];
|
|
4861
5138
|
approvalFlow?: string[];
|
|
4862
5139
|
entryLabel?: Record<string, string[]>;
|
|
@@ -4873,24 +5150,11 @@ declare const pluginServices: {
|
|
|
4873
5150
|
gql?: {
|
|
4874
5151
|
auth?: boolean;
|
|
4875
5152
|
};
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
entryLabel?: Record<string, string[]>;
|
|
4880
|
-
moderatorRoles?: string[];
|
|
4881
|
-
badWords?: boolean;
|
|
4882
|
-
blockedAuthorProps?: string[];
|
|
4883
|
-
isValidationEnabled?: boolean;
|
|
4884
|
-
reportReasons?: {
|
|
4885
|
-
BAD_LANGUAGE?: import("../const").REPORT_REASON.BAD_LANGUAGE;
|
|
4886
|
-
DISCRIMINATION?: import("../const").REPORT_REASON.DISCRIMINATION;
|
|
4887
|
-
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
5153
|
+
client?: {
|
|
5154
|
+
url?: string;
|
|
5155
|
+
contactEmail?: string;
|
|
4888
5156
|
};
|
|
4889
|
-
|
|
4890
|
-
gql?: {
|
|
4891
|
-
auth?: boolean;
|
|
4892
|
-
};
|
|
4893
|
-
}[T] : {
|
|
5157
|
+
}, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
|
|
4894
5158
|
enabledCollections?: string[];
|
|
4895
5159
|
approvalFlow?: string[];
|
|
4896
5160
|
entryLabel?: Record<string, string[]>;
|
|
@@ -4907,7 +5171,11 @@ declare const pluginServices: {
|
|
|
4907
5171
|
gql?: {
|
|
4908
5172
|
auth?: boolean;
|
|
4909
5173
|
};
|
|
4910
|
-
|
|
5174
|
+
client?: {
|
|
5175
|
+
url?: string;
|
|
5176
|
+
contactEmail?: string;
|
|
5177
|
+
};
|
|
5178
|
+
}, T>>;
|
|
4911
5179
|
parseRelationString(relation: string): {
|
|
4912
5180
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
4913
5181
|
relatedId: string;
|
|
@@ -4933,7 +5201,10 @@ declare const pluginServices: {
|
|
|
4933
5201
|
authorName?: string;
|
|
4934
5202
|
authorEmail?: string;
|
|
4935
5203
|
authorAvatar?: string;
|
|
4936
|
-
authorUser?: string
|
|
5204
|
+
authorUser?: string | {
|
|
5205
|
+
id?: number;
|
|
5206
|
+
email?: string;
|
|
5207
|
+
};
|
|
4937
5208
|
locale?: string;
|
|
4938
5209
|
gotThread?: boolean;
|
|
4939
5210
|
threadFirstItemId?: number;
|
|
@@ -4967,7 +5238,10 @@ declare const pluginServices: {
|
|
|
4967
5238
|
authorName?: string;
|
|
4968
5239
|
authorEmail?: string;
|
|
4969
5240
|
authorAvatar?: string;
|
|
4970
|
-
authorUser?: string
|
|
5241
|
+
authorUser?: string | {
|
|
5242
|
+
id?: number;
|
|
5243
|
+
email?: string;
|
|
5244
|
+
};
|
|
4971
5245
|
locale?: string;
|
|
4972
5246
|
gotThread?: boolean;
|
|
4973
5247
|
threadFirstItemId?: number;
|
|
@@ -5008,7 +5282,10 @@ declare const pluginServices: {
|
|
|
5008
5282
|
authorName?: string;
|
|
5009
5283
|
authorEmail?: string;
|
|
5010
5284
|
authorAvatar?: string;
|
|
5011
|
-
authorUser?: string
|
|
5285
|
+
authorUser?: string | {
|
|
5286
|
+
id?: number;
|
|
5287
|
+
email?: string;
|
|
5288
|
+
};
|
|
5012
5289
|
locale?: string;
|
|
5013
5290
|
gotThread?: boolean;
|
|
5014
5291
|
threadFirstItemId?: number;
|
|
@@ -5042,7 +5319,10 @@ declare const pluginServices: {
|
|
|
5042
5319
|
authorName?: string;
|
|
5043
5320
|
authorEmail?: string;
|
|
5044
5321
|
authorAvatar?: string;
|
|
5045
|
-
authorUser?: string
|
|
5322
|
+
authorUser?: string | {
|
|
5323
|
+
id?: number;
|
|
5324
|
+
email?: string;
|
|
5325
|
+
};
|
|
5046
5326
|
locale?: string;
|
|
5047
5327
|
gotThread?: boolean;
|
|
5048
5328
|
threadFirstItemId?: number;
|
|
@@ -5077,7 +5357,10 @@ declare const pluginServices: {
|
|
|
5077
5357
|
authorName?: string;
|
|
5078
5358
|
authorEmail?: string;
|
|
5079
5359
|
authorAvatar?: string;
|
|
5080
|
-
authorUser?: string
|
|
5360
|
+
authorUser?: string | {
|
|
5361
|
+
id?: number;
|
|
5362
|
+
email?: string;
|
|
5363
|
+
};
|
|
5081
5364
|
locale?: string;
|
|
5082
5365
|
gotThread?: boolean;
|
|
5083
5366
|
threadFirstItemId?: number;
|
|
@@ -5111,7 +5394,10 @@ declare const pluginServices: {
|
|
|
5111
5394
|
authorName?: string;
|
|
5112
5395
|
authorEmail?: string;
|
|
5113
5396
|
authorAvatar?: string;
|
|
5114
|
-
authorUser?: string
|
|
5397
|
+
authorUser?: string | {
|
|
5398
|
+
id?: number;
|
|
5399
|
+
email?: string;
|
|
5400
|
+
};
|
|
5115
5401
|
locale?: string;
|
|
5116
5402
|
gotThread?: boolean;
|
|
5117
5403
|
threadFirstItemId?: number;
|
|
@@ -5137,7 +5423,7 @@ declare const pluginServices: {
|
|
|
5137
5423
|
pageSize?: number;
|
|
5138
5424
|
withCount?: boolean;
|
|
5139
5425
|
};
|
|
5140
|
-
relation?:
|
|
5426
|
+
relation?: `${string}::${string}.${string}`;
|
|
5141
5427
|
populate?: Record<string, boolean | {
|
|
5142
5428
|
populate?: boolean;
|
|
5143
5429
|
}>;
|
|
@@ -5342,7 +5628,10 @@ declare const pluginServices: {
|
|
|
5342
5628
|
authorName?: string;
|
|
5343
5629
|
authorEmail?: string;
|
|
5344
5630
|
authorAvatar?: string;
|
|
5345
|
-
authorUser?: string
|
|
5631
|
+
authorUser?: string | {
|
|
5632
|
+
id?: number;
|
|
5633
|
+
email?: string;
|
|
5634
|
+
};
|
|
5346
5635
|
locale?: string;
|
|
5347
5636
|
gotThread?: boolean;
|
|
5348
5637
|
threadFirstItemId?: number;
|
|
@@ -5376,7 +5665,10 @@ declare const pluginServices: {
|
|
|
5376
5665
|
authorName?: string;
|
|
5377
5666
|
authorEmail?: string;
|
|
5378
5667
|
authorAvatar?: string;
|
|
5379
|
-
authorUser?: string
|
|
5668
|
+
authorUser?: string | {
|
|
5669
|
+
id?: number;
|
|
5670
|
+
email?: string;
|
|
5671
|
+
};
|
|
5380
5672
|
locale?: string;
|
|
5381
5673
|
gotThread?: boolean;
|
|
5382
5674
|
threadFirstItemId?: number;
|
|
@@ -5417,7 +5709,10 @@ declare const pluginServices: {
|
|
|
5417
5709
|
authorName?: string;
|
|
5418
5710
|
authorEmail?: string;
|
|
5419
5711
|
authorAvatar?: string;
|
|
5420
|
-
authorUser?: string
|
|
5712
|
+
authorUser?: string | {
|
|
5713
|
+
id?: number;
|
|
5714
|
+
email?: string;
|
|
5715
|
+
};
|
|
5421
5716
|
locale?: string;
|
|
5422
5717
|
gotThread?: boolean;
|
|
5423
5718
|
threadFirstItemId?: number;
|
|
@@ -5451,7 +5746,10 @@ declare const pluginServices: {
|
|
|
5451
5746
|
authorName?: string;
|
|
5452
5747
|
authorEmail?: string;
|
|
5453
5748
|
authorAvatar?: string;
|
|
5454
|
-
authorUser?: string
|
|
5749
|
+
authorUser?: string | {
|
|
5750
|
+
id?: number;
|
|
5751
|
+
email?: string;
|
|
5752
|
+
};
|
|
5455
5753
|
locale?: string;
|
|
5456
5754
|
gotThread?: boolean;
|
|
5457
5755
|
threadFirstItemId?: number;
|
|
@@ -5479,7 +5777,7 @@ declare const pluginServices: {
|
|
|
5479
5777
|
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
5480
5778
|
sort?: string;
|
|
5481
5779
|
locale?: string;
|
|
5482
|
-
relation?:
|
|
5780
|
+
relation?: `${string}::${string}.${string}`;
|
|
5483
5781
|
populate?: Record<string, boolean | {
|
|
5484
5782
|
populate?: boolean;
|
|
5485
5783
|
}>;
|
|
@@ -5685,7 +5983,10 @@ declare const pluginServices: {
|
|
|
5685
5983
|
authorName?: string;
|
|
5686
5984
|
authorEmail?: string;
|
|
5687
5985
|
authorAvatar?: string;
|
|
5688
|
-
authorUser?: string
|
|
5986
|
+
authorUser?: string | {
|
|
5987
|
+
id?: number;
|
|
5988
|
+
email?: string;
|
|
5989
|
+
};
|
|
5689
5990
|
locale?: string;
|
|
5690
5991
|
gotThread?: boolean;
|
|
5691
5992
|
threadFirstItemId?: number;
|
|
@@ -5719,7 +6020,10 @@ declare const pluginServices: {
|
|
|
5719
6020
|
authorName?: string;
|
|
5720
6021
|
authorEmail?: string;
|
|
5721
6022
|
authorAvatar?: string;
|
|
5722
|
-
authorUser?: string
|
|
6023
|
+
authorUser?: string | {
|
|
6024
|
+
id?: number;
|
|
6025
|
+
email?: string;
|
|
6026
|
+
};
|
|
5723
6027
|
locale?: string;
|
|
5724
6028
|
gotThread?: boolean;
|
|
5725
6029
|
threadFirstItemId?: number;
|
|
@@ -5755,7 +6059,10 @@ declare const pluginServices: {
|
|
|
5755
6059
|
authorName?: string;
|
|
5756
6060
|
authorEmail?: string;
|
|
5757
6061
|
authorAvatar?: string;
|
|
5758
|
-
authorUser?: string
|
|
6062
|
+
authorUser?: string | {
|
|
6063
|
+
id?: number;
|
|
6064
|
+
email?: string;
|
|
6065
|
+
};
|
|
5759
6066
|
locale?: string;
|
|
5760
6067
|
gotThread?: boolean;
|
|
5761
6068
|
threadFirstItemId?: number;
|
|
@@ -5789,7 +6096,10 @@ declare const pluginServices: {
|
|
|
5789
6096
|
authorName?: string;
|
|
5790
6097
|
authorEmail?: string;
|
|
5791
6098
|
authorAvatar?: string;
|
|
5792
|
-
authorUser?: string
|
|
6099
|
+
authorUser?: string | {
|
|
6100
|
+
id?: number;
|
|
6101
|
+
email?: string;
|
|
6102
|
+
};
|
|
5793
6103
|
locale?: string;
|
|
5794
6104
|
gotThread?: boolean;
|
|
5795
6105
|
threadFirstItemId?: number;
|
|
@@ -5825,7 +6135,10 @@ declare const pluginServices: {
|
|
|
5825
6135
|
authorName?: string;
|
|
5826
6136
|
authorEmail?: string;
|
|
5827
6137
|
authorAvatar?: string;
|
|
5828
|
-
authorUser?: string
|
|
6138
|
+
authorUser?: string | {
|
|
6139
|
+
id?: number;
|
|
6140
|
+
email?: string;
|
|
6141
|
+
};
|
|
5829
6142
|
locale?: string;
|
|
5830
6143
|
gotThread?: boolean;
|
|
5831
6144
|
threadFirstItemId?: number;
|
|
@@ -5859,7 +6172,10 @@ declare const pluginServices: {
|
|
|
5859
6172
|
authorName?: string;
|
|
5860
6173
|
authorEmail?: string;
|
|
5861
6174
|
authorAvatar?: string;
|
|
5862
|
-
authorUser?: string
|
|
6175
|
+
authorUser?: string | {
|
|
6176
|
+
id?: number;
|
|
6177
|
+
email?: string;
|
|
6178
|
+
};
|
|
5863
6179
|
locale?: string;
|
|
5864
6180
|
gotThread?: boolean;
|
|
5865
6181
|
threadFirstItemId?: number;
|
|
@@ -5895,7 +6211,10 @@ declare const pluginServices: {
|
|
|
5895
6211
|
authorName?: string;
|
|
5896
6212
|
authorEmail?: string;
|
|
5897
6213
|
authorAvatar?: string;
|
|
5898
|
-
authorUser?: string
|
|
6214
|
+
authorUser?: string | {
|
|
6215
|
+
id?: number;
|
|
6216
|
+
email?: string;
|
|
6217
|
+
};
|
|
5899
6218
|
locale?: string;
|
|
5900
6219
|
gotThread?: boolean;
|
|
5901
6220
|
threadFirstItemId?: number;
|
|
@@ -5929,7 +6248,10 @@ declare const pluginServices: {
|
|
|
5929
6248
|
authorName?: string;
|
|
5930
6249
|
authorEmail?: string;
|
|
5931
6250
|
authorAvatar?: string;
|
|
5932
|
-
authorUser?: string
|
|
6251
|
+
authorUser?: string | {
|
|
6252
|
+
id?: number;
|
|
6253
|
+
email?: string;
|
|
6254
|
+
};
|
|
5933
6255
|
locale?: string;
|
|
5934
6256
|
gotThread?: boolean;
|
|
5935
6257
|
threadFirstItemId?: number;
|
|
@@ -5964,7 +6286,10 @@ declare const pluginServices: {
|
|
|
5964
6286
|
authorName?: string;
|
|
5965
6287
|
authorEmail?: string;
|
|
5966
6288
|
authorAvatar?: string;
|
|
5967
|
-
authorUser?: string
|
|
6289
|
+
authorUser?: string | {
|
|
6290
|
+
id?: number;
|
|
6291
|
+
email?: string;
|
|
6292
|
+
};
|
|
5968
6293
|
locale?: string;
|
|
5969
6294
|
gotThread?: boolean;
|
|
5970
6295
|
threadFirstItemId?: number;
|
|
@@ -5998,7 +6323,10 @@ declare const pluginServices: {
|
|
|
5998
6323
|
authorName?: string;
|
|
5999
6324
|
authorEmail?: string;
|
|
6000
6325
|
authorAvatar?: string;
|
|
6001
|
-
authorUser?: string
|
|
6326
|
+
authorUser?: string | {
|
|
6327
|
+
id?: number;
|
|
6328
|
+
email?: string;
|
|
6329
|
+
};
|
|
6002
6330
|
locale?: string;
|
|
6003
6331
|
gotThread?: boolean;
|
|
6004
6332
|
threadFirstItemId?: number;
|
|
@@ -6230,7 +6558,10 @@ declare const pluginServices: {
|
|
|
6230
6558
|
authorName?: string;
|
|
6231
6559
|
authorEmail?: string;
|
|
6232
6560
|
authorAvatar?: string;
|
|
6233
|
-
authorUser?: string
|
|
6561
|
+
authorUser?: string | {
|
|
6562
|
+
id?: number;
|
|
6563
|
+
email?: string;
|
|
6564
|
+
};
|
|
6234
6565
|
locale?: string;
|
|
6235
6566
|
gotThread?: boolean;
|
|
6236
6567
|
threadFirstItemId?: number;
|
|
@@ -6263,7 +6594,10 @@ declare const pluginServices: {
|
|
|
6263
6594
|
authorName?: string;
|
|
6264
6595
|
authorEmail?: string;
|
|
6265
6596
|
authorAvatar?: string;
|
|
6266
|
-
authorUser?: string
|
|
6597
|
+
authorUser?: string | {
|
|
6598
|
+
id?: number;
|
|
6599
|
+
email?: string;
|
|
6600
|
+
};
|
|
6267
6601
|
locale?: string;
|
|
6268
6602
|
gotThread?: boolean;
|
|
6269
6603
|
threadFirstItemId?: number;
|
|
@@ -6304,7 +6638,10 @@ declare const pluginServices: {
|
|
|
6304
6638
|
authorName?: string;
|
|
6305
6639
|
authorEmail?: string;
|
|
6306
6640
|
authorAvatar?: string;
|
|
6307
|
-
authorUser?: string
|
|
6641
|
+
authorUser?: string | {
|
|
6642
|
+
id?: number;
|
|
6643
|
+
email?: string;
|
|
6644
|
+
};
|
|
6308
6645
|
locale?: string;
|
|
6309
6646
|
gotThread?: boolean;
|
|
6310
6647
|
threadFirstItemId?: number;
|
|
@@ -6337,7 +6674,10 @@ declare const pluginServices: {
|
|
|
6337
6674
|
authorName?: string;
|
|
6338
6675
|
authorEmail?: string;
|
|
6339
6676
|
authorAvatar?: string;
|
|
6340
|
-
authorUser?: string
|
|
6677
|
+
authorUser?: string | {
|
|
6678
|
+
id?: number;
|
|
6679
|
+
email?: string;
|
|
6680
|
+
};
|
|
6341
6681
|
locale?: string;
|
|
6342
6682
|
gotThread?: boolean;
|
|
6343
6683
|
threadFirstItemId?: number;
|
|
@@ -6380,7 +6720,10 @@ declare const pluginServices: {
|
|
|
6380
6720
|
authorName?: string;
|
|
6381
6721
|
authorEmail?: string;
|
|
6382
6722
|
authorAvatar?: string;
|
|
6383
|
-
authorUser?: string
|
|
6723
|
+
authorUser?: string | {
|
|
6724
|
+
id?: number;
|
|
6725
|
+
email?: string;
|
|
6726
|
+
};
|
|
6384
6727
|
locale?: string;
|
|
6385
6728
|
gotThread?: boolean;
|
|
6386
6729
|
threadFirstItemId?: number;
|
|
@@ -6414,7 +6757,10 @@ declare const pluginServices: {
|
|
|
6414
6757
|
authorName?: string;
|
|
6415
6758
|
authorEmail?: string;
|
|
6416
6759
|
authorAvatar?: string;
|
|
6417
|
-
authorUser?: string
|
|
6760
|
+
authorUser?: string | {
|
|
6761
|
+
id?: number;
|
|
6762
|
+
email?: string;
|
|
6763
|
+
};
|
|
6418
6764
|
locale?: string;
|
|
6419
6765
|
gotThread?: boolean;
|
|
6420
6766
|
threadFirstItemId?: number;
|
|
@@ -6456,7 +6802,10 @@ declare const pluginServices: {
|
|
|
6456
6802
|
authorName?: string;
|
|
6457
6803
|
authorEmail?: string;
|
|
6458
6804
|
authorAvatar?: string;
|
|
6459
|
-
authorUser?: string
|
|
6805
|
+
authorUser?: string | {
|
|
6806
|
+
id?: number;
|
|
6807
|
+
email?: string;
|
|
6808
|
+
};
|
|
6460
6809
|
locale?: string;
|
|
6461
6810
|
gotThread?: boolean;
|
|
6462
6811
|
threadFirstItemId?: number;
|
|
@@ -6490,7 +6839,10 @@ declare const pluginServices: {
|
|
|
6490
6839
|
authorName?: string;
|
|
6491
6840
|
authorEmail?: string;
|
|
6492
6841
|
authorAvatar?: string;
|
|
6493
|
-
authorUser?: string
|
|
6842
|
+
authorUser?: string | {
|
|
6843
|
+
id?: number;
|
|
6844
|
+
email?: string;
|
|
6845
|
+
};
|
|
6494
6846
|
locale?: string;
|
|
6495
6847
|
gotThread?: boolean;
|
|
6496
6848
|
threadFirstItemId?: number;
|
|
@@ -6537,7 +6889,10 @@ declare const pluginServices: {
|
|
|
6537
6889
|
authorName?: string;
|
|
6538
6890
|
authorEmail?: string;
|
|
6539
6891
|
authorAvatar?: string;
|
|
6540
|
-
authorUser?: string
|
|
6892
|
+
authorUser?: string | {
|
|
6893
|
+
id?: number;
|
|
6894
|
+
email?: string;
|
|
6895
|
+
};
|
|
6541
6896
|
locale?: string;
|
|
6542
6897
|
gotThread?: boolean;
|
|
6543
6898
|
threadFirstItemId?: number;
|
|
@@ -6571,7 +6926,10 @@ declare const pluginServices: {
|
|
|
6571
6926
|
authorName?: string;
|
|
6572
6927
|
authorEmail?: string;
|
|
6573
6928
|
authorAvatar?: string;
|
|
6574
|
-
authorUser?: string
|
|
6929
|
+
authorUser?: string | {
|
|
6930
|
+
id?: number;
|
|
6931
|
+
email?: string;
|
|
6932
|
+
};
|
|
6575
6933
|
locale?: string;
|
|
6576
6934
|
gotThread?: boolean;
|
|
6577
6935
|
threadFirstItemId?: number;
|
|
@@ -6589,7 +6947,7 @@ declare const pluginServices: {
|
|
|
6589
6947
|
author?: any;
|
|
6590
6948
|
};
|
|
6591
6949
|
};
|
|
6592
|
-
modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types
|
|
6950
|
+
modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types").Id, fieldName: T_2, value: {
|
|
6593
6951
|
id?: number;
|
|
6594
6952
|
documentId?: string;
|
|
6595
6953
|
content?: string;
|
|
@@ -6607,7 +6965,10 @@ declare const pluginServices: {
|
|
|
6607
6965
|
authorName?: string;
|
|
6608
6966
|
authorEmail?: string;
|
|
6609
6967
|
authorAvatar?: string;
|
|
6610
|
-
authorUser?: string
|
|
6968
|
+
authorUser?: string | {
|
|
6969
|
+
id?: number;
|
|
6970
|
+
email?: string;
|
|
6971
|
+
};
|
|
6611
6972
|
locale?: string;
|
|
6612
6973
|
gotThread?: boolean;
|
|
6613
6974
|
threadFirstItemId?: number;
|
|
@@ -6641,7 +7002,10 @@ declare const pluginServices: {
|
|
|
6641
7002
|
authorName?: string;
|
|
6642
7003
|
authorEmail?: string;
|
|
6643
7004
|
authorAvatar?: string;
|
|
6644
|
-
authorUser?: string
|
|
7005
|
+
authorUser?: string | {
|
|
7006
|
+
id?: number;
|
|
7007
|
+
email?: string;
|
|
7008
|
+
};
|
|
6645
7009
|
locale?: string;
|
|
6646
7010
|
gotThread?: boolean;
|
|
6647
7011
|
threadFirstItemId?: number;
|
|
@@ -6658,12 +7022,12 @@ declare const pluginServices: {
|
|
|
6658
7022
|
}[];
|
|
6659
7023
|
author?: any;
|
|
6660
7024
|
};
|
|
6661
|
-
}[T_2]): Promise<boolean>;
|
|
7025
|
+
}[T_2], deepLimit?: number): Promise<boolean>;
|
|
6662
7026
|
checkBadWords(content: string): Promise<string>;
|
|
6663
7027
|
registerLifecycleHook(): void;
|
|
6664
7028
|
runLifecycleHook(): Promise<void>;
|
|
6665
7029
|
};
|
|
6666
|
-
settings: ({ strapi }: import("../@types
|
|
7030
|
+
settings: ({ strapi }: import("../@types").StrapiContext) => {
|
|
6667
7031
|
getConfig: (viaSettingsPage?: boolean) => Promise<{
|
|
6668
7032
|
enabledCollections?: string[];
|
|
6669
7033
|
approvalFlow?: string[];
|
|
@@ -6681,6 +7045,10 @@ declare const pluginServices: {
|
|
|
6681
7045
|
gql?: {
|
|
6682
7046
|
auth?: boolean;
|
|
6683
7047
|
};
|
|
7048
|
+
client?: {
|
|
7049
|
+
url?: string;
|
|
7050
|
+
contactEmail?: string;
|
|
7051
|
+
};
|
|
6684
7052
|
} | Omit<{
|
|
6685
7053
|
enabledCollections?: string[];
|
|
6686
7054
|
approvalFlow?: string[];
|
|
@@ -6698,6 +7066,10 @@ declare const pluginServices: {
|
|
|
6698
7066
|
gql?: {
|
|
6699
7067
|
auth?: boolean;
|
|
6700
7068
|
};
|
|
7069
|
+
client?: {
|
|
7070
|
+
url?: string;
|
|
7071
|
+
contactEmail?: string;
|
|
7072
|
+
};
|
|
6701
7073
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6702
7074
|
update: (config: {
|
|
6703
7075
|
enabledCollections?: string[];
|
|
@@ -6716,6 +7088,10 @@ declare const pluginServices: {
|
|
|
6716
7088
|
gql?: {
|
|
6717
7089
|
auth?: boolean;
|
|
6718
7090
|
};
|
|
7091
|
+
client?: {
|
|
7092
|
+
url?: string;
|
|
7093
|
+
contactEmail?: string;
|
|
7094
|
+
};
|
|
6719
7095
|
}) => Promise<{
|
|
6720
7096
|
enabledCollections?: string[];
|
|
6721
7097
|
approvalFlow?: string[];
|
|
@@ -6733,6 +7109,10 @@ declare const pluginServices: {
|
|
|
6733
7109
|
gql?: {
|
|
6734
7110
|
auth?: boolean;
|
|
6735
7111
|
};
|
|
7112
|
+
client?: {
|
|
7113
|
+
url?: string;
|
|
7114
|
+
contactEmail?: string;
|
|
7115
|
+
};
|
|
6736
7116
|
} | Omit<{
|
|
6737
7117
|
enabledCollections?: string[];
|
|
6738
7118
|
approvalFlow?: string[];
|
|
@@ -6750,6 +7130,10 @@ declare const pluginServices: {
|
|
|
6750
7130
|
gql?: {
|
|
6751
7131
|
auth?: boolean;
|
|
6752
7132
|
};
|
|
7133
|
+
client?: {
|
|
7134
|
+
url?: string;
|
|
7135
|
+
contactEmail?: string;
|
|
7136
|
+
};
|
|
6753
7137
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6754
7138
|
restore: () => Promise<{
|
|
6755
7139
|
enabledCollections?: string[];
|
|
@@ -6768,6 +7152,10 @@ declare const pluginServices: {
|
|
|
6768
7152
|
gql?: {
|
|
6769
7153
|
auth?: boolean;
|
|
6770
7154
|
};
|
|
7155
|
+
client?: {
|
|
7156
|
+
url?: string;
|
|
7157
|
+
contactEmail?: string;
|
|
7158
|
+
};
|
|
6771
7159
|
} | Omit<{
|
|
6772
7160
|
enabledCollections?: string[];
|
|
6773
7161
|
approvalFlow?: string[];
|
|
@@ -6785,10 +7173,14 @@ declare const pluginServices: {
|
|
|
6785
7173
|
gql?: {
|
|
6786
7174
|
auth?: boolean;
|
|
6787
7175
|
};
|
|
7176
|
+
client?: {
|
|
7177
|
+
url?: string;
|
|
7178
|
+
contactEmail?: string;
|
|
7179
|
+
};
|
|
6788
7180
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6789
7181
|
restart: () => void;
|
|
6790
7182
|
};
|
|
6791
|
-
gql: ({ strapi }: import("../@types
|
|
7183
|
+
gql: ({ strapi }: import("../@types").StrapiContext) => {
|
|
6792
7184
|
graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
|
|
6793
7185
|
buildContentTypeFilters<T_3 extends import("@strapi/types/dist/uid").ContentType>(contentType: import("@strapi/types/dist/schema").ContentType<T_3>): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
|
|
6794
7186
|
};
|