strapi-plugin-comments 3.0.0-beta.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -122
- package/dist/_chunks/{index-CY_AVWS-.js → index-B-ygLKrb.js} +417 -242
- package/dist/_chunks/{index-D3iNqWZT.mjs → index-BgN4aUMA.mjs} +5 -5
- package/dist/_chunks/{index-BBcsmSTs.mjs → index-Bx2boY6h.mjs} +420 -245
- package/dist/_chunks/{index-DJ32APz-.mjs → index-CIqMAf50.mjs} +1277 -1152
- package/dist/_chunks/{index-BXEk5PWx.js → index-CWfr5ejx.js} +20 -26
- package/dist/_chunks/{index-BFPteXuP.js → index-D8uskGzQ.js} +5 -5
- package/dist/_chunks/{index-Bcck91A8.js → index-DFAPx7Bl.js} +1290 -1144
- package/dist/_chunks/{index-D9MOkoQ2.mjs → index-Db2zwbpe.mjs} +20 -26
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +30 -50
- package/dist/admin/src/api/schemas.d.ts +432 -756
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +30 -50
- package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
- package/dist/admin/src/hooks/useReports.d.ts +6 -10
- package/dist/server/index.js +198 -144
- package/dist/server/index.mjs +198 -144
- package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/config/index.d.ts +30 -0
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/controllers/admin.controller.d.ts +108 -29
- package/dist/server/src/controllers/client.controller.d.ts +117 -23
- package/dist/server/src/controllers/index.d.ts +297 -88
- package/dist/server/src/controllers/settings.controller.d.ts +33 -1
- package/dist/server/src/graphql/index.d.ts +1 -1
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/index.d.ts +2 -2
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
- package/dist/server/src/graphql/queries/index.d.ts +2 -2
- package/dist/server/src/graphql/types/getComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getId.d.ts +1 -1
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +921 -314
- package/dist/server/src/register/custom-fields/index.d.ts +1 -1
- package/dist/server/src/register/index.d.ts +1 -1
- package/dist/server/src/repositories/comment.repository.d.ts +10 -1
- package/dist/server/src/repositories/index.d.ts +0 -2
- package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
- package/dist/server/src/repositories/store.repository.d.ts +159 -3
- package/dist/server/src/repositories/utils.d.ts +1 -3
- package/dist/server/src/routes/admin.routes.d.ts +1 -1
- package/dist/server/src/routes/client.routes.d.ts +1 -1
- package/dist/server/src/routes/index.d.ts +2 -2
- package/dist/server/src/services/admin/admin.service.d.ts +232 -78
- package/dist/server/src/services/admin/utils.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +177 -66
- package/dist/server/src/services/common.service.d.ts +60 -19
- package/dist/server/src/services/gql.service.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +608 -222
- package/dist/server/src/services/settings.service.d.ts +25 -1
- package/dist/server/src/services/utils/functions.d.ts +1 -3
- package/dist/server/src/test/utils.d.ts +1 -0
- package/dist/server/src/utils/constants.d.ts +1 -1
- package/dist/server/src/utils/getConfig.d.ts +2 -2
- package/dist/server/src/utils/getPluginService.d.ts +2 -2
- package/dist/server/src/utils/throwError.d.ts +1 -1
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +10 -9
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
- package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +18 -12
- /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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;
|
|
@@ -4550,9 +4797,9 @@ declare const pluginServices: {
|
|
|
4550
4797
|
}>;
|
|
4551
4798
|
update({ commentId, content }: {
|
|
4552
4799
|
content?: string;
|
|
4553
|
-
relation?:
|
|
4800
|
+
relation?: `${string}::${string}.${string}`;
|
|
4554
4801
|
commentId?: number;
|
|
4555
|
-
}, user?: import("../@types
|
|
4802
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4556
4803
|
id?: number;
|
|
4557
4804
|
documentId?: string;
|
|
4558
4805
|
content?: string;
|
|
@@ -4570,7 +4817,10 @@ declare const pluginServices: {
|
|
|
4570
4817
|
authorName?: string;
|
|
4571
4818
|
authorEmail?: string;
|
|
4572
4819
|
authorAvatar?: string;
|
|
4573
|
-
authorUser?: string
|
|
4820
|
+
authorUser?: string | {
|
|
4821
|
+
id?: number;
|
|
4822
|
+
email?: string;
|
|
4823
|
+
};
|
|
4574
4824
|
locale?: string;
|
|
4575
4825
|
gotThread?: boolean;
|
|
4576
4826
|
threadFirstItemId?: number;
|
|
@@ -4604,7 +4854,10 @@ declare const pluginServices: {
|
|
|
4604
4854
|
authorName?: string;
|
|
4605
4855
|
authorEmail?: string;
|
|
4606
4856
|
authorAvatar?: string;
|
|
4607
|
-
authorUser?: string
|
|
4857
|
+
authorUser?: string | {
|
|
4858
|
+
id?: number;
|
|
4859
|
+
email?: string;
|
|
4860
|
+
};
|
|
4608
4861
|
locale?: string;
|
|
4609
4862
|
gotThread?: boolean;
|
|
4610
4863
|
threadFirstItemId?: number;
|
|
@@ -4624,10 +4877,10 @@ declare const pluginServices: {
|
|
|
4624
4877
|
}>;
|
|
4625
4878
|
reportAbuse({ commentId, relation, ...payload }: {
|
|
4626
4879
|
content?: string;
|
|
4627
|
-
reason?:
|
|
4628
|
-
relation?:
|
|
4880
|
+
reason?: import("../const").REPORT_REASON;
|
|
4881
|
+
relation?: `${string}::${string}.${string}`;
|
|
4629
4882
|
commentId?: number;
|
|
4630
|
-
}, user?: import("../@types
|
|
4883
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4631
4884
|
related: {
|
|
4632
4885
|
id?: number;
|
|
4633
4886
|
documentId?: string;
|
|
@@ -4646,7 +4899,10 @@ declare const pluginServices: {
|
|
|
4646
4899
|
authorName?: string;
|
|
4647
4900
|
authorEmail?: string;
|
|
4648
4901
|
authorAvatar?: string;
|
|
4649
|
-
authorUser?: string
|
|
4902
|
+
authorUser?: string | {
|
|
4903
|
+
id?: number;
|
|
4904
|
+
email?: string;
|
|
4905
|
+
};
|
|
4650
4906
|
locale?: string;
|
|
4651
4907
|
gotThread?: boolean;
|
|
4652
4908
|
threadFirstItemId?: number;
|
|
@@ -4680,7 +4936,10 @@ declare const pluginServices: {
|
|
|
4680
4936
|
authorName?: string;
|
|
4681
4937
|
authorEmail?: string;
|
|
4682
4938
|
authorAvatar?: string;
|
|
4683
|
-
authorUser?: string
|
|
4939
|
+
authorUser?: string | {
|
|
4940
|
+
id?: number;
|
|
4941
|
+
email?: string;
|
|
4942
|
+
};
|
|
4684
4943
|
locale?: string;
|
|
4685
4944
|
gotThread?: boolean;
|
|
4686
4945
|
threadFirstItemId?: number;
|
|
@@ -4710,9 +4969,9 @@ declare const pluginServices: {
|
|
|
4710
4969
|
}>;
|
|
4711
4970
|
markAsRemoved({ commentId, relation, authorId }: {
|
|
4712
4971
|
authorId?: string | number;
|
|
4713
|
-
relation?:
|
|
4972
|
+
relation?: `${string}::${string}.${string}`;
|
|
4714
4973
|
commentId?: number;
|
|
4715
|
-
}, user: import("../@types
|
|
4974
|
+
}, user: import("../@types").AdminUser): Promise<{
|
|
4716
4975
|
id?: number;
|
|
4717
4976
|
documentId?: string;
|
|
4718
4977
|
content?: string;
|
|
@@ -4730,7 +4989,10 @@ declare const pluginServices: {
|
|
|
4730
4989
|
authorName?: string;
|
|
4731
4990
|
authorEmail?: string;
|
|
4732
4991
|
authorAvatar?: string;
|
|
4733
|
-
authorUser?: string
|
|
4992
|
+
authorUser?: string | {
|
|
4993
|
+
id?: number;
|
|
4994
|
+
email?: string;
|
|
4995
|
+
};
|
|
4734
4996
|
locale?: string;
|
|
4735
4997
|
gotThread?: boolean;
|
|
4736
4998
|
threadFirstItemId?: number;
|
|
@@ -4764,7 +5026,10 @@ declare const pluginServices: {
|
|
|
4764
5026
|
authorName?: string;
|
|
4765
5027
|
authorEmail?: string;
|
|
4766
5028
|
authorAvatar?: string;
|
|
4767
|
-
authorUser?: string
|
|
5029
|
+
authorUser?: string | {
|
|
5030
|
+
id?: number;
|
|
5031
|
+
email?: string;
|
|
5032
|
+
};
|
|
4768
5033
|
locale?: string;
|
|
4769
5034
|
gotThread?: boolean;
|
|
4770
5035
|
threadFirstItemId?: number;
|
|
@@ -4783,8 +5048,8 @@ declare const pluginServices: {
|
|
|
4783
5048
|
};
|
|
4784
5049
|
}>;
|
|
4785
5050
|
sendAbuseReportEmail(reason: string, content: string): Promise<void>;
|
|
4786
|
-
markAsRemovedNested(commentId: string | number, status: boolean): Promise<
|
|
4787
|
-
sendResponseNotification(
|
|
5051
|
+
markAsRemovedNested(commentId: string | number, status: boolean): Promise<boolean>;
|
|
5052
|
+
sendResponseNotification(entity: {
|
|
4788
5053
|
id?: number;
|
|
4789
5054
|
documentId?: string;
|
|
4790
5055
|
content?: string;
|
|
@@ -4802,7 +5067,10 @@ declare const pluginServices: {
|
|
|
4802
5067
|
authorName?: string;
|
|
4803
5068
|
authorEmail?: string;
|
|
4804
5069
|
authorAvatar?: string;
|
|
4805
|
-
authorUser?: string
|
|
5070
|
+
authorUser?: string | {
|
|
5071
|
+
id?: number;
|
|
5072
|
+
email?: string;
|
|
5073
|
+
};
|
|
4806
5074
|
locale?: string;
|
|
4807
5075
|
gotThread?: boolean;
|
|
4808
5076
|
threadFirstItemId?: number;
|
|
@@ -4836,7 +5104,10 @@ declare const pluginServices: {
|
|
|
4836
5104
|
authorName?: string;
|
|
4837
5105
|
authorEmail?: string;
|
|
4838
5106
|
authorAvatar?: string;
|
|
4839
|
-
authorUser?: string
|
|
5107
|
+
authorUser?: string | {
|
|
5108
|
+
id?: number;
|
|
5109
|
+
email?: string;
|
|
5110
|
+
};
|
|
4840
5111
|
locale?: string;
|
|
4841
5112
|
gotThread?: boolean;
|
|
4842
5113
|
threadFirstItemId?: number;
|
|
@@ -4855,8 +5126,8 @@ declare const pluginServices: {
|
|
|
4855
5126
|
};
|
|
4856
5127
|
}): Promise<void>;
|
|
4857
5128
|
};
|
|
4858
|
-
common: ({ strapi }: import("../@types
|
|
4859
|
-
getConfig<T extends
|
|
5129
|
+
common: ({ strapi }: import("../@types").StrapiContext) => {
|
|
5130
|
+
getConfig<T extends string>(prop?: T, defaultValue?: import("../@types").PathValue<{
|
|
4860
5131
|
enabledCollections?: string[];
|
|
4861
5132
|
approvalFlow?: string[];
|
|
4862
5133
|
entryLabel?: Record<string, string[]>;
|
|
@@ -4873,24 +5144,11 @@ declare const pluginServices: {
|
|
|
4873
5144
|
gql?: {
|
|
4874
5145
|
auth?: boolean;
|
|
4875
5146
|
};
|
|
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;
|
|
4888
|
-
};
|
|
4889
|
-
isGQLPluginEnabled?: boolean;
|
|
4890
|
-
gql?: {
|
|
4891
|
-
auth?: boolean;
|
|
5147
|
+
client?: {
|
|
5148
|
+
url?: string;
|
|
5149
|
+
contactEmail?: string;
|
|
4892
5150
|
};
|
|
4893
|
-
}
|
|
5151
|
+
}, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
|
|
4894
5152
|
enabledCollections?: string[];
|
|
4895
5153
|
approvalFlow?: string[];
|
|
4896
5154
|
entryLabel?: Record<string, string[]>;
|
|
@@ -4907,7 +5165,11 @@ declare const pluginServices: {
|
|
|
4907
5165
|
gql?: {
|
|
4908
5166
|
auth?: boolean;
|
|
4909
5167
|
};
|
|
4910
|
-
|
|
5168
|
+
client?: {
|
|
5169
|
+
url?: string;
|
|
5170
|
+
contactEmail?: string;
|
|
5171
|
+
};
|
|
5172
|
+
}, T>>;
|
|
4911
5173
|
parseRelationString(relation: string): {
|
|
4912
5174
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
4913
5175
|
relatedId: string;
|
|
@@ -4933,7 +5195,10 @@ declare const pluginServices: {
|
|
|
4933
5195
|
authorName?: string;
|
|
4934
5196
|
authorEmail?: string;
|
|
4935
5197
|
authorAvatar?: string;
|
|
4936
|
-
authorUser?: string
|
|
5198
|
+
authorUser?: string | {
|
|
5199
|
+
id?: number;
|
|
5200
|
+
email?: string;
|
|
5201
|
+
};
|
|
4937
5202
|
locale?: string;
|
|
4938
5203
|
gotThread?: boolean;
|
|
4939
5204
|
threadFirstItemId?: number;
|
|
@@ -4967,7 +5232,10 @@ declare const pluginServices: {
|
|
|
4967
5232
|
authorName?: string;
|
|
4968
5233
|
authorEmail?: string;
|
|
4969
5234
|
authorAvatar?: string;
|
|
4970
|
-
authorUser?: string
|
|
5235
|
+
authorUser?: string | {
|
|
5236
|
+
id?: number;
|
|
5237
|
+
email?: string;
|
|
5238
|
+
};
|
|
4971
5239
|
locale?: string;
|
|
4972
5240
|
gotThread?: boolean;
|
|
4973
5241
|
threadFirstItemId?: number;
|
|
@@ -5008,7 +5276,10 @@ declare const pluginServices: {
|
|
|
5008
5276
|
authorName?: string;
|
|
5009
5277
|
authorEmail?: string;
|
|
5010
5278
|
authorAvatar?: string;
|
|
5011
|
-
authorUser?: string
|
|
5279
|
+
authorUser?: string | {
|
|
5280
|
+
id?: number;
|
|
5281
|
+
email?: string;
|
|
5282
|
+
};
|
|
5012
5283
|
locale?: string;
|
|
5013
5284
|
gotThread?: boolean;
|
|
5014
5285
|
threadFirstItemId?: number;
|
|
@@ -5042,7 +5313,10 @@ declare const pluginServices: {
|
|
|
5042
5313
|
authorName?: string;
|
|
5043
5314
|
authorEmail?: string;
|
|
5044
5315
|
authorAvatar?: string;
|
|
5045
|
-
authorUser?: string
|
|
5316
|
+
authorUser?: string | {
|
|
5317
|
+
id?: number;
|
|
5318
|
+
email?: string;
|
|
5319
|
+
};
|
|
5046
5320
|
locale?: string;
|
|
5047
5321
|
gotThread?: boolean;
|
|
5048
5322
|
threadFirstItemId?: number;
|
|
@@ -5077,7 +5351,10 @@ declare const pluginServices: {
|
|
|
5077
5351
|
authorName?: string;
|
|
5078
5352
|
authorEmail?: string;
|
|
5079
5353
|
authorAvatar?: string;
|
|
5080
|
-
authorUser?: string
|
|
5354
|
+
authorUser?: string | {
|
|
5355
|
+
id?: number;
|
|
5356
|
+
email?: string;
|
|
5357
|
+
};
|
|
5081
5358
|
locale?: string;
|
|
5082
5359
|
gotThread?: boolean;
|
|
5083
5360
|
threadFirstItemId?: number;
|
|
@@ -5111,7 +5388,10 @@ declare const pluginServices: {
|
|
|
5111
5388
|
authorName?: string;
|
|
5112
5389
|
authorEmail?: string;
|
|
5113
5390
|
authorAvatar?: string;
|
|
5114
|
-
authorUser?: string
|
|
5391
|
+
authorUser?: string | {
|
|
5392
|
+
id?: number;
|
|
5393
|
+
email?: string;
|
|
5394
|
+
};
|
|
5115
5395
|
locale?: string;
|
|
5116
5396
|
gotThread?: boolean;
|
|
5117
5397
|
threadFirstItemId?: number;
|
|
@@ -5137,7 +5417,7 @@ declare const pluginServices: {
|
|
|
5137
5417
|
pageSize?: number;
|
|
5138
5418
|
withCount?: boolean;
|
|
5139
5419
|
};
|
|
5140
|
-
relation?:
|
|
5420
|
+
relation?: `${string}::${string}.${string}`;
|
|
5141
5421
|
populate?: Record<string, boolean | {
|
|
5142
5422
|
populate?: boolean;
|
|
5143
5423
|
}>;
|
|
@@ -5342,7 +5622,10 @@ declare const pluginServices: {
|
|
|
5342
5622
|
authorName?: string;
|
|
5343
5623
|
authorEmail?: string;
|
|
5344
5624
|
authorAvatar?: string;
|
|
5345
|
-
authorUser?: string
|
|
5625
|
+
authorUser?: string | {
|
|
5626
|
+
id?: number;
|
|
5627
|
+
email?: string;
|
|
5628
|
+
};
|
|
5346
5629
|
locale?: string;
|
|
5347
5630
|
gotThread?: boolean;
|
|
5348
5631
|
threadFirstItemId?: number;
|
|
@@ -5376,7 +5659,10 @@ declare const pluginServices: {
|
|
|
5376
5659
|
authorName?: string;
|
|
5377
5660
|
authorEmail?: string;
|
|
5378
5661
|
authorAvatar?: string;
|
|
5379
|
-
authorUser?: string
|
|
5662
|
+
authorUser?: string | {
|
|
5663
|
+
id?: number;
|
|
5664
|
+
email?: string;
|
|
5665
|
+
};
|
|
5380
5666
|
locale?: string;
|
|
5381
5667
|
gotThread?: boolean;
|
|
5382
5668
|
threadFirstItemId?: number;
|
|
@@ -5417,7 +5703,10 @@ declare const pluginServices: {
|
|
|
5417
5703
|
authorName?: string;
|
|
5418
5704
|
authorEmail?: string;
|
|
5419
5705
|
authorAvatar?: string;
|
|
5420
|
-
authorUser?: string
|
|
5706
|
+
authorUser?: string | {
|
|
5707
|
+
id?: number;
|
|
5708
|
+
email?: string;
|
|
5709
|
+
};
|
|
5421
5710
|
locale?: string;
|
|
5422
5711
|
gotThread?: boolean;
|
|
5423
5712
|
threadFirstItemId?: number;
|
|
@@ -5451,7 +5740,10 @@ declare const pluginServices: {
|
|
|
5451
5740
|
authorName?: string;
|
|
5452
5741
|
authorEmail?: string;
|
|
5453
5742
|
authorAvatar?: string;
|
|
5454
|
-
authorUser?: string
|
|
5743
|
+
authorUser?: string | {
|
|
5744
|
+
id?: number;
|
|
5745
|
+
email?: string;
|
|
5746
|
+
};
|
|
5455
5747
|
locale?: string;
|
|
5456
5748
|
gotThread?: boolean;
|
|
5457
5749
|
threadFirstItemId?: number;
|
|
@@ -5479,7 +5771,7 @@ declare const pluginServices: {
|
|
|
5479
5771
|
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
5480
5772
|
sort?: string;
|
|
5481
5773
|
locale?: string;
|
|
5482
|
-
relation?:
|
|
5774
|
+
relation?: `${string}::${string}.${string}`;
|
|
5483
5775
|
populate?: Record<string, boolean | {
|
|
5484
5776
|
populate?: boolean;
|
|
5485
5777
|
}>;
|
|
@@ -5685,7 +5977,10 @@ declare const pluginServices: {
|
|
|
5685
5977
|
authorName?: string;
|
|
5686
5978
|
authorEmail?: string;
|
|
5687
5979
|
authorAvatar?: string;
|
|
5688
|
-
authorUser?: string
|
|
5980
|
+
authorUser?: string | {
|
|
5981
|
+
id?: number;
|
|
5982
|
+
email?: string;
|
|
5983
|
+
};
|
|
5689
5984
|
locale?: string;
|
|
5690
5985
|
gotThread?: boolean;
|
|
5691
5986
|
threadFirstItemId?: number;
|
|
@@ -5719,7 +6014,10 @@ declare const pluginServices: {
|
|
|
5719
6014
|
authorName?: string;
|
|
5720
6015
|
authorEmail?: string;
|
|
5721
6016
|
authorAvatar?: string;
|
|
5722
|
-
authorUser?: string
|
|
6017
|
+
authorUser?: string | {
|
|
6018
|
+
id?: number;
|
|
6019
|
+
email?: string;
|
|
6020
|
+
};
|
|
5723
6021
|
locale?: string;
|
|
5724
6022
|
gotThread?: boolean;
|
|
5725
6023
|
threadFirstItemId?: number;
|
|
@@ -5755,7 +6053,10 @@ declare const pluginServices: {
|
|
|
5755
6053
|
authorName?: string;
|
|
5756
6054
|
authorEmail?: string;
|
|
5757
6055
|
authorAvatar?: string;
|
|
5758
|
-
authorUser?: string
|
|
6056
|
+
authorUser?: string | {
|
|
6057
|
+
id?: number;
|
|
6058
|
+
email?: string;
|
|
6059
|
+
};
|
|
5759
6060
|
locale?: string;
|
|
5760
6061
|
gotThread?: boolean;
|
|
5761
6062
|
threadFirstItemId?: number;
|
|
@@ -5789,7 +6090,10 @@ declare const pluginServices: {
|
|
|
5789
6090
|
authorName?: string;
|
|
5790
6091
|
authorEmail?: string;
|
|
5791
6092
|
authorAvatar?: string;
|
|
5792
|
-
authorUser?: string
|
|
6093
|
+
authorUser?: string | {
|
|
6094
|
+
id?: number;
|
|
6095
|
+
email?: string;
|
|
6096
|
+
};
|
|
5793
6097
|
locale?: string;
|
|
5794
6098
|
gotThread?: boolean;
|
|
5795
6099
|
threadFirstItemId?: number;
|
|
@@ -5825,7 +6129,10 @@ declare const pluginServices: {
|
|
|
5825
6129
|
authorName?: string;
|
|
5826
6130
|
authorEmail?: string;
|
|
5827
6131
|
authorAvatar?: string;
|
|
5828
|
-
authorUser?: string
|
|
6132
|
+
authorUser?: string | {
|
|
6133
|
+
id?: number;
|
|
6134
|
+
email?: string;
|
|
6135
|
+
};
|
|
5829
6136
|
locale?: string;
|
|
5830
6137
|
gotThread?: boolean;
|
|
5831
6138
|
threadFirstItemId?: number;
|
|
@@ -5859,7 +6166,10 @@ declare const pluginServices: {
|
|
|
5859
6166
|
authorName?: string;
|
|
5860
6167
|
authorEmail?: string;
|
|
5861
6168
|
authorAvatar?: string;
|
|
5862
|
-
authorUser?: string
|
|
6169
|
+
authorUser?: string | {
|
|
6170
|
+
id?: number;
|
|
6171
|
+
email?: string;
|
|
6172
|
+
};
|
|
5863
6173
|
locale?: string;
|
|
5864
6174
|
gotThread?: boolean;
|
|
5865
6175
|
threadFirstItemId?: number;
|
|
@@ -5895,7 +6205,10 @@ declare const pluginServices: {
|
|
|
5895
6205
|
authorName?: string;
|
|
5896
6206
|
authorEmail?: string;
|
|
5897
6207
|
authorAvatar?: string;
|
|
5898
|
-
authorUser?: string
|
|
6208
|
+
authorUser?: string | {
|
|
6209
|
+
id?: number;
|
|
6210
|
+
email?: string;
|
|
6211
|
+
};
|
|
5899
6212
|
locale?: string;
|
|
5900
6213
|
gotThread?: boolean;
|
|
5901
6214
|
threadFirstItemId?: number;
|
|
@@ -5929,7 +6242,10 @@ declare const pluginServices: {
|
|
|
5929
6242
|
authorName?: string;
|
|
5930
6243
|
authorEmail?: string;
|
|
5931
6244
|
authorAvatar?: string;
|
|
5932
|
-
authorUser?: string
|
|
6245
|
+
authorUser?: string | {
|
|
6246
|
+
id?: number;
|
|
6247
|
+
email?: string;
|
|
6248
|
+
};
|
|
5933
6249
|
locale?: string;
|
|
5934
6250
|
gotThread?: boolean;
|
|
5935
6251
|
threadFirstItemId?: number;
|
|
@@ -5964,7 +6280,10 @@ declare const pluginServices: {
|
|
|
5964
6280
|
authorName?: string;
|
|
5965
6281
|
authorEmail?: string;
|
|
5966
6282
|
authorAvatar?: string;
|
|
5967
|
-
authorUser?: string
|
|
6283
|
+
authorUser?: string | {
|
|
6284
|
+
id?: number;
|
|
6285
|
+
email?: string;
|
|
6286
|
+
};
|
|
5968
6287
|
locale?: string;
|
|
5969
6288
|
gotThread?: boolean;
|
|
5970
6289
|
threadFirstItemId?: number;
|
|
@@ -5998,7 +6317,10 @@ declare const pluginServices: {
|
|
|
5998
6317
|
authorName?: string;
|
|
5999
6318
|
authorEmail?: string;
|
|
6000
6319
|
authorAvatar?: string;
|
|
6001
|
-
authorUser?: string
|
|
6320
|
+
authorUser?: string | {
|
|
6321
|
+
id?: number;
|
|
6322
|
+
email?: string;
|
|
6323
|
+
};
|
|
6002
6324
|
locale?: string;
|
|
6003
6325
|
gotThread?: boolean;
|
|
6004
6326
|
threadFirstItemId?: number;
|
|
@@ -6230,7 +6552,10 @@ declare const pluginServices: {
|
|
|
6230
6552
|
authorName?: string;
|
|
6231
6553
|
authorEmail?: string;
|
|
6232
6554
|
authorAvatar?: string;
|
|
6233
|
-
authorUser?: string
|
|
6555
|
+
authorUser?: string | {
|
|
6556
|
+
id?: number;
|
|
6557
|
+
email?: string;
|
|
6558
|
+
};
|
|
6234
6559
|
locale?: string;
|
|
6235
6560
|
gotThread?: boolean;
|
|
6236
6561
|
threadFirstItemId?: number;
|
|
@@ -6263,7 +6588,10 @@ declare const pluginServices: {
|
|
|
6263
6588
|
authorName?: string;
|
|
6264
6589
|
authorEmail?: string;
|
|
6265
6590
|
authorAvatar?: string;
|
|
6266
|
-
authorUser?: string
|
|
6591
|
+
authorUser?: string | {
|
|
6592
|
+
id?: number;
|
|
6593
|
+
email?: string;
|
|
6594
|
+
};
|
|
6267
6595
|
locale?: string;
|
|
6268
6596
|
gotThread?: boolean;
|
|
6269
6597
|
threadFirstItemId?: number;
|
|
@@ -6304,7 +6632,10 @@ declare const pluginServices: {
|
|
|
6304
6632
|
authorName?: string;
|
|
6305
6633
|
authorEmail?: string;
|
|
6306
6634
|
authorAvatar?: string;
|
|
6307
|
-
authorUser?: string
|
|
6635
|
+
authorUser?: string | {
|
|
6636
|
+
id?: number;
|
|
6637
|
+
email?: string;
|
|
6638
|
+
};
|
|
6308
6639
|
locale?: string;
|
|
6309
6640
|
gotThread?: boolean;
|
|
6310
6641
|
threadFirstItemId?: number;
|
|
@@ -6337,7 +6668,10 @@ declare const pluginServices: {
|
|
|
6337
6668
|
authorName?: string;
|
|
6338
6669
|
authorEmail?: string;
|
|
6339
6670
|
authorAvatar?: string;
|
|
6340
|
-
authorUser?: string
|
|
6671
|
+
authorUser?: string | {
|
|
6672
|
+
id?: number;
|
|
6673
|
+
email?: string;
|
|
6674
|
+
};
|
|
6341
6675
|
locale?: string;
|
|
6342
6676
|
gotThread?: boolean;
|
|
6343
6677
|
threadFirstItemId?: number;
|
|
@@ -6380,7 +6714,10 @@ declare const pluginServices: {
|
|
|
6380
6714
|
authorName?: string;
|
|
6381
6715
|
authorEmail?: string;
|
|
6382
6716
|
authorAvatar?: string;
|
|
6383
|
-
authorUser?: string
|
|
6717
|
+
authorUser?: string | {
|
|
6718
|
+
id?: number;
|
|
6719
|
+
email?: string;
|
|
6720
|
+
};
|
|
6384
6721
|
locale?: string;
|
|
6385
6722
|
gotThread?: boolean;
|
|
6386
6723
|
threadFirstItemId?: number;
|
|
@@ -6414,7 +6751,10 @@ declare const pluginServices: {
|
|
|
6414
6751
|
authorName?: string;
|
|
6415
6752
|
authorEmail?: string;
|
|
6416
6753
|
authorAvatar?: string;
|
|
6417
|
-
authorUser?: string
|
|
6754
|
+
authorUser?: string | {
|
|
6755
|
+
id?: number;
|
|
6756
|
+
email?: string;
|
|
6757
|
+
};
|
|
6418
6758
|
locale?: string;
|
|
6419
6759
|
gotThread?: boolean;
|
|
6420
6760
|
threadFirstItemId?: number;
|
|
@@ -6456,7 +6796,10 @@ declare const pluginServices: {
|
|
|
6456
6796
|
authorName?: string;
|
|
6457
6797
|
authorEmail?: string;
|
|
6458
6798
|
authorAvatar?: string;
|
|
6459
|
-
authorUser?: string
|
|
6799
|
+
authorUser?: string | {
|
|
6800
|
+
id?: number;
|
|
6801
|
+
email?: string;
|
|
6802
|
+
};
|
|
6460
6803
|
locale?: string;
|
|
6461
6804
|
gotThread?: boolean;
|
|
6462
6805
|
threadFirstItemId?: number;
|
|
@@ -6490,7 +6833,10 @@ declare const pluginServices: {
|
|
|
6490
6833
|
authorName?: string;
|
|
6491
6834
|
authorEmail?: string;
|
|
6492
6835
|
authorAvatar?: string;
|
|
6493
|
-
authorUser?: string
|
|
6836
|
+
authorUser?: string | {
|
|
6837
|
+
id?: number;
|
|
6838
|
+
email?: string;
|
|
6839
|
+
};
|
|
6494
6840
|
locale?: string;
|
|
6495
6841
|
gotThread?: boolean;
|
|
6496
6842
|
threadFirstItemId?: number;
|
|
@@ -6537,7 +6883,10 @@ declare const pluginServices: {
|
|
|
6537
6883
|
authorName?: string;
|
|
6538
6884
|
authorEmail?: string;
|
|
6539
6885
|
authorAvatar?: string;
|
|
6540
|
-
authorUser?: string
|
|
6886
|
+
authorUser?: string | {
|
|
6887
|
+
id?: number;
|
|
6888
|
+
email?: string;
|
|
6889
|
+
};
|
|
6541
6890
|
locale?: string;
|
|
6542
6891
|
gotThread?: boolean;
|
|
6543
6892
|
threadFirstItemId?: number;
|
|
@@ -6571,7 +6920,10 @@ declare const pluginServices: {
|
|
|
6571
6920
|
authorName?: string;
|
|
6572
6921
|
authorEmail?: string;
|
|
6573
6922
|
authorAvatar?: string;
|
|
6574
|
-
authorUser?: string
|
|
6923
|
+
authorUser?: string | {
|
|
6924
|
+
id?: number;
|
|
6925
|
+
email?: string;
|
|
6926
|
+
};
|
|
6575
6927
|
locale?: string;
|
|
6576
6928
|
gotThread?: boolean;
|
|
6577
6929
|
threadFirstItemId?: number;
|
|
@@ -6589,7 +6941,7 @@ declare const pluginServices: {
|
|
|
6589
6941
|
author?: any;
|
|
6590
6942
|
};
|
|
6591
6943
|
};
|
|
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
|
|
6944
|
+
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
6945
|
id?: number;
|
|
6594
6946
|
documentId?: string;
|
|
6595
6947
|
content?: string;
|
|
@@ -6607,7 +6959,10 @@ declare const pluginServices: {
|
|
|
6607
6959
|
authorName?: string;
|
|
6608
6960
|
authorEmail?: string;
|
|
6609
6961
|
authorAvatar?: string;
|
|
6610
|
-
authorUser?: string
|
|
6962
|
+
authorUser?: string | {
|
|
6963
|
+
id?: number;
|
|
6964
|
+
email?: string;
|
|
6965
|
+
};
|
|
6611
6966
|
locale?: string;
|
|
6612
6967
|
gotThread?: boolean;
|
|
6613
6968
|
threadFirstItemId?: number;
|
|
@@ -6641,7 +6996,10 @@ declare const pluginServices: {
|
|
|
6641
6996
|
authorName?: string;
|
|
6642
6997
|
authorEmail?: string;
|
|
6643
6998
|
authorAvatar?: string;
|
|
6644
|
-
authorUser?: string
|
|
6999
|
+
authorUser?: string | {
|
|
7000
|
+
id?: number;
|
|
7001
|
+
email?: string;
|
|
7002
|
+
};
|
|
6645
7003
|
locale?: string;
|
|
6646
7004
|
gotThread?: boolean;
|
|
6647
7005
|
threadFirstItemId?: number;
|
|
@@ -6658,12 +7016,12 @@ declare const pluginServices: {
|
|
|
6658
7016
|
}[];
|
|
6659
7017
|
author?: any;
|
|
6660
7018
|
};
|
|
6661
|
-
}[T_2]): Promise<boolean>;
|
|
7019
|
+
}[T_2], deepLimit?: number): Promise<boolean>;
|
|
6662
7020
|
checkBadWords(content: string): Promise<string>;
|
|
6663
7021
|
registerLifecycleHook(): void;
|
|
6664
7022
|
runLifecycleHook(): Promise<void>;
|
|
6665
7023
|
};
|
|
6666
|
-
settings: ({ strapi }: import("../@types
|
|
7024
|
+
settings: ({ strapi }: import("../@types").StrapiContext) => {
|
|
6667
7025
|
getConfig: (viaSettingsPage?: boolean) => Promise<{
|
|
6668
7026
|
enabledCollections?: string[];
|
|
6669
7027
|
approvalFlow?: string[];
|
|
@@ -6681,6 +7039,10 @@ declare const pluginServices: {
|
|
|
6681
7039
|
gql?: {
|
|
6682
7040
|
auth?: boolean;
|
|
6683
7041
|
};
|
|
7042
|
+
client?: {
|
|
7043
|
+
url?: string;
|
|
7044
|
+
contactEmail?: string;
|
|
7045
|
+
};
|
|
6684
7046
|
} | Omit<{
|
|
6685
7047
|
enabledCollections?: string[];
|
|
6686
7048
|
approvalFlow?: string[];
|
|
@@ -6698,6 +7060,10 @@ declare const pluginServices: {
|
|
|
6698
7060
|
gql?: {
|
|
6699
7061
|
auth?: boolean;
|
|
6700
7062
|
};
|
|
7063
|
+
client?: {
|
|
7064
|
+
url?: string;
|
|
7065
|
+
contactEmail?: string;
|
|
7066
|
+
};
|
|
6701
7067
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6702
7068
|
update: (config: {
|
|
6703
7069
|
enabledCollections?: string[];
|
|
@@ -6716,6 +7082,10 @@ declare const pluginServices: {
|
|
|
6716
7082
|
gql?: {
|
|
6717
7083
|
auth?: boolean;
|
|
6718
7084
|
};
|
|
7085
|
+
client?: {
|
|
7086
|
+
url?: string;
|
|
7087
|
+
contactEmail?: string;
|
|
7088
|
+
};
|
|
6719
7089
|
}) => Promise<{
|
|
6720
7090
|
enabledCollections?: string[];
|
|
6721
7091
|
approvalFlow?: string[];
|
|
@@ -6733,6 +7103,10 @@ declare const pluginServices: {
|
|
|
6733
7103
|
gql?: {
|
|
6734
7104
|
auth?: boolean;
|
|
6735
7105
|
};
|
|
7106
|
+
client?: {
|
|
7107
|
+
url?: string;
|
|
7108
|
+
contactEmail?: string;
|
|
7109
|
+
};
|
|
6736
7110
|
} | Omit<{
|
|
6737
7111
|
enabledCollections?: string[];
|
|
6738
7112
|
approvalFlow?: string[];
|
|
@@ -6750,6 +7124,10 @@ declare const pluginServices: {
|
|
|
6750
7124
|
gql?: {
|
|
6751
7125
|
auth?: boolean;
|
|
6752
7126
|
};
|
|
7127
|
+
client?: {
|
|
7128
|
+
url?: string;
|
|
7129
|
+
contactEmail?: string;
|
|
7130
|
+
};
|
|
6753
7131
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6754
7132
|
restore: () => Promise<{
|
|
6755
7133
|
enabledCollections?: string[];
|
|
@@ -6768,6 +7146,10 @@ declare const pluginServices: {
|
|
|
6768
7146
|
gql?: {
|
|
6769
7147
|
auth?: boolean;
|
|
6770
7148
|
};
|
|
7149
|
+
client?: {
|
|
7150
|
+
url?: string;
|
|
7151
|
+
contactEmail?: string;
|
|
7152
|
+
};
|
|
6771
7153
|
} | Omit<{
|
|
6772
7154
|
enabledCollections?: string[];
|
|
6773
7155
|
approvalFlow?: string[];
|
|
@@ -6785,10 +7167,14 @@ declare const pluginServices: {
|
|
|
6785
7167
|
gql?: {
|
|
6786
7168
|
auth?: boolean;
|
|
6787
7169
|
};
|
|
7170
|
+
client?: {
|
|
7171
|
+
url?: string;
|
|
7172
|
+
contactEmail?: string;
|
|
7173
|
+
};
|
|
6788
7174
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6789
7175
|
restart: () => void;
|
|
6790
7176
|
};
|
|
6791
|
-
gql: ({ strapi }: import("../@types
|
|
7177
|
+
gql: ({ strapi }: import("../@types").StrapiContext) => {
|
|
6792
7178
|
graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
|
|
6793
7179
|
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
7180
|
};
|